Google SERP API

Get Google SERP results in formatted JSON.

Search Google

GEThttps://api.serply.io/v1/search/{query}

Perform a Google search

Requests

  • Name
    query
    Type
    string
    required
    Description
    A url encoded query string, for reference checkout https://moz.com/blog/the-ultimate-guide-to-the-google-search-parameters
  • Name
    json
    Type
    Bool
    Description
    Whether the API should return JSON or plain text

Bash example

curl --request GET \ 
--url 'https://api.serply.io/v1/b/search/q=search+api' \ 
--header 'Content-Type: application/json' \ 
--header 'X-Api-Key: API_KEY' \ 
--header 'X-Proxy-Location: EU' \ 
--header 'X-User-Agent: desktop'

JavaScript Fetch

const options = {
  method: 'GET',
  headers: {
    'Content-Type': 'application/json',
    'X-User-Agent': '',
    'X-Proxy-Location': '',
    'X-Api-Key': ''
  }
};

fetch('https://api.serply.io/v1/search/q=search+api', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));

Response

  • Name
    200
    Type
    Successful Response
    Description
  • Name
    404
    Type
    Not Found
    Description

Example response

{
  "results": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "link": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    }
  },
  "total": {
    "$ref": "#/components/schemas/ResultTotalScheme"
  },
  "answer": {
    "$ref": "#/components/schemas/ResultAnswerScheme"
  }
}

Google SERP API

Track SERP Positions

Track the position of your site for any keyword using the SERP API endpoint.

The SERP API endpoint gives valuable insights into a website's performance in search engine rankings.

By providing the keyword and domain of your website, the SERP API endpoint will return the position of your website on the SERP, allowing you to monitor and optimize your website's performance in real time.



google serp api

Accurate

Accurate Locations

Get Google results from anywhere in the world with our "location" parameter.

Serply uses Google’s geolocated, encrypted parameters and routes your request through the proxy server nearest you, so search results are accurate.

accurate search engine locations

Every Language

Scrape with Any Language

You can use Serply with any language. Scrape search engine results pages (SERPs) with Python, Ruby, Javascript, Curl, Node.js, Go, .NET, etc.

Our REST API provides you with precise, reliable responses encoded in JSON.

serp api for python, javascript, ruby, php

Support

Get support when you need it

100% service level for four years and counting. We respond in hours, not days, if you need help or have a feature request.

customer support

Get your free Serply account

Build your amazing product