APIs & Integrations

GFetisov
Member

What "Paging" value for Last page?

SOLVE

Hi thee, 

I am want to imlement pagination for some API v3 requests 

This is an example what you have in response when you have more pages to be requested:

"paging": {
"next": {
"after": "NTI1Cg%3D%3D",
"link": "?after=NTI1Cg%3D%3D"
}

 

But what is not clear from the Documentation, -  

 

If we doenst have any results pages after current, what the value of 'paging' key  will be?

 

Like this?

"paging": {}


Or there wil be no 'paging' value in response at all?

 

Thanks in advance!

 

0 Upvotes
1 Accepted solution
GFetisov
Solution
Member

What "Paging" value for Last page?

SOLVE

Found the answer, I believe.

 

In case there is no page lest after current response - in the response there will be no key "paging" at all. Just "results" key.

View solution in original post

0 Upvotes
1 Reply 1
GFetisov
Solution
Member

What "Paging" value for Last page?

SOLVE

Found the answer, I believe.

 

In case there is no page lest after current response - in the response there will be no key "paging" at all. Just "results" key.

0 Upvotes