# Momentum Score API for Base Tokens

> Momentum Score API for Base Tokens is a paid API for AI agents from momentum-score.restockalarm.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns a 0–100 momentum score for any ERC-20 token on Base, computed from 24h volume, volume-to-liquidity ratio, and 24h price change using DEX and on-chain pool data.

## Facts

- Endpoint: GET https://momentum-score.restockalarm.workers.dev/v1/momentum?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/momentum-score-api-for-base-tokens-82a0cea8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yelv2HXZtR0-caSPSMUl9

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 momentum-score-api-for-base-tokens-82a0cea8
```

Example prompt: What's the current momentum score for the AERO token at 0x940181a94a35a4569e4529a3cdfb74e38fd98631 on Base — how's its 24h volume, price change, and volume-to-liquidity ratio looking?

## When to prefer this

Use this endpoint when you need a quick, quantified momentum signal for a specific Base ERC-20 token based on real DEX trading data — particularly when you want a single composite score rather than raw DEX metrics. Prefer this over generic DEX APIs when you need a pre-computed, normalized 0–100 score that combines volume, liquidity, and price change into one number, paid per-call with no subscription required.

## Known failure modes

- Invalid or malformed address (not 0x + 40 hex) returns HTTP 400
- Token address not found on Base DEX data sources may return low confidence or incomplete components
- Network or upstream DEX API unavailability may cause errors or stale data
- Payment failure via x402 (insufficient USDC balance or wrong chain) blocks the response

## How this service works

Momentum Score API for Base tokens: 0-100 score from 24 h volume, volume vs liquidity and 24 h price change, from DEX data and on-chain pool reads. $0.02 per call via x402 (USDC on Base or Polygon). Not investment advice.

## Output

A JSON object containing the momentum score (0–100), component signals (24h USD volume, volume-to-liquidity ratio, 24h price change percentage), confidence level (e.g. 'high'), token metadata (name, symbol, stablecoin flag), whether the result was cached, and a disclaimer. Optionally includes social signal level if available.

## 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",
     "required": [],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "ERC-20 contract address on Base (0x + 40 hex). If omitted, the AERO example is returned with example=true; an invalid address is 400."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "token": {
   "name": "Aerodrome",
   "symbol": "AERO",
   "is_stablecoin": false
  },
  "cached": false,
  "method": "…",
  "address": "0x940181a94a35a4569e4529a3cdfb74e38fd98631",
  "sources": [
   "https://api.dexscreener.com/…"
  ],
  "momentum": 55,
  "components": {
   "social": {
    "level": "ukendt",
    "source": null,
    "level_en": "unknown",
    "sentence": "Ingen social/nyhedsdata"
   },
   "volume_24h_usd": 3200000,
   "price_change_window": "24h",
   "volume_vs_liquidity": 2.1,
   "price_change_24h_pct": -5.9
  },
  "confidence": "høj",
  "disclaimer": "Not investment advice. Momentum is computed from on-chain pool data and public DEX endpoints only; it says nothing about whether a token is safe to buy.",
  "confidence_en": "high",
  "signals_measured_list": [
   "volume_24h_usd",
   "volume_vs_liquidity",
   "price_change_24h_pct"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/momentum-score-api-for-base-tokens-82a0cea8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from momentum-score.restockalarm.workers.dev](https://www.zero.xyz/host/momentum-score.restockalarm.workers.dev/llms.txt)
