Twitter API

부분 유료
분류별 Alexander Vikhorev | 업데이트됨 vor 3 Tagen | Social
인기

9.9 / 10

지연 시간

2,879ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Pagination on list-following?

Rapid account: Svayysvayy
svayysvayy
vor einem Jahr

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 vor 8 Monaten

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 vor 10 Monaten

welcome to see my

Rapid account: Alexanderxbx
alexanderxbx Commented vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입