# MolCloud Weather Lookup API

> MolCloud Weather Lookup API is a paid API for AI agents from api.molcloud.net, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Returns current temperature and weather data for a given city or location, paid per-request via USDC on Base.

## Facts

- Endpoint: GET https://api.molcloud.net/api/tools/weather?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/molcloud-weather-lookup-api-fc070bf6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eNy9geh7T7r9j0SsvpduN

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 molcloud-weather-lookup-api-fc070bf6
```

Example prompt: What's the current weather in Amsterdam right now? I need the temperature in Celsius.

## When to prefer this

Choose this endpoint when your AI agent needs lightweight, pay-per-request weather lookups without committing to a subscription API key, especially when already operating within the x402/USDC payment rail on Base. Ideal for autonomous agents that need weather as one signal among many, or for pipelines that call weather infrequently and want micro-payment billing.

## Known failure modes

- Unrecognized or misspelled location name returns an error or empty data object
- Missing required 'location' query parameter results in a 400-level validation error
- Payment failure or insufficient USDC balance triggers a 402 Payment Required response
- Network or upstream weather provider outage returns a failed status
- Ambiguous city names (e.g. 'Springfield') may return data for an unexpected city

## How this service works

40 pay-per-request AI, search, headless browser, crypto alpha & memory APIs for autonomous agents settling in USDC on Base via x402 v2.

## Output

Returns a JSON object with the queried location name and current temperature in Celsius (e.g. {"location": "Amsterdam", "temperatureC": 16.5}), wrapped in a status and endpoint field.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "location"
     ],
     "properties": {
      "location": {
       "type": "string",
       "description": "City name or location query"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "status",
      "endpoint"
     ],
     "properties": {
      "data": {
       "type": "object"
      },
      "payer": {
       "type": "string"
      },
      "status": {
       "enum": [
        "success"
       ],
       "type": "string"
      },
      "endpoint": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "location": "Amsterdam",
   "temperatureC": 16.5
  },
  "status": "success",
  "endpoint": "/api/tools/weather"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/molcloud-weather-lookup-api-fc070bf6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.molcloud.net](https://www.zero.xyz/host/api.molcloud.net/llms.txt)
