# PennyRail Country Lookup from Code

> PennyRail Country Lookup from Code 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 and related information given a country code string input

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/country.lookup--country-from-code
- 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-lookup-from-code-85a29871
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bq3IpgtboWZsWr-lsyNNw

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-lookup-from-code-85a29871 -d '<json body>'
```

Example prompt: What country does the code 'DE' correspond to? Look it up for me.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call country code resolution without maintaining your own reference database. It is well-suited for agents handling internationalization, address enrichment, or geographic data normalization on a low-frequency basis where the per-call cost of $0.003 USDC is acceptable over a self-hosted solution.

## Known failure modes

- Invalid or unrecognized country code returns an error or empty result
- Malformed input string may return a 400 or unexpected response
- Network or Vercel infrastructure downtime returns a 5xx error
- Payment failure (x402) returns a 402 Payment Required before the lookup is executed

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the resolved country information corresponding to the provided country code, including the full country name and potentially additional geographic metadata.

## 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-lookup-from-code-85a29871/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)
