Setu Recipes: reusable digital workers across every app.Browse templates

Integrations / SerpApi

SerpApi

Search engine results as JSON: Google web search, archived searches, locations and account usage.

4 actions API key 4 read0 write Calls serpapi.com

Connect

TypeScript
const conn = await setu.connections.initiate({ userId: "user_1", toolkit: "serpapi" });
console.log(conn.connectUrl); // show this to your user
await conn.waitUntilActive();

Permissions requested

This toolkit uses a single credential and requests no scopes.

Actions

Get account usagereadserpapi.get_accountGet the SerpApi plan, searches used this month and searches left. Free and not counted against the quota.

No input.

TypeScript
await setu.execute({
  userId: "user_1",
  action: "serpapi.get_account",
  input: {},
});
Search locationsreadserpapi.search_locationsLook up supported Google locations by name, to use as the location of a search.
InputTypeDescription
qstringOptionalLocation name fragment, e.g. Austin
limitintegerOptionalMaximum results (up to 10)
TypeScript
await setu.execute({
  userId: "user_1",
  action: "serpapi.search_locations",
  input: {},
});