So, my issue is that I am making a game using an API. However, it requires an API key, which I have in my possession. How may I retrieve data from the API by implementing it with my API key using HttpService? (I’m planning to use HttpService:JSONDecode
too to transform it in a readable Lua table)
1 Like
To add the API key, you would need to add a header to the request, which is done using RequestAsync in place of GetAsync / PostAsync (It allows the same functionality, plus extra, as those 2).
The documentation for request async does a decent job at explaining it
Basically, just find what the API wants the API key to be named in the request and just chuck it into the headers! (LMK if you need further information)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.