What do you want to achieve? Keep it simple and clear!
How to make an API
What is the issue? Include screenshots / videos if possible!
Idk how to make an API
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
No solutions on Developer Hub (developer hub isnt dev-forum)
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
This is similar to asking “how do I cook?” which is far too vague. Try to be more specific in terms of what you are trying to accomplish. An “API” can kind of be a catch-all term for any piece of code that is somehow consumable by other code, and thus can be designed in a million different ways.
Im talking about the HTTPService APIs for example heres one:
(Country API, (i dont want to make this, i just want a guide on how to make something like that as a starter))
local httpService = game:GetService("HttpService")
local url = "https://ip-retrive.glitch.me/"
Code? Roblox API is everything roblox have added, there are a lot of optimized stuff that you can’t do better for most of the time, use math & RBLX API and you’ll be fine
You would need to create your own server site that can process POST and GET requests from a secondary source. This isn’t directly something you should be inquiring about on the roblox forums, I’d suggest just looking into site APIs on Google, or any other search engine.
you choose coding language that you will be using for creating a backend for example node js,php,c# etc
you learn basics like how client and server communicate with each other and whats an encryption
this is example demo of how apis work
→ client sends request to server
→ server returns data back to the client based of the data client has sent to the server
→ client checks data returned from the server
most of time you will be using json to encode / decode data
I’m recently creating my own ‘animator api’ / class im using just a basic modulescript for it.
I’ve made my own custom pathfindingservice with a 4x4x4 (thats a lie its, 4x4 x and z no Y)
There not really API’s.
If you want to make like a “API” for now you can’t, game:getservice only works with roblox api’s afaik.
For my custom ones I’ve used require() with a module script.