Unofficial API information + compressed feeds for 12 May

Day 1,635, 12:59 Published in United Kingdom Poland by Magic


Introduction
Hello again! I’m not sure if you remember what the erpk-api.com is. As you probably now, official eRepublik API hasn’t been working for almost half year. Plato doesn’t care about repairing it. We know, that API developer is not working anymore in eRepublik Labs, and until they doesn’t hire new one, we have to manage ourselves.
This is why I created unofficial API. You can find more information on http://dev.erpk-api.com/

Main features
- both XML, JSON and JSONP interface
- many feeds not included by official API
- Representational State Transfer (REST) support
- fast support (email/irc)
- independent of official API

Example feed (battle)


Comparsion of file formats
JSON (recommended)
JavaScript Object Notation, is a lightweight text-based open standard designed for human-readable data interchange. Despite its relationship to JavaScript, it is language-independent, with parsers available for many languages.
XML
XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. XML is more heavy than JSON, so is slower to parse. Use only, if you really must. Also, Google Docs has support for XML import formulas


Rate limiting
There is cumulative limit 50 requests per 25 seconds for all free users. If you consider heavy use, let check the premium accounts.


Compressed feeds 12 May!
Do you remember old API countries’ compressed feeds? Today I did some experiment - I downloaded all alive citizens to database. I want to share it with you! Here you are:

erpk-api-2012-05-12 xml gzipped
erpk-api-2012-05-12 csv gzipped


There is about ~245 000 citizens. Use good XML or CSV parser implementation, if you don’t want run out of the memory when processing it 😉

Support, questions, feedback
Contact with me on IRC on channel #erpk-api (Rizon) or send me an e-mail: admin@erpk-api.com
You won’t find me in eRepublik, because I’m not active player anymore!

Thanks for MagicHeroes for publishing this article!

Regards,
Lipvig