Niet ingelogd

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 pathhttp://www.creeptd.com/api
Data formaatJSON

2. Spellen

Base pathhttp://www.creeptd.com/api/games
Data formaatJSON
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 pathhttp://www.creeptd.com/api/players
Data formaatJSON
Accessing a specific player
Voorbeeld: http://www.creeptd.com/api/players?name=EasyX

4. Maps

Base pathhttp://www.creeptd.com/api/maps
Data formaatJSON
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 pathhttp://www.creeptd.com/api/survivors
Data formaatJSON
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 pathhttp://www.creeptd.com/api/achievements
Data formaatJSON
Accessing a player's achievements
Voorbeeld: http://www.creeptd.com/api/achievements?player=EasyX

7. Bericht van de dag

Base pathhttp://www.creeptd.com/api/motd
Data formaatJSON
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.