The next item offset is not properly updated

Hello I am running the labs for Week 2 Graded Programming Assignment 2: Batch Data Processing from an API. In the jupyter notebook the row right before Exercise 2, the part where the code tries to get the last_releases_response page by changing the offset to 80 with a limit of 20, followed by these commands below:

print(last_releases_response.get('albums').get('previous'))
print(last_releases_response.get('albums').get('next'))

I get the output below:

None
https://api.spotify.com/v1/browse/new-releases?offset=20&limit=20

This is wrong because previous is supposed to return a link with offset of 60 and limit of 20, instead its returning None and the Next is giving the first page.

Please help

This is the link to the classroom: Classroom-link

Hello @damolavictor,
Could you check in Exercise 1 get_new_releases you used the correct url (url=request_url). Hope it helps

Thank you, cant believe I missed that part

1 Like