Limelight Forums

Full Version: Limelight API
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Hello, time for another update.

Some of you might remember the Clan API. Well, it's dead. With some help from , we've got a new API now. Based on the Bolt REST API base, with some LL specific upgrades, the Limelight API uses a unique routing system, automatic regex and a few other features.

So far, the old clan API has been migrated over to it, a new varient of the changelogs API has been written, along with a REP API and a news API. Whilst it's not yet in a position to have authentication or API keys or anything similar, the rapid expansion of the base since it's implementation leads us to think it won't be too long for more advanced APIs.

But Internet, how do I access it?
Currently, you can access it through api.limelightgaming.net. At the moment, only JSON responses are supported, but depending on what people need, we can look at supporting more.

What are the endpoints?
Currently, the list is somewhat limited, however.
Code:
GET / - Root, provides information and description.
GET /invalid - 404 page, default if no other route is matched.

GET /clans - List of all clans.
GET /clans/{id}, - Clan data, with=ranks,members
GET /clans/{id}/members, - List of clan members.
GET /clans/{id}/members/{sid}, - Data about clan member.
GET /clans/{id}/ranks, - List of clan ranks. with=perms
GET /clans/{id}/ranks/{rankid} - Specific rank data.

GET /news - Latest updates/announcements.
GET /news/updates - ^ but filtered.
GET /news/announcements - ^^ but filtered.

GET /changelogs - Changelog data.
GET /changelogs/total - Returns the total for equivalent queries sent to the above endpoint.

GET /reps - List of REPS.
GET /reps/{id} - Individual REP data.
GET /reps/player/{id} - REP per player.
GET /reps/admin/{id} - REP issued by a specific admin.
IDs for users are 64 bit steam ids.
Some endpoints support limit and skip arguments, just like the changelogs API.
Some endpoints (mainly in the clans area) support with arguments, for getting related data. For example, /clans/567 gets some basic data about the FBI. /clans/567?with=ranks gets both that basic data, and information about ranks.

How do I use different versions?
The first argument, before the endpoint, is also an optional version id. So you can set it there, if you need to use a specific version.
https://api.limelightgaming.net/v1/clans/567 == https://api.limelightgaming.net/clans/567

Thanks for reading, and I hope to enjoy seeing what people create with this.
Some GET/POST endpoints for account balances would be sick
Great work Doctor! I am thrilled to see some new applications popping up! Lets go community!
And another update. We now support Basic and Bearer authorisation.

New API Endpoints!
Code:
"GET \/keys\/{ key : string }: Retrieve a specific key from the server.",
"GET \/keys: Retrieve list of keys from the server.",
"POST \/keys: Generate a new API key.",
These endpoints all require either basic auth or bearer tokens. You can generate your own API keys for stuff, and we're hoping to expose more endpoints over time.

Thanks guys, and good luck with your apps.
boop the snoot, watch this space etc.
let's get some documentation.
https://dev.limelightgaming.net/docs-api/

Using the really really nice looking Slate Documentation Generator, we now have documentation that is (fairly) up to date.
Nice job guys!
very good yes good job internet yes
*slowly nods along acting like he knows anything about the topic*
neeeeeeeeeeeeerds
hello pls new docs new link: https://limelight-development.github.io/api-main/
Impressive Internet!!
Those new docs are so rich of information, I urge all of our (and external) Web/App Developers to make use of the API. Especially now with those new /v3/ server status endpoints.

All future services SHOULD use the API. Existing services will be updated to using it, too.
sent a GET request and got stuff, 10/10