Unofficial eRepublik API has been relased!

Day 1,577, 14:24 Published in Poland Poland by Magic

Hello!
Official eRepublik API has been down for almost 2 months. Everybody knows about it. Unfortunately, Plato isn’t interesed of improving or even repairing API. I’m sure, that he received thousands of messages with petitions. It looks, that we have to manage ourselves with that annoying situation.

That is why I created unofficial eRepublik API. It has a few significant advantages in comparsion to official one. At first, it... works 😉 I tried to obtain possibly highest reliability. Of course it’s a new project, so I don’t guarantee it’s bugs-free.

Main features:
- following Representational State Transfer (REST) principles
- support for both XML and JSON responses
- reasonable caching of resources
- API keys, which are used to identify you and prevent overloading server by abusers
- completely independent from official API
- support for many wanted, but missing/broken resources

Get started with API!
At first, you have to open http://dev.erpk-api.com/ and obtain your own API key. Just follow instructions on this site.


Do you have a key? If so, let’s check check overview of resources.

- Citizen
Pattern: http://erpk-api.com/citizen/profile/😣format>?key=
Example: http://erpk-api.com/citizen/profile/123455.json?key=81j5xChv7d
Description: That feed includes among others: computed influence given without weapon, rank level/name/image, MU membership, “About me” section and much more.

- Military Unit
Pattern: http://erpk-api.com/mu/.?key=
Example: http://erpk-api.com/mu/125.json?key=81j5xChv7d
Description: That feed contains summary information about Military Unit.

- Battle
Pattern: http://erpk-api.com/battle/.?key=
Example: http://erpk-api.com/battle/22899.json?key=81j5xChv7d
Description: That feed includes among others: battle heroes, minibattles “crowns” score on both sides and information about battle timer.

- Active battles
Pattern: http://erpk-api.com/battle/active.?key=
Example: http://erpk-api.com/battle/active.json?key=81j5xChv7d
Description: That feed is a list of active battles’ IDs numbers.

- Monetary market
Pattern: http://erpk-api.com/exchange//.?key=
Example: http://erpk-api.com/exchange/1/1.json?key=81j5xChv7d
Description: That feed is a list of monetary market offers.

- Market
Pattern: http://erpk-api.com/market////.?key=
Example: http://erpk-api.com/market/pl/food/6/1.json?key=81j5xChv7d
Description: That feed is a list of market offers. Additionally includes direct link to offer.

- Job market
Pattern: http://erpk-api.com/jobmarket//.?key=
Example: http://erpk-api.com/jobmarket/pl/1.json?key=81j5xChv7d
Description: That feed is a list of job market offers.

For detailed information check out the full documentation. There you should find everything what you need to know.

Still have questions? Ideas? Would like to report bug or just leave feedback?
Join #erpk-api on Rizon and ask me anything (I’m Lipvig, that one with “~” before nickname 😉).
If neccessary, you can contact with me also by e-mail admin@erpk-api.com, but I prefer IRC.

Greets,
Lipvig