This tutorial will walk through what you need to get started with the
programming language R and the X API v2. Using R to connect to the
user lookup endpoint, I’ll show how to work
with JSON returned from the X API. User lookup is a GET method and returns
information about a user or group of users, specified by a user ID or a
username.If you aren’t familiar, R is one of the most popular languages for common Data
Science tasks like time-series analysis, modeling, visualization, and other data
analysis, and is often used in conjunction with the X API. With the user
lookup endpoint, you can use the
user object to
determine a correlation between the number of followers a person has and the
sentiment score of their bio. The user object may also be used to map a group of
accounts based on the location publicly listed in their profiles.
Before you can use the X API v2, you will need to
sign up
for a developer account.Once you have an approved developer account, you will need to first create a
Project. Projects allow you to organize your work
based on how you intend to use the X API, so you can effectively manage
your access to the API, and monitor your usage.Each Project contains an App, with which you can
generate the credentials required to use the X API. You can learn more
about how to get started with the X API, in the
getting started section of our
documentation.
For the code examples, I’m going to be showing today, you will want to create an
environment variable for your bearer token. The Bearer Token is what allows you
to authenticate to the X API and start making requests. First, replace
“your-bearer-token” with your own bearer token, which can be obtained from the
keys and tokens section of your App in the Developer Console. You’ll need to run
this line of code in the console before you start writing a script.
You can use the package
httr to make HTTP
requests to the X API. If you haven’t already installed this, please
install the package in your console. You will also need to install
jsonlite to work
with our JSON object and dplyr for data
manipulation.
You can now begin writing your R script to connect to the API. At the top of the
file, call the packages httr, jsonlite, and dplyr.
require(httr)require(jsonlite)require(dplyr)
The first step in your code sample is to get set up to authenticate to the
X API. Grab the
Bearer Token you pulled from
your App, and pass that into your headers for authentication. In the below
example, replace $BEARER_TOKEN with your token.
Once you got your authentication set up, define the parameters of your request.
By default, you will get back the id, name, and username of each user you get
back. You can make adjustments to this payload by adding additional
fields and
expansions. For this example, you will want
the profile bio of the user which is requested using user.fields=description,
and an expansion that contains the pinned Post of the user.
Now you are ready to format your URL with the X handle, also known as
account, you are looking to get more information about. Use the readline method
to allow this sample to be reusable. After you type the handle you want to look
at, format your URL to contain the handle you define by replacing $USERNAME with
the desired X handle.
At this point, use the httr package to make a GET request to the URL you just
created, pass in our authentication credential via the header, and pass in the
parameters you defined. You can save the response as a text object in the
variable obj and print this out to view the result of the request you made.
One of my favorite ways to work with a JSON is to use a data frame, which allows
you to easily access complex nested data. To do this, use the fromJSON method of
the jsonlite package to flatten your file to allow the fields to be in the same
object. Then, pass that object into a data frame. Now you are ready to view this
data frame.
Hopefully, this tutorial can be a starting place to work with R and the X
API. As a next step, you may want to look at our R samples for recent search,
Post lookup and user lookup in our
v2 sample code. Be sure to let us know on the
forums if you run into any troubles along the
way or Post us at @XDevelopers if this
tutorial inspires you to create anything.
⌘I
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"X","colors":{"primary":"#0D0D0D","light":"#B2B2B2","dark":"#0D0D0D"},"logo":{"light":"https://mintcdn.com/x-preview/CX6FNhUUR8mtNZ97/logo/light.svg?fit=max\u0026auto=format\u0026n=CX6FNhUUR8mtNZ97\u0026q=85\u0026s=b2e6f2ff399e1bc5cd0c588f9644983d","dark":"https://mintcdn.com/x-preview/CX6FNhUUR8mtNZ97/logo/dark.svg?fit=max\u0026auto=format\u0026n=CX6FNhUUR8mtNZ97\u0026q=85\u0026s=d7b8656c2bcee6e9d5c947f6419e8b82"},"favicon":"https://mintcdn.com/x-preview/s_D1jGy1nLdDmXkd/favicon.png?fit=max\u0026auto=format\u0026n=s_D1jGy1nLdDmXkd\u0026q=85\u0026s=80ae09fccb5fee6b52fc4f31c15ac2f7","appearance":{"default":"dark","strict":true},"background":{"color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"/support","label":"Support"}],"primary":{"type":"button","label":"Developer Console","href":"https://developer.x.com/en/portal/petition/essential/basic-info"}},"footer":{"socials":{"x":"https://x.com/xdevelopers","github":"https://github.com/xdevplatform"},"links":[{"header":"Resources","items":[{"label":"Status","href":"https://developer.x.com/status"},{"label":"Incidents","href":"/incidents"}]},{"header":"Legal","items":[{"label":"Terms of Service","href":"https://x.com/en/tos"},{"label":"Privacy Policy","href":"https://x.com/en/privacy"},{"label":"Cookies","href":"https://help.x.com/en/rules-and-policies/x-cookies"},{"label":"Developer Terms","href":"https://docs.x.com/developer-terms"}]}]},"seo":{"metatags":{"canonical":"https://docs.x.com","og:site_name":"X Developer Platform","og:type":"website","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@xdevelopers","description":"Build, analyze, and innovate with X's real-time global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.","author":"X Developer Platform","language":"en","robots":"index, follow","googlebot":"index, follow","og:image":"https://docs.x.com/images/og-default.png","og:image:width":"1200","og:image:height":"630","twitter:image":"https://docs.x.com/images/og-default.png"},"indexing":"all"},"fonts":{"family":"Chirp","weight":400,"source":"fonts/chirp-regular-web.woff2","format":"woff2"},"contextual":{"options":["copy","view",{"title":"Open in Grok","description":"Ask questions about this page","icon":"/logo/grok.svg","href":{"base":"https://grok.com","query":[{"key":"q","value":"Read from https://docs.x.com$path so I can ask questions about it."}]}}],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Developer Console","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-console.svg","href":"https://developer.x.com/en/portal/petition/essential/basic-info"},{"anchor":"Forums","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-chat.svg","href":"https://devcommunity.x.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/xdevplatform"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"x-preview","hasAudioNarration":false,"actualSubdomain":"x-preview","customDomains":["docs.x.com"],"gitSource":{"type":"github","owner":"xdevplatform","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae2aa4f8cd154ebcbe3b414","collectionId":"c98e4034-eeca-4633-a353-f10bbe5f3f8d","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae2aa4f8cd154ebcbe3b414"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae2aa4f8cd154ebcbe3b414","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API Reference","count":694},{"language":"default","tag":"X API","count":355},{"language":"default","tag":"TypeScript XDK","count":315},{"language":"default","tag":"Interfaces","count":284},{"language":"default","tag":"Misc","count":281},{"language":"default","tag":"General","count":260},{"language":"default","tag":"Documentation","count":157},{"language":"default","tag":"Guides","count":81},{"language":"default","tag":"Posts","count":77},{"language":"default","tag":"Python XDK","count":67}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/x-preview/9ac9ff4335261041/style.css"}],"page":{"pagePath":"tutorials/getting-started-with-r-and-v2-of-the-x-api","slug":"/tutorials/getting-started-with-r-and-v2-of-the-x-api","pageMetadata":{"title":"Getting started with R and v2 of the X API","description":"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.","mode":"wide","keywords":["R programming","R tutorial","R API","statistical analysis","data analysis","R language","R integration"],"href":"/tutorials/getting-started-with-r-and-v2-of-the-x-api"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`introduction`,children:`Introduction`}),`\n`,_jsxs(_components.p,{children:[`This tutorial will walk through what you need to get started with the\nprogramming language R and the X API v2. Using R to connect to the\n`,_jsx(_components.a,{href:`/x-api/users/lookup/introduction`,children:`user lookup`}),` endpoint, I’ll show how to work\nwith JSON returned from the X API. User lookup is a GET method and returns\ninformation about a user or group of users, specified by a user ID or a\nusername.`]}),`\n`,_jsxs(_components.p,{children:[`If you aren’t familiar, R is one of the most popular languages for common Data\nScience tasks like time-series analysis, modeling, visualization, and other data\nanalysis, and is often used in conjunction with the X API. With the user\nlookup endpoint, you can use the\n`,_jsx(_components.a,{href:`/x-api/fundamentals/data-dictionary/reference#user`,children:`user object`}),` to\ndetermine a correlation between the number of followers a person has and the\nsentiment score of their bio. The user object may also be used to map a group of\naccounts based on the location publicly listed in their profiles.`]}),`\n`,_jsx(Heading,{level:`3`,id:`getting-started-with-the-x-api`,children:`Getting started with the X API`}),`\n`,_jsxs(_components.p,{children:[`Before you can use the X API v2, you will need to\n`,_jsx(_components.a,{href:`https://developer.x.com/en/portal/petition/essential/basic-info`,children:`sign up`}),`\nfor a developer account.`]}),`\n`,_jsxs(_components.p,{children:[`Once you have an approved developer account, you will need to first create a\n`,_jsx(_components.a,{href:`/resources/fundamentals/developer-apps`,children:`Project`}),`. Projects allow you to organize your work\nbased on how you intend to use the X API, so you can effectively manage\nyour access to the API, and monitor your usage.`]}),`\n`,_jsxs(_components.p,{children:[`Each Project contains an `,_jsx(_components.a,{href:`/resources/fundamentals/developer-apps`,children:`App`}),`, with which you can\ngenerate the credentials required to use the X API. You can learn more\nabout how to get started with the X API, in the\n`,_jsx(_components.a,{href:`/x-api/getting-started/about-x-api`,children:`getting started`}),` section of our\ndocumentation.`]}),`\n`,_jsx(Heading,{level:`3`,id:`getting-your-r-environment-set-up`,children:`Getting your R environment set up`}),`\n`,_jsxs(_components.p,{children:[`First, you need to `,_jsx(_components.a,{href:`https://cloud.r-project.org/`,children:`download R`}),` which you can do\non the `,_jsx(_components.a,{href:`https://cran.r-project.org/`,children:`cran website.`})]}),`\n`,_jsxs(_components.p,{children:[`After, to set up an environment to work with R, you can use\n`,_jsx(_components.a,{href:`https://www.rstudio.com/`,children:`R studio`}),`, the R extension pack for\n`,_jsx(_components.a,{href:`https://marketplace.visualstudio.com/items?itemName=Ikuyadeu.r-pack`,children:`Visual Studio Code`}),`,\nor a\n`,_jsx(_components.a,{href:`https://docs.anaconda.com/anaconda/navigator/tutorials/r-lang/`,children:`Jupyter notebook`}),`\nif you come from the Python world.`]}),`\n`,_jsx(Heading,{level:`3`,id:`setting-up-your-environment-variable`,children:`Setting up your environment variable`}),`\n`,_jsx(_components.p,{children:`For the code examples, I’m going to be showing today, you will want to create an\nenvironment variable for your bearer token. The Bearer Token is what allows you\nto authenticate to the X API and start making requests. First, replace\n“your-bearer-token” with your own bearer token, which can be obtained from the\nkeys and tokens section of your App in the Developer Console. You’ll need to run\nthis line of code in the console before you start writing a script.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Sys.setenv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`BEARER_TOKEN`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"your-bearer-token\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`making-your-request`,children:`Making your request`}),`\n`,_jsxs(_components.p,{children:[`You can use the package\n`,_jsx(_components.a,{href:`https://cran.r-project.org/web/packages/httr/index.html`,children:`httr`}),` to make HTTP\nrequests to the X API. If you haven’t already installed this, please\ninstall the package in your console. You will also need to install\n`,_jsx(_components.a,{href:`https://cran.r-project.org/web/packages/jsonlite/index.html`,children:`jsonlite`}),` to work\nwith our JSON object and `,_jsx(_components.a,{href:`https://dplyr.tidyverse.org/`,children:`dplyr`}),` for data\nmanipulation.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`install.packages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"httr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`install.packages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jsonlite\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`install.packages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dplyr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`You can now begin writing your R script to connect to the API. At the top of the\nfile, call the packages httr, jsonlite, and dplyr.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`httr`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`jsonlite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`dplyr`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The first step in your code sample is to get set up to authenticate to the\nX API. Grab the\n`,_jsx(_components.a,{href:`/resources/fundamentals/authentication#using-and-generating-an-app-only-bearer-token`,children:`Bearer Token`}),` you pulled from\nyour App, and pass that into your headers for authentication. In the below\nexample, replace $BEARER_TOKEN with your token.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`bearer_token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Sys.getenv`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$BEARER_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:\"`Authorization`\"}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` sprintf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer %s'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` bearer_token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Once you got your authentication set up, define the parameters of your request.\nBy default, you will get back the id, name, and username of each user you get\nback. You can make adjustments to this payload by adding additional\n`,_jsx(_components.a,{href:`/x-api/fundamentals/fields`,children:`fields`}),` and\n`,_jsx(_components.a,{href:`/x-api/fundamentals/expansions`,children:`expansions`}),`. For this example, you will want\nthe profile bio of the user which is requested using user.fields=description,\nand an expansion that contains the pinned Post of the user.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` list`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:\"`user.fields`\"}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'description'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:\" `expansions`\"}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'pinned_tweet_id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Now you are ready to format your URL with the X handle, also known as\naccount, you are looking to get more information about. Use the readline method\nto allow this sample to be reusable. After you type the handle you want to look\nat, format your URL to contain the handle you define by replacing $USERNAME with\nthe desired X handle.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`handle`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` readline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'$USERNAME'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`url_handle`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` sprintf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.x.com/2/users/by?usernames=%s'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` handle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`At this point, use the httr package to make a GET request to the URL you just\ncreated, pass in our authentication credential via the header, and pass in the\nparameters you defined. You can save the response as a text object in the\nvariable obj and print this out to view the result of the request you made.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` httr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GET`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` url_handle`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` httr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`add_headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`.headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` query`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`obj`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` httr`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` as`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`obj`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`working-with-our-json-payload`,children:`Working with our JSON payload`}),`\n`,_jsx(_components.p,{children:`One of my favorite ways to work with a JSON is to use a data frame, which allows\nyou to easily access complex nested data. To do this, use the fromJSON method of\nthe jsonlite package to flatten your file to allow the fields to be in the same\nobject. Then, pass that object into a data frame. Now you are ready to view this\ndata frame.`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`json_data \u003c- fromJSON(obj, flatten = TRUE) %>% as.data.frame View(json_data)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`You can access the fields of the data from the data frame and pass them into a\nstring that has the handle, the username, and bio.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`final`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c-`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` sprintf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Handle: %s`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Bio: %s`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Pinned Post: %s\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json_data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`$`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data.username`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json_data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`$`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`data.description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json_data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`$`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`includes.tweets.text`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Use cat instead of print to view the object with newlines between each field you\nare pulling.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`r`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`r`,children:_jsxs(_components.code,{language:`r`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`cat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`final`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`If you had multiple handles you made requests for, you could easily use a loop\nto access each data frame element.`}),`\n`,_jsx(Heading,{level:`3`,id:`conclusion`,children:`Conclusion`}),`\n`,_jsxs(_components.p,{children:[`Hopefully, this tutorial can be a starting place to work with R and the X\nAPI. As a next step, you may want to look at our R samples for recent search,\nPost lookup and user lookup in our\n`,_jsx(_components.a,{href:`https://github.com/xdevplatform`,children:`v2 sample code`}),`. Be sure to let us know on the\n`,_jsx(_components.a,{href:`https://devcommunity.x.com/`,children:`forums`}),` if you run into any troubles along the\nway or Post us at `,_jsx(_components.a,{href:`https://x.com/XDevelopers`,children:`@XDevelopers`}),` if this\ntutorial inspires you to create anything.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Getting started with R and v2 of the X API","description":"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.","mode":"wide","keywords":["R programming","R tutorial","R API","statistical analysis","data analysis","R language","R integration"],"href":"/tutorials/getting-started-with-r-and-v2-of-the-x-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Introduction","slug":"introduction","depth":2,"children":[{"title":"Getting started with the X API","slug":"getting-started-with-the-x-api","depth":3,"children":[]},{"title":"Getting your R environment set up","slug":"getting-your-r-environment-set-up","depth":3,"children":[]},{"title":"Setting up your environment variable","slug":"setting-up-your-environment-variable","depth":3,"children":[]},{"title":"Making your request","slug":"making-your-request","depth":3,"children":[]},{"title":"Working with our JSON payload","slug":"working-with-our-json-payload","depth":3,"children":[]},{"title":"Conclusion","slug":"conclusion","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/x-preview/381ffe7e9b15b180/widgets.js","/_mintlify/custom/x-preview/6a1f299520abeae4/sliders.js","/_mintlify/custom/x-preview/c7d32b76ae276d29/xds-motion.js","/_mintlify/custom/x-preview/4e9cd7891e98068a/tmp/gen_prompts.js"],"subdomain":"x-preview","siteName":"X","title":"Getting started with R and v2 of the X API - X","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-11T23:30:26.639Z","originalFileLocation":"tutorials/getting-started-with-r-and-v2-of-the-x-api.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.\">\u003cmeta data-mint-head name=\"application-name\" content=\"X\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Getting started with R and v2 of the X API - X\">\u003cmeta data-mint-head property=\"og:description\" content=\"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"X Developer Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.x.com/images/og-default.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Getting started with R and v2 of the X API - X\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.x.com/images/og-default.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/x-preview/FsnFMtl8dbNRWPu8/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"X\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D0D0D\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"X Developer Platform\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003cmeta data-mint-head name=\"googlebot\" content=\"index, follow\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tutorials/getting-started-with-r-and-v2-of-the-x-api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.x.com/#organization\",\"name\":\"X\",\"url\":\"https://docs.x.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/x-preview/CX6FNhUUR8mtNZ97/logo/light.svg?fit=max\u0026auto=format\u0026n=CX6FNhUUR8mtNZ97\u0026q=85\u0026s=b2e6f2ff399e1bc5cd0c588f9644983d\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.x.com#website\",\"name\":\"X\",\"url\":\"https://docs.x.com\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api#webpage\",\"url\":\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api\",\"name\":\"Getting started with R and v2 of the X API\",\"description\":\"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.\",\"dateModified\":\"2026-06-11T23:30:26.639Z\",\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api#article\",\"headline\":\"Getting started with R and v2 of the X API\",\"name\":\"Getting started with R and v2 of the X API\",\"description\":\"Tutorial for calling the X API v2 user lookup endpoint from R using httr and jsonlite, including bearer token setup and parsing JSON responses in R.\",\"url\":\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api\",\"mainEntityOfPage\":{\"@id\":\"https://docs.x.com/tutorials/getting-started-with-r-and-v2-of-the-x-api#webpage\"},\"image\":\"https://docs.x.com/images/og-default.png\",\"dateModified\":\"2026-06-11T23:30:26.639Z\",\"keywords\":\"R programming, R tutorial, R API, statistical analysis, data analysis, R language, R integration\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"}}]}\u003c/script>","siteName":"X","nav":{"global":{"anchors":[{"anchor":"Developer Console","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-console.svg","href":"https://developer.x.com/en/portal/petition/essential/basic-info"},{"anchor":"Forums","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-chat.svg","href":"https://devcommunity.x.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/xdevplatform"}]},"products":[{"product":"X API","tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"X Developer Platform","sidebarTitle":"Overview","mode":"wide","icon":"house","href":"/overview"},{"title":"Developer Guidelines","sidebarTitle":"Developer Guidelines","icon":"scale-balanced","href":"/developer-guidelines"},{"title":"What to Build","sidebarTitle":"What to Build","icon":"lightbulb","href":"/what-to-build"},{"title":"Make Your First Request","sidebarTitle":"Make Your First Request","icon":"rocket","href":"/make-your-first-request"},{"group":"Tools \u0026 Libraries","icon":"/icons/xds/icon-wrench.svg","pages":[{"title":"Tools \u0026 Libraries","sidebarTitle":"Overview","href":"/tools-and-libraries"},{"title":"xurl — curl-style command line client for the X API","sidebarTitle":"CLI (xurl)","href":"/tools/xurl"},{"group":"SDKs (XDKs)","pages":[{"title":"Python XDK","sidebarTitle":"Python","href":"/tools/python-xdk"},{"title":"TypeScript XDK","sidebarTitle":"TypeScript","href":"/tools/typescript-xdk"}]}]},{"group":"Agent Resources","icon":"/icons/xds/icon-ai-agents.svg","pages":[{"title":"Agent Resources","sidebarTitle":"Overview","href":"/tools/ai"},{"title":"llms.txt \u0026 llms-full.txt","sidebarTitle":"llms.txt","href":"/tools/llms-txt"},{"title":"skill.md","sidebarTitle":"skill.md","href":"/tools/skill-md"},{"title":"MCP servers for the X API and X developer docs","sidebarTitle":"MCP","href":"/tools/mcp"}]}]},{"group":"Products","pages":[{"group":"X API","expanded":true,"pages":[{"group":"Pay-per-use","pages":[{"title":"X API","sidebarTitle":"Introduction","mode":"wide","href":"/x-api/introduction"},{"title":"X API pay-per-usage pricing and credits","sidebarTitle":"Pricing","href":"/x-api/getting-started/pricing"},{"title":"Free credit incentives for X API pay-per-use accounts","sidebarTitle":"Free credits","href":"/x-api/getting-started/free-credits"},{"title":"Getting Access","sidebarTitle":"Getting Access","href":"/x-api/getting-started/getting-access"}]},{"group":"Enterprise","pages":[{"title":"X Enterprise API introduction and product overview","sidebarTitle":"Introduction","mode":"wide","href":"/enterprise-api/introduction"},{"title":"Enterprise API pricing and custom plans","sidebarTitle":"Pricing","href":"/enterprise-api/getting-started/pricing"},{"title":"Getting enterprise access","sidebarTitle":"Getting access","href":"/enterprise-api/getting-started/getting-access"}]}]}]},{"group":"Fundamentals","pages":[{"title":"Apps","sidebarTitle":"Apps","icon":"cube","href":"/fundamentals/developer-apps"},{"title":"Developer Console","sidebarTitle":"Developer Console","icon":"grid-2","href":"/fundamentals/developer-portal"},{"group":"Authentication","icon":"/icons/xds/icon-key.svg","pages":[{"title":"Authentication","sidebarTitle":"Overview","href":"/fundamentals/authentication/overview"},{"group":"Guides","pages":[{"title":"Log in with X","href":"/fundamentals/authentication/guides/log-in-with-x"},{"title":"Best practices","href":"/fundamentals/authentication/guides/authentication-best-practices"},{"title":"Connection to X API using TLS","sidebarTitle":"TLS","href":"/fundamentals/authentication/guides/tls"},{"title":"X API v2 authentication mapping","sidebarTitle":"Endpoint mapping","href":"/fundamentals/authentication/guides/v2-authentication-mapping"}]},{"group":"OAuth 1.0a","pages":[{"title":"API Key and Secret","sidebarTitle":"API Key and Secret","href":"/fundamentals/authentication/oauth-1-0a/api-key-and-secret"},{"title":"Obtaining Access Tokens using 3-legged OAuth flow","sidebarTitle":"User Access Tokens (3-legged OAuth flow)","href":"/fundamentals/authentication/oauth-1-0a/obtaining-user-access-tokens"},{"title":"Authorizing a request","sidebarTitle":"Authorizing a request","href":"/fundamentals/authentication/oauth-1-0a/authorizing-a-request"},{"title":"OAuth Echo","sidebarTitle":"OAuth Echo","href":"/fundamentals/authentication/oauth-1-0a/oauth-echo"},{"title":"PIN-based authorization","sidebarTitle":"PIN-based OAuth","href":"/fundamentals/authentication/oauth-1-0a/pin-based-oauth"},{"title":"Creating a signature","sidebarTitle":"Creating a signature","href":"/fundamentals/authentication/oauth-1-0a/creating-a-signature"},{"title":"Percent encoding parameters","sidebarTitle":"Percent encoding parameters","href":"/fundamentals/authentication/oauth-1-0a/percent-encoding-parameters"}]},{"group":"OAuth 2.0","pages":[{"title":"OAuth 2.0","sidebarTitle":"Overview","href":"/fundamentals/authentication/oauth-2-0/overview"},{"title":"App only authentication and OAuth 2.0 Bearer Token","sidebarTitle":"OAuth 2.0 App-Only (Bearer Token)","href":"/fundamentals/authentication/oauth-2-0/application-only"},{"title":"Using and generating an app-only Bearer Token","sidebarTitle":"Generating and using app-only Bearer Tokens","href":"/fundamentals/authentication/oauth-2-0/bearer-tokens"},{"title":"OAuth 2.0 Authorization Code Flow with PKCE","sidebarTitle":"OAuth 2.0 Authorization Code Flow with PKCE","href":"/fundamentals/authentication/oauth-2-0/authorization-code"},{"title":"OAuth 2.0 Authorization Code Flow with PKCE","sidebarTitle":"OAuth 2.0 Making requests on behalf of users","href":"/fundamentals/authentication/oauth-2-0/user-access-token"},{"title":"Migrate from OAuth 1.0a to OAuth 2.0","sidebarTitle":"Migrating from OAuth 1.0a","href":"/fundamentals/authentication/oauth-2-0/oauth-1-0a-token-exchange"}]},{"title":"Basic authentication","sidebarTitle":"Basic authentication","href":"/fundamentals/authentication/basic-auth"},{"title":"OAuth FAQ","sidebarTitle":"FAQ","href":"/fundamentals/authentication/faq"},{"title":"OAuth API reference index","sidebarTitle":"API reference","href":"/fundamentals/authentication/api-reference"}]},{"title":"Counting Characters","sidebarTitle":"Counting Characters","icon":"text-size","href":"/fundamentals/counting-characters"},{"title":"Rate Limits","sidebarTitle":"Rate Limits","icon":"gauge-high","href":"/fundamentals/rate-limits"},{"title":"X IDs","sidebarTitle":"X IDs","icon":"fingerprint","href":"/fundamentals/x-ids"},{"title":"Security","sidebarTitle":"Security","icon":"shield-halved","href":"/fundamentals/security"}]},{"group":"Partners \u0026 Customers","pages":[{"title":"X Official Partner","sidebarTitle":"Partner Directory","href":"/enterprise/partner-directory"},{"title":"Enterprise data customers","sidebarTitle":"Customer Directory","href":"/enterprise/customer-directory"},{"title":"Success Stories","mode":"wide","href":"/success-stories"},{"group":"Request Access","pages":[{"title":"Enterprise Access Form","href":"/forms/enterprise-api-interest"},{"title":"Ads API Access Form","href":"/forms/ads-api-access"},{"title":"Livestream API Access Form","href":"/forms/livestream-api-access"},{"title":"Government End User Request Form","href":"/forms/government-end-user-request"}]}]},{"group":"Resources","pages":[{"title":"Tutorials","mode":"wide","icon":"link","href":"/tutorials"},{"title":"List your app on the Exhibit","sidebarTitle":"Exhibit","icon":"grid-2","href":"/exhibit"},{"title":"Subscribe to developer news","sidebarTitle":"Newsletter","mode":"wide","icon":"envelope","href":"/newsletter"},{"title":"X Developer Platform Livestreams","sidebarTitle":"Livestreams","mode":"wide","icon":"video","href":"/livestreams"},{"title":"Billing support form","sidebarTitle":"Billing Support","icon":"headset","href":"/forms/billing-support"},{"title":"Policies and agreements","sidebarTitle":"Developer Terms","mode":"wide","icon":"gavel","href":"/developer-terms"}]}]},{"tab":"API Reference","dropdowns":[{"dropdown":"General","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-brackets.svg","groups":[{"group":"Overview","pages":[{"title":"X API Overview","sidebarTitle":"Overview","icon":"house","mode":"wide","href":"/x-api/overview"},{"group":"Fundamentals","pages":[{"group":"Data Dictionary","icon":"/icons/xds/icon-book.svg","pages":[{"title":"X API v2 data dictionary: Post, User, Space fields","sidebarTitle":"Overview","href":"/x-api/fundamentals/data-dictionary"},{"title":"Data Dictionary Reference","sidebarTitle":"Reference","href":"/x-api/fundamentals/data-dictionary/reference"}]},{"title":"Fields","sidebarTitle":"Fields","href":"/x-api/fundamentals/fields"},{"title":"Expansions","sidebarTitle":"Expansions","href":"/x-api/fundamentals/expansions"},{"title":"Post Annotations","sidebarTitle":"Annotations","href":"/x-api/fundamentals/post-annotations"},{"title":"Metrics","sidebarTitle":"Metrics","href":"/x-api/fundamentals/metrics"},{"title":"Conversation ID","sidebarTitle":"Conversation ID","href":"/x-api/fundamentals/conversation-id"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/x-api/fundamentals/pagination"},{"title":"Versioning","sidebarTitle":"Versioning","href":"/x-api/fundamentals/versioning"},{"title":"API Consistency","sidebarTitle":"Consistency","href":"/x-api/fundamentals/consistency"},{"title":"X API Rate Limits","sidebarTitle":"Rate Limits","href":"/x-api/fundamentals/rate-limits"},{"title":"Usage and Billing","sidebarTitle":"Usage \u0026 Billing","href":"/x-api/fundamentals/post-cap"},{"title":"Edit Posts","sidebarTitle":"Edit Posts","href":"/x-api/fundamentals/edit-posts"},{"title":"Response Codes \u0026 Errors","sidebarTitle":"Response Codes","href":"/x-api/fundamentals/response-codes-and-errors"},{"group":"Streaming","pages":[{"title":"Consuming streaming data","sidebarTitle":"Consuming streaming data","href":"/x-api/fundamentals/consuming-streaming-data"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/fundamentals/handling-disconnections"},{"title":"Handling high-volume capacity","sidebarTitle":"High volume capacity","href":"/x-api/fundamentals/high-volume-capacity"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/fundamentals/recovery-and-redundancy"}]}]}]},{"group":"Posts","pages":[{"group":"Search","pages":[{"title":"Search Posts","sidebarTitle":"Introduction","href":"/x-api/posts/search/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Recent Search Quickstart","sidebarTitle":"Recent Search","href":"/x-api/posts/search/quickstart/recent-search"},{"title":"Full-Archive Search Quickstart","sidebarTitle":"Full-Archive Search","href":"/x-api/posts/search/quickstart/full-archive-search"}]},{"group":"Integration guide","pages":[{"title":"Integration Guide","sidebarTitle":"Overview","href":"/x-api/posts/search/integrate/overview"},{"title":"Build a query","sidebarTitle":"Build a query","href":"/x-api/posts/search/integrate/build-a-query"},{"title":"Search Operators","sidebarTitle":"Operators","href":"/x-api/posts/search/integrate/operators"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/x-api/posts/search/integrate/paginate"}]}]},{"openapi":"get /2/tweets/search/all","title":"Search Posts All","href":"/x-api/posts/search-all-posts"},{"openapi":"get /2/tweets/search/recent","title":"Search Posts Recent","href":"/x-api/posts/search-recent-posts"}]},{"group":"Post Counts","pages":[{"title":"Post Counts","sidebarTitle":"Introduction","href":"/x-api/posts/counts/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Recent Post Counts","sidebarTitle":"Recent Post Counts","href":"/x-api/posts/counts/quickstart/recent-tweet-counts"},{"title":"Full-Archive Post Counts","sidebarTitle":"Full-Archive Post Counts","href":"/x-api/posts/counts/quickstart/full-archive-tweet-counts"}]},{"group":"Integration guide","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/x-api/posts/counts/integrate/overview"},{"title":"Build a query","sidebarTitle":"Build a query","href":"/x-api/posts/counts/integrate/build-a-query"}]}]},{"openapi":"get /2/tweets/counts/all","title":"Get Posts Counts All","href":"/x-api/posts/get-count-of-all-posts"},{"openapi":"get /2/tweets/counts/recent","title":"Get Posts Counts Recent","href":"/x-api/posts/get-count-of-recent-posts"}]},{"group":"Filtered Stream","pages":[{"title":"Filtered Stream","sidebarTitle":"Introduction","href":"/x-api/posts/filtered-stream/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/filtered-stream/quickstart"},{"group":"Integration guide","pages":[{"title":"Build a rule","sidebarTitle":"Build a rule","href":"/x-api/posts/filtered-stream/integrate/build-a-rule"},{"title":"Filtered Stream Operators","sidebarTitle":"Operators","href":"/x-api/posts/filtered-stream/integrate/operators"},{"title":"Matching Posts to Rules","sidebarTitle":"Matching Posts to Rules","href":"/x-api/posts/filtered-stream/integrate/matching-returned-tweets"},{"title":"Consuming streaming data","sidebarTitle":"Consuming streaming data","href":"/x-api/fundamentals/consuming-streaming-data"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/fundamentals/handling-disconnections"},{"title":"Handling high-volume capacity","sidebarTitle":"High volume capacity","href":"/x-api/fundamentals/high-volume-capacity"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/fundamentals/recovery-and-redundancy"}]}]},{"openapi":"get /2/tweets/search/stream","title":"Stream filtered Posts","href":"/x-api/stream/stream-filtered-posts"},{"openapi":"get /2/tweets/search/stream/rules","title":"Get filtered-stream rules","href":"/x-api/stream/get-stream-rules"},{"openapi":"get /2/tweets/search/stream/rules/counts","title":"Get Rule Counts","href":"/x-api/stream/get-stream-rule-counts"},{"openapi":"post /2/tweets/search/stream/rules","title":"Update stream rules","href":"/x-api/stream/update-stream-rules"}]},{"group":"Timelines","pages":[{"title":"Timelines","sidebarTitle":"Introduction","href":"/x-api/posts/timelines/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Home Timeline Quickstart","sidebarTitle":"Home Timeline","href":"/x-api/posts/timelines/quickstart/reverse-chron-quickstart"},{"title":"User Mentions Timeline","sidebarTitle":"User Mentions","href":"/x-api/posts/timelines/quickstart/user-mention-quickstart"}]},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/posts/timelines/integrate"}]},{"openapi":"get /2/users/{id}/tweets","title":"Get Users Posts","href":"/x-api/users/get-posts"},{"openapi":"get /2/users/{id}/mentions","title":"Get Users Mentions","href":"/x-api/users/get-mentions"},{"openapi":"get /2/users/{id}/timelines/reverse_chronological","title":"Get Users Timeline","href":"/x-api/users/get-timeline"}]},{"group":"Post Lookup","pages":[{"title":"Post Lookup","sidebarTitle":"Introduction","href":"/x-api/posts/lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/lookup/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/posts/lookup/integrate"}]},{"openapi":"get /2/tweets","title":"Get Posts by IDs","href":"/x-api/posts/get-posts-by-ids"},{"openapi":"get /2/tweets/{id}","title":"Get Posts by ID","href":"/x-api/posts/get-post-by-id"}]},{"group":"Bookmarks","pages":[{"title":"Bookmarks","sidebarTitle":"Introduction","href":"/x-api/posts/bookmarks/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Bookmarks Lookup","sidebarTitle":"Bookmarks Lookup","href":"/x-api/posts/bookmarks/quickstart/bookmarks-lookup"},{"title":"Manage Bookmarks","sidebarTitle":"Manage Bookmarks","href":"/x-api/posts/bookmarks/quickstart/manage-bookmarks"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/bookmarks/integrate"}]},{"group":"Bookmark Folders","pages":[{"openapi":"get /2/users/{id}/bookmarks/folders","title":"Get Users Bookmark Folders","href":"/x-api/users/get-bookmark-folders"},{"openapi":"get /2/users/{id}/bookmarks/folders/{folder_id}","title":"Get Users Bookmarks by Folder ID","href":"/x-api/bookmarks/get-bookmarks-by-folder-id"}]},{"openapi":"get /2/users/{id}/bookmarks","title":"Get Users Bookmarks","href":"/x-api/users/get-bookmarks"},{"openapi":"post /2/users/{id}/bookmarks","title":"Create Bookmark","href":"/x-api/users/create-bookmark"},{"openapi":"delete /2/users/{id}/bookmarks/{tweet_id}","title":"Delete Bookmark","href":"/x-api/users/delete-bookmark"}]},{"group":"Manage Posts","pages":[{"title":"Manage Posts on the X API v2","sidebarTitle":"Introduction","href":"/x-api/posts/manage-tweets/introduction"},{"group":"Guides","pages":[{"title":"X API v2 manage Posts quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/manage-tweets/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/manage-tweets/integrate"}]},{"openapi":"post /2/tweets","title":"Create Posts","href":"/x-api/posts/create-post"},{"openapi":"delete /2/tweets/{id}","title":"Delete Posts","href":"/x-api/posts/delete-post"}]},{"group":"Reposts","pages":[{"title":"Retweets","sidebarTitle":"Introduction","href":"/x-api/posts/retweets/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Retweets Lookup","sidebarTitle":"Retweets Lookup","href":"/x-api/posts/retweets/quickstart/retweets-lookup"},{"title":"Manage Retweets","sidebarTitle":"Manage Retweets","href":"/x-api/posts/retweets/quickstart/manage-retweets"},{"title":"Retweets of Me","sidebarTitle":"Retweets of Me","href":"/x-api/posts/retweets/quickstart/retweets-of-me"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/retweets/integrate"}]},{"openapi":"get /2/tweets/{id}/retweeted_by","title":"Get Posts Reposted by","href":"/x-api/posts/get-reposted-by"},{"openapi":"post /2/users/{id}/retweets","title":"Repost Post","href":"/x-api/users/repost-post"},{"openapi":"delete /2/users/{id}/retweets/{source_tweet_id}","title":"Unrepost Post","href":"/x-api/users/unrepost-post"},{"openapi":"get /2/tweets/{id}/retweets","title":"Get Posts Reposts","href":"/x-api/posts/get-reposts"},{"openapi":"get /2/users/reposts_of_me","title":"Get Users Reposts of Me","href":"/x-api/users/get-reposts-of-me"}]},{"group":"Quotes","pages":[{"title":"Quote Posts","sidebarTitle":"Introduction","href":"/x-api/posts/quote-tweets/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/quote-tweets/quickstart"}]},{"openapi":"get /2/tweets/{id}/quote_tweets","title":"Get Posts Quoted Posts","href":"/x-api/posts/get-quoted-posts"}]},{"group":"Hide replies","pages":[{"title":"Hide Replies","sidebarTitle":"Introduction","href":"/x-api/posts/hide-replies/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/hide-replies/quickstart"},{"group":"Integration guide","pages":[{"title":"Manage replies by topic","sidebarTitle":"Manage replies by topic","href":"/x-api/posts/hide-replies/integrate/manage-replies-by-topic"},{"title":"Manage replies in real time with Grok","sidebarTitle":"Manage replies in real time","href":"/x-api/posts/hide-replies/integrate/manage-replies-in-realtime"}]}]},{"openapi":"put /2/tweets/{tweet_id}/hidden","title":"Hide reply","href":"/x-api/posts/hide-reply"}]}]},{"group":"Articles","pages":[{"title":"Articles endpoints for long-form Posts on the X API","sidebarTitle":"Introduction","href":"/x-api/articles/introduction"},{"openapi":"post /2/articles/draft","title":"Create draft Article","href":"/x-api/articles/create-draft-article"},{"openapi":"post /2/articles/{article_id}/publish","title":"Publish Article","href":"/x-api/articles/publish-article"}]},{"group":"Users","pages":[{"group":"User Lookup","pages":[{"title":"User Lookup","sidebarTitle":"Introduction","href":"/x-api/users/lookup/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"User Lookup Quickstart","sidebarTitle":"User Lookup","href":"/x-api/users/lookup/quickstart/user-lookup"},{"title":"Authenticated User Quickstart","sidebarTitle":"Authenticated User","href":"/x-api/users/lookup/quickstart/authenticated-lookup"}]},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/users/lookup/integrate"}]},{"openapi":"get /2/users/{id}","title":"Get Users by ID","href":"/x-api/users/get-user-by-id"},{"openapi":"get /2/users","title":"Get Users by IDs","href":"/x-api/users/get-users-by-ids"},{"openapi":"get /2/users/by","title":"Get Users by Usernames","href":"/x-api/users/get-users-by-usernames"},{"openapi":"get /2/users/by/username/{username}","title":"Get Users by Username","href":"/x-api/users/get-user-by-username"},{"openapi":"get /2/users/me","title":"Get Users Me","href":"/x-api/users/get-my-user"}]},{"group":"Search","pages":[{"title":"User Search","sidebarTitle":"Introduction","href":"/x-api/users/search/introduction"},{"openapi":"get /2/users/search","title":"Search Users","href":"/x-api/users/search-users"}]},{"group":"Follows","pages":[{"title":"Follows","sidebarTitle":"Introduction","href":"/x-api/users/follows/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/users/follows/quickstart"}]},{"openapi":"get /2/users/{id}/followers","title":"Get Users Followers","href":"/x-api/users/get-followers"},{"openapi":"get /2/users/{id}/following","title":"Get Users Following","href":"/x-api/users/get-following"},{"openapi":"post /2/users/{id}/following","title":"Follow User","href":"/x-api/users/follow-user"},{"openapi":"delete /2/users/{source_user_id}/following/{target_user_id}","title":"Unfollow User","href":"/x-api/users/unfollow-user"}]},{"group":"Mutes","pages":[{"title":"Mutes","sidebarTitle":"Introduction","href":"/x-api/users/mutes/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Manage Mutes","sidebarTitle":"Manage Mutes","href":"/x-api/users/mutes/quickstart/manage-mutes-quickstart"},{"title":"Mutes Lookup","sidebarTitle":"Mutes Lookup","href":"/x-api/users/mutes/quickstart/mutes-lookup"}]},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/users/mutes/integrate"}]},{"openapi":"post /2/users/{id}/muting","title":"Mute User","href":"/x-api/users/mute-user"},{"openapi":"delete /2/users/{source_user_id}/muting/{target_user_id}","title":"Unmute User","href":"/x-api/users/unmute-user"},{"openapi":"get /2/users/{id}/muting","title":"Get Users Muting","href":"/x-api/users/get-muting"}]},{"group":"Blocks","pages":[{"title":"Blocks","sidebarTitle":"Introduction","href":"/x-api/users/blocks/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/users/blocks/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/users/blocks/integrate"}]},{"openapi":"get /2/users/{id}/blocking","title":"Get blocked Users","href":"/x-api/users/get-blocking"}]},{"group":"Affiliates","pages":[{"openapi":"get /2/users/{id}/affiliates","title":"Get Users Affiliates","href":"/x-api/users/get-affiliates"}]}]},{"group":"Direct Messages","pages":[{"group":"Manage","pages":[{"title":"Manage Direct Messages","sidebarTitle":"Introduction","href":"/x-api/direct-messages/manage/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/direct-messages/manage/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/direct-messages/manage/integrate"}]},{"openapi":"post /2/dm_conversations","title":"Create DM conversation","href":"/x-api/direct-messages/create-dm-conversation"},{"openapi":"delete /2/dm_events/{event_id}","title":"Delete DM event","href":"/x-api/direct-messages/delete-dm-event"},{"openapi":"post /2/dm_conversations/with/{participant_id}/messages","title":"Create DM message by participant ID","href":"/x-api/direct-messages/create-dm-message-by-participant-id"},{"openapi":"post /2/dm_conversations/{dm_conversation_id}/messages","title":"Create Direct Messages by Conversation ID","href":"/x-api/direct-messages/create-dm-message-by-conversation-id"}]},{"group":"Lookup","pages":[{"title":"Direct Messages Lookup","sidebarTitle":"Introduction","href":"/x-api/direct-messages/lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/direct-messages/lookup/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/direct-messages/lookup/integrate"}]},{"openapi":"get /2/dm_conversations/with/{participant_id}/dm_events","title":"Get Direct Messages Events by Participant ID","href":"/x-api/direct-messages/get-dm-events-for-a-dm-conversation"},{"openapi":"get /2/dm_conversations/{id}/dm_events","title":"Get Direct Messages Events by Conversation ID","href":"/x-api/direct-messages/get-dm-events-for-a-dm-conversation-1"},{"openapi":"get /2/dm_events","title":"Get Direct Messages Events","href":"/x-api/direct-messages/get-dm-events"},{"openapi":"get /2/dm_events/{event_id}","title":"Get Direct Messages Events by ID","href":"/x-api/direct-messages/get-dm-event-by-id"},{"openapi":"get /2/dm_conversations/media/{dm_id}/{media_id}/{resource_id}","title":"Download DM Media","href":"/x-api/direct-messages/download-dm-media"}]},{"group":"Blocks","pages":[{"title":"Manage Direct Message blocks on the X API v2","sidebarTitle":"Introduction","href":"/x-api/direct-messages/blocks/introduction"},{"openapi":"post /2/users/{id}/dm/block","title":"Block Users Dms","href":"/x-api/users/block-dms"},{"openapi":"post /2/users/{id}/dm/unblock","title":"Unblock Users Dms","href":"/x-api/users/unblock-dms"}]}]},{"group":"Likes","pages":[{"title":"Likes","sidebarTitle":"Introduction","href":"/x-api/posts/likes/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Likes Lookup","sidebarTitle":"Likes Lookup","href":"/x-api/posts/likes/quickstart/likes-lookup"},{"title":"Manage Likes","sidebarTitle":"Manage Likes","href":"/x-api/posts/likes/quickstart/manage-likes"}]}]},{"openapi":"get /2/users/{id}/liked_tweets","title":"Get Users Liked Posts","href":"/x-api/users/get-liked-posts"},{"openapi":"get /2/tweets/{id}/liking_users","title":"Get Posts Liking Users","href":"/x-api/posts/get-liking-users"},{"openapi":"post /2/users/{id}/likes","title":"Like Post","href":"/x-api/users/like-post"},{"openapi":"delete /2/users/{id}/likes/{tweet_id}","title":"Unlike Post","href":"/x-api/users/unlike-post"}]},{"group":"Lists","pages":[{"group":"Lookup Lists","pages":[{"title":"List Lookup","sidebarTitle":"Introduction","href":"/x-api/lists/list-lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/lists/list-lookup/quickstart"},{"title":"Integration Guide","sidebarTitle":"Integration Guide","href":"/x-api/lists/list-lookup/integrate"}]},{"openapi":"get /2/lists/{id}","title":"Get Lists by ID","href":"/x-api/lists/get-list-by-id"},{"openapi":"get /2/users/{id}/followed_lists","title":"Get Users Followed Lists","href":"/x-api/users/get-followed-lists"},{"openapi":"get /2/users/{id}/owned_lists","title":"Get Users Owned Lists","href":"/x-api/users/get-owned-lists"}]},{"group":"Lookup List Posts","pages":[{"title":"List Posts","sidebarTitle":"Introduction","href":"/x-api/lists/list-tweets/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/lists/list-tweets/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/list-tweets/integrate"}]},{"openapi":"get /2/lists/{id}/tweets","title":"Get Lists Posts","href":"/x-api/lists/get-list-posts"}]},{"group":"Manage Lists","pages":[{"title":"Manage Lists","sidebarTitle":"Introduction","href":"/x-api/lists/manage-lists/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/lists/manage-lists/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/manage-lists/integrate"}]},{"openapi":"post /2/lists","title":"Create Lists","href":"/x-api/lists/create-list"},{"openapi":"put /2/lists/{id}","title":"Update List","href":"/x-api/lists/update-list"},{"openapi":"delete /2/lists/{id}","title":"Delete List","href":"/x-api/lists/delete-list"},{"openapi":"post /2/users/{id}/followed_lists","title":"Follow List","href":"/x-api/users/follow-list"},{"openapi":"delete /2/users/{id}/followed_lists/{list_id}","title":"Unfollow a List","href":"/x-api/users/unfollow-list"}]},{"group":"List Members","pages":[{"title":"List Members","sidebarTitle":"Introduction","href":"/x-api/lists/list-members/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"List Members Overview","sidebarTitle":"Overview","href":"/x-api/lists/list-members/quickstart/overview"},{"title":"List Members Lookup","sidebarTitle":"List Members Lookup","href":"/x-api/lists/list-members/quickstart/list-members-lookup"},{"title":"Manage List Members","sidebarTitle":"Manage List Members","href":"/x-api/lists/list-members/quickstart/manage-list-members"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/list-members/integrate"}]},{"group":"Manage","pages":[{"openapi":"post /2/lists/{id}/members","title":"Add Lists Member","href":"/x-api/lists/add-list-member"},{"openapi":"delete /2/lists/{id}/members/{user_id}","title":"Remove a List member","href":"/x-api/lists/remove-list-member"}]},{"group":"Lookup","pages":[{"openapi":"get /2/users/{id}/list_memberships","title":"Get Users List Memberships","href":"/x-api/users/get-list-memberships"},{"openapi":"get /2/lists/{id}/followers","title":"Get Lists Followers","href":"/x-api/lists/get-list-followers"},{"openapi":"get /2/lists/{id}/members","title":"Get Lists Members","href":"/x-api/lists/get-list-members"}]}]},{"group":"Pinned Lists","pages":[{"title":"Pinned Lists","sidebarTitle":"Introduction","href":"/x-api/lists/pinned-lists/introduction"},{"group":"Guides","pages":[{"group":"Quickstart","pages":[{"title":"Pinned Lists Overview","sidebarTitle":"Overview","href":"/x-api/lists/pinned-lists/quickstart/overview"},{"title":"Pinned Lists Lookup","sidebarTitle":"Pinned Lists Lookup","href":"/x-api/lists/pinned-lists/quickstart/pinned-list-lookup"},{"title":"Manage Pinned Lists","sidebarTitle":"Manage Pinned Lists","href":"/x-api/lists/pinned-lists/quickstart/manage-pinned-lists"}]},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/lists/pinned-lists/integrate"}]},{"openapi":"get /2/users/{id}/pinned_lists","title":"Get Users Pinned Lists","href":"/x-api/users/get-pinned-lists"},{"openapi":"post /2/users/{id}/pinned_lists","title":"Pin List","href":"/x-api/users/pin-list"},{"openapi":"delete /2/users/{id}/pinned_lists/{list_id}","title":"Unpin a List","href":"/x-api/users/unpin-list"}]}]},{"group":"Spaces","pages":[{"title":"Spaces endpoints on the X API v2","sidebarTitle":"Introduction","href":"/x-api/spaces/introduction"},{"group":"Spaces Lookup","pages":[{"title":"Spaces Lookup","sidebarTitle":"Introduction","href":"/x-api/spaces/lookup/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/spaces/lookup/quickstart"}]},{"openapi":"get /2/spaces","title":"Get Spaces by IDs","href":"/x-api/spaces/get-spaces-by-ids"},{"openapi":"get /2/spaces/by/creator_ids","title":"Get Spaces by Creator IDs","href":"/x-api/spaces/get-spaces-by-creator-ids"},{"openapi":"get /2/spaces/{id}","title":"Get Spaces by ID","href":"/x-api/spaces/get-space-by-id"},{"openapi":"get /2/spaces/{id}/tweets","title":"Get Space Posts","href":"/x-api/spaces/get-space-posts"},{"openapi":"get /2/spaces/{id}/buyers","title":"Get Space ticket buyers","href":"/x-api/spaces/get-space-ticket-buyers"}]},{"group":"Search Spaces","pages":[{"title":"Spaces Search","sidebarTitle":"Introduction","href":"/x-api/spaces/search/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/spaces/search/quickstart"}]},{"openapi":"get /2/spaces/search","title":"Search Spaces","href":"/x-api/spaces/search-spaces"}]}]},{"group":"Communities","pages":[{"group":"Communities Lookup","pages":[{"title":"Communities Lookup","sidebarTitle":"Introduction","href":"/x-api/communities/lookup/introduction"},{"openapi":"get /2/communities/{id}","title":"Get Communities by ID","href":"/x-api/communities/get-community-by-id"}]},{"group":"Search Communities","pages":[{"title":"Communities Search","sidebarTitle":"Introduction","href":"/x-api/communities/search/introduction"},{"openapi":"get /2/communities/search","title":"Search Communities","href":"/x-api/communities/search-communities"}]}]},{"group":"Community Notes","pages":[{"title":"Community Notes API for X API v2","href":"/x-api/community-notes/introduction"},{"title":"Community Notes API quickstart for X API v2","sidebarTitle":"Quickstart","href":"/x-api/community-notes/quickstart"},{"openapi":"get /2/notes/search/posts_eligible_for_notes","title":"Search Eligible Posts","href":"/x-api/community-notes/search-for-posts-eligible-for-community-notes"},{"openapi":"get /2/notes/search/notes_written","title":"Search Community Notes Written","href":"/x-api/community-notes/search-for-community-notes-written"},{"openapi":"post /2/notes","title":"Create Community Notes","href":"/x-api/community-notes/create-a-community-note"},{"openapi":"delete /2/notes/{id}","title":"Delete a Community Note","href":"/x-api/community-notes/delete-a-community-note"},{"openapi":"post /2/notes/evaluate","title":"Evaluate Community Notes","href":"/x-api/community-notes/evaluate-a-community-note"}]},{"group":"Trends","pages":[{"group":"Trends","pages":[{"title":"Trends by WOEID","sidebarTitle":"Introduction","href":"/x-api/trends/trends-by-woeid/introduction"},{"openapi":"get /2/trends/by/woeid/{woeid}","title":"Get Trends by Woeid","href":"/x-api/trends/get-trends-by-woeid"}]},{"group":"Personalized Trends","pages":[{"title":"Personalized Trends","sidebarTitle":"Introduction","href":"/x-api/trends/personalized-trends/introduction"},{"openapi":"get /2/users/personalized_trends","title":"Get Trends Personalized Trends","href":"/x-api/trends/get-personalized-trends"}]}]},{"group":"News","pages":[{"title":"News lookup endpoint on the X API v2","sidebarTitle":"Introduction","href":"/x-api/news/introduction"},{"openapi":"get /2/news/{id}","title":"Get news stories by ID","href":"/x-api/news/get-news-stories-by-id"},{"openapi":"get /2/news/search","title":"Search News","href":"/x-api/news/search-news"}]},{"group":"Media","pages":[{"title":"Media upload endpoints on the X API v2","sidebarTitle":"Introduction","href":"/x-api/media/introduction"},{"group":"Upload","pages":[{"group":"Guides","pages":[{"title":"Best practices","sidebarTitle":"Best practices","href":"/x-api/media/quickstart/best-practices"},{"title":"Chunked Media Upload","sidebarTitle":"Quickstart","href":"/x-api/media/quickstart/media-upload-chunked"}]},{"openapi":"post /2/media/upload","title":"Upload media","href":"/x-api/media/upload-media"},{"openapi":"post /2/media/upload/initialize","title":"Initialize media upload","href":"/x-api/media/initialize-media-upload"},{"openapi":"post /2/media/upload/{id}/append","title":"Append Media Upload","href":"/x-api/media/append-media-upload"},{"openapi":"post /2/media/upload/{id}/finalize","title":"Finalize Media upload","href":"/x-api/media/finalize-media-upload"},{"openapi":"get /2/media/upload","title":"Get Media upload status","href":"/x-api/media/get-media-upload-status"}]},{"group":"Metadata","pages":[{"openapi":"post /2/media/metadata","title":"Create Media metadata","href":"/x-api/media/create-media-metadata"},{"openapi":"post /2/media/subtitles","title":"Create Media subtitles","href":"/x-api/media/create-media-subtitles"},{"openapi":"delete /2/media/subtitles","title":"Delete Media subtitles","href":"/x-api/media/delete-media-subtitles"}]}]},{"group":"X Activity","pages":[{"title":"X Activity API","sidebarTitle":"Introduction","href":"/x-api/activity/introduction"},{"title":"X Activity API quickstart guide for streaming events","sidebarTitle":"Quickstart","href":"/x-api/activity/quickstart"},{"title":"X Activity API event payload examples","sidebarTitle":"Event payloads","href":"/x-api/activity/event-payloads"},{"title":"X Activity API event pricing","sidebarTitle":"Event Pricing","href":"/x-api/activity/event-pricing"},{"openapi":"get /2/activity/stream","title":"Activity Stream","href":"/x-api/activity/activity-stream"},{"openapi":"post /2/activity/subscriptions","title":"Create X activity subscription","href":"/x-api/activity/create-x-activity-subscription"},{"openapi":"delete /2/activity/subscriptions/{subscription_id}","title":"Deletes X activity subscription","href":"/x-api/activity/deletes-x-activity-subscription"},{"openapi":"delete /2/activity/subscriptions","title":"Delete X activity subscriptions by IDs","href":"/x-api/activity/delete-x-activity-subscriptions-by-ids"},{"openapi":"get /2/activity/subscriptions","title":"Get X activity subscriptions","href":"/x-api/activity/get-x-activity-subscriptions"},{"openapi":"put /2/activity/subscriptions/{subscription_id}","title":"Update X activity subscription","href":"/x-api/activity/update-x-activity-subscription"}]},{"group":"Usage","pages":[{"title":"Usage","sidebarTitle":"Introduction","href":"/x-api/usage/introduction"},{"openapi":"get /2/usage/tweets","title":"Get Usage","href":"/x-api/usage/get-usage"},{"openapi":"get /2/usage/credits","title":"Get usage credits","href":"/x-api/usage/get-usage-credits"}]},{"group":"Stream Connections","pages":[{"title":"Stream Connections","sidebarTitle":"Introduction","href":"/x-api/connections/introduction"},{"openapi":"get /2/connections","title":"Get Connection History","href":"/x-api/connections/get-connection-history"},{"openapi":"delete /2/connections/{endpoint_id}","title":"Terminate connections by endpoint","href":"/x-api/connections/terminate-connections-by-endpoint"},{"openapi":"delete /2/connections","title":"Terminate multiple connections","href":"/x-api/connections/terminate-multiple-connections"},{"openapi":"delete /2/connections/all","title":"Terminate all connections","href":"/x-api/connections/terminate-all-connections"}]},{"group":"Compliance","pages":[{"group":"Batch Compliance","pages":[{"title":"Batch Compliance","sidebarTitle":"Introduction","href":"/x-api/compliance/batch-compliance/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/compliance/batch-compliance/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/compliance/batch-compliance/integrate"}]},{"openapi":"get /2/compliance/jobs","title":"Get Compliance Jobs","href":"/x-api/compliance/get-compliance-jobs"},{"openapi":"post /2/compliance/jobs","title":"Create Compliance Job","href":"/x-api/compliance/create-compliance-job"},{"openapi":"get /2/compliance/jobs/{id}","title":"Get Compliance Job by ID","href":"/x-api/compliance/get-compliance-job-by-id"}]},{"group":"Compliance streams","pages":[{"title":"Compliance event streams on the X API v2","sidebarTitle":"Introduction","href":"/x-api/compliance/streams/introduction"},{"openapi":"get /2/likes/compliance/stream","title":"Stream Likes compliance data","href":"/x-api/stream/stream-likes-compliance-data"},{"openapi":"get /2/tweets/compliance/stream","title":"Stream Posts compliance data","href":"/x-api/stream/stream-posts-compliance-data"},{"openapi":"get /2/users/compliance/stream","title":"Stream Users compliance data","href":"/x-api/stream/stream-users-compliance-data"}]}]},{"group":"Webhooks","pages":[{"title":"V2 Webhooks API","sidebarTitle":"Introduction","href":"/x-api/webhooks/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/webhooks/quickstart"},{"openapi":"post /2/webhooks","title":"Create webhook","href":"/x-api/webhooks/create-webhook"},{"openapi":"delete /2/webhooks/{webhook_id}","title":"Delete webhook","href":"/x-api/webhooks/delete-webhook"},{"openapi":"get /2/webhooks","title":"Get webhook","href":"/x-api/webhooks/get-webhook"},{"openapi":"put /2/webhooks/{webhook_id}","title":"Validate webhook","href":"/x-api/webhooks/validate-webhook"},{"openapi":"post /2/webhooks/replay","title":"Create replay job for webhook","href":"/x-api/webhooks/create-replay-job-for-webhook"}]}]},{"dropdown":"Enterprise","icon":"https://mintlify.s3.us-west-1.amazonaws.com/x-preview/icons/xds/icon-bank.svg","groups":[{"group":"Analytics","pages":[{"openapi":"get /2/tweets/analytics","title":"Get Posts Analytics","href":"/x-api/posts/get-post-analytics"},{"openapi":"get /2/media/analytics","title":"Get Media analytics","href":"/x-api/media/get-media-analytics"}]},{"group":"Blocks","pages":[{"openapi":"post /2/users/{id}/blocking","title":"Block User","href":"/x-api/users/block-user"},{"openapi":"delete /2/users/{source_user_id}/blocking/{target_user_id}","title":"Unblock User","href":"/x-api/users/unblock-user"}]},{"group":"Volume Streams","pages":[{"title":"Volume streams (1% sampled and Decahose) on the X API v2","sidebarTitle":"Introduction","href":"/x-api/posts/volume-streams/introduction"},{"openapi":"get /2/tweets/firehose/stream","title":"Stream all Posts","href":"/x-api/stream/stream-all-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/en","title":"Stream English Posts","href":"/x-api/stream/stream-english-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/ja","title":"Stream Japanese Posts","href":"/x-api/stream/stream-japanese-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/ko","title":"Stream Korean Posts","href":"/x-api/stream/stream-korean-posts"},{"openapi":"get /2/tweets/firehose/stream/lang/pt","title":"Stream Portuguese Posts","href":"/x-api/stream/stream-portuguese-posts"},{"openapi":"get /2/tweets/sample/stream","title":"Stream sampled Posts","href":"/x-api/stream/stream-sampled-posts"},{"openapi":"get /2/tweets/sample10/stream","title":"Stream 10% sampled Posts","href":"/x-api/stream/stream-10-sampled-posts"}]},{"group":"Likes Streams","pages":[{"title":"Likes Streams","sidebarTitle":"Introduction","href":"/x-api/stream/likes-streams-introduction"},{"openapi":"get /2/likes/firehose/stream","title":"Stream all Likes","href":"/x-api/stream/stream-all-likes"},{"openapi":"get /2/likes/sample10/stream","title":"Stream sampled Likes","href":"/x-api/stream/stream-sampled-likes"}]},{"group":"Powerstream","pages":[{"title":"Powerstream low-latency streaming API on the X API v2","sidebarTitle":"Introduction","href":"/x-api/powerstream/introduction"},{"title":"Powerstream Operators","sidebarTitle":"Operators","href":"/x-api/powerstream/operators"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/powerstream/handling-disconnections"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/powerstream/recovery-and-redundancy"}]},{"group":"Account Activity","pages":[{"title":"Account Activity API v2 introduction and overview","sidebarTitle":"Introduction","tag":"DEPRECATED","href":"/x-api/account-activity/introduction"},{"title":"Account Activity API quickstart guide","sidebarTitle":"Quickstart","tag":"DEPRECATED","href":"/x-api/account-activity/quickstart"},{"group":"Migration guide","pages":[{"title":"Account Activity API v2 migration guide","tag":"DEPRECATED","href":"/x-api/account-activity/migrate/overview"},{"title":"Migrate from the Account Activity API to the X Activity API","sidebarTitle":"AAA to XAA migration","href":"/x-api/account-activity/migrate/aaa-to-xaa-migration"}]},{"openapi":"post /2/account_activity/webhooks/{webhook_id}/subscriptions/all","title":"Create subscription","href":"/x-api/account-activity/create-subscription"},{"openapi":"get /2/account_activity/webhooks/{webhook_id}/subscriptions/all","title":"Validate Account Activity Subscription","href":"/x-api/account-activity/validate-subscription"},{"openapi":"delete /2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all","title":"Delete subscription","href":"/x-api/account-activity/delete-subscription"},{"openapi":"get /2/account_activity/webhooks/{webhook_id}/subscriptions/all/list","title":"Get Account Activity Subscriptions","href":"/x-api/account-activity/get-subscriptions"},{"openapi":"get /2/account_activity/subscriptions/count","title":"Get Account Activity Subscription Count","href":"/x-api/account-activity/get-subscription-count"},{"openapi":"post /2/account_activity/replay/webhooks/{webhook_id}/subscriptions/all","title":"Create Account Activity replay job","tag":"DEPRECATED","href":"/x-api/account-activity/create-replay-job"}]},{"group":"Filtered Stream Webhooks","pages":[{"title":"Filtered Stream Webhooks API","sidebarTitle":"Introduction","href":"/x-api/webhooks/stream/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/webhooks/stream/quickstart"},{"openapi":"post /2/tweets/search/webhooks/{webhook_id}","title":"Create stream link","href":"/x-api/webhooks/create-stream-link"},{"openapi":"delete /2/tweets/search/webhooks/{webhook_id}","title":"Delete stream link","href":"/x-api/webhooks/delete-stream-link"},{"openapi":"get /2/tweets/search/webhooks","title":"Get stream links","href":"/x-api/webhooks/get-stream-links"}]}]}]},{"tab":"Changelog","groups":[{"group":"Changelog","pages":[{"title":"X API changelog and release notes","sidebarTitle":"Overview","href":"/changelog"}]}]}]},{"product":"Chat API","tabs":[{"tab":"Documentation","groups":[{"group":"Start here","pages":[{"title":"Send encrypted direct messages with the X Chat API","sidebarTitle":"Introduction","href":"/xchat/introduction"},{"title":"How X Chat keeps your messages secure","sidebarTitle":"Cryptography Primer","href":"/xchat/cryptography-primer"},{"title":"Get started: send your first encrypted message","sidebarTitle":"Getting Started","href":"/xchat/getting-started"},{"title":"Chat XDK: the encryption toolkit for X Chat","sidebarTitle":"Chat XDK","href":"/xchat/xchat-xdk"}]},{"group":"Guides","pages":[{"title":"Send images and files in X Chat","sidebarTitle":"Media","href":"/xchat/media"},{"title":"Create encrypted group conversations in X Chat","sidebarTitle":"Groups","href":"/xchat/groups"},{"title":"Manage bot accounts with the Chat API","sidebarTitle":"Bots","href":"/xchat/bots"},{"title":"Get new X Chat messages as they arrive","sidebarTitle":"Real-Time Events","href":"/xchat/real-time-events"},{"title":"Fix common X Chat problems","sidebarTitle":"Troubleshooting","href":"/xchat/troubleshooting"}]},{"group":"Security practices","pages":[{"title":"Build X Chat UI apps with WASM so private keys never leave the browser","sidebarTitle":"Building UI apps with WASM","href":"/xchat/building-ui-apps-with-wasm"},{"title":"Best practices for handling X Chat private keys and PINs","sidebarTitle":"Handling private keys","href":"/xchat/handling-private-keys"}]},{"group":"API reference","pages":[{"group":"Conversations and messages","expanded":true,"pages":[{"openapi":"get /2/chat/conversations","title":"Get Chat Conversations, newest first. All filters must match (AND). A page can hold fewer than max_results while meta.next_token is set: keep paging. Read state: chat_conversation.fields=unread,last_read_event_id,newest_event_id","href":"/x-api/chat/get-chat-conversations"},{"openapi":"get /2/chat/conversations/{id}","title":"Get Chat Conversation; unread state via chat_conversation.fields=unread,last_read_event_id,newest_event_id","href":"/x-api/chat/get-chat-conversation"},{"openapi":"post /2/chat/conversations/group","title":"Create Chat Group Conversation","href":"/x-api/chat/create-chat-group-conversation"},{"openapi":"post /2/chat/conversations/group/initialize","title":"Initialize Chat Group","href":"/x-api/chat/initialize-chat-group"},{"openapi":"post /2/chat/conversations/{id}/keys","title":"Add Conversation Keys","href":"/x-api/chat/add-conversation-keys"},{"openapi":"get /2/chat/conversations/{id}/events","title":"Get Chat Conversation Events, newest first; unread ones have an id above last_read_event_id","href":"/x-api/chat/get-chat-conversation-events"},{"openapi":"post /2/chat/conversations/{id}/messages","title":"Send Chat Message","href":"/x-api/chat/send-chat-message"},{"openapi":"post /2/chat/conversations/{id}/messages/delete","title":"Delete Chat messages","href":"/x-api/chat/delete-chat-messages"},{"openapi":"post /2/chat/conversations/{id}/typing","title":"Send Typing Indicator","href":"/x-api/chat/send-typing-indicator"},{"openapi":"post /2/chat/conversations/{id}/read","title":"Mark Conversation as Read","href":"/x-api/chat/mark-conversation-as-read"},{"openapi":"get /2/chat/conversations/{id}/pinned_messages","title":"Get Chat Conversation Pinned Messages","href":"/x-api/chat/get-chat-conversation-pinned-messages"},{"openapi":"delete /2/chat/conversations/{id}","title":"Delete a Chat conversation","href":"/x-api/chat/delete-a-chat-conversation"},{"openapi":"get /2/chat/message_requests","title":"Get Chat Message Requests","href":"/x-api/chat/get-chat-message-requests"},{"openapi":"get /2/chat/message_requests/{id}","title":"Get Chat Message Request","href":"/x-api/chat/get-chat-message-request"},{"openapi":"post /2/chat/message_requests/{id}/accept","title":"Accept a Chat message request","href":"/x-api/chat/accept-a-chat-message-request"}]},{"group":"Conversation settings","expanded":true,"pages":[{"openapi":"post /2/chat/conversations/{id}/mute","title":"Mute a Chat conversation","href":"/x-api/chat/mute-a-chat-conversation"},{"openapi":"delete /2/chat/conversations/{id}/mute","title":"Unmute a Chat conversation","href":"/x-api/chat/unmute-a-chat-conversation"},{"openapi":"put /2/chat/conversations/{id}/message_ttl","title":"Turn on disappearing messages in a Chat conversation","href":"/x-api/chat/turn-on-disappearing-messages-in-a-chat-conversation"},{"openapi":"delete /2/chat/conversations/{id}/message_ttl","title":"Turn off disappearing messages in a Chat conversation","href":"/x-api/chat/turn-off-disappearing-messages-in-a-chat-conversation"},{"openapi":"put /2/chat/conversations/{id}/screen_capture","title":"Update screen capture settings for a Chat conversation","href":"/x-api/chat/update-screen-capture-settings-for-a-chat-conversation"}]},{"group":"Groups","expanded":true,"pages":[{"openapi":"put /2/chat/conversations/{id}","title":"Update a Chat group conversation","href":"/x-api/chat/update-a-chat-group-conversation"},{"openapi":"post /2/chat/conversations/{id}/members","title":"Add members to a Chat group conversation","href":"/x-api/chat/add-members-to-a-chat-group-conversation"},{"openapi":"post /2/chat/conversations/{id}/members/remove","title":"Remove members from a Chat group conversation","href":"/x-api/chat/remove-members-from-a-chat-group-conversation"}]},{"group":"Group admins","expanded":true,"pages":[{"openapi":"post /2/chat/conversations/{id}/admins","title":"Add admins to a Chat group conversation","href":"/x-api/chat/add-admins-to-a-chat-group-conversation"},{"openapi":"post /2/chat/conversations/{id}/admins/remove","title":"Remove admins from a Chat group conversation","href":"/x-api/chat/remove-admins-from-a-chat-group-conversation"},{"openapi":"put /2/chat/conversations/{id}/admin_settings","title":"Update the admin-only settings of a Chat group conversation","href":"/x-api/chat/update-the-admin-only-settings-of-a-chat-group-conversation"},{"openapi":"get /2/chat/conversations/{id}/admin_requests","title":"Get pending admin requests for a Chat group conversation","href":"/x-api/chat/get-pending-admin-requests-for-a-chat-group-conversation"},{"openapi":"post /2/chat/conversations/{id}/admin_requests","title":"Request admin permissions in a Chat group conversation","href":"/x-api/chat/request-admin-permissions-in-a-chat-group-conversation"},{"openapi":"post /2/chat/conversations/{id}/admin_requests/{user_id}/approve","title":"Approve an admin request in a Chat group conversation","href":"/x-api/chat/approve-an-admin-request-in-a-chat-group-conversation"},{"openapi":"post /2/chat/conversations/{id}/admin_requests/{user_id}/reject","title":"Reject an admin request in a Chat group conversation","href":"/x-api/chat/reject-an-admin-request-in-a-chat-group-conversation"}]},{"group":"Group invites and join requests","expanded":true,"pages":[{"openapi":"post /2/chat/conversations/{id}/invite","title":"Enable a Chat group invite link","href":"/x-api/chat/enable-a-chat-group-invite-link"},{"openapi":"delete /2/chat/conversations/{id}/invite","title":"Disable a Chat group invite link","href":"/x-api/chat/disable-a-chat-group-invite-link"},{"openapi":"get /2/chat/conversations/{id}/invites/{token}","title":"Get a Chat group invite link","href":"/x-api/chat/get-a-chat-group-invite-link"},{"openapi":"post /2/chat/conversations/{id}/join_requests","title":"Request to join a Chat group","href":"/x-api/chat/request-to-join-a-chat-group"},{"openapi":"post /2/chat/conversations/{id}/join_requests/reject","title":"Reject join requests for a Chat group conversation","href":"/x-api/chat/reject-join-requests-for-a-chat-group-conversation"}]},{"group":"Encryption keys","expanded":true,"pages":[{"openapi":"post /2/users/{id}/public_keys","title":"Add public key","href":"/x-api/chat/add-public-key"},{"openapi":"get /2/users/{id}/public_keys","title":"Get public keys","href":"/x-api/chat/get-user-public-keys"},{"openapi":"get /2/users/public_keys","title":"Get public keys","href":"/x-api/users/get-public-keys-for-multiple-users"}]},{"group":"Media","expanded":true,"pages":[{"openapi":"post /2/chat/media/upload/initialize","title":"Initialize Chat Media Upload","href":"/x-api/chat/initialize-chat-media-upload"},{"openapi":"post /2/chat/media/upload/{id}/append","title":"Append Chat Media Upload","href":"/x-api/chat/append-chat-media-upload"},{"openapi":"post /2/chat/media/upload/{id}/finalize","title":"Finalize Chat Media Upload","href":"/x-api/chat/finalize-chat-media-upload"},{"openapi":"get /2/chat/media/{id}/{media_hash_key}","title":"Download Chat Media","href":"/x-api/chat/download-chat-media"}]},{"group":"Bots","expanded":true,"pages":[{"openapi":"post /2/bots","title":"Create a bot","href":"/x-api/bots/create-a-bot"},{"openapi":"get /2/bots","title":"Get Bots","href":"/x-api/bots/get-bots"},{"openapi":"put /2/bots/{id}","title":"Update Bot","href":"/x-api/bots/update-bot"},{"openapi":"delete /2/bots/{id}","title":"Delete Bot","href":"/x-api/bots/delete-bot"},{"openapi":"post /2/bots/{id}/token","title":"Rotate Bot Token","href":"/x-api/bots/rotate-bot-token"},{"openapi":"delete /2/bots/{id}/token","title":"Revoke Bot Token","href":"/x-api/bots/revoke-bot-token"}]},{"group":"Privacy settings","expanded":true,"pages":[{"openapi":"get /2/chat/settings","title":"Get Chat settings","href":"/x-api/chat/get-chat-settings"},{"openapi":"put /2/chat/settings","title":"Update Chat settings","href":"/x-api/chat/update-chat-settings"}]}]}]}]},{"product":"Ads API","tabs":[{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/x-ads-api/introduction"},{"group":"Getting Started","pages":[{"title":"Step-by-step guide","href":"/x-ads-api/getting-started/step-by-step-guide"},{"title":"Increasing access","href":"/x-ads-api/getting-started/increasing-access"}]}]},{"group":"Fundamentals","pages":[{"title":"Ads API hierarchy and terminology","href":"/x-ads-api/fundamentals/hierarchy-and-terminology"},{"title":"Accessing Ads accounts","href":"/x-ads-api/fundamentals/accessing-ads-accounts"},{"title":"Making Authenticated Requests","href":"/x-ads-api/fundamentals/making-authenticated-requests"},{"title":"Error codes and responses","href":"/x-ads-api/fundamentals/error-codes-and-responses"},{"title":"Rate limiting","href":"/x-ads-api/fundamentals/rate-limiting"},{"title":"Pagination","href":"/x-ads-api/fundamentals/pagination"},{"title":"Sorting","href":"/x-ads-api/fundamentals/sorting"},{"title":"Versions","href":"/x-ads-api/fundamentals/versioning"},{"title":"Timezones","href":"/x-ads-api/fundamentals/timezones"},{"title":"Currency","href":"/x-ads-api/fundamentals/currency"},{"title":"Sandbox","href":"/x-ads-api/fundamentals/sandbox"}]},{"group":"Resources","pages":[{"group":"Tools \u0026 Libraries","icon":"/icons/xds/icon-wrench.svg","pages":[{"title":"Tools and libraries","href":"/x-ads-api/tools-and-libraries"}]},{"group":"X Ads MCP","icon":"/icons/xds/icon-ai-agents.svg","pages":[{"title":"X Ads MCP","sidebarTitle":"Overview","href":"/x-ads-api/mcp"},{"title":"X Ads MCP API Reference","sidebarTitle":"API Reference","href":"/x-ads-api/mcp/reference"}]},{"group":"Analytics","icon":"/icons/xds/icon-bar-chart.svg","pages":[{"title":"Analytics","sidebarTitle":"Overview","href":"/x-ads-api/analytics"}]},{"group":"Audiences","icon":"/icons/xds/icon-people.svg","pages":[{"title":"Audiences","sidebarTitle":"Overview","href":"/x-ads-api/audiences"},{"title":"Audiences API Reference","sidebarTitle":"API Reference","href":"/x-ads-api/audiences/reference"}]},{"group":"Campaign Management","icon":"/icons/xds/icon-megaphone.svg","pages":[{"title":"Campaign Management","sidebarTitle":"Overview","href":"/x-ads-api/campaign-management"},{"title":"Campaign Management API Reference","sidebarTitle":"API Reference","href":"/x-ads-api/campaign-management/reference"},{"group":"Guides","pages":[{"title":"Creating a DPA Campaign - Step-by-Step","href":"/x-ads-api/guides/create-a-dpa-campaign"}]}]},{"group":"Catalog Management","icon":"/icons/xds/icon-lists.svg","pages":[{"title":"Catalog Management","sidebarTitle":"Overview","href":"/x-ads-api/catalog-management"},{"title":"Catalog Management API Reference","sidebarTitle":"API Reference","href":"/x-ads-api/catalog-management/reference"}]},{"group":"Creatives","icon":"/icons/xds/icon-photo.svg","pages":[{"title":"Creatives","sidebarTitle":"Overview","href":"/x-ads-api/creatives"},{"title":"Creatives API Reference","sidebarTitle":"API Reference","href":"/x-ads-api/creatives/reference"}]},{"group":"Lead Generation","icon":"/icons/xds/icon-clipboard.svg","pages":[{"title":"Lead Generation","sidebarTitle":"Overview","href":"/x-ads-api/lead-generation"},{"title":"Lead Generation API Reference","sidebarTitle":"API Reference","href":"/x-ads-api/lead-generation/reference"}]}]},{"group":"Measurement","pages":[{"title":"Mobile Conversions","href":"/x-ads-api/measurement/mobile-conversions"},{"title":"Web conversions","href":"/x-ads-api/measurement/web-conversions"},{"title":"Set up the Conversion API with Google Tag Manager","sidebarTitle":"GTM server-side","href":"/x-ads-api/measurement/gtm-server-side"},{"title":"AB Testing","href":"/x-ads-api/measurement/ab-testing"}]}]}]},{"product":"Livestream API","tabs":[{"tab":"Documentation","groups":[{"group":"Overview","pages":[{"title":"Livestream API","sidebarTitle":"Introduction","href":"/livestream-api/introduction"},{"title":"Getting Started","sidebarTitle":"Getting Started","href":"/livestream-api/getting-started"},{"title":"Typical Workflow","sidebarTitle":"Typical Workflow","href":"/livestream-api/typical-workflow"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/livestream-api/authentication"}]},{"group":"Stream Sources","pages":[{"title":"Stream Source Management","sidebarTitle":"Overview","href":"/livestream-api/sources/overview"},{"title":"Get Recommended Region","sidebarTitle":"Get Recommended Region","href":"/livestream-api/sources/get-recommended-region"},{"title":"Create Stream Source","sidebarTitle":"Create Stream Source","href":"/livestream-api/sources/create-source"},{"title":"List Stream Sources","sidebarTitle":"List Stream Sources","href":"/livestream-api/sources/list-sources"},{"title":"Get Stream Source","sidebarTitle":"Get Stream Source","href":"/livestream-api/sources/get-source"},{"title":"Update Stream Source","sidebarTitle":"Update Stream Source","href":"/livestream-api/sources/update-source"},{"title":"Delete Stream Source","sidebarTitle":"Delete Stream Source","href":"/livestream-api/sources/delete-source"}]},{"group":"Broadcasts","pages":[{"title":"Broadcast Lifecycle","sidebarTitle":"Overview","href":"/livestream-api/broadcasts/overview"},{"title":"Create Broadcast","sidebarTitle":"Create Broadcast","href":"/livestream-api/broadcasts/create-broadcast"},{"title":"List Broadcasts","sidebarTitle":"List Broadcasts","tag":"DEPRECATED","href":"/livestream-api/broadcasts/list-broadcasts"},{"title":"Get Broadcasts","sidebarTitle":"Get Broadcasts","openapi":"get /2/broadcasts","href":"/livestream-api/broadcasts/get-broadcasts"},{"title":"Publish (Go Live) or End a Broadcast","sidebarTitle":"Publish or End Broadcast","href":"/livestream-api/broadcasts/publish-or-end-broadcast"},{"title":"Delete Broadcast","sidebarTitle":"Delete Broadcast","href":"/livestream-api/broadcasts/delete-broadcast"},{"title":"Get Broadcast","sidebarTitle":"Get Broadcast","tag":"DEPRECATED","href":"/livestream-api/broadcasts/get-broadcast"},{"title":"Get Broadcast by ID","sidebarTitle":"Get Broadcast by ID","openapi":"get /2/broadcasts/{id}","href":"/livestream-api/broadcasts/get-broadcast-by-id"}]},{"group":"Scheduled Broadcasts","pages":[{"title":"Livestream Scheduling API","sidebarTitle":"Overview","href":"/livestream-api/scheduled-broadcasts/overview"},{"title":"Create a Scheduled Broadcast","sidebarTitle":"Create Scheduled Broadcast","openapi":"post /2/broadcasts/scheduled","href":"/livestream-api/scheduled-broadcasts/create-scheduled-broadcast"},{"title":"List Scheduled Broadcasts","sidebarTitle":"List Scheduled Broadcasts","openapi":"get /2/broadcasts/scheduled","href":"/livestream-api/scheduled-broadcasts/list-scheduled-broadcasts"},{"title":"Get a Scheduled Broadcast","sidebarTitle":"Get Scheduled Broadcast","openapi":"get /2/broadcasts/scheduled/{id}","href":"/livestream-api/scheduled-broadcasts/get-scheduled-broadcast"},{"title":"Update a Scheduled Broadcast","sidebarTitle":"Update Scheduled Broadcast","openapi":"put /2/broadcasts/scheduled/{id}","href":"/livestream-api/scheduled-broadcasts/update-scheduled-broadcast"},{"title":"Delete a Scheduled Broadcast","sidebarTitle":"Delete Scheduled Broadcast","openapi":"delete /2/broadcasts/scheduled/{id}","href":"/livestream-api/scheduled-broadcasts/delete-scheduled-broadcast"},{"title":"Go Live on a Scheduled Broadcast","sidebarTitle":"Go Live","openapi":"post /2/broadcasts/scheduled/{id}/live","href":"/livestream-api/scheduled-broadcasts/go-live"}]},{"group":"Live Chat","pages":[{"title":"Accessing Live Chat","sidebarTitle":"Accessing Live Chat","href":"/livestream-api/chat/accessing-live-chat"},{"title":"Get Chat History","sidebarTitle":"Get Chat History","openapi":"get /2/broadcasts/{id}/chat","href":"/livestream-api/chat/get-chat-history"},{"title":"Send a Chat Message","sidebarTitle":"Send a Chat Message","openapi":"post /2/broadcasts/{id}/chat","href":"/livestream-api/chat/send-chat-message"},{"title":"Mute a Chat User","sidebarTitle":"Mute a Chat User","openapi":"post /2/broadcasts/chat/mutes","href":"/livestream-api/chat/mute-user"},{"title":"Unmute a Chat User","sidebarTitle":"Unmute a Chat User","openapi":"delete /2/broadcasts/chat/mutes/{user_id}","href":"/livestream-api/chat/unmute-user"},{"title":"List Muted Chat Users","sidebarTitle":"List Muted Chat Users","openapi":"get /2/broadcasts/chat/mutes","href":"/livestream-api/chat/list-muted-chat-users"},{"title":"Mute a Chat User by Broadcast ID","sidebarTitle":"Mute a Chat User by Broadcast ID","openapi":"post /2/broadcasts/{id}/chat/mutes","tag":"DEPRECATED","href":"/livestream-api/chat/mute-chat-user"},{"title":"Unmute a Chat User by Broadcast ID","sidebarTitle":"Unmute a Chat User by Broadcast ID","openapi":"delete /2/broadcasts/{id}/chat/mutes/{user_id}","tag":"DEPRECATED","href":"/livestream-api/chat/unmute-chat-user"},{"title":"Delete a Chat Message","sidebarTitle":"Delete a Chat Message","openapi":"delete /2/broadcasts/{id}/chat/{message_id}","href":"/livestream-api/chat/delete-chat-message"},{"title":"List Broadcast Moderators","sidebarTitle":"List Broadcast Moderators","openapi":"get /2/broadcasts/chat/moderators","href":"/livestream-api/chat/list-moderators"},{"title":"Add a Broadcast Moderator","sidebarTitle":"Add a Broadcast Moderator","openapi":"post /2/broadcasts/chat/moderators","href":"/livestream-api/chat/add-moderator"},{"title":"Remove a Broadcast Moderator","sidebarTitle":"Remove a Broadcast Moderator","openapi":"delete /2/broadcasts/chat/moderators/{id}","href":"/livestream-api/chat/remove-moderator"}]}]}]},{"product":"Enterprise","hidden":true,"groups":[{"group":"Overview","pages":[{"title":"X Enterprise API introduction and product overview","sidebarTitle":"Introduction","mode":"wide","href":"/enterprise-api/introduction"}]}]},{"product":"Python XDK","hidden":true,"pages":[{"title":"Python XDK","sidebarTitle":"Overview","href":"/xdks/python/overview"},{"title":"Install","sidebarTitle":"Install","href":"/xdks/python/install"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/xdks/python/quickstart"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/xdks/python/authentication"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/xdks/python/pagination"},{"title":"Streaming","sidebarTitle":"Streaming","href":"/xdks/python/streaming"},{"group":"API Reference","pages":[{"title":"xdk","sidebarTitle":"API Reference","href":"/xdks/python/reference/modules"},{"group":"Clients","pages":[{"group":"Account Activity","pages":[{"title":"AccountActivityClient","sidebarTitle":"AccountActivityClient","href":"/xdks/python/reference/xdk.account_activity.client"}]},{"group":"Activity","pages":[{"title":"ActivityClient","sidebarTitle":"ActivityClient","href":"/xdks/python/reference/xdk.activity.client"}]},{"group":"Client","pages":[{"title":"Client","sidebarTitle":"Client","href":"/xdks/python/reference/xdk.client"}]},{"group":"Communities","pages":[{"title":"CommunitiesClient","sidebarTitle":"CommunitiesClient","href":"/xdks/python/reference/xdk.communities.client"}]},{"group":"Community Notes","pages":[{"title":"CommunityNotesClient","sidebarTitle":"CommunityNotesClient","href":"/xdks/python/reference/xdk.community_notes.client"}]},{"group":"Compliance","pages":[{"title":"ComplianceClient","sidebarTitle":"ComplianceClient","href":"/xdks/python/reference/xdk.compliance.client"}]},{"group":"Connections","pages":[{"title":"ConnectionsClient","sidebarTitle":"ConnectionsClient","href":"/xdks/python/reference/xdk.connections.client"}]},{"group":"Direct Messages","pages":[{"title":"DirectMessagesClient","sidebarTitle":"DirectMessagesClient","href":"/xdks/python/reference/xdk.direct_messages.client"}]},{"group":"General","pages":[{"title":"GeneralClient","sidebarTitle":"GeneralClient","href":"/xdks/python/reference/xdk.general.client"}]},{"group":"Lists","pages":[{"title":"ListsClient","sidebarTitle":"ListsClient","href":"/xdks/python/reference/xdk.lists.client"}]},{"group":"Media","pages":[{"title":"MediaClient","sidebarTitle":"MediaClient","href":"/xdks/python/reference/xdk.media.client"}]},{"group":"News","pages":[{"title":"NewsClient","sidebarTitle":"NewsClient","href":"/xdks/python/reference/xdk.news.client"}]},{"group":"Posts","pages":[{"title":"PostsClient","sidebarTitle":"PostsClient","href":"/xdks/python/reference/xdk.posts.client"}]},{"group":"Spaces","pages":[{"title":"SpacesClient","sidebarTitle":"SpacesClient","href":"/xdks/python/reference/xdk.spaces.client"}]},{"group":"Stream","pages":[{"title":"StreamClient","sidebarTitle":"StreamClient","href":"/xdks/python/reference/xdk.stream.client"}]},{"group":"Trends","pages":[{"title":"TrendsClient","sidebarTitle":"TrendsClient","href":"/xdks/python/reference/xdk.trends.client"}]},{"group":"Usage","pages":[{"title":"UsageClient","sidebarTitle":"UsageClient","href":"/xdks/python/reference/xdk.usage.client"}]},{"group":"Users","pages":[{"title":"UsersClient","sidebarTitle":"UsersClient","href":"/xdks/python/reference/xdk.users.client"}]},{"group":"Webhooks","pages":[{"title":"WebhooksClient","sidebarTitle":"WebhooksClient","href":"/xdks/python/reference/xdk.webhooks.client"}]}]},{"group":"Models","pages":[{"group":"Account Activity","pages":[{"title":"Account_activity.Models","sidebarTitle":"Account_activity.Models","href":"/xdks/python/reference/xdk.account_activity.models"}]},{"group":"Activity","pages":[{"title":"Activity.Models","sidebarTitle":"Activity.Models","href":"/xdks/python/reference/xdk.activity.models"}]},{"group":"Communities","pages":[{"title":"Communities.Models","sidebarTitle":"Communities.Models","href":"/xdks/python/reference/xdk.communities.models"}]},{"group":"Community Notes","pages":[{"title":"Community_notes.Models","sidebarTitle":"Community_notes.Models","href":"/xdks/python/reference/xdk.community_notes.models"}]},{"group":"Compliance","pages":[{"title":"Compliance.Models","sidebarTitle":"Compliance.Models","href":"/xdks/python/reference/xdk.compliance.models"}]},{"group":"Connections","pages":[{"title":"Connections.Models","sidebarTitle":"Connections.Models","href":"/xdks/python/reference/xdk.connections.models"}]},{"group":"Direct Messages","pages":[{"title":"Direct_messages.Models","sidebarTitle":"Direct_messages.Models","href":"/xdks/python/reference/xdk.direct_messages.models"}]},{"group":"General","pages":[{"title":"General.Models","sidebarTitle":"General.Models","href":"/xdks/python/reference/xdk.general.models"}]},{"group":"Lists","pages":[{"title":"Lists.Models","sidebarTitle":"Lists.Models","href":"/xdks/python/reference/xdk.lists.models"}]},{"group":"Media","pages":[{"title":"Media.Models","sidebarTitle":"Media.Models","href":"/xdks/python/reference/xdk.media.models"}]},{"group":"News","pages":[{"title":"News.Models","sidebarTitle":"News.Models","href":"/xdks/python/reference/xdk.news.models"}]},{"group":"Posts","pages":[{"title":"Posts.Models","sidebarTitle":"Posts.Models","href":"/xdks/python/reference/xdk.posts.models"}]},{"group":"Spaces","pages":[{"title":"Spaces.Models","sidebarTitle":"Spaces.Models","href":"/xdks/python/reference/xdk.spaces.models"}]},{"group":"Stream","pages":[{"title":"Stream.Models","sidebarTitle":"Stream.Models","href":"/xdks/python/reference/xdk.stream.models"}]},{"group":"Trends","pages":[{"title":"Trends.Models","sidebarTitle":"Trends.Models","href":"/xdks/python/reference/xdk.trends.models"}]},{"group":"Usage","pages":[{"title":"Usage.Models","sidebarTitle":"Usage.Models","href":"/xdks/python/reference/xdk.usage.models"}]},{"group":"Users","pages":[{"title":"Users.Models","sidebarTitle":"Users.Models","href":"/xdks/python/reference/xdk.users.models"}]},{"group":"Webhooks","pages":[{"title":"Webhooks.Models","sidebarTitle":"Webhooks.Models","href":"/xdks/python/reference/xdk.webhooks.models"}]}]},{"group":"Core","pages":[{"group":"Account Activity","pages":[{"title":"AccountActivityClient","sidebarTitle":"AccountActivityClient","href":"/xdks/python/reference/xdk.account_activity"}]},{"group":"Activity","pages":[{"title":"ActivityClient","sidebarTitle":"ActivityClient","href":"/xdks/python/reference/xdk.activity"}]},{"group":"Communities","pages":[{"title":"CommunitiesClient","sidebarTitle":"CommunitiesClient","href":"/xdks/python/reference/xdk.communities"}]},{"group":"Community Notes","pages":[{"title":"CommunityNotesClient","sidebarTitle":"CommunityNotesClient","href":"/xdks/python/reference/xdk.community_notes"}]},{"group":"Compliance","pages":[{"title":"ComplianceClient","sidebarTitle":"ComplianceClient","href":"/xdks/python/reference/xdk.compliance"}]},{"group":"Connections","pages":[{"title":"ConnectionsClient","sidebarTitle":"ConnectionsClient","href":"/xdks/python/reference/xdk.connections"}]},{"group":"Direct Messages","pages":[{"title":"DirectMessagesClient","sidebarTitle":"DirectMessagesClient","href":"/xdks/python/reference/xdk.direct_messages"}]},{"group":"General","pages":[{"title":"GeneralClient","sidebarTitle":"GeneralClient","href":"/xdks/python/reference/xdk.general"}]},{"group":"Lists","pages":[{"title":"ListsClient","sidebarTitle":"ListsClient","href":"/xdks/python/reference/xdk.lists"}]},{"group":"Media","pages":[{"title":"MediaClient","sidebarTitle":"MediaClient","href":"/xdks/python/reference/xdk.media"}]},{"group":"News","pages":[{"title":"NewsClient","sidebarTitle":"NewsClient","href":"/xdks/python/reference/xdk.news"}]},{"group":"Oauth1 Auth","pages":[{"title":"oauth1_auth","sidebarTitle":"oauth1_auth","href":"/xdks/python/reference/xdk.oauth1_auth"}]},{"group":"Oauth2 Auth","pages":[{"title":"OAuth2PKCEAuth","sidebarTitle":"OAuth2PKCEAuth","href":"/xdks/python/reference/xdk.oauth2_auth"}]},{"group":"Paginator","pages":[{"title":"paginator","sidebarTitle":"paginator","href":"/xdks/python/reference/xdk.paginator"}]},{"group":"Posts","pages":[{"title":"PostsClient","sidebarTitle":"PostsClient","href":"/xdks/python/reference/xdk.posts"}]},{"group":"Spaces","pages":[{"title":"SpacesClient","sidebarTitle":"SpacesClient","href":"/xdks/python/reference/xdk.spaces"}]},{"group":"Stream","pages":[{"title":"StreamClient","sidebarTitle":"StreamClient","href":"/xdks/python/reference/xdk.stream"}]},{"group":"Streaming","pages":[{"title":"streaming","sidebarTitle":"streaming","href":"/xdks/python/reference/xdk.streaming"}]},{"group":"Trends","pages":[{"title":"TrendsClient","sidebarTitle":"TrendsClient","href":"/xdks/python/reference/xdk.trends"}]},{"group":"Usage","pages":[{"title":"UsageClient","sidebarTitle":"UsageClient","href":"/xdks/python/reference/xdk.usage"}]},{"group":"Users","pages":[{"title":"UsersClient","sidebarTitle":"UsersClient","href":"/xdks/python/reference/xdk.users"}]},{"group":"Webhooks","pages":[{"title":"WebhooksClient","sidebarTitle":"WebhooksClient","href":"/xdks/python/reference/xdk.webhooks"}]},{"group":"Xdk","pages":[{"title":"Client","sidebarTitle":"Client","href":"/xdks/python/reference/xdk"}]}]}]}]},{"product":"TypeScript XDK","hidden":true,"pages":[{"title":"TypeScript XDK","sidebarTitle":"Overview","href":"/xdks/typescript/overview"},{"title":"Installation","sidebarTitle":"Installation","href":"/xdks/typescript/install"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/xdks/typescript/authentication"},{"title":"Pagination","sidebarTitle":"Pagination","href":"/xdks/typescript/pagination"},{"title":"Streaming","sidebarTitle":"Streaming","href":"/xdks/typescript/streaming"},{"group":"API Reference","pages":[{"title":"X API SDK v2.152 - v0.4.0","sidebarTitle":"API Reference","href":"/xdks/typescript/reference/modules"},{"group":"Interfaces","pages":[{"group":"Client","pages":[{"title":"ClientConfig","sidebarTitle":"ClientConfig","href":"/xdks/typescript/reference/interfaces/ClientConfig"}]},{"group":"Http","pages":[{"title":"HttpClientRequestOptions","sidebarTitle":"HttpClientRequestOptions","href":"/xdks/typescript/reference/interfaces/HttpClientRequestOptions"},{"title":"HttpResponse","sidebarTitle":"HttpResponse","href":"/xdks/typescript/reference/interfaces/HttpResponse"}]},{"group":"Misc","pages":[{"title":"ApiResponse","sidebarTitle":"ApiResponse","href":"/xdks/typescript/reference/interfaces/ApiResponse"},{"title":"PaginatedResponse","sidebarTitle":"PaginatedResponse","href":"/xdks/typescript/reference/interfaces/PaginatedResponse"},{"title":"PaginationMeta","sidebarTitle":"PaginationMeta","href":"/xdks/typescript/reference/interfaces/PaginationMeta"},{"title":"RequestOptions","sidebarTitle":"RequestOptions","href":"/xdks/typescript/reference/interfaces/RequestOptions"},{"title":"ActivityStreamingResponse","sidebarTitle":"ActivityStreamingResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ActivityStreamingResponse"},{"title":"ActivitySubscription","sidebarTitle":"ActivitySubscription","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscription"},{"title":"ActivitySubscriptionCreateRequest","sidebarTitle":"ActivitySubscriptionCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionCreateRequest"},{"title":"ActivitySubscriptionCreateResponse","sidebarTitle":"ActivitySubscriptionCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionCreateResponse"},{"title":"ActivitySubscriptionDeleteResponse","sidebarTitle":"ActivitySubscriptionDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionDeleteResponse"},{"title":"ActivitySubscriptionFilter","sidebarTitle":"ActivitySubscriptionFilter","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionFilter"},{"title":"ActivitySubscriptionGetResponse","sidebarTitle":"ActivitySubscriptionGetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionGetResponse"},{"title":"ActivitySubscriptionUpdateRequest","sidebarTitle":"ActivitySubscriptionUpdateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionUpdateRequest"},{"title":"ActivitySubscriptionUpdateResponse","sidebarTitle":"ActivitySubscriptionUpdateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ActivitySubscriptionUpdateResponse"},{"title":"AddOrDeleteRulesResponse","sidebarTitle":"AddOrDeleteRulesResponse","href":"/xdks/typescript/reference/interfaces/Schemas.AddOrDeleteRulesResponse"},{"title":"AddRulesRequest","sidebarTitle":"AddRulesRequest","href":"/xdks/typescript/reference/interfaces/Schemas.AddRulesRequest"},{"title":"AllowDownloadStatus","sidebarTitle":"AllowDownloadStatus","href":"/xdks/typescript/reference/interfaces/Schemas.AllowDownloadStatus"},{"title":"AltText","sidebarTitle":"AltText","href":"/xdks/typescript/reference/interfaces/Schemas.AltText"},{"title":"Analytics","sidebarTitle":"Analytics","href":"/xdks/typescript/reference/interfaces/Schemas.Analytics"},{"title":"AppRulesCount","sidebarTitle":"AppRulesCount","href":"/xdks/typescript/reference/interfaces/Schemas.AppRulesCount"},{"title":"AudiencePolicy","sidebarTitle":"AudiencePolicy","href":"/xdks/typescript/reference/interfaces/Schemas.AudiencePolicy"},{"title":"BookmarkAddRequest","sidebarTitle":"BookmarkAddRequest","href":"/xdks/typescript/reference/interfaces/Schemas.BookmarkAddRequest"},{"title":"BookmarkFolderPostsResponse","sidebarTitle":"BookmarkFolderPostsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.BookmarkFolderPostsResponse"},{"title":"BookmarkFoldersResponse","sidebarTitle":"BookmarkFoldersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.BookmarkFoldersResponse"},{"title":"BookmarkMutationResponse","sidebarTitle":"BookmarkMutationResponse","href":"/xdks/typescript/reference/interfaces/Schemas.BookmarkMutationResponse"},{"title":"CashtagFields","sidebarTitle":"CashtagFields","href":"/xdks/typescript/reference/interfaces/Schemas.CashtagFields"},{"title":"ClientAppUsage","sidebarTitle":"ClientAppUsage","href":"/xdks/typescript/reference/interfaces/Schemas.ClientAppUsage"},{"title":"Community","sidebarTitle":"Community","href":"/xdks/typescript/reference/interfaces/Schemas.Community"},{"title":"ComplianceJob","sidebarTitle":"ComplianceJob","href":"/xdks/typescript/reference/interfaces/Schemas.ComplianceJob"},{"title":"Connection","sidebarTitle":"Connection","href":"/xdks/typescript/reference/interfaces/Schemas.Connection"},{"title":"ContentExpiration","sidebarTitle":"ContentExpiration","href":"/xdks/typescript/reference/interfaces/Schemas.ContentExpiration"},{"title":"ContextAnnotation","sidebarTitle":"ContextAnnotation","href":"/xdks/typescript/reference/interfaces/Schemas.ContextAnnotation"},{"title":"ContextAnnotationDomainFields","sidebarTitle":"ContextAnnotationDomainFields","href":"/xdks/typescript/reference/interfaces/Schemas.ContextAnnotationDomainFields"},{"title":"ContextAnnotationEntityFields","sidebarTitle":"ContextAnnotationEntityFields","href":"/xdks/typescript/reference/interfaces/Schemas.ContextAnnotationEntityFields"},{"title":"CreateAttachmentsMessageRequest","sidebarTitle":"CreateAttachmentsMessageRequest","href":"/xdks/typescript/reference/interfaces/Schemas.CreateAttachmentsMessageRequest"},{"title":"CreateComplianceJobRequest","sidebarTitle":"CreateComplianceJobRequest","href":"/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobRequest"},{"title":"CreateComplianceJobResponse","sidebarTitle":"CreateComplianceJobResponse","href":"/xdks/typescript/reference/interfaces/Schemas.CreateComplianceJobResponse"},{"title":"CreateDmConversationRequest","sidebarTitle":"CreateDmConversationRequest","href":"/xdks/typescript/reference/interfaces/Schemas.CreateDmConversationRequest"},{"title":"CreateDmEventResponse","sidebarTitle":"CreateDmEventResponse","href":"/xdks/typescript/reference/interfaces/Schemas.CreateDmEventResponse"},{"title":"CreateNoteRequest","sidebarTitle":"CreateNoteRequest","href":"/xdks/typescript/reference/interfaces/Schemas.CreateNoteRequest"},{"title":"CreateNoteResponse","sidebarTitle":"CreateNoteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.CreateNoteResponse"},{"title":"CreateTextMessageRequest","sidebarTitle":"CreateTextMessageRequest","href":"/xdks/typescript/reference/interfaces/Schemas.CreateTextMessageRequest"},{"title":"DeleteDmResponse","sidebarTitle":"DeleteDmResponse","href":"/xdks/typescript/reference/interfaces/Schemas.DeleteDmResponse"},{"title":"DeleteNoteResponse","sidebarTitle":"DeleteNoteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.DeleteNoteResponse"},{"title":"DeleteRulesRequest","sidebarTitle":"DeleteRulesRequest","href":"/xdks/typescript/reference/interfaces/Schemas.DeleteRulesRequest"},{"title":"DmEvent","sidebarTitle":"DmEvent","href":"/xdks/typescript/reference/interfaces/Schemas.DmEvent"},{"title":"DmMediaAttachment","sidebarTitle":"DmMediaAttachment","href":"/xdks/typescript/reference/interfaces/Schemas.DmMediaAttachment"},{"title":"DomainRestrictions","sidebarTitle":"DomainRestrictions","href":"/xdks/typescript/reference/interfaces/Schemas.DomainRestrictions"},{"title":"Engagement","sidebarTitle":"Engagement","href":"/xdks/typescript/reference/interfaces/Schemas.Engagement"},{"title":"EntityIndicesInclusiveExclusive","sidebarTitle":"EntityIndicesInclusiveExclusive","href":"/xdks/typescript/reference/interfaces/Schemas.EntityIndicesInclusiveExclusive"},{"title":"EntityIndicesInclusiveInclusive","sidebarTitle":"EntityIndicesInclusiveInclusive","href":"/xdks/typescript/reference/interfaces/Schemas.EntityIndicesInclusiveInclusive"},{"title":"Error","sidebarTitle":"Error","href":"/xdks/typescript/reference/interfaces/Schemas.Error"},{"title":"EvaluateNoteRequest","sidebarTitle":"EvaluateNoteRequest","href":"/xdks/typescript/reference/interfaces/Schemas.EvaluateNoteRequest"},{"title":"EvaluateNoteResponse","sidebarTitle":"EvaluateNoteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.EvaluateNoteResponse"},{"title":"Expansions","sidebarTitle":"Expansions","href":"/xdks/typescript/reference/interfaces/Schemas.Expansions"},{"title":"FilteredStreamingTweetResponse","sidebarTitle":"FilteredStreamingTweetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.FilteredStreamingTweetResponse"},{"title":"FollowActivityResponsePayload","sidebarTitle":"FollowActivityResponsePayload","href":"/xdks/typescript/reference/interfaces/Schemas.FollowActivityResponsePayload"},{"title":"FoundMediaOrigin","sidebarTitle":"FoundMediaOrigin","href":"/xdks/typescript/reference/interfaces/Schemas.FoundMediaOrigin"},{"title":"FullTextEntities","sidebarTitle":"FullTextEntities","href":"/xdks/typescript/reference/interfaces/Schemas.FullTextEntities"},{"title":"Geo","sidebarTitle":"Geo","href":"/xdks/typescript/reference/interfaces/Schemas.Geo"},{"title":"Get2CommunitiesIdResponse","sidebarTitle":"Get2CommunitiesIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesIdResponse"},{"title":"Get2CommunitiesSearchResponse","sidebarTitle":"Get2CommunitiesSearchResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2CommunitiesSearchResponse"},{"title":"Get2ComplianceJobsIdResponse","sidebarTitle":"Get2ComplianceJobsIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsIdResponse"},{"title":"Get2ComplianceJobsResponse","sidebarTitle":"Get2ComplianceJobsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ComplianceJobsResponse"},{"title":"Get2ConnectionsResponse","sidebarTitle":"Get2ConnectionsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ConnectionsResponse"},{"title":"Get2DmConversationsIdDmEventsResponse","sidebarTitle":"Get2DmConversationsIdDmEventsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2DmConversationsIdDmEventsResponse"},{"title":"Get2DmConversationsWithParticipantIdDmEventsResponse","sidebarTitle":"Get2DmConversationsWithParticipantIdDmEventsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2DmConversationsWithParticipantIdDmEventsResponse"},{"title":"Get2DmEventsEventIdResponse","sidebarTitle":"Get2DmEventsEventIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2DmEventsEventIdResponse"},{"title":"Get2DmEventsResponse","sidebarTitle":"Get2DmEventsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2DmEventsResponse"},{"title":"Get2FdxAccountsAccountidContactResponse","sidebarTitle":"Get2FdxAccountsAccountidContactResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidContactResponse"},{"title":"Get2FdxAccountsAccountidPayment_networksResponse","sidebarTitle":"Get2FdxAccountsAccountidPayment_networksResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidPayment_networksResponse"},{"title":"Get2FdxAccountsAccountidResponse","sidebarTitle":"Get2FdxAccountsAccountidResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidResponse"},{"title":"Get2FdxAccountsAccountidTransactionsResponse","sidebarTitle":"Get2FdxAccountsAccountidTransactionsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2FdxAccountsAccountidTransactionsResponse"},{"title":"Get2FdxCustomersCurrentResponse","sidebarTitle":"Get2FdxCustomersCurrentResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2FdxCustomersCurrentResponse"},{"title":"Get2Insights28hrResponse","sidebarTitle":"Get2Insights28hrResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2Insights28hrResponse"},{"title":"Get2InsightsHistoricalResponse","sidebarTitle":"Get2InsightsHistoricalResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2InsightsHistoricalResponse"},{"title":"Get2LikesFirehoseStreamResponse","sidebarTitle":"Get2LikesFirehoseStreamResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2LikesFirehoseStreamResponse"},{"title":"Get2LikesSample10StreamResponse","sidebarTitle":"Get2LikesSample10StreamResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2LikesSample10StreamResponse"},{"title":"Get2ListsIdFollowersResponse","sidebarTitle":"Get2ListsIdFollowersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ListsIdFollowersResponse"},{"title":"Get2ListsIdMembersResponse","sidebarTitle":"Get2ListsIdMembersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ListsIdMembersResponse"},{"title":"Get2ListsIdResponse","sidebarTitle":"Get2ListsIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ListsIdResponse"},{"title":"Get2ListsIdTweetsResponse","sidebarTitle":"Get2ListsIdTweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2ListsIdTweetsResponse"},{"title":"Get2MediaAnalyticsResponse","sidebarTitle":"Get2MediaAnalyticsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2MediaAnalyticsResponse"},{"title":"Get2MediaMediaKeyResponse","sidebarTitle":"Get2MediaMediaKeyResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2MediaMediaKeyResponse"},{"title":"Get2MediaResponse","sidebarTitle":"Get2MediaResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2MediaResponse"},{"title":"Get2NewsIdResponse","sidebarTitle":"Get2NewsIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2NewsIdResponse"},{"title":"Get2NewsSearchResponse","sidebarTitle":"Get2NewsSearchResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2NewsSearchResponse"},{"title":"Get2NotesSearchNotesWrittenResponse","sidebarTitle":"Get2NotesSearchNotesWrittenResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2NotesSearchNotesWrittenResponse"},{"title":"Get2NotesSearchPostsEligibleForNotesResponse","sidebarTitle":"Get2NotesSearchPostsEligibleForNotesResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2NotesSearchPostsEligibleForNotesResponse"},{"title":"Get2SpacesByCreatorIdsResponse","sidebarTitle":"Get2SpacesByCreatorIdsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2SpacesByCreatorIdsResponse"},{"title":"Get2SpacesIdBuyersResponse","sidebarTitle":"Get2SpacesIdBuyersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2SpacesIdBuyersResponse"},{"title":"Get2SpacesIdResponse","sidebarTitle":"Get2SpacesIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2SpacesIdResponse"},{"title":"Get2SpacesIdTweetsResponse","sidebarTitle":"Get2SpacesIdTweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2SpacesIdTweetsResponse"},{"title":"Get2SpacesResponse","sidebarTitle":"Get2SpacesResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2SpacesResponse"},{"title":"Get2SpacesSearchResponse","sidebarTitle":"Get2SpacesSearchResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2SpacesSearchResponse"},{"title":"Get2TrendsByWoeidWoeidResponse","sidebarTitle":"Get2TrendsByWoeidWoeidResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TrendsByWoeidWoeidResponse"},{"title":"Get2TweetsAnalyticsResponse","sidebarTitle":"Get2TweetsAnalyticsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsAnalyticsResponse"},{"title":"Get2TweetsCountsAllResponse","sidebarTitle":"Get2TweetsCountsAllResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsAllResponse"},{"title":"Get2TweetsCountsRecentResponse","sidebarTitle":"Get2TweetsCountsRecentResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsCountsRecentResponse"},{"title":"Get2TweetsFirehoseStreamLangEnResponse","sidebarTitle":"Get2TweetsFirehoseStreamLangEnResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangEnResponse"},{"title":"Get2TweetsFirehoseStreamLangJaResponse","sidebarTitle":"Get2TweetsFirehoseStreamLangJaResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangJaResponse"},{"title":"Get2TweetsFirehoseStreamLangKoResponse","sidebarTitle":"Get2TweetsFirehoseStreamLangKoResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangKoResponse"},{"title":"Get2TweetsFirehoseStreamLangPtResponse","sidebarTitle":"Get2TweetsFirehoseStreamLangPtResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamLangPtResponse"},{"title":"Get2TweetsFirehoseStreamResponse","sidebarTitle":"Get2TweetsFirehoseStreamResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsFirehoseStreamResponse"},{"title":"Get2TweetsIdLikingUsersResponse","sidebarTitle":"Get2TweetsIdLikingUsersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdLikingUsersResponse"},{"title":"Get2TweetsIdQuoteTweetsResponse","sidebarTitle":"Get2TweetsIdQuoteTweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdQuoteTweetsResponse"},{"title":"Get2TweetsIdResponse","sidebarTitle":"Get2TweetsIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdResponse"},{"title":"Get2TweetsIdRetweetedByResponse","sidebarTitle":"Get2TweetsIdRetweetedByResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetedByResponse"},{"title":"Get2TweetsIdRetweetsResponse","sidebarTitle":"Get2TweetsIdRetweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsIdRetweetsResponse"},{"title":"Get2TweetsResponse","sidebarTitle":"Get2TweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsResponse"},{"title":"Get2TweetsSample10StreamResponse","sidebarTitle":"Get2TweetsSample10StreamResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSample10StreamResponse"},{"title":"Get2TweetsSampleStreamResponse","sidebarTitle":"Get2TweetsSampleStreamResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSampleStreamResponse"},{"title":"Get2TweetsSearchAllResponse","sidebarTitle":"Get2TweetsSearchAllResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchAllResponse"},{"title":"Get2TweetsSearchRecentResponse","sidebarTitle":"Get2TweetsSearchRecentResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchRecentResponse"},{"title":"Get2TweetsSearchStreamResponse","sidebarTitle":"Get2TweetsSearchStreamResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchStreamResponse"},{"title":"Get2TweetsSearchStreamRulesCountsResponse","sidebarTitle":"Get2TweetsSearchStreamRulesCountsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2TweetsSearchStreamRulesCountsResponse"},{"title":"Get2UsageTweetsResponse","sidebarTitle":"Get2UsageTweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsageTweetsResponse"},{"title":"Get2UsersByResponse","sidebarTitle":"Get2UsersByResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersByResponse"},{"title":"Get2UsersByUsernameUsernameResponse","sidebarTitle":"Get2UsersByUsernameUsernameResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersByUsernameUsernameResponse"},{"title":"Get2UsersIdBlockingResponse","sidebarTitle":"Get2UsersIdBlockingResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdBlockingResponse"},{"title":"Get2UsersIdBookmarksResponse","sidebarTitle":"Get2UsersIdBookmarksResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdBookmarksResponse"},{"title":"Get2UsersIdFollowedListsResponse","sidebarTitle":"Get2UsersIdFollowedListsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdFollowedListsResponse"},{"title":"Get2UsersIdFollowersResponse","sidebarTitle":"Get2UsersIdFollowersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdFollowersResponse"},{"title":"Get2UsersIdFollowingResponse","sidebarTitle":"Get2UsersIdFollowingResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdFollowingResponse"},{"title":"Get2UsersIdLikedTweetsResponse","sidebarTitle":"Get2UsersIdLikedTweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdLikedTweetsResponse"},{"title":"Get2UsersIdListMembershipsResponse","sidebarTitle":"Get2UsersIdListMembershipsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdListMembershipsResponse"},{"title":"Get2UsersIdMentionsResponse","sidebarTitle":"Get2UsersIdMentionsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdMentionsResponse"},{"title":"Get2UsersIdMutingResponse","sidebarTitle":"Get2UsersIdMutingResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdMutingResponse"},{"title":"Get2UsersIdOwnedListsResponse","sidebarTitle":"Get2UsersIdOwnedListsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdOwnedListsResponse"},{"title":"Get2UsersIdPinnedListsResponse","sidebarTitle":"Get2UsersIdPinnedListsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdPinnedListsResponse"},{"title":"Get2UsersIdResponse","sidebarTitle":"Get2UsersIdResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdResponse"},{"title":"Get2UsersIdTimelinesReverseChronologicalResponse","sidebarTitle":"Get2UsersIdTimelinesReverseChronologicalResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdTimelinesReverseChronologicalResponse"},{"title":"Get2UsersIdTweetsResponse","sidebarTitle":"Get2UsersIdTweetsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersIdTweetsResponse"},{"title":"Get2UsersMeResponse","sidebarTitle":"Get2UsersMeResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersMeResponse"},{"title":"Get2UsersPersonalizedTrendsResponse","sidebarTitle":"Get2UsersPersonalizedTrendsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersPersonalizedTrendsResponse"},{"title":"Get2UsersRepostsOfMeResponse","sidebarTitle":"Get2UsersRepostsOfMeResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersRepostsOfMeResponse"},{"title":"Get2UsersResponse","sidebarTitle":"Get2UsersResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersResponse"},{"title":"Get2UsersSearchResponse","sidebarTitle":"Get2UsersSearchResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2UsersSearchResponse"},{"title":"Get2WebhooksResponse","sidebarTitle":"Get2WebhooksResponse","href":"/xdks/typescript/reference/interfaces/Schemas.Get2WebhooksResponse"},{"title":"HashtagFields","sidebarTitle":"HashtagFields","href":"/xdks/typescript/reference/interfaces/Schemas.HashtagFields"},{"title":"KillAllConnectionsResponse","sidebarTitle":"KillAllConnectionsResponse","href":"/xdks/typescript/reference/interfaces/Schemas.KillAllConnectionsResponse"},{"title":"LikeComplianceSchema","sidebarTitle":"LikeComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.LikeComplianceSchema"},{"title":"LikeWithTweetAuthor","sidebarTitle":"LikeWithTweetAuthor","href":"/xdks/typescript/reference/interfaces/Schemas.LikeWithTweetAuthor"},{"title":"List","sidebarTitle":"List","href":"/xdks/typescript/reference/interfaces/Schemas.List"},{"title":"ListAddUserRequest","sidebarTitle":"ListAddUserRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ListAddUserRequest"},{"title":"ListCreateRequest","sidebarTitle":"ListCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ListCreateRequest"},{"title":"ListCreateResponse","sidebarTitle":"ListCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListCreateResponse"},{"title":"ListDeleteResponse","sidebarTitle":"ListDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListDeleteResponse"},{"title":"ListFollowedRequest","sidebarTitle":"ListFollowedRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ListFollowedRequest"},{"title":"ListFollowedResponse","sidebarTitle":"ListFollowedResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListFollowedResponse"},{"title":"ListMutateResponse","sidebarTitle":"ListMutateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListMutateResponse"},{"title":"ListPinnedRequest","sidebarTitle":"ListPinnedRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ListPinnedRequest"},{"title":"ListPinnedResponse","sidebarTitle":"ListPinnedResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListPinnedResponse"},{"title":"ListUnpinResponse","sidebarTitle":"ListUnpinResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListUnpinResponse"},{"title":"ListUpdateRequest","sidebarTitle":"ListUpdateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.ListUpdateRequest"},{"title":"ListUpdateResponse","sidebarTitle":"ListUpdateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ListUpdateResponse"},{"title":"ManagementInfo","sidebarTitle":"ManagementInfo","href":"/xdks/typescript/reference/interfaces/Schemas.ManagementInfo"},{"title":"Media","sidebarTitle":"Media","href":"/xdks/typescript/reference/interfaces/Schemas.Media"},{"title":"MediaAnalytics","sidebarTitle":"MediaAnalytics","href":"/xdks/typescript/reference/interfaces/Schemas.MediaAnalytics"},{"title":"MediaMetrics","sidebarTitle":"MediaMetrics","href":"/xdks/typescript/reference/interfaces/Schemas.MediaMetrics"},{"title":"MediaTimestampedMetrics","sidebarTitle":"MediaTimestampedMetrics","href":"/xdks/typescript/reference/interfaces/Schemas.MediaTimestampedMetrics"},{"title":"MediaUploadAppendResponse","sidebarTitle":"MediaUploadAppendResponse","href":"/xdks/typescript/reference/interfaces/Schemas.MediaUploadAppendResponse"},{"title":"MediaUploadConfigRequest","sidebarTitle":"MediaUploadConfigRequest","href":"/xdks/typescript/reference/interfaces/Schemas.MediaUploadConfigRequest"},{"title":"MediaUploadRequestOneShot","sidebarTitle":"MediaUploadRequestOneShot","href":"/xdks/typescript/reference/interfaces/Schemas.MediaUploadRequestOneShot"},{"title":"MediaUploadResponse","sidebarTitle":"MediaUploadResponse","href":"/xdks/typescript/reference/interfaces/Schemas.MediaUploadResponse"},{"title":"MentionFields","sidebarTitle":"MentionFields","href":"/xdks/typescript/reference/interfaces/Schemas.MentionFields"},{"title":"MetadataCreateRequest","sidebarTitle":"MetadataCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.MetadataCreateRequest"},{"title":"MetadataCreateResponse","sidebarTitle":"MetadataCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.MetadataCreateResponse"},{"title":"Metrics","sidebarTitle":"Metrics","href":"/xdks/typescript/reference/interfaces/Schemas.Metrics"},{"title":"MuteUserMutationResponse","sidebarTitle":"MuteUserMutationResponse","href":"/xdks/typescript/reference/interfaces/Schemas.MuteUserMutationResponse"},{"title":"MuteUserRequest","sidebarTitle":"MuteUserRequest","href":"/xdks/typescript/reference/interfaces/Schemas.MuteUserRequest"},{"title":"News","sidebarTitle":"News","href":"/xdks/typescript/reference/interfaces/Schemas.News"},{"title":"NewsActivityResponsePayload","sidebarTitle":"NewsActivityResponsePayload","href":"/xdks/typescript/reference/interfaces/Schemas.NewsActivityResponsePayload"},{"title":"Note","sidebarTitle":"Note","href":"/xdks/typescript/reference/interfaces/Schemas.Note"},{"title":"NoteInfo","sidebarTitle":"NoteInfo","href":"/xdks/typescript/reference/interfaces/Schemas.NoteInfo"},{"title":"NoteTestResult","sidebarTitle":"NoteTestResult","href":"/xdks/typescript/reference/interfaces/Schemas.NoteTestResult"},{"title":"PersonalizedTrend","sidebarTitle":"PersonalizedTrend","href":"/xdks/typescript/reference/interfaces/Schemas.PersonalizedTrend"},{"title":"Place","sidebarTitle":"Place","href":"/xdks/typescript/reference/interfaces/Schemas.Place"},{"title":"PlaidAccount","sidebarTitle":"PlaidAccount","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidAccount"},{"title":"PlaidAccountContact","sidebarTitle":"PlaidAccountContact","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidAccountContact"},{"title":"PlaidAccountPaymentNetwork","sidebarTitle":"PlaidAccountPaymentNetwork","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidAccountPaymentNetwork"},{"title":"PlaidAccountTransaction","sidebarTitle":"PlaidAccountTransaction","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidAccountTransaction"},{"title":"PlaidAddress","sidebarTitle":"PlaidAddress","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidAddress"},{"title":"PlaidCurrency","sidebarTitle":"PlaidCurrency","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidCurrency"},{"title":"PlaidCustomer","sidebarTitle":"PlaidCustomer","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidCustomer"},{"title":"PlaidName","sidebarTitle":"PlaidName","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidName"},{"title":"PlaidTelephone","sidebarTitle":"PlaidTelephone","href":"/xdks/typescript/reference/interfaces/Schemas.PlaidTelephone"},{"title":"Point","sidebarTitle":"Point","href":"/xdks/typescript/reference/interfaces/Schemas.Point"},{"title":"Poll","sidebarTitle":"Poll","href":"/xdks/typescript/reference/interfaces/Schemas.Poll"},{"title":"PollOption","sidebarTitle":"PollOption","href":"/xdks/typescript/reference/interfaces/Schemas.PollOption"},{"title":"PreviewImage","sidebarTitle":"PreviewImage","href":"/xdks/typescript/reference/interfaces/Schemas.PreviewImage"},{"title":"Problem","sidebarTitle":"Problem","href":"/xdks/typescript/reference/interfaces/Schemas.Problem"},{"title":"ProcessingInfo","sidebarTitle":"ProcessingInfo","href":"/xdks/typescript/reference/interfaces/Schemas.ProcessingInfo"},{"title":"ProfileUpdateActivityResponsePayload","sidebarTitle":"ProfileUpdateActivityResponsePayload","href":"/xdks/typescript/reference/interfaces/Schemas.ProfileUpdateActivityResponsePayload"},{"title":"ReplayJobCreateResponse","sidebarTitle":"ReplayJobCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.ReplayJobCreateResponse"},{"title":"Rule","sidebarTitle":"Rule","href":"/xdks/typescript/reference/interfaces/Schemas.Rule"},{"title":"RuleNoId","sidebarTitle":"RuleNoId","href":"/xdks/typescript/reference/interfaces/Schemas.RuleNoId"},{"title":"RulesCount","sidebarTitle":"RulesCount","href":"/xdks/typescript/reference/interfaces/Schemas.RulesCount"},{"title":"RulesLookupResponse","sidebarTitle":"RulesLookupResponse","href":"/xdks/typescript/reference/interfaces/Schemas.RulesLookupResponse"},{"title":"RulesResponseMetadata","sidebarTitle":"RulesResponseMetadata","href":"/xdks/typescript/reference/interfaces/Schemas.RulesResponseMetadata"},{"title":"SearchCount","sidebarTitle":"SearchCount","href":"/xdks/typescript/reference/interfaces/Schemas.SearchCount"},{"title":"SensitiveMediaWarning","sidebarTitle":"SensitiveMediaWarning","href":"/xdks/typescript/reference/interfaces/Schemas.SensitiveMediaWarning"},{"title":"SharedInfo","sidebarTitle":"SharedInfo","href":"/xdks/typescript/reference/interfaces/Schemas.SharedInfo"},{"title":"Space","sidebarTitle":"Space","href":"/xdks/typescript/reference/interfaces/Schemas.Space"},{"title":"Sticker","sidebarTitle":"Sticker","href":"/xdks/typescript/reference/interfaces/Schemas.Sticker"},{"title":"StickerInfo","sidebarTitle":"StickerInfo","href":"/xdks/typescript/reference/interfaces/Schemas.StickerInfo"},{"title":"StreamingLikeResponseV2","sidebarTitle":"StreamingLikeResponseV2","href":"/xdks/typescript/reference/interfaces/Schemas.StreamingLikeResponseV2"},{"title":"StreamingTweetResponse","sidebarTitle":"StreamingTweetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.StreamingTweetResponse"},{"title":"SubscriptionsCountGetResponse","sidebarTitle":"SubscriptionsCountGetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubscriptionsCountGetResponse"},{"title":"SubscriptionsCreateResponse","sidebarTitle":"SubscriptionsCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubscriptionsCreateResponse"},{"title":"SubscriptionsDeleteResponse","sidebarTitle":"SubscriptionsDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubscriptionsDeleteResponse"},{"title":"SubscriptionsGetResponse","sidebarTitle":"SubscriptionsGetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubscriptionsGetResponse"},{"title":"SubscriptionsListGetResponse","sidebarTitle":"SubscriptionsListGetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubscriptionsListGetResponse"},{"title":"Subtitles","sidebarTitle":"Subtitles","href":"/xdks/typescript/reference/interfaces/Schemas.Subtitles"},{"title":"SubtitlesCreateRequest","sidebarTitle":"SubtitlesCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.SubtitlesCreateRequest"},{"title":"SubtitlesCreateResponse","sidebarTitle":"SubtitlesCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubtitlesCreateResponse"},{"title":"SubtitlesDeleteRequest","sidebarTitle":"SubtitlesDeleteRequest","href":"/xdks/typescript/reference/interfaces/Schemas.SubtitlesDeleteRequest"},{"title":"SubtitlesDeleteResponse","sidebarTitle":"SubtitlesDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.SubtitlesDeleteResponse"},{"title":"TimestampedMetrics","sidebarTitle":"TimestampedMetrics","href":"/xdks/typescript/reference/interfaces/Schemas.TimestampedMetrics"},{"title":"Topic","sidebarTitle":"Topic","href":"/xdks/typescript/reference/interfaces/Schemas.Topic"},{"title":"Trend","sidebarTitle":"Trend","href":"/xdks/typescript/reference/interfaces/Schemas.Trend"},{"title":"Tweet","sidebarTitle":"Tweet","href":"/xdks/typescript/reference/interfaces/Schemas.Tweet"},{"title":"TweetComplianceSchema","sidebarTitle":"TweetComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetComplianceSchema"},{"title":"TweetCreateRequest","sidebarTitle":"TweetCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.TweetCreateRequest"},{"title":"TweetCreateResponse","sidebarTitle":"TweetCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.TweetCreateResponse"},{"title":"TweetDeleteComplianceSchema","sidebarTitle":"TweetDeleteComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetDeleteComplianceSchema"},{"title":"TweetDeleteResponse","sidebarTitle":"TweetDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.TweetDeleteResponse"},{"title":"TweetDropComplianceSchema","sidebarTitle":"TweetDropComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetDropComplianceSchema"},{"title":"TweetEditComplianceObjectSchema","sidebarTitle":"TweetEditComplianceObjectSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetEditComplianceObjectSchema"},{"title":"TweetEditComplianceSchema","sidebarTitle":"TweetEditComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetEditComplianceSchema"},{"title":"TweetHideRequest","sidebarTitle":"TweetHideRequest","href":"/xdks/typescript/reference/interfaces/Schemas.TweetHideRequest"},{"title":"TweetHideResponse","sidebarTitle":"TweetHideResponse","href":"/xdks/typescript/reference/interfaces/Schemas.TweetHideResponse"},{"title":"TweetNotice","sidebarTitle":"TweetNotice","href":"/xdks/typescript/reference/interfaces/Schemas.TweetNotice"},{"title":"TweetNoticeSchema","sidebarTitle":"TweetNoticeSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetNoticeSchema"},{"title":"TweetTakedownComplianceSchema","sidebarTitle":"TweetTakedownComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetTakedownComplianceSchema"},{"title":"TweetUndropComplianceSchema","sidebarTitle":"TweetUndropComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetUndropComplianceSchema"},{"title":"TweetUnviewable","sidebarTitle":"TweetUnviewable","href":"/xdks/typescript/reference/interfaces/Schemas.TweetUnviewable"},{"title":"TweetUnviewableSchema","sidebarTitle":"TweetUnviewableSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetUnviewableSchema"},{"title":"TweetWithheld","sidebarTitle":"TweetWithheld","href":"/xdks/typescript/reference/interfaces/Schemas.TweetWithheld"},{"title":"TweetWithheldComplianceSchema","sidebarTitle":"TweetWithheldComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.TweetWithheldComplianceSchema"},{"title":"UnlikeComplianceSchema","sidebarTitle":"UnlikeComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UnlikeComplianceSchema"},{"title":"UploadSource","sidebarTitle":"UploadSource","href":"/xdks/typescript/reference/interfaces/Schemas.UploadSource"},{"title":"UrlFields","sidebarTitle":"UrlFields","href":"/xdks/typescript/reference/interfaces/Schemas.UrlFields"},{"title":"UrlImage","sidebarTitle":"UrlImage","href":"/xdks/typescript/reference/interfaces/Schemas.UrlImage"},{"title":"Usage","sidebarTitle":"Usage","href":"/xdks/typescript/reference/interfaces/Schemas.Usage"},{"title":"UsageFields","sidebarTitle":"UsageFields","href":"/xdks/typescript/reference/interfaces/Schemas.UsageFields"},{"title":"User","sidebarTitle":"User","href":"/xdks/typescript/reference/interfaces/Schemas.User"},{"title":"UserComplianceSchema","sidebarTitle":"UserComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserComplianceSchema"},{"title":"UserDeleteComplianceSchema","sidebarTitle":"UserDeleteComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserDeleteComplianceSchema"},{"title":"UserProfileModificationComplianceSchema","sidebarTitle":"UserProfileModificationComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserProfileModificationComplianceSchema"},{"title":"UserProfileModificationObjectSchema","sidebarTitle":"UserProfileModificationObjectSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserProfileModificationObjectSchema"},{"title":"UserProtectComplianceSchema","sidebarTitle":"UserProtectComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserProtectComplianceSchema"},{"title":"UserScrubGeoObjectSchema","sidebarTitle":"UserScrubGeoObjectSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserScrubGeoObjectSchema"},{"title":"UserScrubGeoSchema","sidebarTitle":"UserScrubGeoSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserScrubGeoSchema"},{"title":"UserSuspendComplianceSchema","sidebarTitle":"UserSuspendComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserSuspendComplianceSchema"},{"title":"UserTakedownComplianceSchema","sidebarTitle":"UserTakedownComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserTakedownComplianceSchema"},{"title":"UserUndeleteComplianceSchema","sidebarTitle":"UserUndeleteComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserUndeleteComplianceSchema"},{"title":"UserUnprotectComplianceSchema","sidebarTitle":"UserUnprotectComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserUnprotectComplianceSchema"},{"title":"UserUnsuspendComplianceSchema","sidebarTitle":"UserUnsuspendComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserUnsuspendComplianceSchema"},{"title":"UserWithheld","sidebarTitle":"UserWithheld","href":"/xdks/typescript/reference/interfaces/Schemas.UserWithheld"},{"title":"UserWithheldComplianceSchema","sidebarTitle":"UserWithheldComplianceSchema","href":"/xdks/typescript/reference/interfaces/Schemas.UserWithheldComplianceSchema"},{"title":"UsersDMBlockCreateResponse","sidebarTitle":"UsersDMBlockCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersDMBlockCreateResponse"},{"title":"UsersDMUnBlockCreateResponse","sidebarTitle":"UsersDMUnBlockCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersDMUnBlockCreateResponse"},{"title":"UsersFollowingCreateRequest","sidebarTitle":"UsersFollowingCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.UsersFollowingCreateRequest"},{"title":"UsersFollowingCreateResponse","sidebarTitle":"UsersFollowingCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersFollowingCreateResponse"},{"title":"UsersFollowingDeleteResponse","sidebarTitle":"UsersFollowingDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersFollowingDeleteResponse"},{"title":"UsersLikesCreateRequest","sidebarTitle":"UsersLikesCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.UsersLikesCreateRequest"},{"title":"UsersLikesCreateResponse","sidebarTitle":"UsersLikesCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersLikesCreateResponse"},{"title":"UsersLikesDeleteResponse","sidebarTitle":"UsersLikesDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersLikesDeleteResponse"},{"title":"UsersRetweetsCreateRequest","sidebarTitle":"UsersRetweetsCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.UsersRetweetsCreateRequest"},{"title":"UsersRetweetsCreateResponse","sidebarTitle":"UsersRetweetsCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersRetweetsCreateResponse"},{"title":"UsersRetweetsDeleteResponse","sidebarTitle":"UsersRetweetsDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.UsersRetweetsDeleteResponse"},{"title":"Variant","sidebarTitle":"Variant","href":"/xdks/typescript/reference/interfaces/Schemas.Variant"},{"title":"WebhookConfig","sidebarTitle":"WebhookConfig","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookConfig"},{"title":"WebhookConfigCreateRequest","sidebarTitle":"WebhookConfigCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookConfigCreateRequest"},{"title":"WebhookConfigCreateResponse","sidebarTitle":"WebhookConfigCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookConfigCreateResponse"},{"title":"WebhookConfigDeleteResponse","sidebarTitle":"WebhookConfigDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookConfigDeleteResponse"},{"title":"WebhookConfigPutResponse","sidebarTitle":"WebhookConfigPutResponse","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookConfigPutResponse"},{"title":"WebhookLinksCreateResponse","sidebarTitle":"WebhookLinksCreateResponse","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookLinksCreateResponse"},{"title":"WebhookLinksDeleteResponse","sidebarTitle":"WebhookLinksDeleteResponse","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookLinksDeleteResponse"},{"title":"WebhookLinksGetResponse","sidebarTitle":"WebhookLinksGetResponse","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookLinksGetResponse"},{"title":"WebhookReplayCreateRequest","sidebarTitle":"WebhookReplayCreateRequest","href":"/xdks/typescript/reference/interfaces/Schemas.WebhookReplayCreateRequest"}]}]},{"group":"Classes","pages":[{"group":"AccountActivity","pages":[{"title":"AccountActivityClient","sidebarTitle":"AccountActivityClient","href":"/xdks/typescript/reference/classes/AccountActivityClient"}]},{"group":"Activity","pages":[{"title":"ActivityClient","sidebarTitle":"ActivityClient","href":"/xdks/typescript/reference/classes/ActivityClient"}]},{"group":"Client","pages":[{"title":"Client","sidebarTitle":"Client","href":"/xdks/typescript/reference/classes/Client"}]},{"group":"Clients","pages":[{"title":"NewsClient","sidebarTitle":"NewsClient","href":"/xdks/typescript/reference/classes/NewsClient"}]},{"group":"Communities","pages":[{"title":"CommunitiesClient","sidebarTitle":"CommunitiesClient","href":"/xdks/typescript/reference/classes/CommunitiesClient"}]},{"group":"CommunityNotes","pages":[{"title":"CommunityNotesClient","sidebarTitle":"CommunityNotesClient","href":"/xdks/typescript/reference/classes/CommunityNotesClient"}]},{"group":"Compliance","pages":[{"title":"ComplianceClient","sidebarTitle":"ComplianceClient","href":"/xdks/typescript/reference/classes/ComplianceClient"}]},{"group":"Connections","pages":[{"title":"ConnectionsClient","sidebarTitle":"ConnectionsClient","href":"/xdks/typescript/reference/classes/ConnectionsClient"}]},{"group":"Core","pages":[{"title":"ApiError","sidebarTitle":"ApiError","href":"/xdks/typescript/reference/classes/ApiError"}]},{"group":"DirectMessages","pages":[{"title":"DirectMessagesClient","sidebarTitle":"DirectMessagesClient","href":"/xdks/typescript/reference/classes/DirectMessagesClient"}]},{"group":"General","pages":[{"title":"GeneralClient","sidebarTitle":"GeneralClient","href":"/xdks/typescript/reference/classes/GeneralClient"}]},{"group":"Http","pages":[{"title":"HttpClient","sidebarTitle":"HttpClient","href":"/xdks/typescript/reference/classes/HttpClient"}]},{"group":"Lists","pages":[{"title":"ListsClient","sidebarTitle":"ListsClient","href":"/xdks/typescript/reference/classes/ListsClient"}]},{"group":"Media","pages":[{"title":"MediaClient","sidebarTitle":"MediaClient","href":"/xdks/typescript/reference/classes/MediaClient"}]},{"group":"Pagination","pages":[{"title":"EventPaginator","sidebarTitle":"EventPaginator","href":"/xdks/typescript/reference/classes/EventPaginator"},{"title":"PostPaginator","sidebarTitle":"PostPaginator","href":"/xdks/typescript/reference/classes/PostPaginator"},{"title":"UserPaginator","sidebarTitle":"UserPaginator","href":"/xdks/typescript/reference/classes/UserPaginator"}]},{"group":"Paginator","pages":[{"title":"Paginator","sidebarTitle":"Paginator","href":"/xdks/typescript/reference/classes/Paginator"}]},{"group":"Posts","pages":[{"title":"PostsClient","sidebarTitle":"PostsClient","href":"/xdks/typescript/reference/classes/PostsClient"}]},{"group":"Spaces","pages":[{"title":"SpacesClient","sidebarTitle":"SpacesClient","href":"/xdks/typescript/reference/classes/SpacesClient"}]},{"group":"Stream","pages":[{"title":"StreamClient","sidebarTitle":"StreamClient","href":"/xdks/typescript/reference/classes/StreamClient"}]},{"group":"Trends","pages":[{"title":"TrendsClient","sidebarTitle":"TrendsClient","href":"/xdks/typescript/reference/classes/TrendsClient"}]},{"group":"Usage","pages":[{"title":"UsageClient","sidebarTitle":"UsageClient","href":"/xdks/typescript/reference/classes/UsageClient"}]},{"group":"Users","pages":[{"title":"UsersClient","sidebarTitle":"UsersClient","href":"/xdks/typescript/reference/classes/UsersClient"}]},{"group":"Webhooks","pages":[{"title":"WebhooksClient","sidebarTitle":"WebhooksClient","href":"/xdks/typescript/reference/classes/WebhooksClient"}]}]}]}]}]},"title":"Getting started with R and v2 of the X API - X","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":[],"chunks":[]}