roblox-web-apis Documentation

repository·master·Indexed 18 days ago

https://github.com/matthewdean/roblox-web-apis

A collection of references and documentation for various Roblox Web APIs, covering legacy, search, thumbnail, user, asset, and setup endpoints. Includes details on game autocomplete, asset and avatar thumbnail retrieval, user profile games, asset uploading via data.roblox.com, and mobile app version checks.

Tokens
1.8K
Snippets
8
Records
9
Agent score
22%

What's inside roblox-web-apis

  1. Fetch Avatar Thumbnails

    master

    Retrieve avatar thumbnails for a specific user ID. The endpoint returns a JSON array containing the user's name, profile URL, and the thumbnailUrl.

    // Requesting an avatar thumbnail
    https://www.roblox.com/avatar-thumbnails?params=[{userId:261}]
  2. Fetch Asset Thumbnails

    master

    Retrieve thumbnails for specific assets using the item-thumbnails endpoint.

    By default, the API returns a large (420x420) image. To request a small (110x110) image, include imageSize:small in the params object.

    Both the asset and avatar thumbnail APIs support JSONP for client-side embedding.

    // Requesting a large thumbnail (default)
    https://www.roblox.com/item-thumbnails?params=[{assetId:1818}]
    
    // Requesting a small thumbnail (110x110)
    https://www.roblox.com/item-thumbnails?params=[{assetId:1818,imageSize:small}]
    
    // Example using JSONP with jQuery
    $.getJSON('https://www.roblox.com/item-thumbnails?params=[{assetId:1818}]&jsoncallback=?', function(json) {
        alert(json[0].name);
    });
  3. Upload an asset

    master

    Upload an asset to data.roblox.com. This requires a valid .ROBLOSECURITY cookie for authentication. The request body should be an XML structure <roblox></roblox>. A successful upload returns an assetVersionId.

    POST /Data/Upload.ashx?assetid=1818 HTTP/1.1
    Host: data.roblox.com
    Cookie: .ROBLOSECURITY=*
    Content-Type: application/xml; charset=utf-8
    Content-Length: 17
    
    <roblox></roblox>
  4. Reference: Roblox Setup and Download Endpoints

    master

    The following endpoints on setup.rbxcdn.com are used for downloading Roblox executables, checking versions, and accessing deployment history.

    http://setup.rbxcdn.com
      * [/Roblox.exe](http://setup.rbxcdn.com/Roblox.exe)
      * [/RobloxStudioLauncher.exe](http://setup.rbxcdn.com/RobloxStudioLauncher.exe)
      * [/RobloxStudioLauncherBeta.exe](http://setup.rbxcdn.com/RobloxStudioLauncherBeta.exe)
      * [/cdn.txt](http://setup.rbxcdn.com/cdn.txt)
      * [/version(.txt)](http://setup.rbxcdn.com/version)
      * [/versionStudio(.txt)](http://setup.rbxcdn.com/versionStudio)
      * [/versionQTStudio](http://setup.rbxcdn.com/versionQTStudio)
      * [/DeployHistory.txt](http://setup.rbxcdn.com/DeployHistory.txt)
      * [/mac/version](http://setup.rbxcdn.com/mac/version)
      * [/mac/versionStudio](http://setup.rbxcdn.com/mac/versionStudio)
      * [/mac/RobloxStudio.dmg](http://setup.rbxcdn.com/mac/RobloxStudio.dmg)
  5. Reference: Valid Thumbnail Sizes and Formats

    master

    The following table maps various thumbnail endpoints and formats to their supported pixel dimensions and thumbnailFormatId values.

    |                                 | 48x48 | 60x62 | 75x75 | 100x100 | 110x110 | 160x100 | 250x250 | 352x352 | 420x230 | 420x420 |
    | ------------------------------- | :---: | :---: | :---: | :-----: | :-----: | :-----: | :-----: | :-----: | :-----: | :-----: |
    | /Game/Tools/ThumbnailAsset.ashx |       |       | x     |         | x       |         | x       |         |         | x       |
    | /Asset-Thumbnail/Json           | x     | x     | x     | x       | x       | x       | x       | x       | x       | x       |
    | /Thumbs/Asset.ashx              | x     | x     | x     | x       | x       | x       | x       | x       | x       | x       |
    | /Thumbs/Avatar.ashx              | x     | x     | x     | x       | x       | x       | x       | x       | x       | x       |
    | /Thumbs/RawAsset.ashx           | x     | x     | x     | x       | x       | x       | x       | x       | x       | x       |
    | thumbnailFormatId               | 2     | 24    | 280   | 41      | 47      | 163     | 114     | 124     | 8       | 254     |