Countries, An example GraphQL API

If you’re looking for an example GraphQL API to play with, check out Countries.

A public GraphQL API for information about countries, continents, and languages.

curl 'https://countries.trevorblades.com/' \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ country(code: \"BE\") { name, native, emoji, currency, languages { code, name } } }"}'

The schema’s available on the playground.

Countries Playground →
Countries Source (GitHub) →

Published by Bramus!

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.