Ambient on/off

Sign up

 

Continue

Continue By creating an account you agree to the Terms of Service & Privacy Policy
Resend email   |  Can't find the email? confirmation@erepublik.com

Resend the confirmation email to this address

Resend email Can't find the email? confirmation@erepublik.com

Unofficial eRepublik API has been relased!

Day 1,577, 14:24 by Magic Hereos

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/<id>.<format>?key=<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/<id>.<format>?key=<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/<id>.<format>?key=<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.<format>?key=<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/<mode>/<page>.<format>?key=<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/<country>/<industry>/<quality>/<page>.<format>?key=<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/<country>/<page>.<format>?key=<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
 

Comments

Magic Hereos
Magic Hereos Day 1,577, 14:29

Hail Lipvig & his API!

Basowy
Basowy Day 1,577, 14:32

Vote - Hail BR - Jest Bluerose - jest API

Szym3k o7
Szym3k o7 Day 1,577, 14:32

Hail Lipvig & his API!
Hail Bluerose !!

Krzychur
Krzychur Day 1,577, 14:32

Hail BR!

llconsultant
llconsultant Day 1,577, 14:32

Kocham Cie! :*

prezes893
prezes893 Day 1,577, 14:32

Polecam i zapraszam! do BR oczywiście.

Maciejq
Maciejq Day 1,577, 14:34

Tylko w BR nie ma opierda***** sie !!

Dr.amin gholi
Dr.amin gholi Day 1,577, 14:35

Vote

ilphen
ilphen Day 1,577, 14:36

good work : 3!

tschaya
tschaya Day 1,577, 14:38

Bluerose i Lipvig rządzi
Vote

lee-oon
lee-oon Day 1,577, 14:39

Vote!

Tejku
Tejku Day 1,577, 14:41

Hard Vote !!!

Kocham Cie! :* x2

CatLand
CatLand Day 1,577, 14:43

good job man! o/

Elverin
Elverin Day 1,577, 14:44

HAIL BR o7

Rona1d
Rona1d Day 1,577, 14:47

nice

Ivan Terible
Ivan Terible Day 1,577, 14:50

v + s

dead dreamer
dead dreamer Day 1,577, 14:54

very good! uninterested admins 0 - community 1
v+s

Sunmannus
Sunmannus Day 1,577, 14:55

V!

nosfar
nosfar Day 1,577, 15:04

MW o7

Trandeos
Trandeos Day 1,577, 15:05

votado

MaximumSpeed
MaximumSpeed Day 1,577, 15:08

potwierdzam

viktyma
viktyma Day 1,577, 15:12

Pozdrawiam marynarzy walczących dla pokoju i rozkwitu Ojczyzny!!!

Tirex88
Tirex88 Day 1,577, 15:13

potwierdzam

tuti_PL
tuti_PL Day 1,577, 15:15

potwierdzam...

tls4
tls4 Day 1,577, 15:17

graty

BiednyMis
BiednyMis Day 1,577, 15:19

o7

Komisariusz
Komisariusz Day 1,577, 15:19

o7

Khrone.p
Khrone.p Day 1,577, 15:24

o7

Baks33
Baks33 Day 1,577, 15:24

wersję po chrześcijańsku zrób

Fabryka krokodyla
Fabryka krokodyla Day 1,577, 15:26

Nie ma spania.

xenophob
xenophob Day 1,577, 15:31

Bez API da się żyć!

Mwaca
Mwaca Day 1,577, 15:32

Hail o/

frogpenis
frogpenis Day 1,577, 15:43

thx!

meredith123
meredith123 Day 1,577, 16:03

congrats

Avistone
Avistone Day 1,577, 16:03

o7

Jason05
Jason05 Day 1,577, 16:03

Hope you succeed o7

hailuotolainen
hailuotolainen Day 1,577, 16:05

v

Tamas Vlad
Tamas Vlad Day 1,577, 16:08

o7

KabashYy
KabashYy Day 1,577, 16:10

o7

Juani cHarlone
Juani cHarlone Day 1,577, 16:11

Voted o/

The Anaconda
The Anaconda Day 1,577, 16:25

Didn't get this one...

faucoult
faucoult Day 1,577, 16:25

zaaaaaaaaaaa

dansor
dansor Day 1,577, 16:38

V

Spodnie
Spodnie Day 1,577, 16:59

Good job.

Alicemondos
Alicemondos Day 1,577, 17:01

V + S, nice work man ¡¡¡

Mr QRCZEBLADE
Mr QRCZEBLADE Day 1,577, 17:49

vote

Alex.L
Alex.L Day 1,577, 21:35

Honestly, I won't be surprised if they ban you or punish you in some way.
You're doing something they're not capable of or they don't want to do for some reason.

Leo Vince
Leo Vince Day 1,577, 22:32

a polski nie nauczyć były prezydę?

Zielarz
Zielarz Day 1,578, 00:06

kaza;i to votuje i komentuje o7

Taaniel Tina
Taaniel Tina Day 1,578, 00:15

vote

 
Post your comment

What is this?

You are reading an article written by a citizen of eRepublik, an immersive multiplayer strategy game based on real life countries. Create your own character and help your country achieve its glory while establishing yourself as a war hero, renowned publisher or finance guru.