# PennyRail Country Code Lookup

> PennyRail Country Code Lookup is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Looks up a country name or identifier and returns the corresponding ISO country code (or vice versa)

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/country.lookup--country-code-lookup
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-country-code-lookup-e0a3093a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UvMZm6_gHlTLPA5cxkTk-

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 pennyrail-country-code-lookup-e0a3093a -d '<json body>'
```

Example prompt: What is the ISO country code for Brazil? Use the PennyRail country code lookup to resolve it.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call country name to ISO code resolution without setting up a local lookup table or integrating a heavier geographic data API. Particularly useful in agent workflows that occasionally need to normalize country strings and want a simple REST call rather than a bundled library.

## Known failure modes

- Unrecognized or misspelled country name returns an error or empty result
- Ambiguous input (e.g. abbreviated or informal names) may return incorrect or null results
- Non-string or malformed input field causes a validation error
- Service unavailable returns a 402 or 5xx HTTP status

## How this service works

Machine-readable settlement service

## Output

Returns a machine-readable object containing the resolved country code (likely ISO 3166-1 alpha-2 or alpha-3) and potentially related metadata such as the canonical country name, given an input country name or identifier string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-country-code-lookup-e0a3093a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
