Skip to content
SerpApi logo

Connectors / Data and analytics · HTTP Connector

Automate SerpApi with Tray.ai

Submit an async search in SerpApi. Connect SerpApi to the rest of your data and analytics stack with Tray.ai.

What can you do with SerpApi on Tray.ai?

SerpApi returns search engine results from Google and other engines as structured JSON, covering web, maps, news, shopping and image results. Tray.ai connects to SerpApi through the HTTP Connector, so your workflows can call the SerpApi API alongside the rest of your stack.

  • Search Google News for your brand each morning and post new coverage to your comms channel.
  • Search Google Maps for businesses in a region and add them as leads in your CRM.
  • Get account usage weekly and alert the data team before the monthly limit runs out.
Connects through
HTTP Connector
Authentication
An API key in the query string
Base URL
https://serpapi.com

Set it up

Connect SerpApi to Tray.ai

Each step uses SerpApi's own API details, from its documentation.

Step 1

Save SerpApi's API key

Save the key as a Tray.ai authentication and add it to the query string from $.auth, so it never sits in the workflow itself.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://serpapi.com as the base URL. Or paste a cURL example from SerpApi's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Search Google”

It's one of 8 documented actions, under Search. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Search Google Maps” and “Search Google News” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with SerpApi

Each one uses actions and events from SerpApi's own API documentation.

Track brand news from Google News in Slack

When

On a schedule

Then

  1. Search Google News for the company name
  2. Post new articles to the communications channel in Slack

With Slack

Build a local lead list from Google Maps in Google Sheets

When

On a schedule

Then

  1. Search Google Maps for the business type in each target city
  2. Add a row per business with name, address and phone in Google Sheets

With Google Sheets

Apps you can build on SerpApi data

Internal tools your team can build with an AI assistant, each one using SerpApi calls from its API documentation.

Local business finder

Searches Google Maps for businesses in an area so sales can build a list of local prospects.

Price check tool

Searches Google Shopping for a product and shows current listings and prices from other sellers.

Brand news monitor

Searches Google News for a brand name and shows the latest stories for the comms team.

Give your AI agents SerpApi tools

Build an MCP server on SerpApi in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Search Google
  • Submit an async search
  • Get account usage
  • Search Google Maps
  • Search Google News
  • Search Google Shopping
  • Get an archived search
  • Look up locations

What the SerpApi API covers

3 resources and 8 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Search

  • Search Google
  • Search Google Maps
  • Search Google News
  • Search Google Shopping

Search archive

  • Submit an async search
  • Get an archived search

Account and locations

  • Get account usage
  • Look up locations

Checked against SerpApi's own documentation on 2026-10-22

serpapi.com/search-api

Frequently asked questions

What can a Tray.ai workflow do in SerpApi?

+

The SerpApi API documents 8 actions across 3 resources (Search, Search archive, Account and locations). For example: Search Google; Submit an async search; Get account usage. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with SerpApi?

+

The SerpApi API uses an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See SerpApi working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.