{"openapi":"3.2.0","info":{"title":"Twitter Profiles and Tweets API","description":"Read-only X/Twitter user profiles, tweets, media, following, followers, and search in structured JSON. No customer X login required. Visible-data coverage, with cursor pagination where supported.","version":"1.0.0"},"servers":[{"url":"https://twtter.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"tags":[{"name":"Tweet"},{"name":"User"},{"name":"Community"}],"x-agent-commerce":{"catalog_url":"https://twtter.jojapi.net/_jojapi/agent/plans","discovery_url":"https://twtter.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/twitter-new-api","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/v1/tweet-search":{"get":{"operationId":"get_v1_tweet_search","summary":"Search Tweets","description":"Search posts using query and Latest (default) or Top ordering. data.items contains tweet details. query and product repeat the conditions; next_cursor continues the next page. Keep both query and product unchanged when paging. count is a hint and the entire upstream page is preserved. complete=false; full historical coverage is not guaranteed.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Tweet"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"query","in":"query","description":"Required search expression, 1–500 characters. Example: from:NASA lang:en. Passed to X; operator support is not guaranteed.","required":true,"schema":{"type":"string","title":"Query","example":"from:NASA"}},{"name":"product","in":"query","description":"Latest (default) or Top. Keep query and product unchanged when paging.","required":false,"schema":{"type":"string","enum":["Latest","Top"],"title":"Product","example":"Latest","default":"Latest"}},{"name":"count","in":"query","description":"Requested page size, 1–200; default 20. X may return more or fewer; the whole page is preserved.","required":false,"schema":{"type":"integer","title":"Count","example":10,"default":20}},{"name":"cursor","in":"query","description":"Use the previous next_cursor; omit for the first page. Only Following/Followers/SearchTimeline/Search support this input.","required":false,"schema":{"type":"string","title":"Cursor"}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/tweet-info":{"get":{"operationId":"get_v1_tweet_info","summary":"Tweet Details","description":"Retrieve one post by numeric ID. data includes id, text, created_at, author, language, reply/like/repost/quote/view/bookmark counts, entities, attached media, conversation/reply IDs and observed quote/repost details. include_nested and max_depth control expansion of data already in the source page; no extra network fetches.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Tweet"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"tweet_id","in":"query","description":"Numeric post ID as a string.","required":true,"schema":{"type":"string","title":"Tweet Id","example":"20"}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/tweets-by-ids":{"get":{"operationId":"get_v1_tweets_by_ids","summary":"Batch Tweet Details","description":"Retrieve up to 10 comma-separated post IDs sequentially. data.items contains input, status, data (post details) and error_type. A failure stops later lookups and marks them skipped. A partial batch returns status=partial. Nested expansion options apply to each post.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Tweet"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"ids","in":"query","description":"1–10 numeric IDs, separated by commas.","required":true,"schema":{"type":"string","title":"Ids","example":"20,1770888775830262034"}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/tweet-media":{"get":{"operationId":"get_v1_tweet_media","summary":"Tweet Media","description":"Retrieve media directly attached to a post. data.post_id identifies the post; data.items contains image/video metadata such as id, type, image_url, dimensions, duration_ms, variants, aspect_ratio and alt_text when supplied. Does not download files or include media from quoted posts.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Tweet"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"tweet_id","in":"query","description":"Numeric post ID as a string.","required":true,"schema":{"type":"string","title":"Tweet Id","example":"1770888775830262034"}}]}},"/v1/tweet-thread":{"get":{"operationId":"get_v1_tweet_thread","summary":"Tweet Thread","description":"Retrieve conversation items visible on a public post page. data.target is the requested post; items contains visible posts and relationship labels that distinguish the target, direct replies and other context. limit applies to this page only. Does not guarantee a complete thread.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Tweet"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"tweet_id","in":"query","description":"Numeric post ID as a string.","required":true,"schema":{"type":"string","title":"Tweet Id","example":"20"}},{"name":"limit","in":"query","description":"Return at most 1–100 visible items; default 20. No extra pages are fetched.","required":false,"schema":{"type":"integer","title":"Limit","example":10,"default":20}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/tweet-replies":{"get":{"operationId":"get_v1_tweet_replies","summary":"Tweet Replies","description":"Retrieve visible direct replies whose reply_to_id matches the requested post. data.target is the original post and items contains matching replies. Sorting applies only within this visible page; this is not a full or global latest-replies feed.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Tweet"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"tweet_id","in":"query","description":"Numeric post ID as a string.","required":true,"schema":{"type":"string","title":"Tweet Id","example":"20"}},{"name":"limit","in":"query","description":"Return at most 1–100 visible items; default 20. No extra pages are fetched.","required":false,"schema":{"type":"integer","title":"Limit","example":10,"default":20}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/following":{"get":{"operationId":"get_v1_following","summary":"Following","description":"Retrieve one page of accounts followed by the target user. data.items contains user profiles. target_user_id, target_username and relation identify the list. requested_count is a hint; returned_count is the actual page size. Pass next_cursor as cursor to continue with the same username. complete=false; a single call does not verify another page.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"elonmusk"}},{"name":"count","in":"query","description":"Requested page size, 1–200; default 20. X may return more or fewer; the whole page is preserved.","required":false,"schema":{"type":"integer","title":"Count","example":20,"default":20}},{"name":"cursor","in":"query","description":"Use the previous next_cursor; omit for the first page. Only Following/Followers/SearchTimeline/Search support this input.","required":false,"schema":{"type":"string","title":"Cursor"}}]}},"/v1/followers":{"get":{"operationId":"get_v1_followers","summary":"Followers","description":"Retrieve one page of accounts following the target user. data.items contains user profiles, with target_user_id, target_username, requested_count, returned_count, next_cursor, scope, session_state and completeness flags. Use the next_cursor with the same username. The upstream page may contain more or fewer users than count.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"jack"}},{"name":"count","in":"query","description":"Requested page size, 1–200; default 20. X may return more or fewer; the whole page is preserved.","required":false,"schema":{"type":"integer","title":"Count","example":20,"default":20}},{"name":"cursor","in":"query","description":"Use the previous next_cursor; omit for the first page. Only Following/Followers/SearchTimeline/Search support this input.","required":false,"schema":{"type":"string","title":"Cursor"}}]}},"/v1/user-info":{"get":{"operationId":"get_v1_user_info","summary":"User Info","description":"Look up a public profile by username. data contains id, screen_name, name, description, location, created_at, followers_count, following_count, statuses_count, media_count, avatar/banner URLs, verification flags and observed pinned tweet IDs. Missing values are null. Counts are source counts, not collected records.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"elonmusk"}}]}},"/v1/user-by-id":{"get":{"operationId":"get_v1_user_by_id","summary":"User Info by ID","description":"Look up a public profile by numeric user ID. Returns the same profile fields as User Info and verifies the returned ID matches the requested ID.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"user_id","in":"query","description":"Numeric user ID as a string.","required":true,"schema":{"type":"string","title":"User Id","example":"44196397"}}]}},"/v1/profiles-by-restids":{"get":{"operationId":"get_v1_profiles_by_restids","summary":"Batch Users by ID","description":"Look up up to 10 comma-separated numeric user IDs. data.items contains input, status, data (profile) and error_type. Inputs are deduplicated and processed sequentially. A failure stops later work; unattempted items are skipped. complete=true means every input succeeded.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"ids","in":"query","description":"1–10 numeric IDs, separated by commas.","required":true,"schema":{"type":"string","title":"Ids","example":"12,44196397"}}]}},"/v1/profiles-by-usernames":{"get":{"operationId":"get_v1_profiles_by_usernames","summary":"Batch Users by Username","description":"Look up up to 10 comma-separated usernames. data.items contains input, status, data (profile) and error_type. Duplicates are removed case-insensitively. Work is sequential and stops on an error; later items are skipped.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"usernames","in":"query","description":"1–10 usernames, separated by commas.","required":true,"schema":{"type":"string","title":"Usernames","example":"jack,NASA"}}]}},"/v1/user-timeline":{"get":{"operationId":"get_v1_user_timeline","summary":"User Timeline","description":"Retrieve posts visible on a public profile. data.items contains post details; user is the profile, pinned is an observed pinned post, source_item_count is the number parsed before truncation, and returned_count is the number returned. limit truncates the visible page, without fetching another page. Results may contain pinned posts and are not guaranteed newest or complete.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"NASA"}},{"name":"limit","in":"query","description":"Return at most 1–100 visible items; default 20. No extra pages are fetched.","required":false,"schema":{"type":"integer","title":"Limit","example":5,"default":20}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/user-media":{"get":{"operationId":"get_v1_user_media","summary":"User Media","description":"Filter posts with media from the visible public profile page. data.items contains matching posts and media metadata. source_post_count is observed posts before filtering. This is not the complete Media tab; an empty result does not prove the account never posted media.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"NASA"}},{"name":"limit","in":"query","description":"Return at most 1–100 visible items; default 20. No extra pages are fetched.","required":false,"schema":{"type":"integer","title":"Limit","example":5,"default":20}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/user-pinned":{"get":{"operationId":"get_v1_user_pinned","summary":"Pinned Tweets","description":"Retrieve posts explicitly marked as pinned on the public profile. data.items contains post details with author, text, time, engagement counts and media when available. Unobserved pinned data produces an error rather than a fabricated no-pinned-post result.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"jack"}},{"name":"include_nested","in":"query","description":"Expand quoted and reposted posts; default true. IDs and status remain when false.","required":false,"schema":{"type":"boolean","title":"Include Nested","default":true}},{"name":"max_depth","in":"query","description":"Nested post depth, 0–3; default 2. Zero disables expansion. No extra requests.","required":false,"schema":{"type":"integer","title":"Max Depth","default":2}}]}},"/v1/user-affiliation":{"get":{"operationId":"get_v1_user_affiliation","summary":"User Affiliation","description":"Retrieve the organization label displayed on this profile. data contains id, screen_name and affiliates. The label can contain organization name, badge URL and destination URL. This is not an organization member or affiliated-account list.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["User"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"username","in":"query","description":"X username, not a display name, URL or password.","required":true,"schema":{"type":"string","title":"Username","example":"elonmusk"}}]}},"/v1/community-info":{"get":{"operationId":"get_v1_community_info","summary":"Community Info","description":"Retrieve community details including id, name, description, created_at, member_count, join_policy, topic, question, banner URL/dimensions, creator summary, rules and moderator_count when supplied. Counts do not imply that a full member list is available.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Community"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"community_id","in":"query","description":"Numeric community ID as a string.","required":true,"schema":{"type":"string","title":"Community Id","example":"1493446837214187523"}}]}},"/v1/community-members-preview":{"get":{"operationId":"get_v1_community_members_preview","summary":"Community Member Preview","description":"Retrieve the member-avatar preview visible on a community page. data.items contains limited profile summaries (id, screen_name, name, avatar URL and verification flags). community_id and total_member_count describe the source. Usually only a few users are visible; this is not the full member list.\n\nResponse envelope: status, operation, data, meta. Unknown values remain null. No field_comments is included. Use the marketplace API key; customers never submit X Cookies or passwords. Upstream availability and complete historical coverage are not guaranteed.","tags":["Community"],"responses":{"200":{"description":"Successful query or partial batch result.","content":{"application/json":{"schema":{"type":"object","required":["status","operation","data","meta"],"properties":{"status":{"type":"string","enum":["ok","partial"]},"operation":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Endpoint-specific data; see the documented fields."},"meta":{"type":"object","properties":{"fetched_at":{"type":"string","format":"date-time"},"source":{"type":"string","enum":["x_public_page","x_authenticated_web"]},"credentials_used":{"type":"boolean","description":"Provider-managed session used."}}}}}}}},"401":{"description":"Gateway or session authentication required.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"422":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"}}}},"429":{"description":"Marketplace or upstream request limit reached.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"502":{"description":"Upstream data unavailable or request failed.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"503":{"description":"Gateway or provider session unavailable.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"504":{"description":"Operation timed out.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}},"parameters":[{"name":"community_id","in":"query","description":"Numeric community ID as a string.","required":true,"schema":{"type":"string","title":"Community Id","example":"1493446837214187523"}},{"name":"limit","in":"query","description":"Return at most 1–100 visible items; default 20. No extra pages are fetched.","required":false,"schema":{"type":"integer","title":"Limit","example":10,"default":20}}]}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}