Twitter API

FREEMIUM
By Alexander Vikhorev | Updated 10日前 | Social
Popularity

9.9 / 10

Latency

2,857ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Pagination on list-following?

Rapid account: Svayysvayy
svayysvayy
10ヶ月前

Hello,

The API doesn’t return a next_page_token and the documentation doesn’t show any parameter input for it to get all results.

Is this expected to be introduced?

Thanks!

Rapid account: Huojiecs
huojiecs Commented 6ヶ月前

i have you need GET/friends/list
you can try our API https://rapidapi.com/huojiecs/api/twitter-api-v1-1-enterprise

Rapid account: Huojiecs
huojiecs Commented 9ヶ月前

welcome to see my

Rapid account: Alexanderxbx
alexanderxbx Commented 10ヶ月前

Yeah, I saw that the last cursor starts with “0|”. After my last update “next_cursor” wouldn’t be returned if you reach the end of the list.
Also, I’ve added cursor parameter to the followers list as well.

Rapid account: Svayysvayy
svayysvayy Commented 10ヶ月前

I think I found a bug with pagination: On the last page it will try to paginate to a non-existent page and return “{“following”:[],“next_cursor”:null}”.
The cursor should know about the last page - for example: 0|1683199037278257095. In case of a single page it should also start with 0.

I hope that makes sense. 😃

Rapid account: Svayysvayy
svayysvayy Commented 10ヶ月前

Yeah I was looking for that. I tested it and it works fine. It would be nice to include a “count” parameter to specify and control the amount of data returned.

Rapid account: Alexanderxbx
alexanderxbx Commented 10ヶ月前

Hello,

Yes, sure, today I’ve added optional parameter “cursor” to this API. Also I’ve added a “next_cursor” value to every response.

To get the next page you should pass the “next_cursor” value to the “cursor” parameter.

I hope thats is what you’re looking for 😃 I’m going to add this cursor optional paramters to other endpoints in a few days.

Sincerely yours,
Aleksandr

Join in the discussion - add comment below:

Login / Signup to post new comments