Vai al contenuto principale
Il grafico seguente mostra la corrispondenza tra gli endpoint v2 e i relativi metodi di autenticazione.
EndpointContesto utente OAuth 1.0aOAuth 2.0 App only
OAuth 2.0
Authorization Code with PKCE
Ricerca Tweet

Recupera più Tweet con un elenco di ID

GET /2/tweets

Recupera un singolo Tweet con un ID

GET /2/tweets/:id


Scope:

tweet.read

users.read
Gestisci Tweet

Pubblica un Tweet

POST /2/tweets

Elimina un Tweet

DELETE /2/tweets/:id


Scope:

tweet.read

tweet.write

users.read
Timeline

Timeline Tweet utente

GET /2/users/:id/tweets

Timeline menzioni utente

GET /2/users/:id/mentions

Timeline home cronologica inversa

GET /2/users/:id/timelines/reverse_cronological




Scope:

tweet.read

users.read



Scope:

tweet.read

users.read
Ricerca recente

Cerca Tweet pubblicati negli ultimi 7 giorni

GET /2/tweets/search/recent


Scope:

tweet.read

users.read
Ricerca archivio completo

Disponibile solo per coloro che hanno accesso Academic Research

Cerca nell’archivio completo dei Tweet

GET /2/tweets/search/all
Filtered stream

Aggiungi o elimina regole dal tuo stream

POST /2/tweets/search/stream/rules

Recupera le regole del tuo stream

GET /2/tweets/search/stream/rules

Connettiti allo stream

GET /2/tweets/search/stream
Stream di volume

Trasmette circa l’1% di tutti i Tweet in tempo reale.

GET /2/tweets/sample/stream
Gestisci Retweet

Retweet un Tweet

POST /2/users/:id/retweets

Elimina un Retweet

DELETE /2/users/:id/retweets/:source_tweet_id


Scope:

tweet.read

tweet.write

users.read
Ricerca Retweet

Utenti che hanno fatto Retweet di un Tweet

GET /2/tweets/:id/retweeted_by


Scope:

tweet.read

users.read
Ricerca segnalibri

Ottieni Tweet salvati nei segnalibri

GET /2/tweets/:id/bookmarks


Scope:

tweet.read

users.read

bookmark.read
Gestisci segnalibri

Aggiungi un Tweet ai segnalibri

POST /2/tweets/:id/bookmarks

Rimuovi un segnalibro di un Tweet

DELETE /2/users/:id/bookmarks:tweet_id


Scope:

tweet.read

users.read

bookmark.write
Gestisci like

Metti like a un Tweet

POST /2/users/:id/likes

Annulla un like di un Tweet

DELETE /2/users/:id/likes/:tweet_id


Scope:

tweet.read

users.read

like.write
Ricerca like

Utenti che hanno messo like a un Tweet

GET /2/tweets/:id/liking_users

Tweet a cui un utente ha messo like

GET /2/users/:id/liked_tweets


Scope:

tweet.read

users.read

like.read
Nascondi risposte

Nasconde o mostra una risposta a un Tweet.

PUT /2/tweets/:id/hidden


Scope:

tweet.read

users.read

tweet.moderate.write
Ricerca utenti

Recupera più utenti con ID

GET /2/users

Recupera un singolo utente con un ID

GET /2/users/:id

Recupera più utenti con nomi utente

GET /2/users/by

Recupera un singolo utente con un nome utente

GET /2/users/by/username/:username

Ottieni informazioni su un utente autenticato

GET /2/users/me


Scope:

tweet.read

users.read
Gestisci seguiti

Consente a un ID utente di seguire un altro utente

POST /2/users/:id/following

Consente a un ID utente di smettere di seguire un altro utente

DELETE /2/users/:source_user_id/following/:target_user_id


Scope:

tweet.read

users.read

follows.write
Ricerca seguiti

Ricerca dei seguiti di un utente per ID

GET /2/users/:id/following

Ricerca dei follower di un utente per ID

