API
The API provides a consistent request flow for social data collection:Authentication
Submit Endpoints
Each product API has its own resource path:| Platform | API | Endpoint |
|---|---|---|
| Posts | POST /v1/instagram/posts | |
| Reels | POST /v1/instagram/reels | |
| Search | POST /v1/instagram/search | |
| Followers Count | POST /v1/instagram/followers-count | |
| Pages | POST /v1/facebook/pages | |
| Posts | POST /v1/facebook/posts |
Common Submit Body
Input fields are sent directly in the JSON body.callback_url is optional. If provided, SocQ sends a POST request after the task reaches a terminal state. See Callbacks for the payload shape.
Result Storage
SocQ stores two forms of results:| Storage | Purpose |
|---|---|
| Normalized records | Returned by /v1/tasks/{task_id} after the task succeeds |
| Raw JSONL file | Download from /v1/tasks/{task_id}/files |
Billing
Agent APIs are billed by returned result record. The submit request may reserve credits fromresults_limit or the number of submitted URLs/usernames; after the task finishes, SocQ settles the final charge from the actual result_count and returns any unused reserved credits.
