We use cookies on this site to enhance your user experience

HttpService

HttpService

Note:This service is not allowed to send requests to any of the Roblox websites such as www.roblox.com or api.roblox.com.

This service allows HTTP requests to be sent from game servers. This enables users to create integration with a wide range of third party services such as analytics and storage. One exciting prospect for this service is that if you run and manage your own website, and communicate with it from Roblox, it opens the possibility of remote server management and real time communication with the server, through your site.

If the limit of 500 requests per minute is exceeded, the Service will stall entirely for approximately 30 seconds.

HttpService starts off as disabled by default. HttpService can be enabled through the the Game Settings button in Studio.

GameSettings.PNG AllowHTTPRequests.PNG

Usage ideas
  • Cross server marketplace
  • Real time stock market
  • Cross server leaderboard
  • Restrictions
  • Limit of 500 requests a minute (Per server)
  • Cannot send HTTP requests to the Roblox website
  • See also
  • Sending HTTP requests
  • Properties

    Name Type Description
    bool

    Enables requests to external websites.

    Inherited from Instance

    Archivable ClassName DataCost Name Parent RobloxLocked

    Functions

    Name Type Description
    string

    Generates a UUID/GUID random string, optionally with curly braces

    string

    Send an HTTP GET request

    Variant

    Decodes a JSON string into a Lua table. Does not require HttpService/HttpEnabled to be true.

    string

    Generate a JSON string from a Lua table

    string

    Send an HTTP POST request

    Dictionary

    Performs an HTTP request, using the provided dictionary of data to create the request.

    Returns a dictionary of response data from the server that was targeted by the request.

    string

    Replaces URL-unsafe characters with ‘%’ and two hexadecimal characters.

    Inherited from Instance

    ClearAllChildren Clone Destroy FindFirstAncestor FindFirstAncestorOfClass FindFirstAncestorWhichIsA FindFirstChild FindFirstChildOfClass FindFirstChildWhichIsA GetChildren GetDebugId GetDescendants GetFullName GetPropertyChangedSignal IsA IsAncestorOf IsDescendantOf WaitForChild