{"agent":{"expose":"search","prompt":"Use Crawl4AI to get search posts on X (Twitter)."},"also":["search twitter","search tweets","tweets about a topic","what people say on twitter"],"beta":true,"call":{"aliases":["POST /recipes/x-search"],"method":"POST","path":"/tools/x-search"},"categories":["social","marketing"],"cost":{"cases":[{"price":"","when":"0.5 credit, plus 0.5 per 20 posts"},{"price":"free","when":"A run with no row"}],"rule":"0.5 credit, plus 0.5 per 20 posts · a run with no row is free","text":"0.5 cr + 0.5 per 20"},"description":"The posts X (Twitter) returns for a search, one row per post, in X's order: id, link, text, time, author, counts, views, language, media, and whether it is a reply, a quote or a repost. `query` is X search text (rust lang, from:nasa since:2026-10-01); `mode` latest or top; `limit` up to 100. `session` is your X login (`auth_token` and `ct0`, from the Crawl4AI Session extension), for this run only. Without it, only from:<account> (since:/until: allowed) in mode latest: what X shows a visitor: newest posts, highlights, top posts. Other queries are refused, not billed.","docs":"/tools/x-search","essential":false,"essential_order":null,"examples":[{"answer":{"body":{"request_id":"req_…","rows":[{"author":"OrdeVanRode","author_name":"De Orde van Rode 📵🚜🇷🇺🆓️","created":"2026-10-10T10:13:31Z","id":"2108863488927871316","is_quote":false,"is_reply":true,"language":"nl","likes":0,"media":["https://pbs.twimg.com/media/HUQwKJ4WAAALeYl.jpg"],"quotes":0,"replies":0,"reposts":0,"text":"@DefensieMin Lul niet zo dom, eng mens. \n\nLaat Rusland met rust, dan …","url":"https://x.com/OrdeVanRode/status/2108863488927871316","views":1},{"author":"_rustopian","author_name":"Pete","created":"2026-10-10T10:09:08Z","id":"2108862385708744715","is_quote":false,"is_reply":true,"language":"en","likes":3,"media":[],"quotes":0,"replies":1,"reposts":0,"text":"@SolPlay_jonas @clairefxyz @alessandrod @readylayerone FYI `profile.t…","url":"https://x.com/_rustopian/status/2108862385708744715","views":22}],"took_ms":945,"tool":"x-search","usage":{"credits":0.5}},"credits":0.5,"more":4,"rows":6,"took_ms":945},"input":{"limit":20,"mode":"latest","query":"rust lang"},"label":"rust lang, 20, latest"},{"input":{"limit":20,"mode":"latest","query":"from:nasa"},"label":"from:nasa, 20, latest"}],"id":"x-search","input_schema":{"additionalProperties":true,"properties":{"limit":{"default":20,"description":"`limit` up to 100.","type":"integer"},"mode":{"default":"latest","description":"`mode` latest or top","type":"string"},"query":{"description":"`query` is X search text (rust lang, from:nasa since:2026-10-01)","type":"string"},"session":{"description":"`session` is your X login (`auth_token` and `ct0`, from the Crawl4AI Session extension), for this run only.","type":"string"}},"required":["query"],"type":"object"},"inputs":[{"example":"rust lang","help":"`query` is X search text (rust lang, from:nasa since:2026-10-01)","name":"query","required":true,"type":"string"},{"advanced":true,"default":20,"example":20,"help":"`limit` up to 100.","name":"limit","type":"integer"},{"advanced":true,"default":"latest","example":"latest","help":"`mode` latest or top","name":"mode","type":"string"},{"advanced":true,"help":"`session` is your X login (`auth_token` and `ct0`, from the Crawl4AI Session extension), for this run only.","name":"session","secret":true,"type":"string"}],"kind":"sites","name":{"lead":"X","rest":"search"},"output":{"fields":[{"meaning":"X's id of the post, as text (the number is too long for some JSON readers).","name":"id","type":"string"},{"meaning":"The post's link: https://x.com/<author>/status/<id>.","name":"url","type":"string"},{"meaning":"The post's whole text, a long post included; the media link X adds at the end is removed.","name":"text","type":"string"},{"meaning":"When the post was published, ISO 8601 UTC.","name":"created","type":"string"},{"meaning":"The author's handle, without the @.","name":"author","type":"string"},{"meaning":"The author's display name.","name":"author_name","type":"string"},{"meaning":"The likes count when read.","name":"likes","type":"integer"},{"meaning":"The reposts count when read.","name":"reposts","type":"integer"},{"meaning":"The replies count when read.","name":"replies","type":"integer"},{"meaning":"How many posts quote this post.","name":"quotes","type":"integer"},{"meaning":"The views count; null when X hides it; on the second source it can be the provider's rounded number.","name":"views","type":"integer"},{"meaning":"X's language code for the text (en, ja; und = not known, qme = media only); null without a session.","name":"language","type":"string"},{"meaning":"The post's media as URLs in X's order: a photo's image, a video's or GIF's MP4 file; empty when none.","name":"media","type":"string[]"},{"meaning":"True when the post replies to another post.","name":"is_reply","type":"boolean"},{"meaning":"True when the post quotes another post.","name":"is_quote","type":"boolean"},{"meaning":"True when the row is a repost of another post; X's search lists none, the no-session second source lists the account's reposts too.","name":"is_repost","type":"boolean"}],"row_is":"","view":"rows"},"related":[{"id":"x-profile","why":"Username, name, bio, followers, following, tweets, created, location"},{"id":"x-tweet-replies","why":"Author, author name, text, posted at, likes, replies, reposts, views"},{"id":"facebook-event","why":"Name, starts at, ends at, when, place, host, description, categories"}],"run":"both","source":"x","status":"beta","summary":"Text, created, author, author name, likes, reposts, replies, quotes","synonyms":["posts","search","twitter","x","search twitter","search tweets","tweets about a topic","what people say on twitter","twitter mentions","brand mentions","hashtag tweets","tweets by keyword"],"typical":"7.3 s","version":4,"visibility":"public"}