Connector Details
Type
SaaS & APIs
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
SERP API
Connector Details
Type
SaaS & APIs
Runs on
Google Compute Engine
Last Update
24 October, 2024
Category
Overview
The SerpAPI Connector enables seamless access to SerpAPI services, providing search results, location data, account information, and archived search results. It supports endpoints for querying search results, retrieving supported locations, fetching account details, and accessing archived searches. This documentation outlines each endpoint, its purpose, parameters, and expected outputs.
SerpAPI offers various pricing plans based on search usage, throughput, and features.
Integration Overview
This document provides a detailed guide for each endpoint, its purpose, configuration, and workflow support using the SerpAPI Connector. The connector forwards HTTP GET requests to the SerpAPI service, handling query parameters and headers, and optionally appending an API key from environment variables.
Supported Integration Action Points:
Detailed Integration Documentation
Search Results Retrieval
Action
get_search_results
Purpose
Retrieves search results from SerpAPI based on a query string and optional parameters such as search engine, location, language, and pagination settings.
Parameters
Configuration
Output
Workflow Example
1. Configure the Flask app with CONNECTOR_ENV_SERPAPI_API_KEY and CONNECTOR_ENV_PORT.
2. Execute a GET request to /search with q=coffee shops Stockholm and api_key=.
3. Process the JSON response to display search results in a web or mobile application.
Locations Retrieval
Action
get_locations
Purpose
Retrieves a list of supported locations for geolocation-based searches, filtered by a location query and result limit.
Parameters
Configuration
Output
Workflow Example
1. Configure the Flask app with CONNECTOR_ENV_SERPAPI_API_KEY.
2. Execute a GET request to /locations.json with q=Stockholm and limit=5.
3. Use the response to populate a location selection dropdown in a search interface.
get_account_info
Action
get_search_results
Purpose
Retrieves account details for a given SerpAPI API key, including usage limits and account status.
Parameters
Configuration
Output
Workflow Example
1. Configure the Flask app with CONNECTOR_ENV_SERPAPI_API_KEY.
2. Execute a GET request to /account with api_key=.
3. Display account details in an admin dashboard to monitor API usage.
Archived Search Results Retrieval
Action
get_search_archive
Purpose
Retrieves archived search results for a specific search ID, allowing access to previously executed searches.
Parameters
Configuration
Output
Workflow Example
1. Configure the Flask app with CONNECTOR_ENV_SERPAPI_API_KEY.
2. Execute a GET request to /searches/12345.json with api_key=.
3. Use the response to display historical search data for analysis or reporting.
Workflow Creation with the SerpAPI Connector
Example Workflow: Search and Location Integration
Retrieve Supported Locations
Perform Search Query
Monitor Account Status
Access Archived Searches
Pricing
iSolution logo - white - transparent 250 px
Register To The Future Fabric Event
[forminator_form id=”14485″]
[forminator_form id=”14419″]
[forminator_form id=”14298″]
[forminator_form id=”13094″]