Create a monitor
Creates a monitor: a saved recipe plus the parameters to replay, a cadence, and a webhook to deliver each result to. The recipe is any GET endpoint or Prism composite in the catalogue, given as its path without the /v1/ prefix. The batch endpoints that read a JSON body (prism/post-stats, prism/comment-lookup, prism/profiles, youtube/transcripts, youtube/videos, youtube/channels) are POST and cannot be monitored; call them directly. The first run is at next_run_at, the next slot of the cadence. The signing secret is returned exactly once, in this response.
Add track to make a numbers-only monitor: every run reads the paths you list off the unified response (the same shape a /v1 call returns), stores those numbers per row plus the change against the previous run, and keeps nothing else. webhook_url then becomes optional (read the numbers with GET /v1/monitors/{id}/export or /timeseries), and webhook_format: "rows" delivers flat rows ready to append to a spreadsheet. Without track a monitor behaves exactly as before.
Request
- Base URL: https://www.socialcrawl.dev/v1
- URL: https://www.socialcrawl.dev/v1/monitors
- Auth: API key in header x-api-key
Request body
Example request
{
"cadence": "daily",
"params": {
"url": "https://www.instagram.com/p/DAbc123"
},
"recipe": "prism/comments",
"track": {
"metrics": [
"items[].post.engagement.views"
]
}
}Response
Monitor created. webhook_secret appears in this response and never again.
Example response
{
"monitor": {
"recipe": "prism/comments"
},
"webhook_secret": "whsec_..."
}Changes
No recorded changes to this operation across all 1 revision of this API.