Twitter/X Profile Media API reference
Your first 10 calls are free, no card needed. Pricing and FAQ
Get a free API keycurl "https://api.insightsocial.app/v1/twitter/profile/media?handle=<handle>&type=photos" \ -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
List an X profile's photo or video tweets by handle or numeric user id.
Beta. The source's own structure under our naming rules (snake_case keys, string ids, ISO times where the source gives a timestamp), not one of the schema-2 entities. Fields may change. See Beta endpoints.
20 credits per call.
Paginates by cursor: see Pagination.
Authorization
apiKey Your key from the dashboard. It starts with isk_.
In: header
Query Parameters
X (Twitter) profile handle without the leading @, or a numeric user id.
Which media tab to read: photos (tweets with photos) or videos (tweets with videos). X keeps them as separate tabs. Keep it unchanged when paging.
Value in
- "photos"
- "videos"
Requested page size (1–100). Best-effort; the actual page size may differ.
1 <= value <= 100Treat the path value as a handle or a numeric user id. Defaults to id when the value is all digits.
Value in
- "id"
- "handle"
Pass pagination.next_cursor from the previous response to get the next page. Keep the other parameters the same.
Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.
Value in
- "1"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.insightsocial.app/v1/twitter/profile/media?handle=string&type=photos"{ "success": true, "platform": "string", "endpoint": "string", "schema_version": "2", "pagination": { "next_cursor": "string", "has_more": true, "page_size": 0, "stopped_at": "since" }, "unavailable": [ "string" ], "credits_used": 0, "credits_remaining": 0, "request_id": "string", "cached": true, "idempotent_replay": true, "charge_reason": "string", "free_call": true, "data": { "property1": null, "property2": null }}