Travel · x402 · early usage

Returns current weather for any city or place name, no coordinates needed

Returns current weather for any city or place name, no coordinates needed. Geocodes the name with Open-Meteo, chooses the best match with optional country_code, then returns current temperature, feels-like, humidity, wind, precipitation, WMO weather code, tim…

by x402.agentutility.ai · discovered, not yet claimed by its owner · updated 2026-09-29

30d calls5
30d payers2
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Returns current weather for any city or place name, no coordinates needed. Geocodes the name with Open-Meteo, chooses the best match with optional country_code, then returns current temperature, feels-like, humidity, wind, precipitation, WMO weather code, timezone, and optional daily/hourly forecast from Open-Meteo. Use it as a city weather API or instant weather lookup by place name.

Tags: weather · current · city · bazaar · builder-code

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-09-29
Input example from Bazaar metadata
{
  "city": "San Francisco",
  "country_code": "US",
  "forecast_days": 3,
  "units": "imperial"
}
Output example
{
  "current": {
    "apparent_temperature": 60,
    "humidity_pct": 78,
    "temperature": 62,
    "weather_code": 3,
    "wind_speed": 9
  },
  "query": "San Francisco",
  "resolved_location": {
    "admin1": "California",
    "country_code": "US",
    "latitude": 37.7749,
    "longitude": -122.4194,
    "name": "San Francisco"
  },
  "source": {
    "forecast": "https://open-meteo.com",
    "geocoding": "https://open-meteo.com/en/docs/geocoding-api"
  }
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/30929.json for the price and payment options.
  3. Pay. Call GET https://x402.agentutility.ai/weather-current-city. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Solana
Demand
5 calls · 2 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010x6c0752c09e7F6fA6526fCDf40e456a159ebB5621300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.01FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "current": {
          "properties": {
            "apparent_temperature": {
              "type": "integer"
            },
            "humidity_pct": {
              "type": "integer"
            },
            "temperature": {
              "type": "integer"
            },
            "weather_code": {
              "type": "integer"
            },
            "wind_speed": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "query": {
          "type": "string"
        },
        "resolved_location": {
          "properties": {
            "admin1": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            },
            "latitude": {
              "type": "number"
            },
            "longitude": {
              "type": "number"
            },
            "name": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "source": {
          "properties": {
            "forecast": {
              "type": "string"
            },
            "geocoding": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "current": {
      "apparent_temperature": 0,
      "humidity_pct": 0,
      "temperature": 0,
      "weather_code": 0,
      "wind_speed": 0
    },
    "query": "string",
    "resolved_location": {
      "admin1": "string",
      "country_code": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string"
    },
    "source": {
      "forecast": "string",
      "geocoding": "string"
    }
  },
  "type": "string"
}

Examples

curl
curl "https://x402.agentutility.ai/weather-current-city"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402.agentutility.ai/weather-current-city");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://x402.agentutility.ai/weather-current-city")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
x402.agentutility.ai
Endpoint
https://x402.agentutility.ai/weather-current-city
Machine-readable
/resources/30929.json