Is it a good idea to get an http request from api.roblox.com using javascript?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to get an http request from api.roblox.com/users/421 using javascript so that i can host it and be able to get roblox http requests from lua
  2. What is the issue? Include screenshots / videos if possible!
    It brings an error which i can fix it but the article (not roblox) says that it’s not a good idea to get http requests from private api’s
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    It didn’t really help that much

Any help is appreciated

i dont think this be a good idea you can only do that if you are using roblox studio code but from unknown sources it might be against tos so yeah dont even give it a try

1 Like

Tried it on my website in console that isn’t hosted and it gave an error and i tried it on auth.roblox.com and it gave an error saying that i don’t have access to

You could easily do this, however, please note that some of the APIs have rate limits which will cause a HTTP 429 if called too many times within a specific timeframe.

Also, the API you want to use is not needed within Roblox games, as you can get pretty much all the info from functions within the Player class (Player | Documentation - Roblox Creator Hub)

1 Like

I know about that but im attempting to get http request from roblox since i do need it for some stuff that http services don’t have

What info are you trying to retrieve?

Such as printing usernames that are available or not

Oh yeah, that would be difficult. I’ve used this before to send API requests with no issues what so ever.

1 Like

Yes. I already made this month ago.

They have all of Http Requests in HttpService:RequestAsync. But, typically the solution for sending Http Requests to roblox is making a proxy, like in this app.