Twitter/X AI Search 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/ai-search?query=What%20is%20%40elonmusk%20saying%20about%20xAI%20this%20week%3F" \ -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
Returns a written answer to a plain-English question about X (Twitter), the X posts cited as sources, and how many searches the model ran.
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 Schema 2.
Use it for open questions such as what an account has said about a topic this week. A thin answer means thin retrieval, not an empty corpus, so confirm coverage with search/tweets.
50 credits per call.
Authorization
apiKey Your key from the dashboard. It starts with isk_.
In: header
Query Parameters
Natural-language prompt describing what you want to learn from X. The model autonomously searches X using the x_search tool with any handle / date filters you provide.
Comma-separated X handles (max 10). Restricts the search to posts from these accounts only. Mutually exclusive with exclude_handles.
Comma-separated X handles (max 10) to exclude from search results. Mutually exclusive with from_handles.
ISO 8601 start date (YYYY-MM-DD). Limits the search window to posts on or after this date.
ISO 8601 end date (YYYY-MM-DD). Limits the search window to posts on or before this date.
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/ai-search?query=string"{ "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 }}User › Videos GET
Returns up to 100 of a Twitch user's videos: id, slug, URL, embed URL, title, view count, language, duration, game info, broadcaster details, thumbnail, and available qualities.
Community › Tweets GET
Returns recent tweets posted inside an X (Twitter) community, each with its text, engagement counts, and author info.