Skip to content
AI agents and automation

Connect lobstr.io to Clay: Google Maps data in every row (1 credit a row)

Call lobstr.io from Clay's HTTP API column: a row's name and city go in, its Google Maps rating, reviews, phone and website come out as columns, for 1 credit a row.

Clay's HTTP API column calls lobstr.io once for each row of a table. This guide reads a restaurant on Google Maps from its name and its city, and turns the answer into columns: its rating, its number of reviews, its phone and its website.

Before you start

  • Your lobstr.io API key, from API & MCP in the app. The free plan has 100 credits a month.
  • A Clay plan with the HTTP API column: Growth, Enterprise, or Clay's trial.
  • A Clay table with your inputs, one column each: here Name and City.

Set it up

  1. Connect lobstr.io once

    In the table, click Add column, then Add enrichment. Search HTTP API, open Configure and click Add account:

    • Name your connection: lobstr.io
    • Allowed websites: api.lobstr.io
    • API Request Headers: the key Authorization, the value Bearer followed by your API key

    Clay keeps the key in this account, out of the table, for every HTTP API column of the workspace.

    Clay's Add HTTP API (Headers) Account window: the lobstr.io name, api.lobstr.io as allowed website, the Authorization header
  2. Call lobstr.io from each row

    Set Method to POST, Endpoint to https://api.lobstr.io/v2/run, and paste this in Body:

    {
      "source": "google_maps",
      "operation": "places/get",
      "options": {"place": "NAME, CITY"},
      "fields": ["id", "name", "rating.value", "rating.count", "phone", "website_url"]
    }

    Put your columns in place of NAME and CITY: delete the word, type / and pick the column. Keep the quotes around them.

    The Body of Clay's HTTP API column: place made of the Name column, a comma and the City column

    place takes a name and a city, a Google Maps link or a place's id. fields keeps the answer to what you need: Clay stores 200 KB in a cell at most.

  3. Run it

    Click Save, then Save and run. Each row makes one call, 1 credit, and its cell shows Status Code: 200.

    Click a cell. In Cell details, open Results, then 0: the place. Hover a field, click Add to column and name the column.

    Cell details of a row: the place's fields, and Add to column next to the rating
  4. Your table, filled

    Clay fills the new columns for every row, and for every row you add.

    The Clay table: four restaurants with their rating, number of reviews and phone, from lobstr.io

Calls at a time

Your plan runs a number of calls at a time. In the column's settings, under Custom rate limit, set Request Limit to that number and Duration (in ms) to 2000:

Free Starter Pro Team
1 2 10 50

One call more answers 429 concurrency_limit and costs nothing: Clay retries it on its own.

When a row fails

The cell shows lobstr.io's error, with a link to its explanation, and a failed call is free. The one you will meet most is ambiguous_query: the name matches several places, and the message lists them with their id. Put the street in the row's name, or the id in its place.

Other operations

The same column runs every operation: change source, operation and options. The emails and social profiles of each place's website, from the Website column:

{
  "source": "websites",
  "operation": "contacts/get",
  "options": {"website": "WEBSITE"},
  "fields": ["emails.address", "profiles.url"]
}

Every operation and its price are in the store, their options and fields in the API docs.