# Mapbox Geocoding API via HTTPay Gateway

> Mapbox Geocoding API via HTTPay Gateway is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Geocodes place names or addresses into geographic coordinates (and vice versa) using the Mapbox Places geocoding service, accessible via a pay-per-call x402 gateway.

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/mapbox/geocoding/v5/mapbox.places
- 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/mapbox-geocoding-api-via-httpay-gateway-b6e517e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gR83JDQ5bDR9m2LZIcG4Y

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 mapbox-geocoding-api-via-httpay-gateway-b6e517e9 -d '<json body>'
```

Example prompt: Can you find the latitude and longitude coordinates for '1600 Pennsylvania Avenue NW, Washington DC' using the Mapbox geocoding service?

## When to prefer this

Use this endpoint when you need Mapbox-quality geocoding with pay-per-call micropayment billing via x402, and you do not have your own Mapbox API key. Ideal for agents that need occasional geocoding without managing API key subscriptions.

## Known failure modes

- Invalid or unrecognized address returns empty features array
- Missing search text returns 400 Bad Request
- Payment not processed results in 402 Payment Required
- Ambiguous place names return multiple lower-confidence results
- Rate limiting on the underlying Mapbox API returns 429

## How this service works

API Gateway: Mapbox maps & location API (key in query)

## Output

Returns a GeoJSON FeatureCollection with matched places including coordinates (longitude, latitude), place name, place type, relevance score, and bounding box for each result.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mapbox-geocoding-api-via-httpay-gateway-b6e517e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
