# Changelog State API – near-api-js Change History

> Changelog State API – near-api-js Change History is a paid API for AI agents from changelog-state-api.replit.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Returns detected changelog update history (additions, version changes, date changes, title changes, breaking signals) for the near-api-js vendor tracked by the Changelog State API.

## Facts

- Endpoint: GET https://changelog-state-api.replit.app/api/monitors/near-api-js/changes?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/changelog-state-api-near-api-js-change-history-241b035e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_705JxzWw1ormrjaB9BY6J

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 changelog-state-api-near-api-js-change-history-241b035e
```

Example prompt: Pull the last 50 changelog changes detected for near-api-js, filtering only for new releases and breaking signals since January 1, 2025.

## When to prefer this

Use this endpoint when you specifically need the detected changelog update history for near-api-js (event log of changes over time), rather than structured release summaries. Prefer this over the releases sibling endpoint when you need change-type granularity (breaking signals, title changes, date changes) or need to query by timestamp range.

## Known failure modes

- Invalid or non-existent slug returns empty results or 404
- Malformed since datetime causes validation error
- Exceeding limit of 200 returns a validation/parameter error
- Payment failure (x402) if USDC payment not properly handled
- Rate limiting if called too frequently
- Replit-hosted service may have cold-start latency or downtime

## How this service works

Detected changelog update history for one tracked vendor.

## Output

A JSON array of changelog change records for near-api-js, each containing the change type (e.g. new_release, version_changed, date_changed, title_changed, breaking_signal), the detection timestamp, and associated metadata such as version numbers and titles. Results are ordered by detection time and limited to the requested count.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "slug"
     ],
     "properties": {
      "slug": {
       "type": "string",
       "example": "openai",
       "pattern": "^[a-z0-9][a-z0-9-]*$",
       "maxLength": 64,
       "minLength": 1,
       "description": "Vendor slug, lowercase alphanumeric with dashes. Take one from GET /api/monitors and substitute it into the path: `{slug}` is a placeholder that names no vendor and never returns data. Worked example: GET /api/monitors/openai."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "type": {
       "enum": [
        "new_release",
        "version_changed",
        "date_changed",
        "title_changed",
        "breaking_signal"
       ],
       "type": "string",
       "description": "Restrict to a single change type."
      },
      "limit": {
       "type": "integer",
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "description": "Maximum number of change rows to return."
      },
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Only return changes detected at or after this instant."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "description": "Detected changelog update history (paid)"
  }
 },
 "description": "Call shape for GET /api/monitors/{slug}/changes."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/changelog-state-api-near-api-js-change-history-241b035e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from changelog-state-api.replit.app](https://www.zero.xyz/host/changelog-state-api.replit.app/llms.txt)
