Serpapi API

Give your agents access to Serpapi API. Bring your own Serpapi key, or skip the signup and pay per call from your Composio balance with Composio Instant.

Serpapi logoSerpapi
Instant

SerpApi is a real-time API for structured search engine results. It lets you automate SERP data collection, parsing, and analysis for SEO and research.

59 Tools
COMPOSIO INSTANT

What is Composio Instant?

Composio Instant lets your agent use paid APIs like Serpapi without a separate account or API key for each one. New accounts start with $2 of free credit.

No Serpapi account or key

Your agent calls Serpapi through Composio, so there is nothing to sign up for, store, or rotate.

Pay per call, at cost

$0.025 per successful search, paid from your Composio balance with zero markup.

Works in any agent

Claude, ChatGPT, Cursor, and other MCP clients, or your own code with the Composio SDK.

Works with your apps

Use Serpapi with Gmail, Slack, Google Sheets, and 1,700+ other apps you connect.

AI ASSISTANTS

Connect the Serpapi API to your AI assistant

Use Serpapi from the AI assistant you already work in. Connect Composio once, then paste the prompt.

  1. 1

    Open the Connectors menu

    Use the button to open Claude's Add connector dialog with Composio filled in. Or click + in the message box, then Connectors, Add connector and Add custom connector.
    Add Composio to Claude
  2. 2

    Add the Composio MCP server

    Name it Composio, paste the MCP server URL and click Add.
    https://connect.composio.dev/mcp
  3. 3

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  4. 4

    Paste the prompt

    Start a new chat and paste the prompt. Claude runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio's plugin page in ChatGPT and click Install. Sign in to ChatGPT first if it asks.
    Install in ChatGPT
  2. 2

    Authorize in your browser

    Connect the plugin, then sign in to Composio to approve the connection.
  3. 3

    Turn on Composio in your chat

    In a new chat, click +, then More, and select Composio.
  4. 4

    Paste the prompt

    Paste the prompt into that chat. ChatGPT runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio in the Cursor marketplace, click Install Composio Plugin for Cursor and approve the connection in your browser.
    Install in Cursor
  2. 2

    Paste the prompt

    Open the Agent chat and paste the prompt. Cursor runs the call on Composio Instant.
  1. 1

    Add the Composio plugin

    Open Composio's listing on x.ai and click Add to Grok Bot. When Grok Bot opens the plugin, click Add.
    Add to Grok Bot
  2. 2

    Authenticate

    Go to Installed, open Composio and click Authenticate. Sign in to Composio and click Authorize.
  3. 3

    Paste the prompt

    Paste the prompt into your bot's chat. Grok Bot runs the call on Composio Instant.
  1. 1

    Paste the setup prompt

    Copy this into your Hermes chat. Hermes adds the Composio MCP server for you.
    Set up Composio from composio.dev/hermes
  2. 2

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  3. 3

    Paste the prompt

    Start a new chat and paste the prompt. Hermes runs the call on Composio Instant.
ClaudeNew chat

Paste this prompt

Use SerpApi through Composio Instant to search Google for how solar panels generate electricity. Return the title and URL for each organic result.

What success looks like

SERPAPI_SEARCH

Your assistant runs SerpApi and replies with a list of organic search results, each with a title and URL.

Runs on Composio Instant
SDK

Use the Serpapi API in your code

Call Serpapi from your own agent with the Composio SDK. Four steps and one tool call.

  1. 1

    Set up Composio

    Turn on Instant Toolkits in your project settings and check your prepaid balance in Billing. Then set your API key.
    export COMPOSIO_API_KEY="your_composio_api_key"
  2. 2

    Install the SDK

    The Python SDK needs Python 3.11 through 3.15.
    pip install composio
  3. 3

    Run the call

    Create a session that keeps Instant to this toolkit and reports the charge, then run the tool on the Instant account.
    SERPAPI_SEARCH
  4. 4

    Read the response

    When the call runs on Instant, the response includes its charge: the amount as an exact USD decimal string, the currency and charged_by.
agent.py
from composio import Composio

composio = Composio()

session = composio.sessions.create(
    user_id="user_123",
    toolkits=["serpapi"],
    instant={
        "toolkits": {"enable": ["serpapi"]},
        "return_instant_charge": True,
    },
)

result = session.execute(
    "SERPAPI_SEARCH",
    arguments={
        "query": "how solar panels generate electricity",
    },
    account="instant_account",
)
print(result)
print("Instant charge:", result.instant_charge)
TOOLS

Available Serpapi API tools

44 Serpapi tools run on Instant, priced per call with no Serpapi key. Tools marked Your key need your own Serpapi account.

