Append a snapshot to the rolling index
curl --request POST \
--url https://scraper.example.com/append-index \
--header 'Content-Type: application/json' \
--header 'X-Webhook-Secret: <api-key>' \
--data '
{
"date": "2026-06-05",
"time": "153000"
}
'import requests
url = "https://scraper.example.com/append-index"
payload = {
"date": "2026-06-05",
"time": "153000"
}
headers = {
"X-Webhook-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Webhook-Secret': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({date: '2026-06-05', time: '153000'})
};
fetch('https://scraper.example.com/append-index', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Rolling index
Append a snapshot to the rolling index
Diff one snapshot against the previous index entry and append the result
to rolling_index.json.
Called by n8n after each scrape. Re-appending a snapshot already in the index replaces its entry in place.
Append a snapshot to the rolling index
curl --request POST \
--url https://scraper.example.com/append-index \
--header 'Content-Type: application/json' \
--header 'X-Webhook-Secret: <api-key>' \
--data '
{
"date": "2026-06-05",
"time": "153000"
}
'import requests
url = "https://scraper.example.com/append-index"
payload = {
"date": "2026-06-05",
"time": "153000"
}
headers = {
"X-Webhook-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Webhook-Secret': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({date: '2026-06-05', time: '153000'})
};
fetch('https://scraper.example.com/append-index', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Body
application/json
Response
Successful Response