GET /2/users/:id/followers


Scope:

tweet.read

users.read

follows.read
Ricerca blocchi

Restituisce un elenco di utenti bloccati dall’ID utente specificato

GET /2/users/:id/blocking


Scope:

tweet.read

users.read

block.read
Gestione silenziamenti

Consente a un ID utente di silenziare un altro utente

POST /2/users/:id/muting

Consente a un ID utente di riattivare un altro utente

DELETE /2/users/:source_user_id/muting/:target_user_id


Scope:

tweet.read

users.read

mute.write
Ricerca silenziamenti

Restituisce un elenco di utenti silenziati dall’ID utente specificato

GET /2/users/:id/muting


Scope:

tweet.read

users.read

mute.read
Ricerca Spaces

Ricerca Space per ID

GET /2/spaces/:id

Ricerca di più Spaces

GET /2/spaces

Scopri Spaces creati per ID utente

GET /2/spaces/by/creator_ids


Scope:

tweet.read

users.read

space.read
Ricerca Spaces

Ottieni utenti che hanno acquistato un biglietto per uno Space

GET /2/spaces/:id/buyers


Scope:

tweet.read

users.read

space.read
Ricerca Spaces

Restituisce Spaces dal vivo o programmati che corrispondono ai termini di ricerca specificati.

GET /2/spaces/search


Scope:

tweet.read

users.read

space.read
Ricerca List

Ricerca una List specifica per ID

GET /2/lists/:id

Ricerca una List di proprietà di un utente

GET /2/users/:id/owned_lists


Scope:

tweet.read

users.read

list.read
Gestione List

Crea una nuova List per conto di un utente autenticato

POST /2/lists


Scope:

tweet.read

users.read

list.read

list.write
Gestione List

Elimina una List di proprietà dell’utente autenticato

DELETE /2/lists/:id

Aggiorna i metadata per una List di proprietà dell’utente autenticato

PUT /2/lists/:id


Scope:

tweet.read

users.read

list.write
Ricerca Tweet List

Ricerca Tweet da una List specificata

GET /2/lists/:id/tweets


Scope:

tweet.read

users.read

list.read
Ricerca membri List

Restituisce un elenco di membri da una List specificata

GET /2/lists/:id/members

Restituisce tutte le List di cui un utente specificato è membro

GET /2/users/:id/list_memberships


Scope:

tweet.read

users.read

list.read
Gestione membri List

Aggiungi un membro a una List di proprietà dell’utente autenticato

POST /2/lists/:id/members

Rimuove un membro da una List di proprietà dell’utente autenticato

DELETE /2/lists/:id/members/:user_id


Scope:

tweet.read

users.read

list.write
Ricerca seguiti List

Restituisce tutti i follower di una List specificata

GET /2/lists/:id/followers

Restituisce tutte le List seguite da un utente specificato

GET /2/users/:id/followed_lists


Scope:

tweet.read

users.read

list.read
Gestione seguiti List

Segue una List per conto di un utente autenticato

POST /2/users/:id/followed_lists

Smette di seguire una List per conto di un utente autenticato

DELETE /2/users/:id/followed_lists/:list_id


Scope:

tweet.read

users.read

list.write
Ricerca List fissate

Restituisce le List fissate dell’utente autenticato

GET /2/users/:id/pinned_lists


Scope:

tweet.read

users.read

list.read
Gestisci List fissate

Fissa una List per conto di un utente autenticato

POST /2/users/:id/pinned_lists

Rimuove il fissaggio di una List per conto di un utente autenticato

DELETE /2/users/:id/pinned_lists/:list_id


Ambiti:

tweet.read

users.read

list.write
Conformità batch

Crea un nuovo job di conformità

POST /2/compliance/jobs

Restituisce lo stato e le informazioni di download per un job di conformità specificato

GET /2/compliance/jobs/:job_id

Restituisce un elenco dei job di conformità recenti

GET /2/compliance/jobs
I