3-4 Questions about the Roblox API

I’ve been asking a lot of questions regarding to Roblox API these days… :frowning_face:

I’ll get right on point

  1. How many requests can I send to the Roblox API exactly?(number/minute)
    ^ I’m talking about the Web-API not the kind you send in-game

  2. Lets say I’m using a group api, and a player api under a same IP.
    Assuming that the request limit is 500 per minute, can I send 500 group api and player api each or would it add up to 500?

  3. (if I can send api each)
    If I’m using a group api but targetting a different ID

https://groups.roblox.com/v2/groups?groupIds=1
https://groups.roblox.com/v2/groups?groupIds=2

would I also get 500 each?

  1. if I hit a api limit, how many seconds should I sleep(wait in Lua’s term) before I make a request to the API again?(preferred time)

Thanks in advance!(I’m off studying social study might respond late)

2 Likes

500 a minute. There might be some throttling by Roblox’s API itself rather than HttpService, but I don’t know where that’d be documented.

It adds up to 500 between all requests.

Yeah, which is why there’s a multi-get API endpoint. Try using multiple ids like this:

https://groups.roblox.com/v2/groups?groupIds=1,2

… or maybe it’s [1,2]. I can’t test as the API is down for me right now.

error 0, endpoint unavailable

5 Likes

If I multi-get(lets say 5 users’ id) api, would it count as a single request?

Yes. There’s not multi-get APIs for everything, though, so make sure you check the docs first.

3 Likes

I actually doubt this… last time I (cough) spam-sent a request(personal project nothing serious), I got rate-limited under 1-2 seconds when I sent about less than 20 requests

Yeah, that’s the limit for HttpService. Like I said, I’m not sure if Roblox’s web API itself has any specific limits, since it’s not documented anywhere I can find.

4 Likes

Thanks for a kind response!

If anybody else know a bit more about the HTTPService, please share with us!