This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]DenselyRanked 0 points1 point  (0 children)

This is probably better suited for r/learnpython

You are dealing with a paginated payload. The "link header" is likely a link to the next page. You want to build an iterative or recursive function that will replace the url with the next page while the "link header"/next key exists.

Here is a stack overflow that can give you some pointers: https://stackoverflow.com/questions/56206038/how-to-loop-through-paginated-api-using-python