{
 "service": "nervebane",
 "description": "Small paid data calls for AI agents: $0.01 USDC per call via x402 on Base. Failed calls are not charged.",
 "published_routes": 28,
 "mcp": "https://nervebane.restockalarm.workers.dev/mcp",
 "openapi": "https://nervebane.restockalarm.workers.dev/openapi.json",
 "manifest": "https://nervebane.restockalarm.workers.dev/.well-known/x402.json",
 "llms": "https://nervebane.restockalarm.workers.dev/llms.txt",
 "pass": {
  "header": "X-Pass-Key",
  "note": "One key covers every route in the catalog until it expires. Shown once at purchase; we only store its hash.",
  "month": {
   "buy": "POST https://nervebane.restockalarm.workers.dev/pass/month",
   "price": "$1",
   "days": 30
  },
  "10d": {
   "buy": "POST https://nervebane.restockalarm.workers.dev/pass/10d",
   "price": "$0.5",
   "days": 10
  }
 },
 "pricing": "Per-call price is A/B tested hourly (base, 2x, half or free); the 402 shows the current price.",
 "stats": "https://nervebane.restockalarm.workers.dev/stats",
 "network": "eip155:8453",
 "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
 "endpoints": [
  {
   "path": "/v1/air-quality-now",
   "url": "https://nervebane.restockalarm.workers.dev/v1/air-quality-now?lat={lat}&lon={lon}",
   "title": "Current air quality (US AQI, PM2.5, PM10)",
   "description": "Current air quality (US AQI, PM2.5, PM10). Returns us_aqi, pm2_5, pm10 as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "lat",
    "lon"
   ],
   "example": {
    "us_aqi": 58,
    "pm2_5": 16.2,
    "pm10": 18.7
   }
  },
  {
   "path": "/v1/bitcoin-difficulty",
   "url": "https://nervebane.restockalarm.workers.dev/v1/bitcoin-difficulty",
   "title": "Bitcoin difficulty adjustment progress",
   "description": "Bitcoin difficulty adjustment progress. Returns progress_pct, est_change_pct, remaining_blocks as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [],
   "example": {
    "progress_pct": 31.25,
    "est_change_pct": -1.5713230935618272,
    "remaining_blocks": 1386
   }
  },
  {
   "path": "/v1/bitcoin-fees",
   "url": "https://nervebane.restockalarm.workers.dev/v1/bitcoin-fees",
   "title": "Recommended Bitcoin fee rates (sat/vB)",
   "description": "Recommended Bitcoin fee rates (sat/vB). Returns fastest, half_hour, hour, economy as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [],
   "example": {
    "fastest": 1,
    "half_hour": 1,
    "hour": 1,
    "economy": 1
   }
  },
  {
   "path": "/v1/book-by-isbn",
   "url": "https://nervebane.restockalarm.workers.dev/v1/book-by-isbn?isbn={isbn}",
   "title": "Book title by ISBN (Open Library)",
   "description": "Book title by ISBN (Open Library). Returns title, publish_date as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "isbn"
   ],
   "example": {
    "title": "Fantastic Mr. Fox",
    "publish_date": "October 1, 1988"
   }
  },
  {
   "path": "/v1/crypto-24h-stats",
   "url": "https://nervebane.restockalarm.workers.dev/v1/crypto-24h-stats?symbol={symbol}",
   "title": "Crypto 24h stats in USD (open/high/low/last/volume)",
   "description": "Crypto 24h stats in USD (open/high/low/last/volume). Returns last_usd, open_usd, high_usd, low_usd, volume_24h as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "symbol"
   ],
   "example": {
    "last_usd": 76460.4,
    "open_usd": 78037.7,
    "high_usd": 78280.38,
    "low_usd": 76412,
    "volume_24h": 7376.96296495
   }
  },
  {
   "path": "/v1/crypto-spot-price",
   "url": "https://nervebane.restockalarm.workers.dev/v1/crypto-spot-price?symbol={symbol}",
   "title": "Crypto spot price in USD",
   "description": "Crypto spot price in USD. Returns price_usd, symbol as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "symbol"
   ],
   "example": {
    "price_usd": 76463.875,
    "symbol": "BTC"
   }
  },
  {
   "path": "/v1/currency-to-usd",
   "url": "https://nervebane.restockalarm.workers.dev/v1/currency-to-usd?currency={currency}",
   "title": "Value of one unit of a currency or coin in USD",
   "description": "Value of one unit of a currency or coin in USD. Returns usd, currency as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "currency"
   ],
   "example": {
    "usd": 1.1193288682448224,
    "currency": "EUR"
   }
  },
  {
   "path": "/v1/earthquakes-24h",
   "url": "https://nervebane.restockalarm.workers.dev/v1/earthquakes-24h",
   "title": "Number of M2.5+ earthquakes worldwide in the last 24 hours (USGS)",
   "description": "Number of M2.5+ earthquakes worldwide in the last 24 hours (USGS). Returns count, generated_ms as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [],
   "example": {
    "count": 42,
    "generated_ms": 1793685913000
   }
  },
  {
   "path": "/v1/fiat-fx-rate",
   "url": "https://nervebane.restockalarm.workers.dev/v1/fiat-fx-rate?from={from}&to={to}",
   "title": "Fiat exchange rate (ECB reference)",
   "description": "Fiat exchange rate (ECB reference). Returns rate, date as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "from",
    "to"
   ],
   "example": {
    "rate": 0.89158,
    "date": "2026-11-02"
   }
  },
  {
   "path": "/v1/geocode-city",
   "url": "https://nervebane.restockalarm.workers.dev/v1/geocode-city?city={city}",
   "title": "City name to coordinates",
   "description": "City name to coordinates. Returns name, country, latitude, longitude, timezone as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "city"
   ],
   "example": {
    "name": "Copenhagen",
    "country": "Denmark",
    "latitude": 55.67594,
    "longitude": 12.56553,
    "timezone": "Europe/Copenhagen"
   }
  },
  {
   "path": "/v1/npm-latest-version",
   "url": "https://nervebane.restockalarm.workers.dev/v1/npm-latest-version?package={package}",
   "title": "Latest version of an npm package",
   "description": "Latest version of an npm package. Returns name, version as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "package"
   ],
   "example": {
    "name": "hono",
    "version": "4.13.16"
   }
  },
  {
   "path": "/v1/npm-weekly-downloads",
   "url": "https://nervebane.restockalarm.workers.dev/v1/npm-weekly-downloads?package={package}",
   "title": "npm package downloads last week",
   "description": "npm package downloads last week. Returns downloads, start, end as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "package"
   ],
   "example": {
    "downloads": 101486097,
    "start": "2026-10-26",
    "end": "2026-11-01"
   }
  },
  {
   "path": "/v1/postal-code-lookup",
   "url": "https://nervebane.restockalarm.workers.dev/v1/postal-code-lookup?country={country}&zip={zip}",
   "title": "Postal code to place and coordinates",
   "description": "Postal code to place and coordinates. Returns place, state, latitude, longitude as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "country",
    "zip"
   ],
   "example": {
    "place": "Beverly Hills",
    "state": "California",
    "latitude": 34.0901,
    "longitude": -118.4065
   }
  },
  {
   "path": "/v1/pypi-latest-version",
   "url": "https://nervebane.restockalarm.workers.dev/v1/pypi-latest-version?package={package}",
   "title": "Latest version of a PyPI package",
   "description": "Latest version of a PyPI package. Returns name, version as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "package"
   ],
   "example": {
    "name": "requests",
    "version": "2.34.2"
   }
  },
  {
   "path": "/v1/sun-times",
   "url": "https://nervebane.restockalarm.workers.dev/v1/sun-times?lat={lat}&lon={lon}",
   "title": "Sunrise and sunset (UTC) for a location",
   "description": "Sunrise and sunset (UTC) for a location. Returns sunrise_utc, sunset_utc, day_length_s as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "lat",
    "lon"
   ],
   "example": {
    "sunrise_utc": "2026-11-03T06:19:53+00:00",
    "sunset_utc": "2026-11-03T15:26:39+00:00",
    "day_length_s": 32806
   }
  },
  {
   "path": "/v1/uv-index-now",
   "url": "https://nervebane.restockalarm.workers.dev/v1/uv-index-now?lat={lat}&lon={lon}",
   "title": "Current UV index at a location",
   "description": "Current UV index at a location. Returns uv_index, time as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "lat",
    "lon"
   ],
   "example": {
    "uv_index": 0,
    "time": "2026-11-03T06:00"
   }
  },
  {
   "path": "/v1/wave-height-now",
   "url": "https://nervebane.restockalarm.workers.dev/v1/wave-height-now?lat={lat}&lon={lon}",
   "title": "Current sea wave height",
   "description": "Current sea wave height. Returns wave_height_m, time as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "lat",
    "lon"
   ],
   "example": {
    "wave_height_m": 4.42,
    "time": "2026-11-03T06:00"
   }
  },
  {
   "path": "/v1/weather-now",
   "url": "https://nervebane.restockalarm.workers.dev/v1/weather-now?lat={lat}&lon={lon}",
   "title": "Current weather at a location",
   "description": "Current weather at a location. Returns temperature_c, humidity_pct, wind_kmh, time as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "lat",
    "lon"
   ],
   "example": {
    "temperature_c": 8.7,
    "humidity_pct": 82,
    "wind_kmh": 11.2,
    "time": "2026-11-03T06:00"
   }
  },
  {
   "path": "/v1/wikipedia-summary",
   "url": "https://nervebane.restockalarm.workers.dev/v1/wikipedia-summary?title={title}",
   "title": "Wikipedia page summary (English)",
   "description": "Wikipedia page summary (English). Returns title, extract as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "title"
   ],
   "example": {
    "title": "Bitcoin",
    "extract": "Bitcoin is the first decentralized cryptocurrency. Based on a free-market ideology, bitcoin was invented in 2008 when an unknown person published a white paper under the pseudonym of Satoshi Nakamoto. Use of bitcoin as a currency began in 2009, with the release of its open-source implementation. From 2021 to 2025, El Salvador adopted it as legal tender currency before revoking it. As bitcoin is pseudonymous, its use by criminals has attracted the attention of regulators, leading to its ban by several countries."
   }
  },
  {
   "path": "/v1/word-definition",
   "url": "https://nervebane.restockalarm.workers.dev/v1/word-definition?word={word}",
   "title": "English word definition",
   "description": "English word definition. Returns word, part_of_speech, definition as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "word"
   ],
   "example": {
    "word": "agent",
    "part_of_speech": "noun",
    "definition": "One who exerts power, or has the power to act"
   }
  },
  {
   "path": "/v1/crate-latest-version",
   "url": "https://nervebane.restockalarm.workers.dev/v1/crate-latest-version?crate={crate}",
   "title": "Latest version of a Rust crate",
   "description": "Latest version of a Rust crate. Returns max_version, downloads as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "crate"
   ],
   "example": {
    "max_version": "1.0.229",
    "downloads": 1635385243
   }
  },
  {
   "path": "/v1/next-public-holiday",
   "url": "https://nervebane.restockalarm.workers.dev/v1/next-public-holiday?country={country}",
   "title": "Next public holiday in a country",
   "description": "Next public holiday in a country. Returns date, name, local_name as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "country"
   ],
   "example": {
    "date": "2026-12-25",
    "name": "Christmas Day",
    "local_name": "Juledag / 1. juledag"
   }
  },
  {
   "path": "/v1/country-gdp-usd",
   "url": "https://nervebane.restockalarm.workers.dev/v1/country-gdp-usd?country={country}",
   "title": "Country GDP in current USD (World Bank)",
   "description": "Country GDP in current USD (World Bank). Returns gdp_usd, year as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "country"
   ],
   "example": {
    "gdp_usd": 462526660468.393,
    "year": "2025"
   }
  },
  {
   "path": "/v1/country-population",
   "url": "https://nervebane.restockalarm.workers.dev/v1/country-population?country={country}",
   "title": "Country population (World Bank)",
   "description": "Country population (World Bank). Returns population, year as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "country"
   ],
   "example": {
    "population": 6009169,
    "year": "2025"
   }
  },
  {
   "path": "/v1/inflation-rate",
   "url": "https://nervebane.restockalarm.workers.dev/v1/inflation-rate?country={country}",
   "title": "Country annual inflation rate, consumer prices (World Bank)",
   "description": "Country annual inflation rate, consumer prices (World Bank). Returns inflation_pct, year as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "country"
   ],
   "example": {
    "inflation_pct": 1.8900606245861,
    "year": "2025"
   }
  },
  {
   "path": "/v1/dns-a-record",
   "url": "https://nervebane.restockalarm.workers.dev/v1/dns-a-record?domain={domain}",
   "title": "DNS A record lookup for a domain",
   "description": "DNS A record lookup for a domain. Returns ip, ttl, status as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "domain"
   ],
   "example": {
    "ip": "104.20.23.154",
    "ttl": 300,
    "status": 0
   }
  },
  {
   "path": "/v1/github-repo-stats",
   "url": "https://nervebane.restockalarm.workers.dev/v1/github-repo-stats?owner={owner}&repo={repo}",
   "title": "GitHub repository stars and last push",
   "description": "GitHub repository stars and last push. Returns stars, pushed_at as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "owner",
    "repo"
   ],
   "example": {
    "stars": 178,
    "pushed_at": "2026-11-03T05:02:21Z"
   }
  },
  {
   "path": "/v1/hn-story-search",
   "url": "https://nervebane.restockalarm.workers.dev/v1/hn-story-search?q={q}",
   "title": "Top Hacker News story matching a query",
   "description": "Top Hacker News story matching a query. Returns hits, top_title as JSON. Pay per call via x402.",
   "price": "$0.01",
   "params": [
    "q"
   ],
   "example": {
    "hits": 9710,
    "top_title": "Monetization Gateway: Charge for any resource behind Cloudflare via x402"
   }
  }
 ]
}