Google API
Using the Google Search Results API
The Google Search SERP API enables seamless extraction of search engine results from Google, providing structured search results with rich metadata. This API allows users to retrieve search rankings, advertisements, organic results, and other relevant details efficiently, making it an essential tool for SEO analysis, market research, and competitive intelligence.
Key Features
- Retrieve the total number of search results for a given query.
- Extract organic search result details, including:
- Title, description, and URL.
- Ranking position in the search results.
- Capture paid advertisements (Google Ads) when present.
- Support for pagination to navigate multiple pages of search results.
- Obtain localized search results by specifying language and region settings.
Supported Query Parameters
PARAMETER | TYPE | DEFAULT | DESCRIPTION |
---|---|---|---|
url | string <uri> | The full Google Search URL for which results should be extracted. Example: https://www.google.com/search?q=web+scraping . | |
tld | string | .com | The top-level domain of the Google website. Supported examples: .com , .ca , .co.uk , … |
country | string | The originating country for the search. Example: country=es . |
How to Use
To extract Google search results, make a request to the API endpoint with your desired query parameters:
Code Examples
Note: should be URL-encoded.
Response Example
Troubleshooting and FAQs
Was this page helpful?