world.db JSON(P) API Demo

Examples

List all countries /countries.(txt|html)

/countries         Alternative Formats: .txt | .html

List all countries for a tag /tag/:tag

/tag/europe         Alternative Formats: .txt | .html
/tag/south_america         Alternative Formats: .txt | .html
/tag/un         Alternative Formats: .txt | .html
/tag/eu         Alternative Formats: .txt | .html
/tag/uefa         Alternative Formats: .txt | .html

List all cities /cities.(txt|html)

/cities         Alternative Formats: .txt | .html

Debug

  request.scheme          http
  request.script_name     /api/v1
  request.path_info       /
  request.port            80
  request.request_method  GET
  request.query_string    
  request.host            worlddb.herokuapp.com
  request.referrer        
  request.user_agent      CCBot/2.0 (http://commoncrawl.org/faq/)
  request.url             http://worlddb.herokuapp.com/api/v1/
  request.path            /api/v1/
  request.ip              54.158.31.149
Questions? Comments? | world.db/1.6.3, world.db.api/0.1.0 - Ruby/1.9.2 (2014-08-07/x86_64-linux) on Sinatra/1.3.6 (production)