Online strategy game eRepublik is used by over 200,000 active players internationally. The site calls itself the "first massive online social strategy game" and invites you to "change the world and rewrite history. Over 1 million people have already done that, according to eRepublik. The eRepublik API--or eAPI, as it's called--can be used to retrieve game data in a developer-friendly format (supports both XML and JSON). The eAPI also offers functions to interact with the game's ecosystem.
Your application can access detailed information within the eRepublik game regarding regions, countries, wars, companies and citizens. You can also learn about markets, industries and battles.
The eAPI documentation covers a 17 page PDF.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.