# ScriptMasterLabs Geo/Cities Credit Pack Purchase

> ScriptMasterLabs Geo/Cities Credit Pack Purchase is a paid API for AI agents from scriptmasterlabs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Purchases a pack of 100 geo/cities lookup credits via x402 micropayment, returning a credit token for subsequent geographic queries

## Facts

- Endpoint: GET https://scriptmasterlabs.com/api/geo/credits?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-geo-cities-credit-pack-purchase-9959db5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wPhcIH2HdOiC4u7f0qoom

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 scriptmasterlabs-geo-cities-credit-pack-purchase-9959db5a
```

Example prompt: Buy me the 100-credit Geo/Cities pack from ScriptMasterLabs so I can run city and location lookups — go ahead and pay the $0.002 USDC and get back the credit token I'll need for queries.

## When to prefer this

Choose this endpoint when you need to prepay for geographic/city data lookups via the SML x402 micropayment system and require a credit token to authenticate subsequent geo queries. Prefer this over per-query billing alternatives when you want predictable per-query costs at $0.00002 USDC and batch usage of 100 queries. Best suited for agents that need to acquire credits programmatically before executing city or location lookups.

## Known failure modes

- Payment not settled — credit_token field will be placeholder until blockchain confirmation
- Invalid or missing pack parameter — only '100' is accepted
- x402 payment rejected — insufficient funds or wrong USDC amount
- Network/provider unavailable — 5xx error from scriptmasterlabs.com
- Duplicate payment detection — idempotency not guaranteed, may issue duplicate credits

## How this service works

Pay-per-call APIs and a read-only provider check for x402 buyers. Inspect evidence and live terms before a caller-controlled payment; accept delivery with proof.

## Output

Returns a JSON object confirming credit pack status ('ready'), the number of credits issued (100), the product name ('SML Geo/Cities Credit Pack'), a credit token string to use in subsequent geo API calls, the header name to attach it to (X-SML-GEO-CREDIT), the pack price in USDC ($0.002), and the effective per-query price in USDC ($0.00002).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "pack": {
       "enum": [
        "100"
       ],
       "type": "string",
       "description": "Fixed Geo/Cities credit pack size Search intents: geography api, cities data, location data, geo lookup, city lookup."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready",
  "credits": 100,
  "product": "SML Geo/Cities Credit Pack",
  "credit_token": "<issued-after-settlement>",
  "credit_header": "X-SML-GEO-CREDIT",
  "pack_price_usdc": "0.002",
  "effective_price_usdc_per_successful_query": "0.00002"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-geo-cities-credit-pack-purchase-9959db5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scriptmasterlabs.com](https://www.zero.xyz/host/scriptmasterlabs.com/llms.txt)
