# AIHOT Selected Changes API

Synchronize a local mirror of AIHOT's curated AI news selections through OpenAny REST using atomic add, edit and removal change pages. Pass your required ledger watermark cursor and optional limit, apply each returned change page locally, and then persist the new cursor so your copy stays accurate without re-downloading full feeds.

Documentation: https://openany.si/aihot/aihot-fetch-atomic-selected-item-changes/
API ID: f5797ad5-a4c5-4cc4-ade3-d4f91e6a8b85
Provider: aihot
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/aihot/api/v1/selected-changes
Page update time: 2026-12-03T03:19:32.607Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T03:19:32.607Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## AIHOT Selected Changes API

Send a GET request with required query parameter cursor (a ledger watermark that does not expire on a timer) and optional integer limit. Returns changes\[\], count, cursor, fields, hasMore and schemaVersion; always apply the page locally before saving the returned cursor.

## What You Can Build

- **Maintain an exact local mirror**: Apply incremental adds, edits and removals instead of re-fetching full selected item lists.
- **Build crash-safe sync workers**: Apply each change batch transactionally before advancing your stored ledger watermark cursor.
- **Drain backlogs cleanly**: Loop while hasMore is true, then pause and poll with If-None-Match once caught up.

## Returned Data

| Field | Meaning |
| --- | --- |
| `schemaVersion` | AIHOT JSON schema version |
| `changes` | Array of atomic add, edit and removal records since the submitted cursor |
| `count` | Number of change records returned in this page |
| `cursor` | Updated ledger watermark cursor to persist after applying changes |
| `hasMore` | Boolean indicating whether additional change pages are available |
| `fields` | Field-projection mode reported for the change payload |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AIHOT Selected Changes API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "cursor": {
          "type": "string",
          "description": ""
        },
        "limit": {
          "type": "integer",
          "description": "",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "cursor"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {
        "If-None-Match": {
          "type": "string",
          "description": "Previously received ETag for this exact URL. A match returns 304 without a response body."
        },
        "User-Agent": {
          "type": "string",
          "description": "Keep the client's normal User-Agent and optionally append `aihot-actor/<uuid-v4>` for pseudonymous cross-channel deduplication. It is analytics only, never authentication or authorization. Browsers that cannot set User-Agent remain fully supported but cannot participate in exact Actor deduplication.",
          "maxLength": 1024
        }
      }
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "changes": {
      "type": "array",
      "items": {}
    },
    "count": {
      "type": "integer"
    },
    "cursor": {
      "type": "string"
    },
    "fields": {
      "type": "string"
    },
    "hasMore": {
      "type": "boolean"
    },
    "schemaVersion": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/aihot/api/v1/selected-changes?cursor=ax1.eyJrIjoic3luYyIsImUiOiJzaWhVRzBPUyIsInciOjc5OTUsImYiOiJtaW5pbWFsIn0&limit=5' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'User-Agent: OpenAny-API-Verification/1.0'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "changes": [],
  "count": 0,
  "cursor": "ax1.eyJrIjoic3luYyIsImUiOiJzaWhVRzBPUyIsInciOjc5OTUsImYiOiJtaW5pbWFsIn0",
  "fields": "minimal",
  "hasMore": false,
  "schemaVersion": 1
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### In what order should I apply changes and save the new cursor?
Always apply the returned changes page to your local store first, and only then save the returned cursor—never save the cursor before applying the page.

### Does the ledger watermark cursor expire after a fixed time?
No. The cursor is a ledger watermark rather than a timed session, so it does not expire on a timer.

### What types of mutations appear in changes[]?
It reports atomic adds, edits and removals of AIHOT selected items since your submitted cursor.

### How do I know when I have caught up to the latest changes?
Keep requesting the next page with the returned cursor while hasMore is true; stop when hasMore is false.

### What does count=0 with an empty changes array mean?
It means no new selected-item changes occurred after your current watermark cursor.

### Can I combine this endpoint with If-None-Match?
Yes. Passing the saved ETag in If-None-Match returns HTTP 304 when nothing changed since your last poll.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
