이 튜토리얼에서는 프로그래밍 언어 R과 X API v2를 시작하는 데 필요한 내용을 단계별로 살펴봅니다. R을 사용해
user lookup 엔드포인트에 연결하면서,
X API에서 반환되는 JSON을 어떻게 다루는지 보여줄 것입니다. User lookup은
GET 메서드이며, 사용자 id 또는 사용자 이름(username)으로 지정된
하나의 사용자 또는 여러 사용자에 대한 정보를 반환합니다.R에 익숙하지 않다면, R은 시계열 분석, 모델링, 시각화 및 기타 데이터
분석과 같은 일반적인 데이터 사이언스 작업에 가장 널리 사용되는 언어 중 하나이며,
종종 X API와 함께 사용됩니다. User lookup 엔드포인트와 함께
user object를 사용하면,
특정 인물이 가진 팔로워 수와 그 사람의 프로필 소개(bio)의 감성 점수 간 상관관계를
분석할 수 있습니다. User object는 또한 프로필에 공개적으로 기재된 위치 정보를
기반으로 여러 계정으로 구성된 그룹을 매핑하는 데도 사용할 수 있습니다.
X API 시작하기
X API v2를 사용하려면 먼저
가입을 통해
개발자 계정을 만들어야 합니다.개발자 계정 승인을 받은 후에는 먼저
Project를 생성해야 합니다. Project를 사용하면
X API를 어떻게 사용할 계획인지에 따라 작업을 구성할 수 있으므로,
API 접근 권한을 효율적으로 관리하고 사용량을 모니터링할 수 있습니다.각 Project에는 App이 포함되어 있으며, 이를 사용해
X API를 사용하는 데 필요한 자격 증명을 생성할 수 있습니다. X API 사용을
시작하는 방법에 대해 더 알고 싶다면 문서의
시작하기 섹션을 참고하세요.
이 문서에서 보여 줄 코드 예제를 사용하려면 Bearer 토큰을 위한
환경 변수를 만들어 두어야 합니다. Bearer 토큰은 X API에
인증하고 요청을 보내기 시작할 수 있게 해 주는 값입니다. 먼저
“your-bearer-token”을(를) 개발자 콘솔에서 App의 키 및 토큰 섹션을 통해
발급받은 본인의 Bearer 토큰으로 교체하세요. 스크립트를 작성하기 전에
터미널에서 이 한 줄의 코드를 실행해야 합니다.
Sys.setenv(BEARER_TOKEN = "your-bearer-token")
요청 보내기
패키지
httr를 사용해 X API로
HTTP 요청을 보낼 수 있습니다. 아직 설치하지 않았다면 콘솔에서
이 패키지를 설치하세요. 또한 JSON 객체를 다루기 위해
jsonlite와
데이터 처리를 위해 dplyr도 설치해야 합니다.
인증 설정을 마쳤다면, 요청에 사용할 파라미터를 정의하세요.
기본적으로는 각 사용자에 대해 id, name, username 값만 반환됩니다.
추가 필드와
expansions를 더해 이 JSON 페이로드를 조정할 수 있습니다.
이 예제에서는 사용자의 프로필 소개(bio)를 가져와야 하며, 이는 user.fields=description 으로 요청하고,
사용자의 고정 게시물(pinned Post)을 포함하는 expansion도 함께 요청합니다.
이제 더 많은 정보를 가져오려는 X 핸들(계정이라고도 함)을 사용해 URL을 포맷팅할 준비가 되었습니다. 이 샘플을 재사용할 수 있도록 readline 메서드를 사용하세요. 조회하려는 핸들을 입력한 뒤 $USERNAME을 원하는 X 핸들로 교체하여, 정의한 핸들이 URL에 포함되도록 구성합니다.
이제 httr 패키지를 사용해 방금 생성한 URL로 GET 요청을 보내고, 헤더를 통해 우리의 인증 정보를 전달한 뒤, 정의한 매개변수들을 함께 넘기면 됩니다. 응답은 변수 obj에 텍스트 객체로 저장한 다음, 이를 출력해서 방금 보낸 요청의 결과를 확인할 수 있습니다.
JSON을 다룰 때 제가 가장 선호하는 방법 중 하나는 데이터 프레임을 사용하는 것입니다. 데이터 프레임을 사용하면 복잡하게 중첩된 데이터에도 쉽게 접근할 수 있습니다. 이를 위해 jsonlite 패키지의 fromJSON 메서드를 사용하여 파일을 평탄화(flatten)해 필드가 동일한 객체 안에 있도록 만듭니다. 그런 다음, 그 객체를 데이터 프레임으로 변환합니다. 이제 이 데이터 프레임을 확인할 준비가 되었습니다.
각 필드 사이에 줄바꿈이 들어가도록 객체를 출력하려면 print 대신 cat을 사용하세요.
cat(final)
여러 개의 핸들에 대해 요청을 보낸 경우라면, 루프를 사용해 데이터 프레임의 각 요소에 쉽게 접근할 수 있습니다.
결론
이 튜토리얼이 R과 X API를 함께 사용하는 데 있어 출발점이 되었으면 합니다.
다음 단계로, 최근 검색, 게시물 조회 및 사용자 조회를 위한 R 샘플을
v2 sample code에서 살펴보시기 바랍니다.
진행 중에 문제가 발생하면 forums에서 알려 주시거나,
이 튜토리얼을 바탕으로 무언가를 만들게 되었다면 @XDevelopers로
게시물을 남겨 알려 주시기 바랍니다.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"X","colors":{"primary":"#0E0E0E","light":"#B0B0B0","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/generaltranslation/p-tsc5qa00w8y5M4/logo/light.svg?fit=max\u0026auto=format\u0026n=p-tsc5qa00w8y5M4\u0026q=85\u0026s=299a991122fb35a82f868bc62a8be1ae","dark":"https://mintcdn.com/generaltranslation/p-tsc5qa00w8y5M4/logo/dark.svg?fit=max\u0026auto=format\u0026n=p-tsc5qa00w8y5M4\u0026q=85\u0026s=06e5086f68ab588cc44787b665898b75"},"favicon":"/favicon.png","appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#050505"}},"navbar":{"links":[{"href":"https://developer.x.com/en/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":"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"},"indexing":"all"},"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":{"languages":[{"language":"en","href":"overview"},{"language":"es","href":"es/overview"},{"language":"fr","href":"fr/overview"},{"language":"hi","href":"hi/overview"},{"language":"ja","href":"ja/overview"},{"language":"ko","href":"ko/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"generaltranslation","hasAudioNarration":false,"actualSubdomain":"generaltranslation","customDomains":[],"gitSource":{"type":"github","owner":"fernando-aviles","repo":"x-docs","deployBranch":"locadex/setup-1769989792329","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae92afb0a94bfe43457bdcb:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"en","tag":"API Reference","count":371},{"language":"es","tag":"Referencia de la API","count":371},{"language":"fr","tag":"Référence de l’API","count":371},{"language":"hi","tag":"API संदर्भ","count":371},{"language":"ja","tag":"APIリファレンス","count":371},{"language":"ko","tag":"API 참조 문서","count":371},{"language":"en","tag":"TypeScript SDK","count":315},{"language":"es","tag":"SDK de TypeScript","count":315},{"language":"fr","tag":"SDK TypeScript","count":315},{"language":"hi","tag":"TypeScript SDK","count":315},{"language":"ja","tag":"TypeScript SDK","count":315},{"language":"ko","tag":"TypeScript SDK","count":315},{"language":"en","tag":"X API","count":295},{"language":"es","tag":"X API","count":294},{"language":"fr","tag":"X API","count":294},{"language":"hi","tag":"X API","count":294},{"language":"ja","tag":"X API","count":294},{"language":"ko","tag":"X API","count":294},{"language":"en","tag":"Interfaces","count":284},{"language":"es","tag":"Interfaces","count":284},{"language":"fr","tag":"Interfaces","count":284},{"language":"hi","tag":"इंटरफेस","count":284},{"language":"ja","tag":"インターフェイス","count":284},{"language":"ko","tag":"인터페이스","count":284},{"language":"en","tag":"Misc","count":281},{"language":"es","tag":"Varios","count":281},{"language":"fr","tag":"Divers","count":281},{"language":"hi","tag":"विविध","count":281},{"language":"ja","tag":"その他","count":281},{"language":"ko","tag":"기타","count":281},{"language":"en","tag":"Posts","count":78},{"language":"es","tag":"Publicaciones","count":78},{"language":"fr","tag":"Publications","count":78},{"language":"hi","tag":"पोस्ट्स","count":78},{"language":"ja","tag":"投稿","count":78},{"language":"ko","tag":"포스트","count":78},{"language":"en","tag":"Guides","count":76},{"language":"es","tag":"Guías","count":76},{"language":"fr","tag":"Guides","count":76},{"language":"ja","tag":"ガイド","count":76},{"language":"ko","tag":"가이드","count":76},{"language":"en","tag":"Python SDK","count":67},{"language":"es","tag":"SDK de Python","count":67},{"language":"fr","tag":"SDK Python","count":67},{"language":"hi","tag":"Python SDK","count":67},{"language":"ja","tag":"Python SDK","count":67},{"language":"ko","tag":"Python SDK","count":67},{"language":"en","tag":"Fundamentals","count":56},{"language":"hi","tag":"मार्गदर्शिकाएँ","count":50},{"language":"es","tag":"Conceptos básicos","count":43},{"language":"ko","tag":"기본 개념","count":43},{"language":"en","tag":"Lists","count":40},{"language":"es","tag":"Listas","count":40},{"language":"fr","tag":"Listes","count":40},{"language":"hi","tag":"सूचियाँ","count":40},{"language":"ja","tag":"リスト","count":40},{"language":"ko","tag":"리스트","count":40},{"language":"hi","tag":"बुनियादी बातें","count":39},{"language":"fr","tag":"Accueil","count":37},{"language":"ja","tag":"ホーム","count":37}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"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":"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":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"GraphikWide\";src:url(\"https://mintlify-assets.b-cdn.net/x/GraphikWide-Semibold-Trial.woff\") format(\"woff\");font-weight:600}.font-branded,h1,h2,h3{font-family:\"GraphikWide\";letter-spacing:-1%}.form{padding:15px;width:100%;min-height:300px;overflow-y:auto}.rate-limit-table th{text-align:left}tr td[data-label=\"Endpoint\"] a{font-size:12px}tr td[data-label=\"Pro Limit\"],tr td[data-label=\"Basic Limit\"],tr td[data-label=\"Free Limit\"]{font-size:12px}td[data-label=\"Pro Limit\"] strong,td[data-label=\"Basic Limit\"] strong,td[data-label=\"Free Limit\"] strong{margin-bottom:8px;display:block}.text-hero{color:white;font-weight:600;font-size:3rem;margin:0}@media (max-width: 767px){.text-hero{font-size:2rem}}#assistant-entry span{font-size:0!important;line-height:0!important}#assistant-entry span::before{content:\"Ask Grok\";font-size:0.875rem;line-height:1.5rem}#assistant-entry svg{display:none!important}#assistant-entry::before{content:\"\";display:inline-block;width:18px;height:18px;background-image:url(\"data:image/svg+xml,%3Csvg fill='%23000000' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:contain;vertical-align:middle}.dark #assistant-entry::before{background-image:url(\"data:image/svg+xml,%3Csvg fill='%23ffffff' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\")}.chat-assistant-sheet-header span.font-semibold{font-size:0!important}.chat-assistant-sheet-header span.font-semibold::before{content:\"Grok\";font-size:0.875rem;font-weight:600}.chat-assistant-sheet-header svg.size-5.text-primary.dark\\:text-primary-light{display:none!important}.chat-assistant-sheet-header .flex.items-center.gap-2::before{content:\"\";display:inline-block;width:18px;height:18px;background-image:url(\"data:image/svg+xml,%3Csvg fill='%23000000' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:contain;vertical-align:middle}.dark .chat-assistant-sheet-header .flex.items-center.gap-2::before{background-image:url(\"data:image/svg+xml,%3Csvg fill='%23ffffff' fill-rule='evenodd' height='1em' style='flex:none;line-height:1' viewBox='0 0 24 24' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3EGrok%3C/title%3E%3Cpath d='M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815'/%3E%3C/svg%3E\")}[data-component-part=\"update-label\"]{background-color:white;color:black!important}#navbar>*:nth-child(2){max-width:none!important;margin-left:0!important;margin-right:0!important}#sidebar{left:0!important}#sidebar-content{padding-left:2rem}#injected-slider{max-width:400px}#cost-estimator-button{position:relative}#cost-estimator-dropdown{min-width:400px;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}#usage-slider{-webkit-appearance:none;appearance:none;height:6px;background:#e5e7eb;outline:none;border-radius:3px}.dark #usage-slider{background:rgba(255, 255, 255, 0.1)}#usage-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;background:white;border:2px solid #00BA7C;border-radius:50%;cursor:pointer}.dark #usage-slider::-webkit-slider-thumb{background:#0B0C0E}#usage-slider::-moz-range-thumb{width:16px;height:16px;background:white;border:2px solid #00BA7C;border-radius:50%;cursor:pointer}.dark #usage-slider::-moz-range-thumb{background:#0B0C0E}"}],"page":{"pagePath":"ko/tutorials/getting-started-with-r-and-v2-of-the-x-api","slug":"/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api","pageMetadata":{"title":"R 및 X API v2 시작하기","mode":"wide","keywords":["R 프로그래밍","R 튜토리얼","R API","통계 분석","데이터 분석","R 언어","R 연동"],"description":null,"href":"/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api"},"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(`div`,{id:`introduction`,children:_jsx(Heading,{level:`2`,id:`소개`,children:`소개`})}),`\n`,_jsxs(_components.p,{children:[`이 튜토리얼에서는 프로그래밍 언어 R과 X API v2를 시작하는 데 필요한 내용을 단계별로 살펴봅니다. R을 사용해\n`,_jsx(_components.a,{href:`/ko/x-api/users/lookup/introduction`,children:`user lookup`}),` 엔드포인트에 연결하면서,\nX API에서 반환되는 JSON을 어떻게 다루는지 보여줄 것입니다. User lookup은\nGET 메서드이며, 사용자 id 또는 사용자 이름(username)으로 지정된\n하나의 사용자 또는 여러 사용자에 대한 정보를 반환합니다.`]}),`\n`,_jsxs(_components.p,{children:[`R에 익숙하지 않다면, R은 시계열 분석, 모델링, 시각화 및 기타 데이터\n분석과 같은 일반적인 데이터 사이언스 작업에 가장 널리 사용되는 언어 중 하나이며,\n종종 X API와 함께 사용됩니다. User lookup 엔드포인트와 함께\n`,_jsx(_components.a,{href:`/ko/x-api/fundamentals/data-dictionary#user`,children:`user object`}),`를 사용하면,\n특정 인물이 가진 팔로워 수와 그 사람의 프로필 소개(bio)의 감성 점수 간 상관관계를\n분석할 수 있습니다. User object는 또한 프로필에 공개적으로 기재된 위치 정보를\n기반으로 여러 계정으로 구성된 그룹을 매핑하는 데도 사용할 수 있습니다.`]}),`\n`,_jsx(`div`,{id:`getting-started-with-the-x-api`,children:_jsx(Heading,{level:`3`,id:`x-api-시작하기`,children:`X API 시작하기`})}),`\n`,_jsxs(_components.p,{children:[`X API v2를 사용하려면 먼저\n`,_jsx(_components.a,{href:`https://developer.x.com/en/portal/petition/essential/basic-info`,children:`가입`}),`을 통해\n개발자 계정을 만들어야 합니다.`]}),`\n`,_jsxs(_components.p,{children:[`개발자 계정 승인을 받은 후에는 먼저\n`,_jsx(_components.a,{href:`/ko/resources/fundamentals/developer-apps`,children:`Project`}),`를 생성해야 합니다. Project를 사용하면\nX API를 어떻게 사용할 계획인지에 따라 작업을 구성할 수 있으므로,\nAPI 접근 권한을 효율적으로 관리하고 사용량을 모니터링할 수 있습니다.`]}),`\n`,_jsxs(_components.p,{children:[`각 Project에는 `,_jsx(_components.a,{href:`/ko/resources/fundamentals/developer-apps`,children:`App`}),`이 포함되어 있으며, 이를 사용해\nX API를 사용하는 데 필요한 자격 증명을 생성할 수 있습니다. X API 사용을\n시작하는 방법에 대해 더 알고 싶다면 문서의\n`,_jsx(_components.a,{href:`/ko/x-api/getting-started/about-x-api`,children:`시작하기`}),` 섹션을 참고하세요.`]}),`\n`,_jsx(`div`,{id:`getting-your-r-environment-set-up`,children:_jsx(Heading,{level:`3`,id:`r-환경-설정하기`,children:`R 환경 설정하기`})}),`\n`,_jsxs(_components.p,{children:[`먼저 `,_jsx(_components.a,{href:`https://cloud.r-project.org/`,children:`R를 다운로드`}),`해야 하며,\n이는 `,_jsx(_components.a,{href:`https://cran.r-project.org/`,children:`CRAN 웹사이트`}),`에서 할 수 있습니다.`]}),`\n`,_jsxs(_components.p,{children:[`다음으로 R로 작업할 환경을 설정하기 위해\n`,_jsx(_components.a,{href:`https://www.rstudio.com/`,children:`RStudio`}),`,\n`,_jsx(_components.a,{href:`https://marketplace.visualstudio.com/items?itemName=Ikuyadeu.r-pack`,children:`Visual Studio Code`}),`의 R 확장 팩,\n또는 Python 환경에 익숙하다면\n`,_jsx(_components.a,{href:`https://docs.anaconda.com/anaconda/navigator/tutorials/r-lang/`,children:`Jupyter Notebook`}),`을 사용할 수 있습니다.`]}),`\n`,_jsx(`div`,{id:`setting-up-your-environment-variable`,children:_jsx(Heading,{level:`3`,id:`환경-변수-설정하기`,children:`환경 변수 설정하기`})}),`\n`,_jsx(_components.p,{children:`이 문서에서 보여 줄 코드 예제를 사용하려면 Bearer 토큰을 위한\n환경 변수를 만들어 두어야 합니다. Bearer 토큰은 X API에\n인증하고 요청을 보내기 시작할 수 있게 해 주는 값입니다. 먼저\n“your-bearer-token”을(를) 개발자 콘솔에서 App의 키 및 토큰 섹션을 통해\n발급받은 본인의 Bearer 토큰으로 교체하세요. 스크립트를 작성하기 전에\n터미널에서 이 한 줄의 코드를 실행해야 합니다.`}),`\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(`div`,{id:`making-your-request`,children:_jsx(Heading,{level:`3`,id:`요청-보내기`,children:`요청 보내기`})}),`\n`,_jsxs(_components.p,{children:[`패키지\n`,_jsx(_components.a,{href:`https://cran.r-project.org/web/packages/httr/index.html`,children:`httr`}),`를 사용해 X API로\nHTTP 요청을 보낼 수 있습니다. 아직 설치하지 않았다면 콘솔에서\n이 패키지를 설치하세요. 또한 JSON 객체를 다루기 위해\n`,_jsx(_components.a,{href:`https://cran.r-project.org/web/packages/jsonlite/index.html`,children:`jsonlite`}),`와\n데이터 처리를 위해 `,_jsx(_components.a,{href:`https://dplyr.tidyverse.org/`,children:`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:`#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:`이제 API에 연결하는 R 스크립트 작성을 시작할 수 있습니다. 파일 맨 위에서 httr, jsonlite, 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:[`코드 샘플의 첫 번째 단계는 X API에 인증할 수 있도록 환경을 설정하는 것입니다. App에서 가져온\n`,_jsx(_components.a,{href:`/ko/resources/fundamentals/authentication#using-and-generating-an-app-only-bearer-token`,children:`Bearer Token`}),`을 가져와서 인증을 위해 헤더에 넣으세요. 아래 예제에서 $BEARER_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:[`인증 설정을 마쳤다면, 요청에 사용할 파라미터를 정의하세요.\n기본적으로는 각 사용자에 대해 id, name, username 값만 반환됩니다.\n추가 `,_jsx(_components.a,{href:`/ko/x-api/fundamentals/fields`,children:`필드`}),`와\n`,_jsx(_components.a,{href:`/ko/x-api/fundamentals/expansions`,children:`expansions`}),`를 더해 이 JSON 페이로드를 조정할 수 있습니다.\n이 예제에서는 사용자의 프로필 소개(bio)를 가져와야 하며, 이는 user.fields=description 으로 요청하고,\n사용자의 고정 게시물(pinned Post)을 포함하는 expansion도 함께 요청합니다.`]}),`\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`,_jsxs(_components.p,{children:[`이제 더 많은 정보를 가져오려는 X 핸들(계정이라고도 함)을 사용해 URL을 포맷팅할 준비가 되었습니다. 이 샘플을 재사용할 수 있도록 `,_jsx(_components.code,{children:`readline`}),` 메서드를 사용하세요. 조회하려는 핸들을 입력한 뒤 `,_jsx(_components.code,{children:`$USERNAME`}),`을 원하는 X 핸들로 교체하여, 정의한 핸들이 URL에 포함되도록 구성합니다.`]}),`\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:`이제 httr 패키지를 사용해 방금 생성한 URL로 GET 요청을 보내고, 헤더를 통해 우리의 인증 정보를 전달한 뒤, 정의한 매개변수들을 함께 넘기면 됩니다. 응답은 변수 obj에 텍스트 객체로 저장한 다음, 이를 출력해서 방금 보낸 요청의 결과를 확인할 수 있습니다.`}),`\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(`div`,{id:`working-with-our-json-payload`,children:_jsx(Heading,{level:`3`,id:`json-페이로드-다루기`,children:`JSON 페이로드 다루기`})}),`\n`,_jsx(_components.p,{children:`JSON을 다룰 때 제가 가장 선호하는 방법 중 하나는 데이터 프레임을 사용하는 것입니다. 데이터 프레임을 사용하면 복잡하게 중첩된 데이터에도 쉽게 접근할 수 있습니다. 이를 위해 jsonlite 패키지의 fromJSON 메서드를 사용하여 파일을 평탄화(flatten)해 필드가 동일한 객체 안에 있도록 만듭니다. 그런 다음, 그 객체를 데이터 프레임으로 변환합니다. 이제 이 데이터 프레임을 확인할 준비가 되었습니다.`}),`\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:`데이터 프레임에서 데이터의 필드에 접근해 핸들, 사용자 이름, 프로필 소개를 포함하는 문자열을 만들 수 있습니다.`}),`\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`,_jsxs(_components.p,{children:[`각 필드 사이에 줄바꿈이 들어가도록 객체를 출력하려면 `,_jsx(_components.code,{children:`print`}),` 대신 `,_jsx(_components.code,{children:`cat`}),`을 사용하세요.`]}),`\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:`여러 개의 핸들에 대해 요청을 보낸 경우라면, 루프를 사용해 데이터 프레임의 각 요소에 쉽게 접근할 수 있습니다.`}),`\n`,_jsx(`div`,{id:`conclusion`,children:_jsx(Heading,{level:`3`,id:`결론`,children:`결론`})}),`\n`,_jsxs(_components.p,{children:[`이 튜토리얼이 R과 X API를 함께 사용하는 데 있어 출발점이 되었으면 합니다.\n다음 단계로, 최근 검색, 게시물 조회 및 사용자 조회를 위한 R 샘플을\n`,_jsx(_components.a,{href:`https://github.com/xdevplatform`,children:`v2 sample code`}),`에서 살펴보시기 바랍니다.\n진행 중에 문제가 발생하면 `,_jsx(_components.a,{href:`https://devcommunity.x.com/`,children:`forums`}),`에서 알려 주시거나,\n이 튜토리얼을 바탕으로 무언가를 만들게 되었다면 `,_jsx(_components.a,{href:`https://x.com/XDevelopers`,children:`@XDevelopers`}),`로\n게시물을 남겨 알려 주시기 바랍니다.`]})]})}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":"R 및 X API v2 시작하기","mode":"wide","keywords":["R 프로그래밍","R 튜토리얼","R API","통계 분석","데이터 분석","R 언어","R 연동"],"description":null,"href":"/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"소개","slug":"소개","depth":2,"children":[{"title":"X API 시작하기","slug":"x-api-시작하기","depth":3,"children":[]},{"title":"R 환경 설정하기","slug":"r-환경-설정하기","depth":3,"children":[]},{"title":"환경 변수 설정하기","slug":"환경-변수-설정하기","depth":3,"children":[]},{"title":"요청 보내기","slug":"요청-보내기","depth":3,"children":[]},{"title":"JSON 페이로드 다루기","slug":"json-페이로드-다루기","depth":3,"children":[]},{"title":"결론","slug":"결론","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/generaltranslation/f67e695317871503/widgets.js","/_mintlify/custom/generaltranslation/dd4721d49d6e0698/sliders.js"],"subdomain":"generaltranslation","siteName":"X","title":"R 및 X API v2 시작하기 - X","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api","matchLevel":0},"es":{"href":"/es/overview","matchLevel":4},"fr":{"href":"/fr/overview","matchLevel":4},"hi":{"href":"/hi/overview","matchLevel":4},"ja":{"href":"/ja/overview","matchLevel":4},"ko":{"href":"/ko/overview","matchLevel":4}}},"lastModified":"2026-04-02T03:58:16.624Z","originalFileLocation":"ko/tutorials/getting-started-with-r-and-v2-of-the-x-api.mdx","locale":"en"},"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=\"Build, analyze, and innovate with X\u0026#x27;s real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.\">\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/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_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/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"R 및 X API v2 시작하기 - X\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build, analyze, and innovate with X\u0026#x27;s real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"X Developer Platform\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.x.com/ko/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://generaltranslation.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=R+%EB%B0%8F+X+API+v2+%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0\u0026amp;theme=3199bd2c292b5ac8dc3f7441\u0026amp;signature=6ae0b4adc0ee708c771848dd4b687996a4397498968610fa4d5f2b094e2cc536\">\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=\"R 및 X API v2 시작하기 - X\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build, analyze, and innovate with X\u0026#x27;s real-time, global data and APIs. Access comprehensive API documentation, SDKs, tutorials, and developer tools.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://generaltranslation.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=R+%EB%B0%8F+X+API+v2+%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0\u0026amp;theme=3199bd2c292b5ac8dc3f7441\u0026amp;signature=6ae0b4adc0ee708c771848dd4b687996a4397498968610fa4d5f2b094e2cc536\">\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/generaltranslation/3OgqNYd4DMBAanRo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"X\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E0E0E\">\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/ko/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=\"/ko/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/generaltranslation/p-tsc5qa00w8y5M4/logo/light.svg?fit=max\u0026auto=format\u0026n=p-tsc5qa00w8y5M4\u0026q=85\u0026s=299a991122fb35a82f868bc62a8be1ae\"}},{\"@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/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api#webpage\",\"url\":\"https://docs.x.com/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api\",\"name\":\"R 및 X API v2 시작하기\",\"dateModified\":\"2026-04-02T03:58:16.624Z\",\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"}},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.x.com/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api#article\",\"headline\":\"R 및 X API v2 시작하기\",\"name\":\"R 및 X API v2 시작하기\",\"url\":\"https://docs.x.com/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api\",\"mainEntityOfPage\":{\"@id\":\"https://docs.x.com/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api#webpage\"},\"dateModified\":\"2026-04-02T03:58:16.624Z\",\"keywords\":\"R 프로그래밍, R 튜토리얼, R API, 통계 분석, 데이터 분석, R 언어, R 연동\",\"publisher\":{\"@id\":\"https://docs.x.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.x.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"X\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"X\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ko/tutorials/getting-started-with-r-and-v2-of-the-x-api.md","siteName":"X","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Home","groups":[{"group":"Getting Started","pages":[{"title":"X Developer Platform","sidebarTitle":"Overview","mode":"wide","icon":"house","href":"/overview"}]},{"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":"key","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":"How to connect to endpoints using 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":"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"},{"group":"Request Access","pages":[{"title":"Enterprise Access Form","href":"/forms/enterprise-api-interest"},{"title":"Government End User Request Form","href":"/forms/government-end-user-request"}]}]},{"group":"Resources","pages":[{"title":"Tools and Libraries","mode":"wide","icon":"toolbox","href":"/tools-and-libraries"},{"title":"Tutorials","mode":"wide","icon":"link","href":"/tutorials"},{"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":"X API","groups":[{"group":"Overview","pages":[{"title":"X API","sidebarTitle":"Introduction","mode":"wide","href":"/x-api/introduction"},{"group":"Getting started","pages":[{"title":"About the X API","sidebarTitle":"About X API","href":"/x-api/getting-started/about-x-api"},{"title":"Pricing","sidebarTitle":"Pricing","href":"/x-api/getting-started/pricing"},{"title":"Getting Access","sidebarTitle":"Getting Access","href":"/x-api/getting-started/getting-access"},{"title":"Make Your First Request","sidebarTitle":"Make Your First Request","href":"/x-api/getting-started/make-your-first-request"},{"title":"Important Resources","sidebarTitle":"Important Resources","href":"/x-api/getting-started/important-resources"}]},{"group":"Tools and libraries","pages":[{"title":"Tools \u0026 Libraries","sidebarTitle":"Overview","href":"/x-api/tools-and-libraries/overview"},{"title":"Official SDKs","sidebarTitle":"SDKs","href":"/x-api/tools-and-libraries/sdks"}]},{"group":"Migration guide","pages":[{"title":"Overview","href":"/x-api/migrate/overview"},{"title":"Data Formation Migration","href":"/x-api/migrate/data-format-migration"},{"title":"X API endpoint map","href":"/x-api/migrate/x-api-endpoint-map"}]},{"title":"What to Build","sidebarTitle":"What to Build","href":"/x-api/what-to-build"},{"group":"Fundamentals","pages":[{"title":"Data Dictionary","sidebarTitle":"Data Dictionary","href":"/x-api/fundamentals/data-dictionary"},{"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":"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":"/openapi.json GET /2/tweets/search/all","title":"Search all Posts","href":"/x-api/posts/search-all-posts"},{"openapi":"/openapi.json GET /2/tweets/search/recent","title":"Search recent Posts","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":"/openapi.json GET /2/tweets/counts/all","title":"Get count of all Posts","href":"/x-api/posts/get-count-of-all-posts"},{"openapi":"/openapi.json GET /2/tweets/counts/recent","title":"Get count of recent Posts","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":"Stream Rule Operators","sidebarTitle":"Operators","href":"/x-api/posts/filtered-stream/integrate/operators"},{"title":"Consuming streaming data","sidebarTitle":"Consuming streaming data","href":"/x-api/posts/filtered-stream/integrate/consuming-streaming-data"},{"title":"Handling disconnections","sidebarTitle":"Handling disconnections","href":"/x-api/posts/filtered-stream/integrate/handling-disconnections"},{"title":"Handling high-volume capacity","sidebarTitle":"Handling high-volume capacity","href":"/x-api/posts/filtered-stream/integrate/handling-high-volume-capacity"},{"title":"Matching Posts to Rules","sidebarTitle":"Matching Posts to Rules","href":"/x-api/posts/filtered-stream/integrate/matching-returned-tweets"},{"title":"Recovery and redundancy","sidebarTitle":"Recovery and redundancy","href":"/x-api/posts/filtered-stream/integrate/recovery-and-redundancy-features"}]}]},{"openapi":"/openapi.json GET /2/tweets/search/stream","title":"Stream filtered Posts","href":"/x-api/stream/stream-filtered-posts"},{"openapi":"/openapi.json GET /2/tweets/search/stream/rules","title":"Get stream rules","href":"/x-api/stream/get-stream-rules"},{"openapi":"/openapi.json GET /2/tweets/search/stream/rules/counts","title":"Get stream rule counts","href":"/x-api/stream/get-stream-rule-counts"},{"openapi":"/openapi.json 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":"/openapi.json GET /2/users/{id}/tweets","title":"Get Posts","href":"/x-api/users/get-posts"},{"openapi":"/openapi.json GET /2/users/{id}/mentions","title":"Get mentions","href":"/x-api/users/get-mentions"},{"openapi":"/openapi.json GET /2/users/{id}/timelines/reverse_chronological","title":"Get 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":"/openapi.json GET /2/tweets","title":"Get Posts by IDs","href":"/x-api/posts/get-posts-by-ids"},{"openapi":"/openapi.json GET /2/tweets/{id}","title":"Get Post 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":"/openapi.json GET /2/users/{id}/bookmarks/folders","title":"Get Bookmark folders","href":"/x-api/users/get-bookmark-folders"},{"openapi":"/openapi.json GET /2/users/{id}/bookmarks/folders/{folder_id}","title":"Get Bookmarks by folder ID","href":"/x-api/bookmarks/get-bookmarks-by-folder-id"}]},{"openapi":"/openapi.json GET /2/users/{id}/bookmarks","title":"Get Bookmarks","href":"/x-api/users/get-bookmarks"},{"openapi":"/openapi.json POST /2/users/{id}/bookmarks","title":"Create Bookmark","href":"/x-api/users/create-bookmark"},{"openapi":"/openapi.json DELETE /2/users/{id}/bookmarks/{tweet_id}","title":"Delete Bookmark","href":"/x-api/users/delete-bookmark"}]},{"group":"Manage Posts","pages":[{"title":"Manage Posts","sidebarTitle":"Introduction","href":"/x-api/posts/manage-tweets/introduction"},{"group":"Guides","pages":[{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/posts/manage-tweets/quickstart"},{"title":"Integration guide","sidebarTitle":"Integration guide","href":"/x-api/posts/manage-tweets/integrate"}]},{"openapi":"/openapi.json POST /2/tweets","title":"Create or Edit Post","href":"/x-api/posts/create-post"},{"openapi":"/openapi.json DELETE /2/tweets/{id}","title":"Delete Post","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":"/openapi.json GET /2/tweets/{id}/retweeted_by","title":"Get Reposted by","href":"/x-api/posts/get-reposted-by"},{"openapi":"/openapi.json POST /2/users/{id}/retweets","title":"Repost Post","href":"/x-api/users/repost-post"},{"openapi":"/openapi.json DELETE /2/users/{id}/retweets/{source_tweet_id}","title":"Unrepost Post","href":"/x-api/users/unrepost-post"},{"openapi":"/openapi.json GET /2/tweets/{id}/retweets","title":"Get Reposts","href":"/x-api/posts/get-reposts"},{"openapi":"/openapi.json GET /2/users/reposts_of_me","title":"Get 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":"/openapi.json GET /2/tweets/{id}/quote_tweets","title":"Get 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"},{"title":"Apps","sidebarTitle":"Apps","href":"/x-api/posts/hide-replies/apps"},{"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 by topic","sidebarTitle":"Manage replies by topic","href":"/x-api/posts/hide-replies/integrate/manage-replies-in-realtime"}]}]},{"openapi":"/openapi.json PUT /2/tweets/{tweet_id}/hidden","title":"Hide reply","href":"/x-api/posts/hide-reply"}]}]},{"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":"/openapi.json GET /2/users/{id}","title":"Get User by ID","href":"/x-api/users/get-user-by-id"},{"openapi":"/openapi.json GET /2/users","title":"Get Users by IDs","href":"/x-api/users/get-users-by-ids"},{"openapi":"/openapi.json GET /2/users/by","title":"Get Users by usernames","href":"/x-api/users/get-users-by-usernames"},{"openapi":"/openapi.json GET /2/users/by/username/{username}","title":"Get User by username","href":"/x-api/users/get-user-by-username"},{"openapi":"/openapi.json GET /2/users/me","title":"Get my User","href":"/x-api/users/get-my-user"}]},{"group":"Search","pages":[{"title":"User Search","sidebarTitle":"Introduction","href":"/x-api/users/search/introduction"},{"openapi":"/openapi.json 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":"/openapi.json GET /2/users/{id}/followers","title":"Get followers","href":"/x-api/users/get-followers"},{"openapi":"/openapi.json GET /2/users/{id}/following","title":"Get following","href":"/x-api/users/get-following"},{"openapi":"/openapi.json POST /2/users/{id}/following","title":"Follow User","href":"/x-api/users/follow-user"},{"openapi":"/openapi.json 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":"/openapi.json POST /2/users/{id}/muting","title":"Mute User","href":"/x-api/users/mute-user"},{"openapi":"/openapi.json DELETE /2/users/{source_user_id}/muting/{target_user_id}","title":"Unmute User","href":"/x-api/users/unmute-user"},{"openapi":"/openapi.json GET /2/users/{id}/muting","title":"Get 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":"/openapi.json GET /2/users/{id}/blocking","title":"Get blocking","href":"/x-api/users/get-blocking"}]}]},{"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":"/openapi.json POST /2/dm_conversations","title":"Create DM conversation","href":"/x-api/direct-messages/create-dm-conversation"},{"openapi":"/openapi.json DELETE /2/dm_events/{event_id}","title":"Delete DM event","href":"/x-api/direct-messages/delete-dm-event"},{"openapi":"/openapi.json 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":"/openapi.json POST /2/dm_conversations/{dm_conversation_id}/messages","title":"Create DM message 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":"/openapi.json GET /2/dm_conversations/with/{participant_id}/dm_events","title":"Get DM events for a DM conversation","href":"/x-api/direct-messages/get-dm-events-for-a-dm-conversation"},{"openapi":"/openapi.json GET /2/dm_conversations/{id}/dm_events","title":"Get DM events for a DM conversation","href":"/x-api/direct-messages/get-dm-events-for-a-dm-conversation-1"},{"openapi":"/openapi.json GET /2/dm_events","title":"Get DM events","href":"/x-api/direct-messages/get-dm-events"},{"openapi":"/openapi.json GET /2/dm_events/{event_id}","title":"Get DM event by ID","href":"/x-api/direct-messages/get-dm-event-by-id"}]},{"group":"Blocks","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/x-api/direct-messages/blocks/introduction"},{"openapi":"/openapi.json POST /2/users/{id}/dm/block","title":"Block DMs","href":"/x-api/users/block-dms"},{"openapi":"/openapi.json POST /2/users/{id}/dm/unblock","title":"Unblock 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":"/openapi.json GET /2/users/{id}/liked_tweets","title":"Get liked Posts","href":"/x-api/users/get-liked-posts"},{"openapi":"/openapi.json GET /2/tweets/{id}/liking_users","title":"Get Liking Users","href":"/x-api/posts/get-liking-users"},{"openapi":"/openapi.json POST /2/users/{id}/likes","title":"Like Post","href":"/x-api/users/like-post"},{"openapi":"/openapi.json 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":"/openapi.json GET /2/lists/{id}","title":"Get List by ID","href":"/x-api/lists/get-list-by-id"},{"openapi":"/openapi.json GET /2/users/{id}/followed_lists","title":"Get followed Lists","href":"/x-api/users/get-followed-lists"},{"openapi":"/openapi.json GET /2/users/{id}/owned_lists","title":"Get 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":"/openapi.json GET /2/lists/{id}/tweets","title":"Get List 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":"/openapi.json POST /2/lists","title":"Create List","href":"/x-api/lists/create-list"},{"openapi":"/openapi.json PUT /2/lists/{id}","title":"Update List","href":"/x-api/lists/update-list"},{"openapi":"/openapi.json DELETE /2/lists/{id}","title":"Delete List","href":"/x-api/lists/delete-list"},{"openapi":"/openapi.json POST /2/users/{id}/followed_lists","title":"Follow List","href":"/x-api/users/follow-list"},{"openapi":"/openapi.json DELETE /2/users/{id}/followed_lists/{list_id}","title":"Unfollow 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":"/openapi.json POST /2/lists/{id}/members","title":"Add List member","href":"/x-api/lists/add-list-member"},{"openapi":"/openapi.json DELETE /2/lists/{id}/members/{user_id}","title":"Remove List member","href":"/x-api/lists/remove-list-member"}]},{"group":"Lookup","pages":[{"openapi":"/openapi.json GET /2/users/{id}/list_memberships","title":"Get List memberships","href":"/x-api/users/get-list-memberships"},{"openapi":"/openapi.json GET /2/lists/{id}/followers","title":"Get List followers","href":"/x-api/lists/get-list-followers"},{"openapi":"/openapi.json GET /2/lists/{id}/members","title":"Get List 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":"/openapi.json GET /2/users/{id}/pinned_lists","title":"Get pinned Lists","href":"/x-api/users/get-pinned-lists"},{"openapi":"/openapi.json POST /2/users/{id}/pinned_lists","title":"Pin List","href":"/x-api/users/pin-list"},{"openapi":"/openapi.json DELETE /2/users/{id}/pinned_lists/{list_id}","title":"Unpin List","href":"/x-api/users/unpin-list"}]}]},{"group":"Spaces","pages":[{"title":"Introduction","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":"/openapi.json GET /2/spaces","title":"Get Spaces by IDs","href":"/x-api/spaces/get-spaces-by-ids"},{"openapi":"/openapi.json GET /2/spaces/by/creator_ids","title":"Get Spaces by creator IDs","href":"/x-api/spaces/get-spaces-by-creator-ids"},{"openapi":"/openapi.json GET /2/spaces/{id}","title":"Get space by ID","href":"/x-api/spaces/get-space-by-id"},{"openapi":"/openapi.json GET /2/spaces/{id}/tweets","title":"Get Space Posts","href":"/x-api/spaces/get-space-posts"},{"openapi":"/openapi.json 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":"/openapi.json 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":"/openapi.json GET /2/communities/{id}","title":"Get Community 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":"/openapi.json GET /2/communities/search","title":"Search Communities","href":"/x-api/communities/search-communities"}]}]},{"group":"Community Notes","pages":[{"title":null,"href":"/x-api/community-notes/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/community-notes/quickstart"},{"openapi":"/openapi.json GET /2/notes/search/posts_eligible_for_notes","title":"Search for Posts Eligible for Community Notes","href":"/x-api/community-notes/search-for-posts-eligible-for-community-notes"},{"openapi":"/openapi.json GET /2/notes/search/notes_written","title":"Search for Community Notes Written","href":"/x-api/community-notes/search-for-community-notes-written"},{"openapi":"/openapi.json POST /2/notes","title":"Create a Community Note","href":"/x-api/community-notes/create-a-community-note"},{"openapi":"/openapi.json DELETE /2/notes/{id}","title":"Delete a Community Note","href":"/x-api/community-notes/delete-a-community-note"},{"openapi":"/openapi.json POST /2/evaluate_note","title":"Evaluate a Community Note","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":"/openapi.json 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":"/openapi.json GET /2/users/personalized_trends","title":"Get personalized Trends","href":"/x-api/trends/get-personalized-trends"}]}]},{"group":"News","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/x-api/news/introduction"},{"openapi":"/openapi.json GET /2/news/{id}","title":"Get news stories by ID","href":"/x-api/news/get-news-stories-by-id"},{"openapi":"/openapi.json GET /2/news/search","title":"Search News","href":"/x-api/news/search-news"}]},{"group":"Media","pages":[{"title":"Introduction","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":"/openapi.json POST /2/media/upload","title":"Upload media","href":"/x-api/media/upload-media"},{"openapi":"/openapi.json POST /2/media/upload/initialize","title":"Initialize media upload","href":"/x-api/media/initialize-media-upload"},{"openapi":"/openapi.json POST /2/media/upload/{id}/append","title":"Append Media upload","href":"/x-api/media/append-media-upload"},{"openapi":"/openapi.json POST /2/media/upload/{id}/finalize","title":"Finalize Media upload","href":"/x-api/media/finalize-media-upload"},{"openapi":"/openapi.json GET /2/media/upload","title":"Get Media upload status","href":"/x-api/media/get-media-upload-status"}]},{"group":"Metadata","pages":[{"openapi":"/openapi.json POST /2/media/metadata","title":"Create Media metadata","href":"/x-api/media/create-media-metadata"},{"openapi":"/openapi.json POST /2/media/subtitles","title":"Create Media subtitles","href":"/x-api/media/create-media-subtitles"},{"openapi":"/openapi.json DELETE /2/media/subtitles","title":"Delete Media subtitles","href":"/x-api/media/delete-media-subtitles"}]}]},{"group":"X Activity","pages":[{"title":"Activity Stream","sidebarTitle":"Introduction","href":"/x-api/activity/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/x-api/activity/quickstart"},{"openapi":"/openapi.json GET /2/activity/stream","title":"Activity Stream","href":"/x-api/activity/activity-stream"},{"openapi":"/openapi.json POST /2/activity/subscriptions","title":"Create X activity subscription","href":"/x-api/activity/create-x-activity-subscription"},{"openapi":"/openapi.json DELETE /2/activity/subscriptions/{subscription_id}","title":"Deletes X activity subscription","href":"/x-api/activity/deletes-x-activity-subscription"},{"openapi":"/openapi.json GET /2/activity/subscriptions","title":"Get X activity subscriptions","href":"/x-api/activity/get-x-activity-subscriptions"},{"openapi":"/openapi.json 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":"/openapi.json GET /2/usage/tweets","title":"Get usage","href":"/x-api/usage/get-usage"}]},{"group":"Stream Connections","pages":[{"openapi":"/openapi.json 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":"/openapi.json GET /2/compliance/jobs","title":"Get Compliance Jobs","href":"/x-api/compliance/get-compliance-jobs"},{"openapi":"/openapi.json POST /2/compliance/jobs","title":"Create Compliance Job","href":"/x-api/compliance/create-compliance-job"},{"openapi":"/openapi.json 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":"Introduction","sidebarTitle":"Introduction","href":"/x-api/compliance/streams/introduction"},{"openapi":"/openapi.json GET /2/likes/compliance/stream","title":"Stream Likes compliance data","href":"/x-api/stream/stream-likes-compliance-data"},{"openapi":"/openapi.json GET /2/tweets/compliance/stream","title":"Stream Posts compliance data","href":"/x-api/stream/stream-posts-compliance-data"},{"openapi":"/openapi.json GET /2/users/compliance/stream","title":"Stream Users compliance data","href":"/x-api/stream/stream-users-compliance-data"}]}]},{"group":"Enterprise v2","pages":[{"group":"Engagement Metrics","pages":[{"openapi":"/openapi.json GET /2/tweets/analytics","title":"Get Post analytics","href":"/x-api/posts/get-post-analytics"},{"openapi":"/openapi.json GET /2/media/analytics","title":"Get Media analytics","href":"/x-api/media/get-media-analytics"}]},{"group":"Webhooks","pages":[{"title":"Webhooks","sidebarTitle":"Introduction","href":"/x-api/webhooks/introduction"},{"openapi":"/openapi.json POST /2/webhooks","title":"Create webhook","href":"/x-api/webhooks/create-webhook"},{"openapi":"/openapi.json DELETE /2/webhooks/{webhook_id}","title":"Delete webhook","href":"/x-api/webhooks/delete-webhook"},{"openapi":"/openapi.json GET /2/webhooks","title":"Get webhook","href":"/x-api/webhooks/get-webhook"},{"openapi":"/openapi.json PUT /2/webhooks/{webhook_id}","title":"Validate webhook","href":"/x-api/webhooks/validate-webhook"},{"openapi":"/openapi.json POST /2/webhooks/replay","title":"Create replay job for webhook","href":"/x-api/webhooks/create-replay-job-for-webhook"}]},{"group":"Account Activity","pages":[{"title":"Account Activity API","sidebarTitle":"Introduction","href":"/x-api/account-activity/introduction"},{"group":"Migration guide","pages":[{"title":"v2 Account Activity API Migration Guide","href":"/x-api/account-activity/migrate/overview"}]},{"openapi":"/openapi.json GET /2/account_activity/webhooks/{webhook_id}/subscriptions/all","title":"Validate subscription","href":"/x-api/account-activity/validate-subscription"},{"openapi":"/openapi.json DELETE /2/account_activity/webhooks/{webhook_id}/subscriptions/{user_id}/all","title":"Delete subscription","href":"/x-api/account-activity/delete-subscription"},{"openapi":"/openapi.json GET /2/account_activity/subscriptions/count","title":"Get subscription count","href":"/x-api/account-activity/get-subscription-count"},{"openapi":"/openapi.json GET /2/account_activity/webhooks/{webhook_id}/subscriptions/all/list","title":"Get subscriptions","href":"/x-api/account-activity/get-subscriptions"},{"openapi":"/openapi.json POST /2/account_activity/replay/webhooks/{webhook_id}/subscriptions/all","title":"Create replay job","href":"/x-api/account-activity/create-replay-job"},{"openapi":"/openapi.json POST /2/account_activity/webhooks/{webhook_id}/subscriptions/all","title":"Create subscription","href":"/x-api/account-activity/create-subscription"}]},{"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":"/openapi.json POST /2/tweets/search/webhooks/{webhook_id}","title":"Create stream link","href":"/x-api/webhooks/create-stream-link"},{"openapi":"/openapi.json DELETE /2/tweets/search/webhooks/{webhook_id}","title":"Delete stream link","href":"/x-api/webhooks/delete-stream-link"},{"openapi":"/openapi.json GET /2/tweets/search/webhooks","title":"Get stream links","href":"/x-api/webhooks/get-stream-links"}]},{"group":"Powerstream","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/x-api/powerstream/introduction"},{"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":"Volume Streams","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/x-api/posts/volume-streams/introduction"},{"openapi":"/openapi.json GET /2/tweets/firehose/stream","title":"Stream all Posts","href":"/x-api/stream/stream-all-posts"},{"openapi":"/openapi.json GET /2/tweets/firehose/stream/lang/en","title":"Stream English Posts","href":"/x-api/stream/stream-english-posts"},{"openapi":"/openapi.json GET /2/tweets/firehose/stream/lang/ja","title":"Stream Japanese Posts","href":"/x-api/stream/stream-japanese-posts"},{"openapi":"/openapi.json GET /2/tweets/firehose/stream/lang/ko","title":"Stream Korean Posts","href":"/x-api/stream/stream-korean-posts"},{"openapi":"/openapi.json GET /2/tweets/firehose/stream/lang/pt","title":"Stream Portuguese Posts","href":"/x-api/stream/stream-portuguese-posts"},{"openapi":"/openapi.json GET /2/tweets/sample/stream","title":"Stream sampled Posts","href":"/x-api/stream/stream-sampled-posts"},{"openapi":"/openapi.json GET /2/tweets/sample10/stream","title":"Stream 10% sampled Posts","href":"/x-api/stream/stream-10-sampled-posts"}]}]},{"group":"Likes Streams","pages":[{"openapi":"/openapi.json GET /2/likes/firehose/stream","title":"Stream all Likes","href":"/x-api/stream/stream-all-likes"},{"openapi":"/openapi.json GET /2/likes/sample10/stream","title":"Stream sampled Likes","href":"/x-api/stream/stream-sampled-likes"}]},{"group":"GNIP 2.0","pages":[{"group":"Fundamentals","pages":[{"title":"Gnip console","href":"/x-api/enterprise-gnip-2.0/fundamentals/overview"},{"title":"Data dictionary: Enterprise","sidebarTitle":"Data dictionary","href":"/x-api/enterprise-gnip-2.0/fundamentals/data-dictionary"},{"title":"Data enrichments: Enterprise","href":"/x-api/enterprise-gnip-2.0/fundamentals/data-enrichments"},{"title":"Rules and filtering: Enterprise","href":"/x-api/enterprise-gnip-2.0/fundamentals/rules-filtering"},{"title":"Rate limits: Enterprise","href":"/x-api/enterprise-gnip-2.0/fundamentals/rate-limits"},{"title":"Edit Tweets","href":"/x-api/enterprise-gnip-2.0/fundamentals/edit-tweets"}]},{"title":"Enterprise","href":"/x-api/enterprise-gnip-2.0/enterprise-gnip"},{"title":"PowerTrack API","href":"/x-api/enterprise-gnip-2.0/powertrack-api"},{"title":"Decahose API","href":"/x-api/enterprise-gnip-2.0/fundamentals/decahose-api"},{"title":"Account Activity API: Enterprise","href":"/x-api/enterprise-gnip-2.0/fundamentals/account-activity"},{"title":"Search API: Enterprise","sidebarTitle":"Search API","href":"/x-api/enterprise-gnip-2.0/fundamentals/search-api"},{"title":"Engagement API","href":"/x-api/enterprise-gnip-2.0/fundamentals/engagement-api"},{"title":"Compliance Firehose API","href":"/x-api/enterprise-gnip-2.0/fundamentals/firehouse"},{"title":"Usage API","sidebarTitle":"Usage API","href":"/x-api/enterprise-gnip-2.0/fundamentals/usage"}]}]},{"tab":"X Ads API","groups":[{"group":"X Ads API","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":[{"title":"Tools and libraries","href":"/x-ads-api/tools-and-libraries"},{"title":"Analytics","href":"/x-ads-api/analytics"},{"title":"Audiences","href":"/x-ads-api/audiences"},{"group":"Campaign Management","pages":[{"title":"Campaign Management","sidebarTitle":"Overview","href":"/x-ads-api/campaign-management"},{"group":"Guides","pages":[{"title":"Creating a DPA Campaign - Step-by-Step","href":"/x-ads-api/guides/create-a-dpa-campaign"}]}]},{"title":"Catalog Management","href":"/x-ads-api/catalog-management"},{"title":"Creatives","href":"/x-ads-api/creatives"}]},{"group":"Measurement","pages":[{"title":"Mobile Conversions","href":"/x-ads-api/measurement/mobile-conversions"},{"title":"Web conversions","href":"/x-ads-api/measurement/web-conversions"},{"title":"AB Testing","href":"/x-ads-api/measurement/ab-testing"}]}]},{"tab":"XDKs","groups":[{"group":"XDKs","pages":[{"title":"XDK Overview","sidebarTitle":"Overview","mode":"wide","href":"/xdks/overview"}]}]},{"tab":"Tutorials","groups":[{"group":"Tutorials","pages":[{"title":"Explore a user's Posts and mentions with the X API v2","sidebarTitle":"Explore a user's Posts","mode":"wide","href":"/tutorials/explore-a-users-posts"},{"title":"Getting started with Postman","mode":"wide","href":"/tutorials/postman-getting-started"},{"title":"Getting historical Posts using the v2 full-archive search endpoint","mode":"wide","href":"/tutorials/getting-historical-posts-using-the-full-archive-search-endpoint"}]}]},{"tab":"Use Cases","groups":[{"group":"Build for businesses","pages":[{"title":"Build for businesses","mode":"wide","href":"/use-cases/build-for-business"},{"title":"Build for the public","mode":"wide","href":"/use-cases/build-for-consumers"},{"title":"Do research","mode":"wide","href":"/use-cases/do-research"},{"title":"Teach and learn","mode":"wide","href":"/use-cases/teach-and-learn"},{"title":"Build for good","mode":"wide","href":"/use-cases/build-for-good"},{"title":"Build for fun","mode":"wide","href":"/use-cases/build-for-fun"}]}]},{"tab":"Success Stories","groups":[{"group":"Success Stories","pages":[{"title":"Success Stories","mode":"wide","href":"/success-stories"}]}]},{"tab":"Status","groups":[{"group":"Status","pages":[{"title":"X Developer Platform Status","href":"/status"},{"title":"Incident History","href":"/incidents"}]}]},{"tab":"Changelog","groups":[{"group":"Changelog","pages":[{"title":"Changelog","sidebarTitle":"Overview","href":"/changelog"}]}]},{"tab":"Python SDK","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":"xdk","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"}]}]}]}]},{"tab":"TypeScript SDK","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":"X API SDK v2.152 - v0.4.0","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"}]}]}]}]}],"global":{"anchors":[{"anchor":"Developer Console","icon":"circle-play","href":"https://developer.x.com/en/portal/petition/essential/basic-info"},{"anchor":"Forums","icon":"messages","href":"https://devcommunity.x.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/xdevplatform"}]}},{"language":"es","pages":[{"title":"es","href":"/es/overview"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/overview"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/overview"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/overview"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/overview"}]}]},"basePath":"","title":"R 및 X API v2 시작하기 - X","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}