# AgentTools US Area Code Lookup

> AgentTools US Area Code Lookup is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Look up the US state or territory served by a telephone area code, or list all area codes for a given state, covering all 404 NANP codes including overlays.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/databases/area-codes?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-us-area-code-lookup-35d16f78
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wYANEuDlxq7n6GzIOjQNK

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 agenttools-us-area-code-lookup-35d16f78
```

Example prompt: What US state does area code 312 belong to? And can you also list all the area codes assigned to Illinois?

## When to prefer this

Use this endpoint when you need a fast, comprehensive NANP area code to US state mapping or reverse listing. Prefer this over general-purpose geocoding APIs when the input is specifically a telephone area code prefix and the output needed is state/territory identity rather than city-level or coordinate data.

## Known failure modes

- Invalid or non-existent area code returns empty or error response
- Non-US/NANP codes (e.g. international numbers) are not covered
- Missing required query parameters may return a 400 error
- Rate limits or payment failures return 402 or 429 errors

## How this service works

Look up any US telephone area code to find the state or territory it serves, or list every area code in a given state. Covers all 404 NANP codes in use, including overlays. Use this when an agent needs to all 404 NANP area codes → state lookup.

## Output

Returns the US state or territory associated with a given area code, or a list of all area codes (with state associations) for a specified state. Covers all 404 active NANP codes including overlay codes.

## 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": [],
     "properties": {
      "code": {
       "type": "string",
       "description": "Leave empty to list by state instead"
      },
      "limit": {
       "type": "number",
       "description": "Max rows"
      },
      "state": {
       "type": "string",
       "description": "State filter"
      }
     }
    }
   },
   "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/agenttools-us-area-code-lookup-35d16f78/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
