# Script Master Labs — PHA Lookup (x402 Data API)

> Script Master Labs — PHA Lookup (x402 Data API) is a paid API for AI agents from mcp-x402.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Looks up U.S. Public Housing Authority (PHA) data by ZIP code, city, state, or county, billed per-call in USDC via x402.

## Facts

- Endpoint: GET https://mcp-x402.onrender.com/x402/pha-lookup
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/script-master-labs-pha-lookup-x402-data-api-bbaaaef7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__hYckbt9R6xy3xI7uoNuU

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 script-master-labs-pha-lookup-x402-data-api-bbaaaef7
```

Example prompt: Can you look up the public housing authority that covers ZIP code 90210 in California?

## When to prefer this

Use this endpoint when you need to identify the U.S. Public Housing Authority responsible for a specific geographic area (ZIP, city, county, or state) and want instant, per-call access without a subscription — especially when integrating into an agent workflow that requires housing authority data on-demand at minimal cost ($0.001/call). Prefer this over scraping HUD's website or maintaining a local HUD dataset when freshness and simplicity matter.

## Known failure modes

- No PHA found for the given location — returns empty result or 404
- Invalid or malformed ZIP code returns a validation error
- Missing required query parameters (at least one of zip, city, state, county must be provided)
- Payment failure or insufficient USDC balance causes 402 response before data is returned
- Service unavailable if mcp-x402.onrender.com is cold-starting (Render free tier spin-up delay)
- Ambiguous city/county name with no state may return multiple or incorrect matches

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

Returns U.S. federal Public Housing Authority (PHA) records matching the queried location (ZIP, city, state, or county), including agency name, jurisdiction, and contact details sourced from HUD data. Payment of $0.001 USDC on Base is settled automatically via x402 protocol.

## 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": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "zip": {
       "type": "string"
      },
      "city": {
       "type": "string"
      },
      "state": {
       "type": "string"
      },
      "county": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/script-master-labs-pha-lookup-x402-data-api-bbaaaef7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402.onrender.com](https://www.zero.xyz/host/mcp-x402.onrender.com/llms.txt)
