Skip to content

APIs

Serpapi

In shortA paid API (with a free tier) that returns search engine results pages as structured JSON, including People Also Ask and AI Overviews.

Updated 24 Oct 2026· 2 min read

SerpApi is a third-party service that fetches search engine results pages and returns them as structured JSON. Instead of copying results by hand or maintaining your own scraper, you request a query with a location, language and device and receive every part of the page in labelled fields. MLforSEO presents it as a lightweight alternative to DataForSEO for SERP collection.

How it works

You call the API with a search engine and parameters, for example engine=google, q (the query), location, gl (country), hl (language) and device. SerpApi handles proxies, CAPTCHAs and parsing, then returns JSON with sections such as:

  • organic results with positions, titles, snippets and links,
  • related questions (People Also Ask) and related searches,
  • knowledge graph panels, local results and shopping results,
  • AI Overview content and references where available.

Beyond Google Search it covers other engines and Google products, such as Bing, YouTube, Google Maps and Google Trends. Plans are monthly subscriptions based on searches; the free plan currently includes 250 searches a month, and only successful searches count.

How it’s used in SEO and marketing

  • Pulling SERPs for a keyword list to see which page types and formats rank.
  • Collecting People Also Ask questions and related searches to build content outlines.
  • Classifying search intent from which features appear.
  • Monitoring knowledge panels and AI Overview citations for your brand.
  • Feeding no-code tools and spreadsheets that sit on top of the API.

Example

In MLforSEO’s SERP collection lab, SerpApi is used through a free no-code app to scrape organic results, related questions and related searches for a set of keywords. The raw export is not well organised, so the lesson uses Python to split the data into separate tables (organic, questions, related searches) that are easy to analyse and chart.

Limitations and things to watch

  • Costs scale with every keyword, location and device combination; estimate volume before choosing a plan.
  • The JSON is nested and differs between engines and features, so plan your parsing.
  • SERPs vary by location and personalisation; one pull is a snapshot.
  • Check the terms of service of the search engine and the provider for your use case.

Learn it on MLforSEO

Where Serpapi shows up on MLforSEO

Sources and further reading

Other terms from APIs

See all 15 APIs terms →