- 1. Introductie
- 2. Spellen
- 3. Spelers
- 4. Maps
- 5. Overlevende
- 6. Achievements
- 7. Bericht van de dag
- 8. Error afhandeling
Toegang verkrijgen tot de CreepTD API
CreepTD is open in design and allows you as a developer to access lots of publicly available data directly via our API.
1. Introductie
The CreepTD API provides you with a variety of possibilities to easily access player and game data. So, if you have an idea for an interesting statistics, league or similar application, this section is for you.
The API is a common subject to changes, so that I will just note things that need an explaination. For everything else, the sample link should provide you with an idea of the generated data.
| Base path | http://www.creeptd.com/api |
|---|---|
| Data formaat | JSON |
2. Spellen
| Base path | http://www.creeptd.com/api/games |
|---|---|
| Data formaat | JSON |
- Accessing a specific game
- Voorbeeld: http://www.creeptd.com/api/games?key=mxh8f3fbmbqx0po54wtgf485cn6qzg3d
- Accessing a player's recent games
- Voorbeeld: http://www.creeptd.com/api/games?player=EasyX
- Accessing recent games on a specific map
- Voorbeeld: http://www.creeptd.com/api/games?map=SPEEDVECTOR
3. Spelers
| Base path | http://www.creeptd.com/api/players |
|---|---|
| Data formaat | JSON |
- Accessing a specific player
- Voorbeeld: http://www.creeptd.com/api/players?name=EasyX
4. Maps
| Base path | http://www.creeptd.com/api/maps |
|---|---|
| Data formaat | JSON |
- Accessing a specific map
- Voorbeeld: http://www.creeptd.com/api/maps?name=SPEEDVECTOR
- Accessing a map listing
- Alle maps: http://www.creeptd.com/api/maps?list=all
- Toernooi mappen: http://www.creeptd.com/api/maps?list=tournament
- Favoriete maps: http://www.creeptd.com/api/maps?list=favorite&player=dcode
5. Overlevende
| Base path | http://www.creeptd.com/api/survivors |
|---|---|
| Data formaat | JSON |
- Accessing the top highscore on a specific map
- Voorbeeld: http://www.creeptd.com/api/survivors?highscore=SPEEDVECTOR&scenario=TBCH
- Accessing a list of highscores on a specific map
- Voorbeeld: http://www.creeptd.com/api/survivors?map=SPEEDVECTOR&scenario=TBCH
- Accessing a player's highscores
- Voorbeeld: http://www.creeptd.com/api/survivors?name=EasyX
6. Achievements
| Base path | http://www.creeptd.com/api/achievements |
|---|---|
| Data formaat | JSON |
- Accessing a player's achievements
- Voorbeeld: http://www.creeptd.com/api/achievements?player=EasyX
7. Bericht van de dag
| Base path | http://www.creeptd.com/api/motd |
|---|---|
| Data formaat | JSON |
- Accessing the message of the day shown on login
- Voorbeeld: http://www.creeptd.com/api/motd
8. Error afhandeling
- If parameters are missing, invalid or similar, the API returns an error
- Voorbeeld: http://www.creeptd.com/api/games?invalidparameter=true
Hint: Store API results in cache or a database for as long as possible (games for example never ever change) because the API may throttle requests depending on how often and how much data is requested.
Niet ingelogd