ActionTool slugWhat it doesAvailability
Google SearchSERPAPI_SEARCHFind up to five organic Google results for a query.
Instant$0.025 per successful search63% off
News SearchSERPAPI_NEWS_SEARCHFind Google News articles that match a query.
Instant$0.025 per successful search63% off
Maps SearchSERPAPI_GOOGLE_MAPS_SEARCHSearch Google Maps for places and businesses.
Instant$0.025 per successful search63% off
Shopping SearchSERPAPI_SHOPPING_SEARCHFind product listings on Google Shopping.
Instant$0.025 per successful search63% off
Trends SearchSERPAPI_TRENDS_SEARCHCompare relative search interest for queries with Google Trends.
Instant$0.025 per successful search63% off
Bing Maps SearchSERPAPI_BING_MAPSSearch Bing Maps via SerpApi for local businesses and places, using a required query and an optional place ID.
Instant$0.025 per successful search63% off
Bing SearchSERPAPI_BING_SEARCHRetrieve Bing Search Engine Results via SerpAPI.
Instant$0.025 per successful search63% off
DuckDuckGo Light SearchSERPAPI_DUCK_DUCK_GO_LIGHT_SEARCHTool to access the world's fastest DuckDuckGo Search API via SerpApi.
Instant$0.025 per successful search63% off
DuckDuckGo Maps searchSERPAPI_DUCK_DUCK_GO_MAPSScrapes DuckDuckGo Maps results via SerpApi.
Instant$0.025 per successful search63% off
DuckDuckGo searchSERPAPI_DUCK_DUCK_GO_SEARCHPerforms a DuckDuckGo search via SerpApi to retrieve SERP data, including organic results, ads, and structured information.
Instant$0.025 per successful search63% off
eBay SearchSERPAPI_EBAY_SEARCHSearch eBay product listings via SerpApi using keywords and optional location and marketplace settings.
Instant$0.025 per successful search63% off
Get Facebook profile informationSERPAPI_GET_FACEBOOK_PROFILETool to retrieve public information from a Facebook profile or page using SerpAPI.
Instant$0.025 per successful search63% off
Get Google About This ResultSERPAPI_GET_GOOGLE_ABOUT_THIS_RESULTTool to get Google 'About this result' information for a website.
Instant$0.025 per successful search63% off
Get Google Hotels AutocompleteSERPAPI_GET_GOOGLE_HOTELS_AUTOCOMPLETE_SUGGESTIONSTool to get autocomplete suggestions for Google Hotels destination searches.
Instant$0.025 per successful search63% off
Get Google Images Related ContentSERPAPI_GET_GOOGLE_IMAGES_RELATED_CONTENTGet related content for a specific Google Images result.
Instant$0.025 per successful search63% off
Get Google Patent DetailsSERPAPI_GET_GOOGLE_PATENT_DETAILSTool to retrieve detailed information about a specific patent or scholar document from Google Patents via SerpApi.
Instant$0.025 per successful search63% off
Google Forums SearchSERPAPI_GOOGLE_FORUMS_SEARCHTool to scrape forum results from Google's Forums Platform using SerpApi.
Instant$0.025 per successful search63% off
Google Images Light SearchSERPAPI_SEARCH_GOOGLE_IMAGES_LIGHTTool to scrape Google Images results using SerpApi's Google Images Light API.
Instant$0.025 per successful search63% off
Google Jobs SearchSERPAPI_GOOGLE_JOBS_SEARCHRetrieve Google Jobs search results via SerpApi, with pagination, location and remote-job filtering.
Instant$0.025 per successful search63% off
Google Lens searchSERPAPI_GOOGLE_LENS_SEARCHPerforms reverse image search using Google Lens to find visually similar images, products, and related content.
Instant$0.025 per successful search63% off
Google Light SearchSERPAPI_GOOGLE_LIGHT_SEARCHRetrieve Google Light Search Results via SerpApi.
Instant$0.025 per successful search63% off
Google Play Product SearchSERPAPI_GOOGLE_PLAY_PRODUCTTool to retrieve detailed Google Play product information using SerpApi.
Instant$0.025 per successful search63% off
Google Play SearchSERPAPI_PLAY_SEARCHRetrieve Google Play Store search results in JSON, with query, country, language, category, chart, and pagination options.
Instant$0.025 per successful search63% off
Google Scholar Author ProfileSERPAPI_GOOGLE_SCHOLAR_AUTHORScrapes full Google Scholar Author page including articles, citations, metrics, and co-authors.
Instant$0.025 per successful search63% off
Google Scholar CiteSERPAPI_GOOGLE_SCHOLAR_CITEScrapes full Google Scholar Citations with multiple citation formats.
Instant$0.025 per successful search63% off
Google Videos Light SearchSERPAPI_GOOGLE_VIDEOS_LIGHTTool to scrape Google Videos results using SerpApi's ultra-fast Google Videos Light API.
Instant$0.025 per successful search63% off
Hotel SearchSERPAPI_HOTEL_SEARCHSearch Google Hotels via SerpApi using a query and check-in and check-out dates, or retrieve property details with a property token.
Instant$0.025 per successful search63% off
Image searchSERPAPI_IMAGE_SEARCHSearches Google Images via SERP API for a given query, returning structured image results.
Instant$0.025 per successful search63% off
Naver SearchSERPAPI_NAVER_SEARCHSearch Naver for Korean web content, news, videos, and shopping results.
Instant$0.025 per successful search63% off
OpenTable Reviews SearchSERPAPI_OPEN_TABLE_REVIEWSTool to scrape OpenTable restaurant reviews using SerpApi.
Instant$0.025 per successful search63% off
Search Apple App StoreSERPAPI_SEARCH_APPLE_APP_STORETool to search Apple App Store for iOS and Mac apps.
Instant$0.025 per successful search63% off
Search Baidu with QuerySERPAPI_BAIDU_SEARCHSearch Baidu (Chinese search engine) and retrieve search results.
Instant$0.025 per successful search63% off
Search financeSERPAPI_FINANCE_SEARCHRetrieves structured financial information (e.g., company data, stock details, market trends, news) from Google Finance via SERP API based on a query.
Instant$0.025 per successful search63% off
Search Google EventsSERPAPI_EVENT_SEARCHSearches for events in Google Search's structured event results.
Instant$0.025 per successful search63% off
Search Google Local ServicesSERPAPI_SEARCH_GOOGLE_LOCAL_SERVICESSearch Google Local Services for providers such as electricians, plumbers and HVAC technicians.
Instant$0.025 per successful search63% off
Search Google ScholarSERPAPI_SCHOLAR_SEARCHSearches Google Scholar via SerpApi for academic literature, papers, articles, and citations based on a query.
Instant$0.025 per successful search63% off
Search public Google adsSERPAPI_SEARCH_PUBLIC_GOOGLE_ADSFind public Google advertisements by advertiser or domain.
Instant$0.025 per successful search63% off
Search Yelp businessesSERPAPI_SEARCH_YELPSearch Yelp for businesses and places using SerpApi.
Instant$0.025 per successful search63% off
Walmart SearchSERPAPI_WALMART_SEARCHRetrieve Walmart search results by query, location, store ID, and other parameters.
Instant$0.025 per successful search63% off
Yahoo SearchSERPAPI_YAHOO_SEARCHRetrieve Yahoo!
Instant$0.025 per successful search63% off
Yahoo Videos SearchSERPAPI_YAHOO_VIDEOSScrape Yahoo!
Instant$0.025 per successful search63% off
Yandex Images SearchSERPAPI_YANDEX_IMAGES_SEARCHTool to search Yandex Images for image results with advanced filters.
Instant$0.025 per successful search63% off
Yandex SearchSERPAPI_YANDEX_SEARCHRetrieve Yandex Search Results.
Instant$0.025 per successful search63% off
YouTube SearchSERPAPI_YOU_TUBE_SEARCHRetrieve YouTube Search Results.
Instant$0.025 per successful search63% off
Amazon SearchSERPAPI_AMAZON_SEARCHFind Amazon products, prices, and ratings by keyword or category.Your key

