Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated serpapi_pagination.next_link with next #8

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

ilyazub
Copy link
Contributor

@ilyazub ilyazub commented Oct 6, 2023

serpapi_pagination.next is used instead of the serpapi_pagination.next_link. SerpApi outputs both for Google searchs for the backwards compatibility.

The next_link is missing for YouTube and other several other APIs.

{
  // Omitted...
  "serpapi_pagination": {
    "current": "https://serpapi.com/search.json?engine=youtube&search_query=steady",
    "next": "https://serpapi.com/search.json?engine=youtube&search_query=steady&sp=SBSCAQtIQkF4NktBZ2cxd4IBC0Nwc2paMUxPNTA0ggELYWhfenRLYUMxaE2CAQtGby1DNG5oYnZlMIIBC3hDUllJZlhqOTh3ggELclBKejNzeU5idEWCAQtINU5paHJZS1UyOIIBC1NVMzBvR211a1VRggELbUFFWXh2dUxTd1mCAQtEWUtxQ1Mwcm1fOIIBCzJNOTdyUERjUEVnggELcVBnd1dJbWVpS2uCAQtKcWVUUlg1aVBMZ4IBC2pEbk81TnBMTFpzggELODZ3dFZRNkYxWVmCAQtjWnNDSG9kZXIzb4IBC0M0RVpoLVdJY1FrggELUDA4ektob0t6NFWCAQtTcU9EN2J0T3JGMIIBC2VGWWpadDIyWVR3sgEGCgQIGRAC6gECCAI%253D",
    "next_page_token": "SBSCAQtIQkF4NktBZ2cxd4IBC0Nwc2paMUxPNTA0ggELYWhfenRLYUMxaE2CAQtGby1DNG5oYnZlMIIBC3hDUllJZlhqOTh3ggELclBKejNzeU5idEWCAQtINU5paHJZS1UyOIIBC1NVMzBvR211a1VRggELbUFFWXh2dUxTd1mCAQtEWUtxQ1Mwcm1fOIIBCzJNOTdyUERjUEVnggELcVBnd1dJbWVpS2uCAQtKcWVUUlg1aVBMZ4IBC2pEbk81TnBMTFpzggELODZ3dFZRNkYxWVmCAQtjWnNDSG9kZXIzb4IBC0M0RVpoLVdJY1FrggELUDA4ektob0t6NFWCAQtTcU9EN2J0T3JGMIIBC2VGWWpadDIyWVR3sgEGCgQIGRAC6gECCAI%3D"
  }
}

Search Inspector page

Related:

@kennethreitz

This comment was marked as abuse.

@kennethreitz kennethreitz merged commit 5bdd865 into master Oct 6, 2023
5 checks passed
@kennethreitz kennethreitz deleted the serpapi-pagination-next-link-to-next branch October 6, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants