How to get maxid


#1

how to get maxid, so that I can implement paging.
Any example in .net for same?


#2

does search metadata is the place to fetch it?

“search_metadata”: {
“completed_in”: 0.028,
“max_id”: 464009439238815740,
“max_id_str”: “464009439238815744”,
“next_results”: “?max_id=464009439238815743&q=gsk&count=1&include_entities=1”,
“query”: “gsk”,
“refresh_url”: “?since_id=464009439238815744&q=gsk&include_entities=1”,
“count”: 1,
“since_id”: 0,
“since_id_str”: “0”
}


#3

https://api.twitter.com/1.1/search/tweets.json?q=gsk&count=1

i got some response and at the end was the above string “search_metadata”.
So please confirm if this is the place to get “max_id”


#4

Hi,

Yes, max_id will be returned in the search_metadata field of the JSON response. Furthermore, I would recommend you to check the docs that detail the best way to work with timelines: https://dev.twitter.com/docs/working-with-timelines

Let me know if you managed to navigate the pages.


#5

max_id or max_id_str is relevant? what is the difference?
Is there an example of paging implementation in .net?
what is next_results?