# PowaHub Country Lookup

> PowaHub Country Lookup is a paid API for AI agents from api.powahub.ai, paid per call via x402, $0.007/call, status unknown (last checked 2026-10-02).

Look up a country by name, ISO code, or calling code and return its ISO codes, official name, capital, region, subregion, and calling codes.

## Facts

- Endpoint: GET https://api.powahub.ai/CertainData/country-lookup/:input?utm_source=zero.xyz
- Price: $0.007/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/powahub-country-lookup-418b22b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h4y7V-EicEDVyYnu-W_Ke

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 powahub-country-lookup-418b22b5
```

Example prompt: What are the ISO codes, capital, and calling code for Germany? I have its name but need the full country details.

## When to prefer this

Use this endpoint when you need to resolve a country identifier (name, ISO code, or phone prefix) to a full structured country record including codes, capital, and region. Prefer this over a full geocoding or IP geolocation service when you already have a country-level identifier and simply need to enrich or normalize it.

## Known failure modes

- Unknown or misspelled country name returns an error or empty result
- Ambiguous calling codes shared by multiple countries may return unexpected results
- Invalid input format (e.g. numeric without +) may not resolve correctly
- Non-existent ISO codes return not-found errors

## How this service works

Look up a country by name, ISO code, or calling code. Returns ISO codes, official name, capital, region, subregion, and calling codes.

## Output

Returns a structured object containing the country's official name, ISO alpha-2 and alpha-3 codes, capital city, world region, subregion, and international calling codes for the matched country.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "input"
     ],
     "properties": {
      "input": {
       "type": "string",
       "description": "Country name, ISO code, or calling code to look up, e.g. Germany, DE, or +49."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/powahub-country-lookup-418b22b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.powahub.ai](https://www.zero.xyz/host/api.powahub.ai/llms.txt)
