Monitor events
Beta GET /v1/monitors/events
GET /v1/monitors/events
Events from the team's monitors, newest first (the same events the webhooks deliver).
- Cost: Free
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Not cached.
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
monitor_id | string | no | Only this monitor's events. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).
Example request#
Set your key in the environment first (see Authentication).
curl
curl "https://api.socialscrape.io/v1/monitors/events" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY"Python
import os
import requests
res = requests.get(
"https://api.socialscrape.io/v1/monitors/events",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
const res = await fetch("https://api.socialscrape.io/v1/monitors/events", {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}n8n
{
"nodes": [
{
"name": "SocialScrape Monitor events",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/monitors/events",
"sendQuery": false,
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Example response#
This is a sample with illustrative values. Status 200.
{
"ok": true,
"credits_charged": 0,
"credits_remaining": 5000,
"cached": false,
"cached_at": null,
"request_id": "req_900021adf2c0e4ad62cf5d03",
"data": {
"object": "list",
"items": [
{
"object": "monitor_event",
"id": "evt_0123456789abcdef",
"monitor_id": "mon_0123456789abcdef",
"type": "new_items",
"items": [
{
"object": "repo",
"platform": "github",
"id": "2325298",
"url": "https://github.com/torvalds/linux",
"name": "linux",
"full_name": "torvalds/linux"
}
],
"created_at": "2026-10-29T15:00:02Z"
}
],
"cursor": null,
"has_more": false
},
"cursor": null,
"has_more": false
}Response#
A list of MonitorEvent objects in data.items, with data.cursor and data.has_more.
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.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A 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.
Related endpoints#
- Create a monitor (
POST /v1/monitors) - List monitors (
GET /v1/monitors) - Delete a monitor (
DELETE /v1/monitors/{monitor_id}) - Send a test event (
POST /v1/monitors/{monitor_id}/test) - Webhook delivery log (
GET /v1/monitors/{monitor_id}/deliveries) - Send an event again (
POST /v1/monitors/events/{event_id}/redeliver)