Instant prices are Serpapi's list prices with 0% markup, paid from your Composio balance and updated every hour. Instant calls also count toward your plan's tool calls. See all plans on the pricing page.

USE CASES

Serpapi API use cases and example prompts

Copy a prompt into your agent. Each one uses Serpapi with apps you connect through Composio.

  • Track industry news for the team

    Use SerpApi News Search to find Google News articles about changes in cloud data warehouse pricing. Add the matching results to my Data Market Watch sheet in Google Sheets, then post a short summary in Slack's #market-watch channel.

    Apps used: Serpapi, Google Sheets, slack

  • Compare search interest by category

    Use SerpApi Trends Search to compare relative search interest for customer data platforms and marketing automation software. Write the findings as a market brief in my Growth Research doc in Google Docs, then share the doc in Slack's #growth channel.

    Apps used: Serpapi, Google Docs, slack

  • Build a shortlist of event venues

    Use SerpApi Maps Search to find event venues in Austin for a company planning session. Add the matching places to my Venue Shortlist in Google Sheets, then post the list in Slack's #events channel.

    Apps used: Serpapi, Google Sheets, slack

  • Research an account before outreach

    Use SerpApi News Search to find recent Google News articles about Acme. Add relevant findings to the Acme company record in HubSpot, then draft a Gmail update for my sales team with the source links and a suggested reason to reach out.

    Apps used: Serpapi, hubspot, Gmail

TROUBLESHOOTING

Serpapi API troubleshooting

Still stuck? The Instant tools docs cover limits, charges and session settings.

Start with Serpapi.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Serpapi tool your agent needs.Free to start.

Start building