{"repo":"trevorblades/countries","free":true,"listed":false,"github":"https://github.com/trevorblades/countries","clone":"git clone https://github.com/trevorblades/countries.git","description":"🌎 Public GraphQL API for information about countries","language":"TypeScript","stars":516,"topics":["countries","continents","languages","apollo","graphql","graphql-api","public-api","api","free","schema"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Countries GraphQL API A public GraphQL API for information about countries, continents, and languages. This project uses Countries List and provinces as data sources, so the schema follows the shape of that data, with a few exceptions: 1. The codes used to key the objects in the original data are available as a code property on each item returned from the API. 1. The Country.continent and Country.languages are now objects and arrays of objects, respectively. 1. The Country.currency and Country.phone fields sometimes return a comma-separated list of values. For this reason, this API also exposes currencies and phones fields that are arrays of all currencies and phone codes for a country. 1. Each Country has an array of states populated by their states/provinces, if any. 1. Each Country also has an awsRegion field that shows its nearest AWS region, powered by country-to-aws-region . Writing queries The above GraphQL query will produce the following JSON response: Check out the playground to explore the schema and test out some queries. Filtering The countries , continents , and languages top-level Query fields accept an optional filter argument that causes results to be filtered on one or more subfields. The continents and languages fields can be filtered by their code , while countries can be filtered by code , currency , or continent . Note: The continent filter on the Query.countries field must be the continent code, i.e. \"SA\" for South America. The filtering logic is powere","default_branch":null,"files":null,"tree":[],"storefront":"/r/trevorblades","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/trevorblades/countries/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}