Country-related data like currencies, languages, flags, regions+subregions and bordering countries.
Graph Countries is a GraphQL API for querying country-related data, based on the same dataset as restcountries.eu, offered free of charge and without usage restrictions. It exposes information including countries, timezones, currencies, languages, regions and subregions, top-level domains, calling codes, flags, bordering countries, and translations. It also supports computed queries such as shortest path between countries and distance to other countries, along with selection, pagination, filtering, searching, and ordering across entities.
The underlying data is scraped from restcountries.eu and stored in a Neo4j graph database, with the GraphQL schema inferred using the neo4j-graphql-js package and custom Cypher queries added for path and distance calculations. An Apollo server provides the GraphQL endpoint and an interactive playground for exploring queries.
The project can be used via its hosted endpoint or self-hosted by cloning the repository and connecting it to a Neo4j graph database with the APOC plugin installed, requiring Node.js and npm. It is intended for developers who need structured, queryable country data through a GraphQL interface, including graph-based relationships like bordering countries and route distances.
Yes, it is free of charge and without restrictions.
It exposes a GraphQL endpoint, built with Apollo Server on top of a Neo4j graph database.
Yes, you can clone the repo and host it yourself, but you need your own Neo4j graph database with the APOC plugin installed.
The data is scraped from restcountries.eu and inserted into a Neo4j graph database, with added flag emojis.
It supports queries for countries, timezones, currencies, languages, regions, calling codes, flags, bordering countries, translations, and shortest path/distance between countries.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
IP geolocation and currency conversion.
A cloud-based platform for planetary-scale environmental data analysis.
Create/customize digital maps based on Google Maps data.
Get hello translation following user language.
Create/customize digital maps based on HERE Maps data.
API for accessing geo-data of Hong Kong.