I created an API to get data about Japan I love Japanese culture and people! https://japan-api.github.io/docs/
--Build on Python & Flask --Hosted on Heroku --Most of the data comes from Wikipedia
URL
https://japan-api.herokuapp.com/api/v1/tokyo
{
"area": "2,194.07 km2",
"area_code": "03x042",
"area_mi": "847.14 sq mi",
"area_rank": 45,
"capital": "Shinjuku",
"capital_kanji": "Shinjuku ward",
"climate": "Humid subtropical",
"density": "6,349/km2",
"density_mi": "16,440/sq mi",
"economy": [
"Finance",
"Light industry"
],
"governor": "Yuriko Koike",
"island": "Honshu",
"iso_code": 13,
"local_dishes": [
"Monja Yaki",
"Fukagawa Don",
"Kusaya"
],
"name": "Tōkyō",
"name_kanji": "Tokyo",
"population": "13,929,280",
"population_rank": 1,
"region": "Kantō",
"symbols": [
"Bird: Black-headed gull",
"Flower: Yoshino cherry",
"Tree: Ginkgo"
]
}
https://japan-api.herokuapp.com/api/v1/japan
{
"area": "377,975 km2",
"area_mi": "145,937 sq mi",
"area_rank": "61st",
"calling_code": "+81",
"capital": "Tōkyō",
"capital_kanji": "Tokyo",
"climate": "Predominantly temperate",
"currency": "Japanese yen (¥) (JPY)",
"density": "334/km2",
"density_mi": "865.1/sq mi",
"density_rank": "24th",
"driving_side": "left",
"economy": [
"Industry",
"Agriculture",
"Fishery",
"Services",
"Tourism",
"Science and Technology"
],
"emperor": "Naruhito",
"gdp_nominal": "$4.911 trillion, By head: $39,048",
"gdp_ppp": "$5.236 trillion, By head: $41,634",
"gini": "33.9 - medium",
"hdi": "0.919 - very high",
"islands_number": "6,852",
"iso_code": "JP",
"local_dishes": [
"Sushi",
"Sashimi",
"Ramen",
"Onogiri",
"Nabe",
"Miso",
"Tempura",
"Soba",
"Yakitori",
"Kaiseki",
"Udon",
"Sukiyaki",
"Tonkatsu",
"Donburi",
"Curry"
],
"name": "Nippon",
"name_kanji": "Japan",
"national_language": "Japanese",
"population": "125,710,000",
"population_rank": "11th",
"prime_minister": "Yoshihide Suga",
"time_zone": "UTC+09:00 (JST)"
}
https://japan-api.herokuapp.com/api/v1/all --All prefectures including Japan http://japan-api.herokuapp.com/api/v1/population_rank/int:population_rank --Search by population rank (all prefectures) https://japan-api.herokuapp.com/api/v1/area_rank/int:area_rank --Search by area rank (all prefectures) http://japan-api.herokuapp.com/api/v1/iso/int:prefecture_iso --Search by ISO code
MIT license
GitHub https://github.com/japan-api Please criticize
Recommended Posts