Instagram API 2023

FREEMIUM
By mrngstar | Updated a day ago | Social
Popularity

9.9 / 10

Latency

1,961ms

Service Level

100%

Health Check

100%

Back to All Discussions

Hashtag posts pagination requests keep returning same posts

Rapid account: Sanjeev Cki Cs X Dqv
sanjeev-ckiCsXDqv
a month ago

How is the hashtag posts api supposed to be used?

This is how I am doing it:
Request 1: next_max_id: empty, next_page: empty
Response 1: MAX_ID_1 , NEXT_PAGE_1

Request 2: next_max_id: MAX_ID_1, next_page: NEXT_PAGE_1
Response 2: MAX_ID_2 , NEXT_PAGE_2

Request 3: next_max_id: MAX_ID_2, next_page: NEXT_PAGE_2
Response 3: MAX_ID_3 , NEXT_PAGE_3

etc

But most of the posts in Response 2 and Response 3 are the same as Response 1. I get maybe 1-2 unique posts from them

Rapid account: Mrngstar
mrngstar Commented a month ago

I’ve noticed that you’re using the wrong parameter name in your request. It should be “max_id” instead of "next_max_id."
Please refer to the documentation and code snippets provided on RapidAPI for the correct parameter names.

Let me know if you need further clarification or assistance, you can contact me at contact@swiftinsta.com

Thanks

Rapid account: Mrngstar
mrngstar Commented a month ago

Hello Sanjeev,

Thanks for reaching out.

What feed_type are you using?

If the feed_type is “recent,” you’ll only need to provide the max_id parameter. However, if the feed_type is “top,” you’ll need to use both max_id and next_page.
Documentation outlines when to use the next_page parameter.

Could you please share an example request so that we can assist you further?

Thanks

Join in the discussion - add comment below:

Login / Signup to post new comments