Migrating from Serper
Change the base URL. That is the migration.
The change
- https://google.serper.dev/search
+ https://serpens.p.rapidapi.com/api/v1/search
Headers change from Serper's X-API-KEY to RapidAPI's x-rapidapi-key and x-rapidapi-host. The response body does not change.
Field by field
| Field | SERPens | Serper |
|---|---|---|
searchParameters | yes | yes |
organic[].title / link / snippet / position | yes | yes |
organic[].sitelinks | yes | yes |
knowledgeGraph | yes | yes |
peopleAlsoAsk | yes | yes |
relatedSearches | yes | yes |
organic[].source | yes | — |
has_next_page / has_previous_page | yes | — |
aiOverview | dedicated endpoint | — |
The three extra fields are additive: a client that ignores them behaves exactly as before.
Check this before you switch
This covers Serper's /search endpoint. If your integration also calls the image, news, places, scholar or shopping verticals, those are not part of this product and the migration is more than a base URL.
Two habits worth keeping: optional blocks are absent rather than null, so test with in; and the AI Overview lives on its own path, so a search that used to be one call becomes two if you want the overview as well.
Try it against your existing parser
Free tier, no card. Point a staging build at the new base URL and diff the bodies.