Difference between the APIs


#1

I need to know the difference between the APIs to choose the one is fit with my needs.

I read this page
https://developer.twitter.com/en/docs/tweets/search/overview

but what is different between RESTful API and Streaming API?


#2

REST is call and get back a response.
Streaming is realtime continuous.


#3

If I use Premium Full-archive endpoin Is it REST and steaming at the same time?


#4

No. The Premium Search endpoint is a RESTful (request/response) API.

There are currently no continuous streaming Premium endpoints (although these are on the roadmap.

Realtime updates are available via the Premium Account Activity API, which is delivered via webhook callbacks. This does not support a search syntax.


#5

that is mean REST APIs are:
Premium | Search Tweets: 30-day endpoint
Premium | Search Tweets: Full-archive endpoint
Enterprise | 30-day Search API
Enterprise | Full-archive Search API
and the Streaming APIs are:
Premium | Account Activity API
Enterprise | Account Activity API


#6

As I mentioned, the Account Activity API is not a streaming API, it uses callbacks. It also does not support any kind of search syntax.


closed #7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.