# DopamineDesk Geocoding API

> DopamineDesk Geocoding API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Converts a street address to coordinates (forward geocoding) or converts lat/lng coordinates to a human-readable address (reverse geocoding).

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/geocoding
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-geocoding-api-b02ad537
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zvnVZr-lclqXSUYHxJvf8

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 dopaminedesk-geocoding-api-b02ad537
```

Example prompt: Can you convert the address '1600 Amphitheatre Pkwy, Mountain View, CA' to GPS coordinates so I can use it on a map?

## When to prefer this

Choose this endpoint when you need pay-per-use geocoding without a long-term API subscription, especially in agentic workflows using x402 USDC micropayments on Base. It is well-suited for sporadic geocoding needs where you want per-call billing at $0.01 USDC rather than managing a Google Maps API key or monthly quota. Prefer it when building autonomous agents that need to resolve addresses or reverse-geocode coordinates on demand within a crypto-native payment stack.

## Known failure modes

- Missing required query parameters (neither address nor lat/lng provided) — likely returns an error status
- Invalid or unrecognizable address string — results array may be empty with a non-OK status
- Coordinates outside valid range — may return empty results or an error
- Payment failure via x402 — HTTP 402 returned before geocoding is attempted
- Rate limiting or quota exhaustion — request may fail with a 429 or service error

## How this service works

Resolve a location or address query to current place candidates and coordinates through Open-Meteo.

## Output

Returns a JSON object with a status field ('OK' on success) and a results array. Each result includes a formatted_address string, a coordinates object with lat and lng, a location_type (e.g. 'ROOFTOP', 'APPROXIMATE'), and a place_id string uniquely identifying the location.

## 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",
     "properties": {
      "lat": {
       "type": "number",
       "description": "Latitude for reverse geocoding."
      },
      "lng": {
       "type": "number",
       "description": "Longitude for reverse geocoding."
      },
      "address": {
       "type": "string",
       "description": "Address to convert to coordinates."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "fetched_at",
      "query",
      "count",
      "results",
      "marketplace_metadata"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "success": {
       "type": "boolean"
      },
      "fetched_at": {
       "type": "string"
      },
      "marketplace_metadata": {
       "type": "object",
       "required": [
        "data_mode",
        "billable",
        "availability",
        "source"
       ],
       "properties": {
        "source": {
         "type": "string"
        },
        "billable": {
         "type": "boolean"
        },
        "data_mode": {
         "type": "string"
        },
        "availability": {
         "type": "string"
        }
       },
       "additionalProperties": true
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 5,
  "query": "Mountain View, CA",
  "source": "Open-Meteo Geocoding API",
  "results": [
   "[nested detail omitted from the challenge header; see the full example in /openapi.json]"
  ],
  "success": true,
  "fetched_at": "2026-08-07T07:32:44.786Z",
  "marketplace_metadata": {
   "source": "Open-Meteo Geocoding API",
   "billable": true,
   "data_mode": "live_source",
   "availability": "operational"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-geocoding-api-b02ad537/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
