The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. Back4App
  2. πŸ‡§πŸ‡· Brazil States and Cities API
Public

19
47
19
47
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Countries

This GraphQL query fetches All Countries


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
query allCountries {
      countries (skip: 0, limit: 3) {
        results {
          ACL
          areaSqKm
          capital
          capitalName
          cities (skip: 0, limit: 3) {
            results {
              id
            }
          }
          continent {
            id
          }
          country
          createdAt
          currencyCode
          currencyName
          emoji
          emojiU
          equivalentFipsCod
          fips
          geonameId
          id
          iso
          iso3
          isoNumeric
          languages (skip: 0, limit: 3) {
            results {
              id
            }
          }
          native
          neighbours {
              ...on Element {
              value
            }
          }
          phone
          population
          postalCodeFormat
          postalCodeRegex
          shape {
            id
          }
          states (skip: 0, limit: 3) {
            results {
              id
            }
          }
          tld
          updatedAt
        }
      }
    }
{
  "data": {
    "countries": {
      "results": [
        {
          "ACL": null,
          "areaSqKm": 8511965,
          "capital": "Brasilia",
          "capitalName": "BrasΓ­lia",
          "cities": {
            "results": [
              {
                "id": "032eqKHBKQ"
              },
              {
                "id": "03Y14Egmof"
              },
              {
                "id": "04HTLgNFyZ"
              }
            ]
          },
          "continent": {
            "id": "BUlMB8DkiR"
          },
          "country": "Brazil",
          "createdAt": "2020-05-06T20:07:28.366Z",
          "currencyCode": "BRL",
          "currencyName": "Real",
          "emoji": "πŸ‡§πŸ‡·",
          "emojiU": "U+1F1E7 U+1F1F7",
          "equivalentFipsCod": "",
          "fips": "BR",
          "geonameId": "3469034",
          "id": "bnEB9QdocE",
          "iso": "BR",
          "iso3": "BRA",
          "isoNumeric": "076",
          "languages": {
            "results": [
              {
                "id": "0ijyAIFD29"
              }
            ]
          },
          "native": "Brasil",
          "neighbours": [
            {
              "value": "SR"
            },
            {
              "value": "PE"
            },
            {
              "value": "BO"
            },
            {
              "value": "UY"
            },
            {
              "value": "GY"
            },
            {
              "value": "PY"
            },
            {
              "value": "GF"
            },
            {
              "value": "VE"
            },
            {
              "value": "CO"
            },
            {
              "value": "AR"
            }
          ],
          "phone": "55",
          "population": 209469333,
          "postalCodeFormat": "#####-###",
          "postalCodeRegex": "^\\d{5}-\\d{3}$",
          "shape": {
            "id": "NsAoJtR2Lx"
          },
          "states": {
            "results": [
              {
                "id": "13OWnupwxz"
              },
              {
                "id": "2CscMZWa9p"
              },
              {
                "id": "6lJa5KeVDK"
              }
            ]
          },
          "tld": ".br",
          "updatedAt": "2020-05-06T22:15:09.047Z"
        }
      ]
    }
  }
}