Create a monitor API
  1. Docs
  2. Monitors
  3. Create a monitor API

Create a monitor API

Watch a list endpoint (a profile's posts, a search) and receive new items at a webhook.

POST /v1/monitors

POST /v1/monitors

Watch a list endpoint (a profile's posts, a search) and receive new items at a webhook.

  • Cost: Free
  • Cache: Not cached.

Parameters#

NameTypeRequiredDescriptionIn
endpointstringyesPath of a list endpoint, "/v1/tiktok/profile/videos".body
paramsobjectyesThat endpoint's params.body
interval_minutesintegernoHow often to check. Default 60. Range 15 to 1440.body
webhook_urlstringyesHTTPS URL that receives events.body

Example request#

Set your key in the environment first (see Authentication).

1curl -X POST "https://api.socialscrape.dev/v1/monitors" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  -H "content-type: application/json" \4  -d '{"endpoint":"/v1/github/user/repositories","params":{"handle":"torvalds"},"interval_minutes":60,"webhook_url":"https://example.com/hook"}'

Example response#

This is a sample with illustrative values. Status 200.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 0,4  "credits_remaining": 5000,5  "cached": false,6  "cached_at": null,7  "request_id": "req_2aebbb49c25ee0daa5da5dd5",8  "data": {9    "object": "monitor",10    "id": "mon_0123456789abcdef",11    "endpoint": "/v1/github/user/repositories",12    "params": {13      "handle": "torvalds"14    },15    "interval_minutes": 60,16    "webhook_url": "https://example.com/hook",17    "active": true,18    "created_at": "2026-10-29T14:00:00Z",19    "webhook_secret": "whsec_sample_secret_shown_once",20    "last_run_at": null,21    "next_run_at": "2026-10-29T14:00:00Z",22    "last_error": null23  },24  "cursor": null,25  "has_more": null26}

Response#

A Monitor object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.

Every request can also fail with the account and platform errors listed on the Errors page.