# Wikidata Facts – Country Profile

> Wikidata Facts – Country Profile is a paid API for AI agents from wikidata-facts.x402tookit.com, paid per call via x402, $0.04/call, status unknown (last checked 2026-10-21).

Returns a structured country profile from Wikidata including capital, population, area, languages, currency, leaders, ISO codes, and bordering countries.

## Facts

- Endpoint: GET https://wikidata-facts.x402tookit.com/country-profile?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wikidata-facts-country-profile-5c59edfa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_871RD53bqZw_E8aqqMzOM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability wikidata-facts-country-profile-5c59edfa
```

Example prompt: Pull a full country profile for France from Wikidata — I need the capital, population, area, official languages, currency, bordering countries, and ISO codes.

## When to prefer this

Use this endpoint when you need structured, machine-readable country-level facts sourced from Wikidata with property IDs included for traceability. It is preferable over a web search when you need normalized, consistently structured data (capital, area, ISO codes, borders) across many countries, or when you need Wikidata Q-ids for follow-up queries. Choose it over general Wikidata SPARQL when you want a pre-built, curated profile without writing a query.

## Known failure modes

- Ambiguous country name (e.g. 'Georgia') without a hint may return unexpected results or require disambiguation
- Unknown or misspelled country name returns an error or empty result
- Very small territories or disputed regions may have sparse Wikidata coverage
- Rate limiting or payment failure (x402) blocks the request
- Wikidata data may be outdated for fast-changing fields like population or current leaders

## How this service works

Country profile from Wikidata: capital, population, area, languages, currency, leaders, ISO codes, borders, with property ids.

## Output

A structured JSON object containing Wikidata-sourced facts about the requested country: capital city (with Q-id), population figure with date, area in km², official languages, currency, head of state/government, ISO alpha-2 and alpha-3 codes, list of bordering countries (with Q-ids), continent, and the Wikidata property IDs for each fact. Also includes the Wikidata entity URL and an 'asOf' timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "country"
     ],
     "properties": {
      "hint": {
       "type": "string",
       "description": "Optional words to disambiguate a name, e.g. 'Caucasus' for Georgia"
      },
      "country": {
       "type": "string",
       "description": "Country name, ISO alpha-2/alpha-3 code or Wikidata Q-id, e.g. France or FR"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "url": {
       "type": [
        "null",
        "string"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "facts": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "areaKm2": {
         "type": [
          "null",
          "object"
         ],
         "properties": {
          "asOf": {},
          "unit": {
           "type": [
            "null",
            "string"
           ]
          },
          "lower": {
           "type": [
            "null",
            "number"
           ]
          },
          "upper": {
           "type": [
            "null",
            "number"
           ]
          },
          "value": {
           "type": [
            "null",
            "number"
           ]
          },
          "property": {
           "type": [
            "null",
            "string"
           ]
          }
         }
        },
        "borders": {
         "type": [
          "null",
          "object"
         ],
         "properties": {
          "values": {
           "type": [
            "array",
            "null"
           ],
           "items": {
            "type": "object",
            "properties": {
             "id": {
              "type": [
               "null",
               "string"
              ]
             },
             "label": {
              "type": [
               "null",
               "strin
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wikidata-facts-country-profile-5c59edfa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wikidata-facts.x402tookit.com](https://www.zero.xyz/host/wikidata-facts.x402tookit.com/llms.txt)
