Docs / API reference
Follow changes to many items
POST /v1/events/search: the change feed for a list of up to 5,000 items named in a JSON body, for apps that follow a large collection.
POST /v1/events/searchNo key needed while the catalog is public; with a key you get photo links on every page and a higher rate limit.
GET /v1/events with items in the body, for lists too long for an address. The answer and the cursor work the same way.
Request body
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
items | array of string, up to 5000 | Yes | |
type | one of: created, updated, merged, photo_added, photo_removed, deleted | No | |
after | integer, at least 0 | No | |
limit | integer, 1–200, default 50 | No | |
offset | integer, at least 0, default 0 | No |
Example
curl -X POST "https://tablearchive.dev/v1/events/search" \
-H "Authorization: Bearer $TA_KEY" \
-H "Content-Type: application/json" -d '{"items":["9dde0e9c-530a-4d31-80f7-38637d823f59"],"after":29000,"limit":200}'const res = await fetch('https://tablearchive.dev/v1/events/search', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.TA_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"items": [
"9dde0e9c-530a-4d31-80f7-38637d823f59"
],
"after": 29000,
"limit": 200
}),
})
const data = await res.json()import os, requests
res = requests.post(
"https://tablearchive.dev/v1/events/search",
headers={"Authorization": f"Bearer {os.environ['TA_KEY']}"},
json={
"items": [
"9dde0e9c-530a-4d31-80f7-38637d823f59"
],
"after": 29000,
"limit": 200
},
)
data = res.json()Notes
- Used in the guide Build a collection app.
Errors
| Status | When |
|---|---|
400 | A parameter or field is missing or invalid; details names each one |
429 | Rate limited; wait for Retry-After seconds |
Every error is JSON with an error message. See Rate limits and errors.