Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Cloro / Google AI Mode answer with sources and products

Cloro tool cloro-monitor-aimode on looot: input fields, $0.0096 per call, output shape, and code to run it with curl, JavaScript or Python.

Runs a prompt through Google AI Mode from a chosen country and returns the answer with cited sources, citation pills, inline products, shopping cards, place cards, videos and sponsored ads. Cloro bills 6 credits, plus 1 per product cluster when expandProducts is on (at most 6 more). looot holds 12 credits at $0.0008 and settles at the exact charge Cloro reports. A failed extraction is not charged.

Inputs

Name Type Required Description
device string no Device the search runs from. Defaults to desktop.
gl string yes Result geography as an ISO 3166-1 alpha-2 country code. Example: “US”
hl string no Interface language as a Google hl code, for example en, de or pt-BR. Overrides the language derived from the country. Example: “en”
include object no Optional response formats.
location string no Google canonical location name, City,Region,Country. Use with a country for city-level results. Not together with uule. Example: “New York,New York,United States”
prompt string yes The prompt to send. 1 to 10,000 characters. Example: “best electric suv under 50k”
uule string no Pre-encoded Google UULE location string. Not together with location.

Output

The run’s result holds the provider’s answer. Signed in, looot inspect cloro-monitor-aimode prints its fields.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"cloro-monitor-aimode","input":{"prompt":"best electric suv under 50k","gl":"US","hl":"en","location":"New York,New York,United States"},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "cloro-monitor-aimode",
    input: {
      prompt: "best electric suv under 50k",
      gl: "US",
      hl: "en",
      location: "New York,New York,United States",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "cloro-monitor-aimode",
        "input": {
            "prompt": "best electric suv under 50k",
            "gl": "US",
            "hl": "en",
            "location": "New York,New York,United States",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:google.serp.ai-mode as endpointId; see the job page.

Was this page helpful?