:`, so the model reads the code directly. Only two codes are worth retrying unchanged, and no failed call costs credits.
## Key takeaways
- Every failed `call_endpoint` returns a tool result with `isError: true` and text of the form `Error : (request_id: req_…)`. The model sees the code, not a stack trace.
- Fix and retry once: `invalid_parameters` and `unknown_endpoint`. Wait and retry: `rate_limited` and `temporarily_unavailable`, whose text ends `Retry after N seconds.`
- Don't retry: `not_found` (no data for those parameters), and `insufficient_credits`, `restricted_endpoint` and `invalid_api_key`, which only a person can fix.
- Failed calls cost 0 credits, so retries are free in credits. What a retry loop costs is turns, time and context, which is why the agent needs a cap.
- Put the mapping in the system prompt and enforce a retry limit in code. The prompt shapes behaviour; the code guarantees it.
## Why should tool errors reach the model at all?
Because a model can only correct what it can see. The MCP schema says errors that originate from a tool should be reported inside the tool result with `isError` set to true, since otherwise the model wouldn't know an error occurred and couldn't self-correct ( [Model Context Protocol schema](https://modelcontextprotocol.io/specification/2025-06-18/schema), 2025). The tools specification draws the line the same way: unknown tools, invalid arguments and server errors are JSON-RPC protocol errors, while API failures and business-logic errors are tool execution errors reported with `isError: true` ( [MCP tools specification](https://modelcontextprotocol.io/specification/2025-06-18/server/tools), 2025).
Perceptlayer's MCP server follows that split. An endpoint's own parameters travel inside `call_endpoint`'s `params` object, so a bad value there is a failure of the endpoint call, not of the tool's arguments. A bad endpoint ID, bad parameters, an empty result or a busy source all come back as normal tool results with `isError: true`, so the model reads them like any other output and decides what to do next. That puts the decision with the model, which is useful for `invalid_parameters`, where it can repair the call itself, and risky for codes it can't fix, where an unguided model may try again anyway. The rest of this article is about guiding that decision.
## What does the model actually see when a call fails?
One line of text: `Error`, the code, a colon, a message, and the request ID in brackets. When the source asks you to wait, the line also ends with `Retry after N seconds.`, taken from the `Retry-After` header. These are the messages the server sends today, from its source code, with the request ID shortened:
| Code | HTTP status behind it | What the model reads |
| --- | --- | --- |
| `invalid_parameters` | 422 | `Error invalid_parameters: Invalid parameters: 'safe' must be one of: active, off. (request_id: req_…)` |
| `unknown_endpoint` | none (MCP-level) | `Error unknown_endpoint: No endpoint 'google.search'. Use search_endpoints to find endpoint IDs.` |
| `not_found` | 404 | `Error not_found: No data was found for these parameters. You were not charged. (request_id: req_…)` |
| `rate_limited` | 429 | `Error rate_limited: Too many requests. Retry after the number of seconds in the Retry-After header. Retry after N seconds. (request_id: req_…)` |
| `temporarily_unavailable` | 503 | `Error temporarily_unavailable: The data source is busy. … You were not charged. Retry after N seconds. (request_id: req_…)` |
| `insufficient_credits` | 402 | `Error insufficient_credits: Your credit balance is used up. Buy more credits to continue. (request_id: req_…)` |
| `restricted_endpoint` | 403 | `Error restricted_endpoint: This endpoint requires accepting the restricted-endpoint terms in your dashboard. (request_id: req_…)` |
| `invalid_api_key` | 401 | `Error invalid_api_key: Missing, unknown or revoked API key. (request_id: req_…)` |
Two more codes can appear: `source_error` (502, "The data source returned an error") and `timeout` (504, "did not answer within 60 seconds"), both ending "You were not charged." When the source itself rejects parameters that passed validation, `invalid_parameters` carries "The data source rejected these parameters. Check them against the API reference." The [errors docs](https://docs.perceptlayer.com/errors) list every code with its HTTP status.
## Which action fits each error code?
Sort the codes by who can fix the problem. If the model can fix it, let it fix the call and try once more. If time fixes it, wait the stated seconds and retry. If nothing in this conversation will change the answer, stop. If only the user can fix it, say so and end the task. Every one of these failures costs 0 credits, so credit cost never decides the action; wasted turns do.
| Code | Who fixes it | Agent action | Retry? |
| --- | --- | --- | --- |
| `invalid_parameters` | The model | Read the message, call `get_endpoint` if needed, correct the parameter | Once, with the fix |
| `unknown_endpoint` | The model | Call `search_endpoints`, use a listed ID | Once, with the new ID |
| `rate_limited` | Time | Wait the `Retry after N seconds`, then repeat the same call | Yes, after the wait |
| `temporarily_unavailable` | Time | Same as `rate_limited` | Yes, after the wait, at most twice |
| `source_error`, `timeout` | Maybe time | Retry once later; if it fails again, report it | Once |
| `not_found` | Nobody | Accept that there's no data for these parameters; change the question or report it | No, not unchanged |
| `insufficient_credits` | The user | Stop and tell the user the balance is used up | No |
| `restricted_endpoint` | The user | Stop and tell the user to accept the restricted-endpoint terms | No |
| `invalid_api_key` | The user | Stop and tell the user to fix the server's API key | No |
`not_found` deserves care. It means the source had nothing for those exact parameters, which is an answer, not a fault. Retrying the same call wastes a turn. A different query, a broader location or another source may succeed, and that's a new call, not a retry.
## What does a recovered call look like?
Here's the most common recovery: a parameter outside its allowed values, fixed on the next turn. The model asks for a Google search with `safe` set to a value the endpoint doesn't accept:
```json
{ "endpoint": "google-search.search", "params": { "query": "best restaurants in Berlin", "safe": "maybe" } }
```
The tool result comes back with `isError: true` and this text:
```text
Error invalid_parameters: Invalid parameters: 'safe' must be one of: active, off. (request_id: req_…)
```
The message names the parameter and its allowed values, so the model needs no extra lookup. It sends the call again with `"safe": "off"`, and this time the result is the search JSON followed by a second text block, `Credits used: 1. Credits remaining: …` and the request ID. The failed attempt cost nothing; the whole recovery cost 1 credit. The [Google Search API page](https://perceptlayer.com/apis/google-search) lists that endpoint's other parameters.
A rate limit plays out differently. With the free account's 1 request a second, an agent that fires several calls at once gets `rate_limited` on the extras, each ending `Retry after N seconds.` The right move is to wait that long and repeat the same calls, not to change them. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) explain the per-account limits, and the article on [MCP server rate limiting](https://perceptlayer.com/blog/mcp-server-rate-limiting-agents) covers pacing calls so the limit rarely trips.
## What should the system prompt say?
State the mapping in a few plain rules, keyed on the code at the start of the error text, rather than general advice to "handle errors gracefully" that leaves the model to guess what each code means. This block fits any agent that uses the server:
```text
When a call_endpoint result starts with "Error :", act on the code:
- invalid_parameters or unknown_endpoint: fix the call using the message
(call get_endpoint or search_endpoints if you need to), then try once more.
- rate_limited or temporarily_unavailable: wait the seconds given after
"Retry after", then repeat the same call. Give up after two waits.
- source_error or timeout: try once more; if it fails again, say the source
is not answering right now.
- not_found: there is no data for those parameters. Don't repeat the call.
Change the query if that still answers the user's question; otherwise say so.
- insufficient_credits, restricted_endpoint, invalid_api_key: stop. Tell the
user exactly what the message says they need to do. Don't call other tools
to work around it.
Never repeat an identical failed call more than once.
```
The last line matters most. It stops the loop where a model answers each failure by resending the same request, which costs no credits but burns turns and fills the context with error lines.
## How do you enforce the rules in code?
Count failures per call in the client and refuse to forward a repeat past the limit. A prompt shapes what the model tries; your code decides what actually reaches the server. If you run the agent loop yourself, wrap the tool call: parse the code from the result text, track identical calls, and sleep for `Retry after` before passing a repeat through. The parsing is two regular expressions:
```python
import json
import re
import time
ERROR = re.compile(r"^Error (\w+):")
RETRY = re.compile(r"Retry after (\d+) seconds")
failures = {}
def guarded_call(call_tool, endpoint, params, max_repeats=1):
key = endpoint + json.dumps(params, sort_keys=True)
if failures.get(key, 0) > max_repeats:
return "Error retry_limit: this exact call already failed. Change it or stop."
text = call_tool("call_endpoint", {"endpoint": endpoint, "params": params})
m = ERROR.match(text)
if not m:
failures.pop(key, None)
return text
failures[key] = failures.get(key, 0) + 1
wait = RETRY.search(text)
if m.group(1) in ("rate_limited", "temporarily_unavailable") and wait:
time.sleep(int(wait.group(1)))
return text
```
The error texts above come from the server's source code; we haven't run this guard against a live agent for this article. `call_tool` is whatever function your MCP client uses to call a tool and return its text. The guard sleeps through rate limits so the model's next attempt lands after the window, and it turns a third identical failure into a message the model can't misread. For a hard cap on credits per run as well, the guide to [AI agent cost control](https://perceptlayer.com/blog/ai-agent-web-data-costs) adds a budget check to the same wrapper.
To see the error texts for yourself, add the server to your client using the [AI agents (MCP) docs](https://docs.perceptlayer.com/ai-agents) and send a call with a deliberately wrong parameter.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Do failed MCP tool calls cost credits?
No. Every error response from the API carries `X-Credits-Used: 0`, and nothing is debited from the balance. Only a successful `call_endpoint` spends the endpoint's credits, 1 for most endpoints. Retries after an error are free in credits, though each one still costs a model turn and context.
### Should an agent retry not\_found?
Not with the same parameters. `not_found` means the source had no data for exactly what was asked, so the identical call will return the same answer. The agent should change the query, such as a broader location or different wording, if that still serves the user, or report that nothing was found.
### How long should the agent wait after rate\_limited?
The number of seconds in the error text after "Retry after", which comes from the response's `Retry-After` header. Waiting less just produces another `rate_limited`. Free accounts get 1 request a second and paying accounts at least 5, counted per minute across all of an account's keys.
### Why do some errors have no request ID?
`unknown_endpoint` and bad `params` shapes are caught by the MCP server before any request reaches the API, so there's no request to identify. Errors from the API itself, such as `invalid_parameters` from validation or `rate_limited`, include a `request_id` you can quote to support.
### Can the agent fix insufficient\_credits itself?
No, and it shouldn't try. The balance is prepaid and there's no automatic top-up, so the call fails until someone buys credits. The agent should stop and tell the user. Calling other endpoints won't help, because every paid call fails the same way until the balance is topped up on the [pricing page](https://perceptlayer.com/pricing).
mcp error handling ai agents retries tool calling
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 13 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [What Is an MCP Server? A Working Example with Web Data](https://perceptlayer.com/blog/what-is-an-mcp-server)
An MCP server exposes tools, resources and prompts to AI apps over stdio or Streamable HTTP. See a real tools/list and tools/call, and what each costs.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Sept 2026 Perceptlayer 7 min read
## [MCP Server Too Many Tools: Keeping Agent Context Small](https://perceptlayer.com/blog/mcp-too-many-tools-context)
One tool per endpoint for 1,659 endpoints is about 567,000 characters of schema. A 10-step checklist to keep an MCP server's tool list small.
---
title: "Search Result Data for SEO Monitoring: Fields to Track"
description: "Which search result fields to store per keyword per day, from position to snippet, and what 200 keywords tracked daily cost in credits."
url: https://perceptlayer.com/blog/search-result-data-seo-monitoring
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Search Result Data for SEO Monitoring: Fields to Track
3 Sept 2026 Perceptlayer 8 min read
For SEO monitoring with SERP data, store one row per keyword, per day, per market and device: the organic `position`, the `rank_absolute`, the `title`, the `link` and the `snippet`. Add the related questions and related searches as a second table. At 1 credit per call, 200 keywords checked daily cost 6,000 credits a month, and the fields below tell you why rankings moved.
## Key takeaways
- Store `position` and `rank_absolute` separately. In the recorded response, the first organic result has `position` 1 but `rank_absolute` 4, with local results at `rank_absolute` 1 and 2 above it.
- Keep `title` and `snippet` every day. A rank change with no title change points at the page's competition; a title change points at a rewrite, while a snippet can change without any page edit.
- Key every row by date, keyword, `gl`, `hl` and `device`, or day-to-day comparisons mix different result pages.
- 200 keywords × 1 credit × 30 days = 6,000 credits a month. The 100 free credits on signup cover the first 100 checks, half of one day's run.
- The same search response carries `related_questions` and `related_searches`, so tracking them adds no calls.
## Which SERP data fields matter for SEO monitoring?
Five fields carry most of the signal: `position`, `rank_absolute`, `title`, `link` and `snippet`. Position tells you where a page ranks among organic results, the link tells you who holds it, and the title and snippet show how that page presents itself. Everything else either explains movement or is noise for rank tracking.
Here is what the [Search endpoint](https://perceptlayer.com/apis/google-search/search) returns for each organic result, taken from the recorded response for `best restaurants in Berlin`.
| Field | What it holds | Why you store it |
| --- | --- | --- |
| `position` | Rank among organic results | The number you report |
| `rank_group` | A second rank number; it equals `position` in the recorded organic results | Store it if you want to compare with other result types |
| `rank_absolute` | A page-wide rank that also numbers other modules | Shows how far down the page a result sits |
| `title` | The result's title | Detects rewrites and competitor changes |
| `link` | The ranking URL | Tells you which of your pages ranks, and which rival |
| `displayed_link` | The breadcrumb-style URL shown | Useful for spotting site structure changes |
| `snippet` | The text shown under the title | Detects snippet changes and date stamps |
| `source` | The site name | Quick grouping by publisher |
Two things about this table. `redirect_link` also comes back, but it is a Google redirect URL, so use `link` as the key. And `snippet_highlighted_words` shows which words matched the query, which is handy for content audits but optional for monitoring.
## Why store both position and absolute rank?
In the recorded response, `position` numbers the organic results 1, 2 and so on, while `rank_absolute` is a page-wide number that the local results share. A result can hold position 1 and still sit well down the page, and only the second number shows it.
The recorded response makes this concrete. The local results carry `rank_absolute` 1 and 2, and the first organic result carries 4. This excerpt is trimmed with `…`:
```json
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. …",
"rank_group": 1,
"rank_absolute": 4
}
```
Position 1, absolute 4. If you only stored `position`, you could see a flat line while clicks fell because modules sit above the result. Storing both gives you a way to tell a ranking loss from a layout change.
The same response lists `local_results` and `serp_results` entries with their own `rank_absolute` values. Counting how many modules sit above your result each day gives you a layout trend with no extra calls.
## What should you store per keyword per day?
Store one row per keyword per day per market, with the organic results as child rows. The key is the date, the keyword and the parameters that change the page: `gl` (country), `hl` (language) and `device`. Leave any of them out and you'll compare a desktop page in one country with a mobile page in another.
A workable layout has three tables.
| Table | Key | Columns |
| --- | --- | --- |
| `checks` | date, keyword, `gl`, `hl`, `device` (unique) | `organic_results_count`, fetched time |
| `results` | check, `position` | `rank_absolute`, `title`, `link`, domain, `snippet` |
| `questions` | check, kind, text | kind ( `related_questions` or `related_searches`) and the question or search text |
Keep every organic result, not just your own. Competitor rows are what turn a drop from "we lost position 3" into "a new domain took position 3 with a rewritten title". Store the domain as its own column, parsed from `link`, so a group-by is cheap.
Don't store `redirect_link` or the pagination links; they're long, change per call and add nothing to analysis. Keep the raw JSON in cold storage only if you want to re-parse later. For loading JSON into a warehouse, see [loading API JSON into Postgres](https://perceptlayer.com/blog/load-web-data-json-into-postgres).
## How do related questions fit into rank monitoring?
Related questions show which follow-up queries Google attaches to a keyword, and they change over time. The Search response already includes `related_questions` and `related_searches`, so you can log them in the same call that returns your rankings. Each question is a content idea, and a new one appearing is a signal worth reading.
From the recorded response:
```json
"related_questions": [
{
"question": "What is the coolest restaurant in Berlin?",
"next_page_token": "fc=EqEBCmJBSmlUNHRMWjV0…"
},
…
]
```
Store the `question` text and diff it against yesterday's set. The `next_page_token` is only useful if you want to expand a question with the [Related Questions endpoint](https://perceptlayer.com/apis/google-related-questions/related-questions), which takes `q`, `next_page_token`, `hl` and `gl` and costs 1 credit per call. Expanding every question for every keyword multiplies your cost, so do it for a short list of keywords that matter most.
For a view of how interest in a topic moves over longer periods, pair this with [search trend data](https://perceptlayer.com/blog/search-trend-data-demand-forecasting). For the endpoint itself, the [Google Search API guide](https://perceptlayer.com/blog/google-search-api-json) covers the parameters.
## How do you pull the data for 200 keywords?
Loop over your keyword list, call `GET /v1/google-search/search` once per keyword with `query`, `gl`, `hl` and `device`, and write the fields above into SQLite or your warehouse. The script below does that for a list in `keywords.txt`, one keyword per line, retries a 429 or 503 up to three times, and logs and skips any keyword that still fails.
```python
import os
import sqlite3
import time
from datetime import date, datetime, timezone
from urllib.parse import urlparse
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
MARKET = {"gl": "us", "hl": "en", "device": "desktop"}
MAX_ATTEMPTS = 3
db = sqlite3.connect("serp.db")
db.executescript("""
CREATE TABLE IF NOT EXISTS checks (
id INTEGER PRIMARY KEY,
day TEXT, keyword TEXT, gl TEXT, hl TEXT, device TEXT,
organic_results_count INTEGER, fetched_at TEXT,
UNIQUE (day, keyword, gl, hl, device));
CREATE TABLE IF NOT EXISTS results (
check_id INTEGER REFERENCES checks(id),
position INTEGER, rank_absolute INTEGER,
title TEXT, link TEXT, domain TEXT, snippet TEXT,
PRIMARY KEY (check_id, position));
CREATE TABLE IF NOT EXISTS questions (
check_id INTEGER REFERENCES checks(id),
kind TEXT, text TEXT,
PRIMARY KEY (check_id, kind, text));
""")
def search(keyword):
"""Return the parsed response, or None after logging a failure."""
for attempt in range(1, MAX_ATTEMPTS + 1):
try:
r = requests.get(
f"{BASE}/v1/google-search/search",
params={"query": keyword, **MARKET},
headers=HEADERS,
timeout=60,
)
except requests.RequestException as e:
print(f"{keyword!r}: attempt {attempt} failed: {type(e).__name__}")
time.sleep(5)
continue
if r.status_code in (429, 503):
print(f"{keyword!r}: HTTP {r.status_code}, attempt {attempt}")
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
if not r.ok:
# 403 restricted_endpoint, 402 insufficient_credits and so on:
# retrying won't help, so log it and move to the next keyword.
print(f"{keyword!r}: HTTP {r.status_code}, skipping")
return None
return r.json()
print(f"{keyword!r}: gave up after {MAX_ATTEMPTS} attempts")
return None
today = date.today().isoformat()
with open("keywords.txt") as f:
keywords = [line.strip() for line in f if line.strip()]
failed = []
for kw in keywords:
data = search(kw)
if data is None:
failed.append(kw)
continue
key = (today, kw, MARKET["gl"], MARKET["hl"], MARKET["device"])
organic = data.get("organic_results", [])
with db: # one transaction per keyword
# A rerun replaces today's rows for this key instead of doubling them.
old = db.execute(
"SELECT id FROM checks WHERE day=? AND keyword=? AND gl=? "
"AND hl=? AND device=?", key).fetchone()
if old:
db.execute("DELETE FROM results WHERE check_id=?", old)
db.execute("DELETE FROM questions WHERE check_id=?", old)
db.execute("DELETE FROM checks WHERE id=?", old)
check_id = db.execute(
"INSERT INTO checks (day, keyword, gl, hl, device, "
"organic_results_count, fetched_at) VALUES (?,?,?,?,?,?,?)",
(*key, len(organic), datetime.now(timezone.utc).isoformat()),
).lastrowid
for item in organic:
link = item.get("link", "")
db.execute(
"INSERT OR REPLACE INTO results VALUES (?,?,?,?,?,?,?)",
(check_id, item.get("position"), item.get("rank_absolute"),
item.get("title"), link, urlparse(link).netloc,
item.get("snippet")),
)
for q in data.get("related_questions", []):
db.execute("INSERT OR IGNORE INTO questions VALUES (?,?,?)",
(check_id, "related_questions", q.get("question")))
for s in data.get("related_searches", []):
db.execute("INSERT OR IGNORE INTO questions VALUES (?,?,?)",
(check_id, "related_searches", s.get("query")))
print(f"done: {len(keywords) - len(failed)} stored, {len(failed)} failed")
for kw in failed:
print("retry later:", kw)
```
Rate limits are per account, counted per minute. A free account gets 1 request a second, so 200 sequential keywords take at least 200 seconds there; paying accounts run at least 5 a second. The [rate limits page](https://docs.perceptlayer.com/rate-limits) has the details, and [concurrent requests under a rate limit](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit) shows how to parallelise. Run it daily with cron or a queue; [scheduling web data pulls](https://perceptlayer.com/blog/schedule-web-data-pulls-cron-queue) compares the options.
A request whose reply was lost might have succeeded and been billed, because requests have no idempotency key. For a daily snapshot that's a small risk, but the script deletes and rewrites a key's rows, so a rerun on the same day replaces them rather than doubling them. A `403` with `restricted_endpoint` is not retried: if a call returns it, accept the restricted-endpoint terms in the dashboard and rerun. The script logs the failed keywords at the end, so you can rerun the list once the cause is fixed.
## What does tracking 200 keywords daily cost?
At 1 credit per successful call, 200 keywords checked once a day cost 200 credits a day: 200 × 30 = 6,000 credits for a 30-day month, or 200 × 365 = 73,000 credits for a year. Failed calls cost nothing and return `X-Credits-Used: 0`, so retries on errors don't add to the total.
| Setup | Calls a day | Credits a month (30 days) |
| --- | --- | --- |
| 200 keywords, one market and device | 200 | 6,000 |
| 200 keywords, desktop and mobile | 400 | 12,000 |
| 200 keywords, plus Related Questions on 20 of them | 220 | 6,600 |
| 200 keywords, checked weekly | about 29 | about 800 |
The weekly row is 200 × 4 = 800 credits for four checks in a month. The free tier gives 100 credits once, after email verification: half of one 200-keyword check (100 ÷ 200), so either setup needs a pack after a first test. The weekly setup's 800 credits a month fit the Starter pack for 12 months.
The Starter pack is 10,000 credits. The first row (6,000 a month) fits inside it, but the second row, at 12,000, does not. Purchased credits last 12 months, and there's no subscription, so a pack is not a monthly commitment. [Pricing](https://perceptlayer.com/pricing) shows what credits cost, and the [credits page](https://docs.perceptlayer.com/credits) explains how they're debited. Every response carries `X-Credits-Remaining`, so log it and alert before the balance runs out; an empty balance returns `insufficient_credits` (402) and nothing more is debited.
Be honest about the trade-offs. Daily checks on every keyword are rarely needed. Daily for your top 50 and weekly for the long tail gets most of the value at a fraction of the credits. And rank data from a single call is a snapshot of the page as returned at that moment. Compare trends over weeks, not a single day's move, and run the [data quality checks](https://perceptlayer.com/blog/web-data-quality-monitoring-checklist) before you alert on a drop.
For what Google says about how titles and snippets are chosen, read its guidance on [snippets in search results](https://developers.google.com/search/docs/appearance/snippet), which explains why your stored snippets will change without you touching the page. For first-party click and impression data, [Search Console's performance report](https://support.google.com/webmasters/answer/7042828) is the primary source and complements this: it tells you your own traffic, while the monitoring above tells you who else is on the page.
To try it, [get a free API key](https://perceptlayer.com/signup), then run one keyword in the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search) before you loop over all 200.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
- [Google Related Questions **1 credit per call** · 1 endpoint](https://perceptlayer.com/apis/google-related-questions)
## Frequently asked questions
### What is the minimum I should store for rank tracking?
Store the date, keyword, `gl`, `hl`, `device`, and for each organic result the `position`, `rank_absolute`, `link`, `title` and `snippet`. That is enough to plot rank, spot a competitor taking over, and see rewrites. Add related questions if you also want to track which follow-up questions appear for a keyword.
### How many credits does tracking 200 keywords every day use?
200 keywords × 1 credit × 30 days = 6,000 credits a month, or 73,000 a year at 200 × 365. Desktop and mobile together double it to 12,000 a month. Failed calls are not billed, and the free tier's 100 credits, granted once on signup, cover the first 100 checks.
### Do I need a separate call for related questions?
Not to read them. The Search response includes `related_questions` and `related_searches`, as the recorded response shows. A separate call to the Related Questions endpoint, at 1 credit, is only needed to expand a question using its `next_page_token`, or to look up questions for a query directly with `q`.
### Why does my position differ from what I see in the browser?
Results vary with country, language, device and the time of the call. Pass `gl`, `hl` and `device` explicitly so every day's check uses the same settings, and treat the data as returned at the time of the call. Compare your series with a browser check in the same market, not a personalised session.
### What happens if a daily run hits the rate limit?
A 429 response carries a `Retry-After` header with the seconds to wait; the script above sleeps for that long and retries, up to three attempts, then logs the keyword and moves on. Limits are per account and counted per minute. Retried 429s are errors, so they aren't billed. See the [errors page](https://docs.perceptlayer.com/errors) for every code.
seo serp rank tracking google search monitoring
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Oct 2026 Perceptlayer 7 min read
## [Rank Tracking API: Track Google Positions as JSON](https://perceptlayer.com/blog/rank-tracking-api)
Build a daily rank check from one Google search call per keyword and location: read organic\_results position and link, store them, 1 credit a check.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 8 Aug 2026 Updated 2 Nov 2026 Perceptlayer 7 min read
## [News Data for Event Detection: Signals and Noise](https://perceptlayer.com/blog/news-data-event-detection)
Turn news search results into event signals: drop duplicate URLs, cluster syndicated titles, count distinct sources in a window, and compare with a baseline.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 14 Jul 2026 Perceptlayer 7 min read
## [Google AI Overview API: Get AI Overviews as JSON](https://perceptlayer.com/blog/google-ai-overview-api)
Google has no AI Overview API. GET /v1/google-search/search-ai-overview takes a query, hl and gl, costs 1 credit, and suits daily keyword tracking.
---
title: "Google Scholar API: Search Papers and Citations as JSON"
description: "Search Google Scholar as JSON: the search endpoint's parameters, a recorded response with citation counts, and a flat 1 credit per call."
url: https://perceptlayer.com/blog/google-scholar-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Scholar API: Search Papers and Citations as JSON
1 Sept 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
Google's Scholar pages don't point to a developer API, so a third-party one is the practical route. The Perceptlayer Google Scholar API gives you five `GET` endpoints that return JSON: search, author, author-citation, author-co-authors and cite. Each successful call costs 1 credit, and failed calls cost nothing. Send your key in the `X-API-Key` header and you can have a result list in one request. Only search has a recorded response, so the other four sections list parameters and leave the details to their endpoint pages.
## Key takeaways
- `GET /v1/google-scholar/search` takes an optional `q` (up to 500 characters) plus `as_ylo`, `as_yhi`, `start`, `num`, `cites` and `cluster`.
- Each organic result carries `title`, `result_id`, `link`, `snippet` and `publication_info.summary`. Cited results add `inline_links.cited_by.total`.
- The `cites` parameter takes a string. In the recording, `cited_by.link` carries the same value as `cited_by.cites_id`.
- All five endpoints cost 1 credit per successful call. The free tier's 100 credits on signup cover 100 calls.
- The author endpoints take a required `user` parameter, `author-citation` also needs a `citation_id`, and `cite` requires `q`. Only search has a recorded response here; those four are covered by parameters alone.
## Is there an official Google Scholar API?
Google doesn't point to one on its Scholar pages. [Google's Scholar about page](https://scholar.google.com/intl/en/scholar/about.html) describes a search product and doesn't mention a developer API. That isn't proof that none exists, so check Google's own documentation before you rely on this. If you need paper search, author profiles or citation counts as structured data, you either build a parser yourself or call a service that returns the fields as JSON.
That second route is what this guide covers. The Perceptlayer endpoints return named fields, so a script can read `title` and `inline_links.cited_by.total` without touching HTML. Data is collected from publicly available sources and returned as found at the time of the call. You get no guarantee of completeness, so treat counts as a snapshot.
If you only need open metadata, other services fit better. [OpenAlex](https://docs.openalex.org/), [Crossref](https://www.crossref.org/documentation/retrieve-metadata/rest-api/) and [Semantic Scholar](https://www.semanticscholar.org/product/api) publish documented APIs for scholarly metadata. Use Scholar-specific endpoints when you need what Google Scholar shows: its ranking, its "cited by" counts and its author profiles.
## What does a Google Scholar search request look like?
One `GET` to `/v1/google-scholar/search` with a query returns a page of papers. This request asks for ten results for "machine learning", in English, published since 2020:
```bash
curl "https://api.perceptlayer.com/v1/google-scholar/search?q=machine+learning&hl=en&num=10&as_ylo=2020" \
-H "X-API-Key: $API_KEY"
```
If you don't have a key yet, [get a free API key](https://perceptlayer.com/signup) first. The [authentication docs](https://docs.perceptlayer.com/authentication) cover the header and the `api_key` query-parameter fallback for clients that can't set headers. Keys start with `sk_live_`.
You can also run the call without writing code. The [Google Scholar API page](https://perceptlayer.com/apis/google-scholar) has a playground: pick the endpoint, fill in the parameters and run a real call with your key.
## Which parameters does the search endpoint take?
The search endpoint has no required parameters. Everything is optional, though a request without `q` or `cites` gives you little to look at. The table gives each parameter's type and allowed values, which is all the catalogue documents. Defaults and page sizes aren't specified.
| Parameter | Type | Notes |
| --- | --- | --- |
| `q` | string | The search query, up to 500 characters |
| `hl` | string | Optional; the example request uses `en` |
| `start` | integer | Optional |
| `num` | integer | Optional |
| `as_ylo` | integer | Optional; the example request uses `2020` |
| `as_yhi` | integer | Optional |
| `scisbd` | integer | One of `0`, `1`, `2` |
| `cites` | string | Optional; see the `cites_id` note below |
| `cluster` | string | Optional |
The recorded request combines `hl`, `num` and `as_ylo`. For a loop that stops safely and doesn't double-bill, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python). The [search endpoint page](https://perceptlayer.com/apis/google-scholar/search) lists the same parameters.
## What does the search response contain?
The response wraps everything in `success` and `data`. Inside `data`, `search_parameters` echoes your inputs, `search_information` reports the totals, and `organic_results` holds the papers. Here's an excerpt of a recorded response for the request above:
```json
{
"success": true,
"data": {
"search_parameters": {
"engine": "google_scholar",
"q": "machine learning",
"hl": "en",
"start": 0,
"num": 10,
"as_ylo": "2020",
"scisbd": 0
},
"search_information": {
"query_displayed": "machine learning",
"total_results": 38300,
"result_stats": "About 38,300 results (0.12 sec)"
},
"organic_results": [
{
"position": 1,
"title": "Machine learning",
"result_id": "WHD7vRZpYhIJ",
…
"publication_info": {
"summary": "S Marsland - Computing Handbook, 2022 - api.taylorfrancis.com",
…
}
},
{
"position": 2,
"title": "Machine learning",
"result_id": "K_YKyl3arXoJ",
…
"inline_links": {
"cited_by": {
"total": 292,
"link": "https://scholar.google.com/scholar?cites=8839961739954681387&as_sdt=2005&sciodt=0,5&hl=en",
"cites_id": "8839961739954681387"
},
…
}
}
]
}
}
```
The fields you'll use most are listed here. Each one appears in the recorded response above.
| Field | What it holds |
| --- | --- |
| `position` | Rank of the result in the list |
| `title` | The paper or chapter title |
| `result_id` | Scholar's identifier for the result |
| `link` | URL of the paper or its host page |
| `snippet` | The text excerpt Scholar shows under the title |
| `publication_info.summary` | Authors, venue, year and host in one string |
| `inline_links.cited_by.total` | Citation count |
| `inline_links.cited_by.cites_id` | Identifier for the citing set |
Not every result has every field. In the recording, the first result has no `inline_links` block, while the second has `cited_by.total` set to 292. Read optional fields with a default instead of assuming they exist.
## How do you get citation counts from the response?
Read `inline_links.cited_by.total` on each entry in `organic_results`, and treat a missing block as "no count". In the recording, `cited_by.total` is the citation count field. This short script prints each title with its count and rank:
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/google-scholar/search",
params={"q": "machine learning", "hl": "en", "num": 10, "as_ylo": 2020},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
resp.raise_for_status()
for item in resp.json()["data"]["organic_results"]:
cited = item.get("inline_links", {}).get("cited_by", {}).get("total")
print(item["position"], item["title"], cited)
```
Check `X-Credits-Used` and `X-Credits-Remaining` on the response if you track spend. A successful call reports 1 for the first. A failed call reports `X-Credits-Used: 0` and isn't billed.
### Follow a paper's citations with `cites`
The `cited_by.link` in the recording carries a `cites=` query value, and the same value appears as `cites_id`. The search endpoint has a `cites` parameter, typed as a string. The catalogue doesn't describe what it does, so try passing a `cites_id` there on one paper and inspect the response before you build a loop around it.
## What do the author, co-author, citation and cite endpoints do?
Four more endpoints cover authors, an author's citation entry and the cite lookup. We only have a recorded response for search, so this section lists their parameters, and the endpoint pages carry the details. All four take `GET` and cost 1 credit.
| Endpoint | Required | Optional |
| --- | --- | --- |
| [`/v1/google-scholar/author`](https://perceptlayer.com/apis/google-scholar/author) | `user` | `hl`, `num`, `start`, `sort` |
| [`/v1/google-scholar/author-citation`](https://perceptlayer.com/apis/google-scholar/author-citation) | `user`, `citation_id` | `hl` |
| [`/v1/google-scholar/author-co-authors`](https://perceptlayer.com/apis/google-scholar/author-co-authors) | `user` | `hl` |
| [`/v1/google-scholar/cite`](https://perceptlayer.com/apis/google-scholar/cite) | `q` | `hl` |
All three author endpoints require `user`. `sort` on the author endpoint accepts `title` or `pubdate`, and it also takes `num` and `start`. `author-citation` additionally requires a `citation_id`, and `cite` requires `q`. See the [author](https://perceptlayer.com/apis/google-scholar/author), [author-citation](https://perceptlayer.com/apis/google-scholar/author-citation), [author-co-authors](https://perceptlayer.com/apis/google-scholar/author-co-authors) and [cite](https://perceptlayer.com/apis/google-scholar/cite) pages for what each returns. A request for an author's co-authors looks like this, with your own `user` value:
```bash
curl "https://api.perceptlayer.com/v1/google-scholar/author-co-authors?user=USER_ID&hl=en" \
-H "X-API-Key: $API_KEY"
```
Author profiles are personal data in the sense that they name real people. Use them for research and bibliometrics, and don't use them to contact people or build profiles without a lawful basis. Endpoints that return personal data can be restricted. If a call returns `restricted_endpoint` (403), accept the restricted-endpoint terms in the dashboard and retry.
## How much does a Google Scholar API call cost?
Every endpoint above costs 1 credit per successful call, and a failed call costs nothing. Credits are prepaid, so when your balance reaches zero the API returns `insufficient_credits` (402) and nothing more is debited. There's no automatic top-up. The [credits docs](https://docs.perceptlayer.com/credits) cover the headers, and the [pricing page](https://perceptlayer.com/pricing) shows what credits cost.
| Source of credits | Credits |
| --- | --- |
| Free tier | 100, once, on signup |
| Starter pack | 10,000 |
| Build pack | 50,000 |
| Growth pack | 200,000 |
Larger packs (Pro, Scale and Volume) also exist, up to 5,000,000 credits. The free tier needs a verified email address and no credit card. Purchased credits last 12 months, with no subscription and no seats.
A worked example: a literature scan that runs 20 search calls, one per query, makes 20 calls × 1 credit = 20 credits, well inside the free tier. At 10,000 search calls a month you'd spend 10,000 calls × 1 credit = 10,000 credits, which equals one Starter pack. For what a pack costs, see [pricing](https://perceptlayer.com/pricing).
## What goes wrong, and how do you handle it?
Errors come back as an HTTP status and a JSON body shaped `{"error": {"code", "message", "request_id"}}`. The codes you're most likely to meet here are `invalid_api_key` (401), `invalid_parameters` (422), `rate_limited` (429), `source_error` (502) and `temporarily_unavailable` (503). The [errors docs](https://docs.perceptlayer.com/errors) list all of them.
For 429 and 503, read the `Retry-After` header and wait that many seconds. Requests have no idempotency key, so a call whose reply was lost to a client timeout may have succeeded and been billed. [Retrying web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers how to handle that, and the [rate limit docs](https://docs.perceptlayer.com/rate-limits) give the limits.
If you're building an agent that looks up papers on demand, the same endpoints work through the MCP server. The `call_endpoint` tool takes an endpoint ID and its parameters. See [MCP server for web scraping](https://perceptlayer.com/blog/mcp-server-for-web-scraping) or the [MCP docs](https://docs.perceptlayer.com/ai-agents).
Next step: run the search call above in the [playground on the Google Scholar API page](https://perceptlayer.com/apis/google-scholar), then copy the cURL into your own script.
## APIs in this post
- [Google Scholar **1 credit per call** · 5 endpoints](https://perceptlayer.com/apis/google-scholar)
## Frequently asked questions
### Does Google Scholar have an official API?
Google's Scholar about page doesn't mention one, though we can't prove none exists. To get results and citation counts as JSON, you call a service that returns them as fields. The Perceptlayer Google Scholar API exposes five endpoints for this, and each successful call costs 1 credit.
### How much does the Google Scholar API cost?
Each successful call to any of the five endpoints costs 1 credit, and failed calls cost nothing. The free tier gives 100 credits after you verify an email. Paid packs start at 10,000 credits (the Starter pack), so 10,000 calls × 1 credit = 10,000 credits. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
### Is there an endpoint for authors and co-authors?
Yes, there are two, though we have no recorded response for them. The `author` endpoint takes a required `user` and optional `hl`, `num`, `start` and `sort` ( `title` or `pubdate`). The `author-co-authors` endpoint takes `user` and optional `hl`. Each call costs 1 credit. Use them for research, and not to contact people.
### How do I filter Google Scholar results by year?
Pass `as_ylo` for the earliest year and `as_yhi` for the latest on the search endpoint. Both are integers. The recorded request above used `as_ylo=2020`, and the response echoed it back inside `search_parameters`. Filtering doesn't change the price: the call still costs 1 credit.
### What happens if a call fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`. Failed calls return `X-Credits-Used: 0` and aren't billed. For 429 and 503, wait the number of seconds in `Retry-After`. If a client timeout hid the reply, the call may still have been billed.
google scholar citations academic search research data search engines
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 31 Oct 2026 Perceptlayer 8 min read
## [Google Scholar Scraper or API: What You Get](https://perceptlayer.com/blog/google-scholar-scraper-vs-api)
A Google Scholar scraper vs search endpoints at 1 credit a call: a recorded machine learning search with cited\_by.total, and the cost per paper tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 18 Nov 2026 Perceptlayer 7 min read
## [Discogs API: Releases and Marketplace Data as JSON](https://perceptlayer.com/blog/discogs-api-json)
Search Discogs releases, look one up and read marketplace listings as JSON: a recorded vinyl search with master\_id and have/want counts, 1 to 2 credits a call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 18 Nov 2026 Perceptlayer 7 min read
## [Google Books Data as JSON: Search, ISBN and Volumes](https://perceptlayer.com/blog/google-books-api-json)
Search Google Books by author and title, look up a book by ISBN or volume id, and get isbn\_13, page\_count and categories as JSON at 1 credit a call.
---
title: "Kiwi.com API: Search Fares and Cheapest Dates as JSON"
description: "Search Kiwi.com fares by origin, destination and date, then scan a window with calendar-cheapest-dates. A recorded London–Barcelona response and costs."
url: https://perceptlayer.com/blog/kiwi-flights-api-cheapest-dates
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Kiwi.com API: Search Fares and Cheapest Dates as JSON
1 Sept 2026 Perceptlayer 6 min read
Kiwi.com's own API is now for invited business partners, so most developers can't get a key for it. To read Kiwi.com fares as JSON, call `GET /v1/kiwi/flights-search` with `origin`, `destination` and `departure_date`; each successful call costs 1 credit and returns itineraries with price, carriers, stops, duration, baggage and a booking link. For a date window, `GET /v1/kiwi/calendar-cheapest-dates` takes a `start_date` and `end_date` in one call.
## Key takeaways
- `flights-search` needs `origin`, `destination` and `departure_date`; `cabin`, `max_stops`, `sort` ( `quality`, `price` or `duration`), `currency` and passenger counts are optional.
- A recorded search from `LON` to `BCN` returned flights from both Luton and Stansted, so a city code covers all of a city's airports.
- `duration` is in seconds: the recorded Ryanair flight shows `7800`, 2 hours 10 minutes, for a 15:35 departure and 18:45 local arrival one time zone east.
- Scanning 30 departure dates one by one is 30 `flights-search` calls, 30 credits. `calendar-cheapest-dates` asks for the whole window in a single 1-credit call.
- All 7 Kiwi.com endpoints cost 1 credit per successful call, and failed calls cost nothing.
## Can you still get a Kiwi.com API key?
Not unless Kiwi.com invites you. Kiwi.com used to give public access to its Tequila platform, which included the API, a white-label product and an affiliate programme. It has since narrowed that to key business partnerships, and new Tequila partnerships are by invitation only; existing partners keep their tools and documentation ( [Kiwi.com](https://media.kiwi.com/articles-and-interviews/better-for-business-kiwi-com-takes-a-new-approach-to-partnerships/), 2024).
If you're a travel agency that wants to sell Kiwi.com itineraries and take bookings, the partner route is the right one: the [Tequila site](https://tequila.kiwi.com/) asks prospective affiliates to get in touch with Kiwi.com by email (2026). If you want to read fares for research, alerts or an agent, the [Kiwi.com API](https://perceptlayer.com/apis/kiwi) returns what the site shows, as JSON, with the same key as every other API in the catalogue. It doesn't book anything: each itinerary carries a `booking_url` that opens the booking page on Kiwi.com.
## What can the Kiwi.com API return?
Seven GET endpoints cover search, a single itinerary, date flexibility and destination discovery. Each costs 1 credit per successful call. The two that matter most are `flights-search` for one route on one date and `calendar-cheapest-dates` for one route across a window. `locations` turns a place name into the codes the other endpoints take.
| Endpoint | Use it for | Required |
| --- | --- | --- |
| [`/v1/kiwi/flights-search`](https://perceptlayer.com/apis/kiwi/flights-search) | Itineraries for one route and date | `origin`, `destination`, `departure_date` |
| `/v1/kiwi/flights-detail` | One itinerary from a search | `origin`, `destination`, `departure_date`, `itinerary_id` |
| [`/v1/kiwi/calendar-cheapest-dates`](https://perceptlayer.com/apis/kiwi/calendar-cheapest-dates) | Cheapest dates in a window | `origin`, `destination`, `start_date`, `end_date` |
| `/v1/kiwi/calendar-price-graph` | Prices across a window for a stay length | adds `nights_min`, `nights_max` |
| [`/v1/kiwi/explore-price-map`](https://perceptlayer.com/apis/kiwi/explore-price-map) | Destinations from one origin | `origin`, `start_date`, `end_date` |
| `/v1/kiwi/flights-one-per-city` | One flight per destination city | `origin`, `departure_date` |
| `/v1/kiwi/locations` | Place name to codes | `query` |
`explore-price-map` also takes a bounding box ( `south_west_lat`, `south_west_lng`, `north_east_lat`, `north_east_lng`) and a `limit`, which is how you ask "where can I fly from London in December" for one region of the map.
## How do you search Kiwi.com fares?
Send `origin`, `destination` and `departure_date` to `GET /v1/kiwi/flights-search`. Codes can be airports or cities: the recorded request below uses `LON` for London and `BCN` for Barcelona. Add `return_date` for a return trip. If you don't know a code, call `/v1/kiwi/locations?query=London` first. This is the request behind the recorded response in the next section:
```bash
curl "https://api.perceptlayer.com/v1/kiwi/flights-search?origin=LON&destination=BCN&departure_date=2026-12-04" \
-H "X-API-Key: $API_KEY"
```
You need a key in the `X-API-Key` header; [get a free API key](https://perceptlayer.com/signup), and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest.
### Which parameters does flights-search take?
Three are required and fourteen optional. The table lists them with the types and allowed values from the endpoint definition. Nothing else is documented about defaults, although the recorded response echoes the values it used, such as `cabin` `economy`, `currency` `EUR` and `sort` `quality`.
| Parameter | Type | Notes |
| --- | --- | --- |
| `origin` | string, required | Airport or city code, such as `LON` |
| `destination` | string, required | Airport or city code, such as `BCN` |
| `departure_date` | string, required | `YYYY-MM-DD` |
| `return_date` | string | For a return trip |
| `adults`, `children`, `infants` | integer | Passenger counts |
| `cabin` | string | `economy`, `premium_economy`, `business` or `first` |
| `max_stops` | integer | `0` for direct flights only |
| `min_price`, `max_price` | integer | Price bounds |
| `sort` | string | `quality`, `price` or `duration` |
| `limit` | integer | Itineraries to return |
| `currency`, `locale` | string | Display currency and language |
| `carriers[]`, `exclude_carriers[]` | list of strings | Airline codes to include or exclude |
To see only direct flights on one airline, combine `max_stops=0` with `carriers[]=FR`.
### What does a flights-search response look like?
The response echoes the search, gives `total_available`, and lists `itineraries`. The recorded London to Barcelona search on 2026-12-04 found 23. Here is the first itinerary, trimmed with `…`:
```json
{
"success": true,
"data": {
"trip_type": "one_way",
"origin": "LON",
"destination": "BCN",
"departure_date": "2026-12-04",
"cabin": "economy",
"currency": "EUR",
"sort": "quality",
"total_available": 23,
"itineraries": [
{
"id": "ItineraryOneWay:eyJwcm92aWRlcnMiOiJLSVdJLUJBU0lDOktJV0kiLCJyb3V0ZV9kYXRhIjoiRlI6NzgwNzpMVE46MTc5NjM5ODUwMDpCQ046MTc5NjQwNjMwMDplY29ub215OkZhbHNlOjo6IiwicHJpY2Ui…",
"price": { "amount": 29, "currency": "EUR", "formatted": "29 €" },
"duration": 7800,
"stops": 0,
"carriers": [{ "code": "FR", "name": "Ryanair", "icao": "RYR" }],
"departure": {
"airport_code": "LTN",
"city": "London",
"local_time": "2026-12-04T15:35:00"
},
"arrival": {
"airport_code": "BCN",
"city": "Barcelona",
"local_time": "2026-12-04T18:45:00"
},
"segments": [{ "flight_number": "FR7807", "cabin_class": "ECONOMY", "duration": 7800, … }],
"booking_url": "https://www.kiwi.com/en/booking/?direct=true&locale=en¤cy=eur&passengers=1-0-0&token=…",
…
},
…
]
},
…
}
```
The second itinerary is FR8216 from Stansted ( `STN`) at 32 EUR, which is how you know `LON` searched every London airport. Times are local to each airport, so compute flight time from `duration` rather than from the two timestamps. Each itinerary's `id` is what `flights-detail` takes as `itinerary_id`, up to 2,000 characters. For what the `baggage` block says about the real price of a cheap fare, see [what fare tracking can and cannot show](https://perceptlayer.com/blog/flight-price-data-fare-tracking).
## How do you find the cheapest date to fly?
Use `GET /v1/kiwi/calendar-cheapest-dates` with a route and a window. It takes `origin`, `destination`, `start_date` and `end_date`, plus optional `nights_min` and `nights_max` for a return stay, and returns the cheapest dates in that window in one call. We don't have a recorded response for it, so run it in the playground on the [Kiwi.com API page](https://perceptlayer.com/apis/kiwi) to see its fields and how wide a window it accepts.
```bash
curl "https://api.perceptlayer.com/v1/kiwi/calendar-cheapest-dates?origin=LON&destination=BCN&start_date=2026-12-01&end_date=2026-12-30¤cy=EUR" \
-H "X-API-Key: $API_KEY"
```
When you need full itineraries for every date, not only the cheapest, loop over `flights-search` instead. This script scans 30 departure dates and keeps the lowest `price.amount` for each, using only fields from the recorded response:
```python
import datetime as dt
import os
import requests
URL = "https://api.perceptlayer.com/v1/kiwi/flights-search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
start = dt.date(2026, 12, 1)
for i in range(30):
day = (start + dt.timedelta(days=i)).isoformat()
r = requests.get(URL, params={"origin": "LON", "destination": "BCN",
"departure_date": day, "currency": "EUR"},
headers=HEADERS, timeout=60)
if r.status_code != 200:
print(day, "error", r.json()["error"]["code"])
continue
its = r.json()["data"]["itineraries"]
if not its:
print(day, "no itineraries")
continue
best = min(its, key=lambda x: x["price"]["amount"])
print(day, best["price"]["amount"], best["carriers"][0]["code"],
best["departure"]["airport_code"], best["duration"] // 60, "min")
```
The script reads only fields from the recording, but we haven't run it live for this article. Each line prints the date, the lowest fare, the airline, the departure airport and the flight time in minutes. A day that fails prints its error code and costs nothing.
## What does a 30-day date scan cost?
Every Kiwi.com endpoint costs 1 credit per successful call, so the cost depends on how many calls the scan takes. With `flights-search`, one call per departure date makes a 30-day scan 30 × 1 = 30 credits per route. With `calendar-cheapest-dates`, the same window is one call, 1 credit, if the endpoint accepts a 30-day range.
| Scan | Calls per route | Credits per route | Daily for 30 days |
| --- | --- | --- | --- |
| `flights-search`, 30 dates | 30 | 30 | 30 × 30 = 900 |
| `calendar-cheapest-dates`, one window | 1 | 1 | 1 × 30 = 30 |
| Calendar, then `flights-search` on the 3 cheapest dates | 4 | 4 | 4 × 30 = 120 |
The last row is the usual compromise: let the calendar find the dates, then pull full itineraries only for the ones worth showing. Watching 10 routes that way daily is 4 × 10 = 40 credits a day, or 120 × 10 = 1,200 credits a month. The 100 free credits on signup cover the first two days, and a Starter pack of 10,000 credits covers eight months. Failed calls return `X-Credits-Used: 0`. See the [credits docs](https://docs.perceptlayer.com/credits) for the balance and [pricing](https://perceptlayer.com/pricing) for what packs cost.
To try it, run the London to Barcelona search above in the playground on the [Kiwi.com API page](https://perceptlayer.com/apis/kiwi), then change the date.
## APIs in this post
- [Kiwi.com **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/kiwi)
## Frequently asked questions
### How much does the Kiwi.com API cost?
Each of the 7 Kiwi.com endpoints costs 1 credit per successful call, and failed calls cost nothing. A one-date fare search is 1 credit, and a 30-date scan with `flights-search` is 30 credits per route. Every verified account gets 100 free credits on signup. The [pricing page](https://perceptlayer.com/pricing) has what credit packs cost.
### Can I book flights through this API?
No. The API reads fares and itineraries as the site shows them at the time of the call. Each itinerary includes a `booking_url` that opens Kiwi.com's booking page, where the traveller completes the booking. Selling and ticketing Kiwi.com itineraries yourself is what its invitation-only partner programme is for.
### Are the prices final?
They're the prices the site displayed at the time of the call, and fares change often. The recorded response also shows a fare that includes a personal item but no checked bag, with `checked_bag_tier_prices` for adding one. Re-check a fare with `flights-detail` before you show it as current.
### Which codes does origin accept?
Airport codes such as `LTN` and city codes such as `LON` both appear in the recorded response, which searched with `LON` and returned flights from Luton and Stansted. If you only have a place name, call `/v1/kiwi/locations` with it as `query` to find the code.
### What happens when I hit the rate limit?
You get `rate_limited` (429) with a `Retry-After` header giving the seconds to wait, and nothing is debited. Free accounts get 1 request a second; packs include at least 5 a second. A 30-date scan at 1 request a second takes about 30 seconds. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) explain how limits work.
kiwi.com flights flight prices travel cheapest dates
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 29 Oct 2026 Perceptlayer 7 min read
## [Flight API: Google Flights and Kiwi Data as JSON](https://perceptlayer.com/blog/flight-api-comparison)
Compare Google Flights and Kiwi.com flight search as JSON: price, stops, duration, CO2 or baggage per itinerary, date-range calls, 1 credit per route per date.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 19 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [Google Flights API: Fares, Date Ranges and Airports](https://perceptlayer.com/blog/google-flights-api)
Get Google Flights fares as JSON: one-way, round-trip and date-range calls, a recorded JFK to LAX response, and the credit cost of a daily fare check.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
---
title: "Idealista API: Spanish Property Listings as JSON"
description: "Search Idealista listings in Spain as JSON with one GET call: 1 credit per call, location IDs, price and size filters, and a real recorded response."
url: https://perceptlayer.com/blog/idealista-api-property-listings
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Idealista API: Spanish Property Listings as JSON
30 Aug 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
You can get Idealista property listings as JSON with `GET /v1/idealista/search`. Pass `country=es`, an `operation` (sale or rent), a `property_type` and optionally a `location_id`, and send your key in the `X-API-Key` header. Each successful call costs 1 credit, failed calls cost nothing, and the free tier gives you 100 credits on signup. The recorded response below comes from the sibling `map-search` endpoint, since we have no recorded `search` response.
## Key takeaways
- `GET /v1/idealista/search` needs three parameters: `country`, `operation` and `property_type`. Add `location_id` to scope it to a province, city or neighbourhood.
- The Idealista API in the [Perceptlayer catalogue](https://perceptlayer.com/apis/idealista) has 22 endpoints, and every one costs 1 credit per successful call.
- The recorded `map-search` response (no `search` sample is recorded) has named fields such as `price`, `size`, `rooms`, `priceByArea`, `latitude`, `longitude` and `locationId`.
- `locations` takes a `prefix` or `coordinates` and a `mode`; `locationId` appears in the recorded listings, and `location_id` is the filter parameter.
- Check the terms on [idealista.com](https://www.idealista.com) before deciding. If you want a call today, a key here needs only a verified email and no credit card.
## How do you get Idealista listings as JSON?
Call the search endpoint with a country, an operation and a property type. You get the listings that match, with price, size, rooms, address and coordinates as named JSON fields instead of HTML you'd have to parse. The request below asks for sale listings of type `homes` in the Madrid province ( `0-EU-ES-28`), with `max_items=2` set.
```bash
curl "https://api.perceptlayer.com/v1/idealista/search?country=es&operation=sale&property_type=homes&location_id=0-EU-ES-28&max_items=2" \
-H "X-API-Key: $API_KEY"
```
You need a key that starts with `sk_live_`. [Get a free API key](https://perceptlayer.com/signup) by verifying an email address, with no credit card. The [authentication docs](https://docs.perceptlayer.com/authentication) cover the header and the `api_key` query parameter for clients that can't set headers.
Prefer clicking first? The [Idealista API page](https://perceptlayer.com/apis/idealista) has a playground where you pick an endpoint, fill in the parameters and run a real call with your key.
## Which parameters does the search endpoint take?
`search` takes three required parameters and a long list of optional filters. The required ones are `country`, `operation` and `property_type`. Everything else narrows the result: place, price, size, rooms, advertiser and sort order. The same parameter set applies to `map-search` (which also needs `mode`, `listings` or `pins`), `map-georeach` and `map-tiles` (which also needs `z`, `x` and `y`, all integers).
| Parameter | Type | Required | Values or notes |
| --- | --- | --- | --- |
| `country` | string | yes | `es`, `it`, `pt`, `fr` |
| `operation` | string | yes | `sale`, `rent` |
| `property_type` | string | yes | `homes`, `newDevelopments`, `bedrooms`, `offices`, `premises`, `transfers`, `buildings`, `storageRooms`, `garages`, `vacationRentals`, `luxury`, `lands` |
| `location_id` | string | no | Up to 80 characters |
| `center`, `distance` | string, integer | no | Search around a point |
| `min_price`, `max_price` | integer | no | Price range |
| `min_size`, `max_size` | integer | no | Size range |
| `min_rooms`, `max_rooms` | integer | no | Room range |
| `sort`, `order` | string | no | `sort` is `asc` or `desc`; `order` is up to 40 characters |
| `max_items`, `num_page` | integer | no | Integers; check the playground for how they behave |
| `auction` | string | no | `onlyAuctions`, `excludeAuctions` |
| `current_occupation_type` | string | no | `free`, `bareOwnership`, `tenanted`, `illegallyOccupied`, `viager` |
| `chalet` | boolean | no | Chalet filter |
| `advertiser_type`, `home_type`, `bank_offer` | string | no | Up to 40 characters each |
| `shape` | string | no | Search inside an area |
| `quality`, `gallery`, `locale` | string, boolean, string | no | `quality` is `high` or `low`; `locale` is up to 8 characters |
The country list shows the endpoints cover more than Spain: `it`, `pt` and `fr` are accepted too. This post sticks to `es`.
## How do you find a location ID?
Use `GET /v1/idealista/locations`. It takes `country` and `mode`, where `mode` is one of `suggest`, `reverse`, `vacational`, `picker` or `smart`. Pass a `prefix` with a place name, or `coordinates`, to look a place up. We have no recorded `locations` response, so check the [playground](https://perceptlayer.com/apis/idealista) for the exact shape before wiring it to `location_id` in other calls.
| Parameter | Required | Notes |
| --- | --- | --- |
| `country` | yes | `es`, `it`, `pt`, `fr` |
| `mode` | yes | `suggest`, `reverse`, `vacational`, `picker`, `smart` |
| `prefix` | no | Text to match, up to 80 characters |
| `coordinates` | no | Up to 40 characters |
| `property_type`, `operation` | no | Same values as `search` |
| `locale`, `language` | no | Up to 8 characters each |
| `filter`, `location_id` | no | Up to 80 characters each |
```bash
curl "https://api.perceptlayer.com/v1/idealista/locations?country=es&mode=suggest&prefix=Pozuelo" \
-H "X-API-Key: $API_KEY"
```
The recorded response below shows the ID format. The request used `0-EU-ES-28` for Madrid province, and a listing in Pozuelo de Alarcón carries `0-EU-ES-28-02-003-115-07-001` as its `locationId`. To look at one place, `GET /v1/idealista/location` takes `country` and `location_id`.
## What does a listing response look like?
Each listing is one object in `data.elementList`, next to paging fields such as `total` and `totalPages`. The excerpt below is a recorded response from `GET /v1/idealista/map-search` with `mode=listings`, trimmed with `…`. We have no recorded `search` response, so treat these fields as what `map-search` returned and confirm them on `search` in the playground. It was requested like this:
```bash
curl "https://api.perceptlayer.com/v1/idealista/map-search?country=es&mode=listings&property_type=homes&operation=sale&location_id=0-EU-ES-28" \
-H "X-API-Key: $API_KEY"
```
```json
{
"success": true,
"data": {
"elementList": [
{
"propertyCode": "110108160",
"externalReference": "CA217051",
"numPhotos": 33,
"price": 2200000,
"priceInfo": {
"price": {
"amount": 2200000,
"currencySuffix": "€",
"priceDropInfo": "…"
}
},
"propertyType": "chalet",
"operation": "sale",
"size": 480,
"rooms": 5,
"bathrooms": 5,
"address": "Chalet pareado en Paseo Club Deportivo, La Finca, Pozuelo de Alarcón",
"province": "Madrid",
"municipality": "Pozuelo de Alarcón",
"district": "Zona Prado de Somosaguas - La Finca",
"country": "es",
"neighborhood": "La Finca",
"locationId": "0-EU-ES-28-02-003-115-07-001",
"latitude": 40.4173893,
"longitude": -3.8060585,
"url": "https://www.idealista.com/inmueble/110108160/",
"priceDropValue": 200000,
"priceDropPercentage": 8,
"priceByArea": 4583,
"features": {
"hasSwimmingPool": true,
"hasTerrace": true,
"hasAirConditioning": true,
"hasBoxRoom": true,
"hasGarden": true
},
"detailedType": {
"typology": "chalet",
"subTypology": "semidetachedHouse"
},
"…": "…"
}
],
"total": 33943,
"totalPages": 16972,
"actualPage": 1,
"itemsPerPage": 2,
"summary": [
"Comprar casas y pisos en Madrid provincia",
"Todos los precios"
],
"searchTitle": "Madrid provincia",
"paginable": true
},
"meta": {
"duration_ms": 764,
"endpoint_family": "map_search"
}
}
```
A few fields are worth knowing. The first listing has `price` 2200000, `size` 480 and `priceByArea` 4583; the field isn't documented, but those numbers are consistent with price divided by size, so check that on your own data. The same listing has `priceDropValue` 200000 and `priceDropPercentage` 8, and we don't document what they mean beyond their names. `locationId` is on each listing, so you can group results by it. `total` and `totalPages` show how large the result set is, so you can estimate the credits before paging.
Listings also include contact details for the advertising agency. That's business data, but treat it with care: don't use it to contact people in bulk without a lawful basis. Data is collected from publicly available sources and returned as found at the time of the call.
## Which other endpoints take a listing or location?
Four more endpoints are worth a look: `filters`, `listing-stats`, `home` and `listing`. We have no recorded response for any of them, so this section lists only their parameters. Each costs 1 credit per successful call. The [Filters](https://perceptlayer.com/apis/idealista/filters), [Listing Stats](https://perceptlayer.com/apis/idealista/listing-stats), [Home](https://perceptlayer.com/apis/idealista/home) and [Listing](https://perceptlayer.com/apis/idealista/listing) pages and the playground show what each returns.
| Endpoint | Required parameters | Optional parameters |
| --- | --- | --- |
| `GET /v1/idealista/filters` | `country`, `operation`, `property_type`, `location_id` | `locale`, `quality`, `gallery` |
| `GET /v1/idealista/listing-stats` | `country`, `ad_id` | `language` |
| `GET /v1/idealista/home` | `country` | `locale`, `quality` |
| `GET /v1/idealista/listing` | `country`, `ad_id` | `include[]`, `typology`, `from_date`, `to_date`, `guests`, `quality`, `locale`, `language`, `max_items` |
`ad_id` is a required string on `listing` and `listing-stats`. The recorded listings carry a `propertyCode` such as `110108160`, but we haven't confirmed that it is the value `ad_id` expects, so test it in the playground first. `listing` accepts `include[]` values of `multimedia`, `comment`, `stats` and `recommendation`.
## What does it cost?
Every endpoint in the Idealista API costs 1 credit per successful call, and a failed call costs 0 and returns `X-Credits-Used: 0`. Credits come in prepaid packs that last 12 months, and the free tier gives you 100 credits on signup. [Pricing](https://perceptlayer.com/pricing) has what credits cost; this post only counts them.
A worked example: a daily check of 20 saved searches, with one `listing` call for each of 10 listings.
- Searches: 20 calls × 1 credit = 20 credits a day.
- Listing calls: 10 calls × 1 credit = 10 credits a day.
- Over 30 days: 30 credits × 30 = 900 credits. The 100 free credits on signup cover the first 3 days, and the Starter pack's 10,000 credits cover 11 months.
Every response carries `X-Credits-Used` and `X-Credits-Remaining`, so you can log the balance after each call. Request limits are per account and counted per minute: free accounts get 1 request a second. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) explain what happens past that, and the [errors docs](https://docs.perceptlayer.com/errors) list the codes, including `invalid_parameters` (422) for a bad filter value. The [credits docs](https://docs.perceptlayer.com/credits) cover the rest.
## How does this compare with Idealista's own API?
Idealista runs a [developer access request form](https://developers.idealista.com/access-request), so the official route is by application. We haven't seen its quotas, fields or permitted uses, so we won't describe them. Here is a rule you can apply without them.
- Need access under an agreement with Idealista itself, for example because your use case or your lawyers require it? Apply there and read the terms on [idealista.com](https://www.idealista.com) first.
- Need JSON from the search endpoints today, with no application step? A key here needs only a verified email, no credit card, and 100 free credits on signup.
- Need Italy, Portugal or France as well as Spain? These endpoints accept `es`, `it`, `pt` and `fr`.
- Need an agent to call it as a tool? The same key works over HTTP and over [MCP](https://docs.perceptlayer.com/ai-agents), and the catalogue covers 480 websites and 2,782 endpoints.
You can also start here and apply for official access in parallel. For other property markets, see the [Immobilienscout24 guide](https://perceptlayer.com/blog/immobilienscout24-api-listings) and the [Rightmove guide](https://perceptlayer.com/blog/rightmove-api-property-data).
Next step: [run a search in the playground](https://perceptlayer.com/apis/idealista) with your free key, then copy the cURL call into your code.
## APIs in this post
- [Idealista **1 credit per call** · 22 endpoints](https://perceptlayer.com/apis/idealista)
## Frequently asked questions
### Is there an official Idealista API?
Idealista has a [developer access request form](https://developers.idealista.com/access-request), so apply there if you need access under Idealista's own agreement. Perceptlayer's Idealista endpoints are a separate route: verify an email, get a key and call them the same day, with failed calls costing nothing.
### How much does an Idealista API call cost?
Each successful call to any of the 22 Idealista endpoints costs 1 credit. A failed call costs nothing and returns `X-Credits-Used: 0`. Free accounts get 100 credits after verifying an email address, with no credit card. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
### Can I search countries other than Spain?
The `country` parameter accepts `es`, `it`, `pt` and `fr`, so the same endpoints take Italy, Portugal and France as well as Spain. The recorded `map-search` response in this post is for Spain ( `country=es`). We haven't recorded the other countries, so check them in the playground before you rely on their fields.
### How do I get more than one page of results?
`num_page` and `max_items` are integer parameters; confirm how they page in the playground. The recorded `map-search` response includes `total`, `totalPages` and `actualPage`, which tell you how many pages exist. Each page is a separate call at 1 credit, so check `total` first and set a budget. Calls are counted per minute; see the [rate limits docs](https://docs.perceptlayer.com/rate-limits).
### What happens if a request fails?
You get an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. For example, `invalid_parameters` (422) means a value was rejected, and `rate_limited` (429) carries a `Retry-After` header. Failed calls aren't billed. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
real estate idealista spain property listings api
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 3 Jul 2026 Updated 10 Nov 2026 Perceptlayer 9 min read
## [Zillow Listings API: Get Property Data as JSON](https://perceptlayer.com/blog/zillow-listings-api-json)
One GET to /v1/zillow/search returns listings near a point as JSON with price, beds, baths and address. Parameters, a real response, 1 credit per call.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
---
title: "Rental Listing Data for Market Analysis: Fields That Matter"
description: "Which rental listing fields drive yield and rent-index work: rent range, beds, fees, deposit and availability date, with real HotPads and SpareRoom output."
url: https://perceptlayer.com/blog/rental-listing-data-market-analysis
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Rental Listing Data for Market Analysis: Fields That Matter
30 Aug 2026 Updated 24 Oct 2026 Perceptlayer 7 min read
Five fields carry most rental market analysis: asking rent with its period, bedroom count, fees and deposit, the availability date, and the listing's age or last update. US portals like HotPads give rent as a range per building, while UK portals like SpareRoom give it per room and per period. Normalise those differences before you compare anything.
## Key takeaways
- Rent, beds, fees and deposit, availability date and listing age are the fields that decide yield and rent-index work. Photos, labels and advertiser details rarely matter.
- HotPads returns `price`, `beds`, `baths` and `sqft` as `min`/ `max` ranges per building. SpareRoom returns `rent.min` with a `period` ( `pcm` or `pw`) and a per-room `rooms` array.
- Asking rent isn't paid rent. Track `price_drop_count`, `special_offer` and `updated_at` so concessions don't hide inside your averages.
- One search query reaches only part of a market: 10 pages of 40 on HotPads, 1,000 rows on SpareRoom. Split by price band and bedroom count.
- Each call costs 1 credit, and failed calls cost nothing. The worked example below prices one US city snapshot at 40 credits, or 2,080 credits for a year of weekly snapshots.
- US fee fields are unverified here. The recorded HotPads search has no fees or availability dates, and there is no recorded Zumper response, so test the Zumper fee endpoints in the playground before you rely on them.
## Which rental fields matter for market analysis?
Start from the question. Yield work needs rent and a way to compare units of different size. Rent-index work needs the same unit measured repeatedly over time. Both need to know what the advertised rent includes and when the home can actually be occupied. That points to five field groups: rent with its period, bedroom count (and area where available), fees and deposit, availability date, and listing age.
Everything else is context. Photos, promotional labels and advertiser verification flags help a renter choose, not an analyst measure a market. Keep them out of your warehouse table unless a later question needs them, because every extra column is one more thing to validate.
The table maps each group to the fields in the two recorded responses below.
| What you need | HotPads (US) | SpareRoom (UK) |
| --- | --- | --- |
| Rent | `price.min`, `price.max`, `price.currency` | `rent.min`, `rent.period`, `rent.currency`, `rooms[].price` |
| Size | `beds.min`/ `max`, `baths`, `sqft.min`/ `max` | `accommodation_type`, `rooms_in_property`, `double_rooms` |
| Fees and deposit | none in search results | `security_deposit`, `bills_included` |
| Availability | none in search results | `availability.from`, `availability.from_iso` |
| Age and change | `listed_at`, `updated_at`, `price_drop_count` | `expires_at`, `promotion.label` |
| Concessions | `special_offer`, `labels` | none recorded |
| Location | `address`, `location.latitude`/ `longitude` | `location.postcode`, `location.neighbourhood` |
## How does US portal data differ from UK portal data?
US portals list buildings with several floor plans, so the rent is a range. UK portals such as SpareRoom list a single room or a whole flat, so the rent is one number with a period. The same word, "listing", means a building in one market and a rentable unit in the other. If you merge them without noticing, your averages mix unit types.
### HotPads: ranges per building
This is a trimmed excerpt of a recorded `GET /v1/hotpads/search` response for `area=albuquerque-nm&type=apartments`:
```json
{
"name": "Markana Uptown",
"price": { "min": 1732, "max": 2529, "currency": "USD" },
"beds": { "min": 0, "max": 2 },
"sqft": { "min": 589, "max": 1022 },
"unit_count": 12,
"price_drop_count": 2,
"labels": ["New Today", "Special Offer"],
"listed_at": "2023-10-25T14:34:52Z",
"updated_at": "2026-10-22T00:55:05Z"
…
}
```
One row covers studios to two-bedrooms. A rent of 1,732 to 2,529 USD is not a rent for a two-bed. Don't compute a rent per square foot by dividing the minimum rent by the minimum area unless you know the cheapest unit is also the smallest. The `GET /v1/hotpads/listing` endpoint takes the listing `id` for a closer look.
### SpareRoom: one room, one period
This excerpt comes from a recorded `GET /v1/spareroom/search` response for `where=London`:
```json
{
"accommodation_type": "Double room",
"rent": { "min": 950, "period": "pcm", "rent_options": "room", "currency": "GBP" },
"rooms": [{ "type": "double", "price": 950, "period": "pcm", "security_deposit": 950 … }],
"bills_included": "yes",
"security_deposit": 950,
"availability": { "from": "2026-12-03" … }
…
}
```
The other recorded row is a whole one-bed flat at 2,500 `pcm` with `rent_options` set to `whole`. The two rows are not comparable until you separate whole-property rents from room rents. Use `rent_options` for that split, and `bills_included` to avoid comparing a rent with utilities to one without.
## Why do fees, deposits and availability dates change the numbers?
Asking rent is the start of the cost, not the end. A deposit sets the upfront cash a tenant needs, bills inclusion shifts running cost, and the availability date tells you whether a listing is on the market now or in six weeks. In the recorded SpareRoom rows, both deposits equal one month's rent (2,500 on 2,500 and 950 on 950), which is a ratio you can track across areas.
Availability matters for rent indexes. A room advertised on 2026-10-24 for a 2026-12-03 move-in is 40 days out, and the flat available 2026-11-23 is 30 days out. One hypothesis worth testing is that rents advertised for far-future dates differ from near-term ones, because the landlord is pricing a market that hasn't happened yet. The recording is too small to show it, so group listings by days-to-availability and check before you average them.
For the US, the search response in the recording carries no fee or availability fields. Zumper exposes `listing-fees` and `building-fees` endpoints, and `address-rent-history` and `price-trends` for change over time. The catalogue lists no documented parameters for them, and there's no recorded response in this article, so check the [Zumper API page](https://perceptlayer.com/apis/zumper) and run one in the playground to see which fields your target cities return.
## How do you turn listings into a yield or rent-index input?
Gross yield is annual rent divided by purchase price, and the listing gives you only the numerator. You join rent to a price from a sales source, so the quality of the join (address, postcode, area) matters more than any single rent field. For the join mechanics see [matching listings without IDs](https://perceptlayer.com/blog/deduplicate-listings-across-sources), and for the sales side see [real estate listing data for valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields).
For an index, hold the unit type constant and track the median asking rent per cell (area, bedrooms, type) over time. Official statistics take a different route. The ONS Price Index of Private Rents uses a hedonic regression double imputation approach, covers new and existing tenancies, and draws on administrative data collected by rent officers ( [ONS](https://www.ons.gov.uk/economy/inflationandpriceindices/methodologies/priceindexofprivaterentsdetailedmethodology), 2025). In the US, the BLS Housing Survey collects rent from each sampled unit every 6 months, and most rents in the sample are continuing rents ( [BLS](https://www.bls.gov/cpi/factsheets/owners-equivalent-rent-and-rent.htm), 2026). Listing data measures the advertised end of the market, so treat it as a leading signal, not a replacement.
### Worked example: normalise SpareRoom rents to a weekly figure
`rent.period` can be `pcm` or `pw`, so convert before you compare. This script pulls one page and prints weekly rent, deposit as a share of monthly rent, and days until the room is free:
```python
import os
from datetime import date
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/spareroom/search",
params={"where": "London"},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
resp.raise_for_status()
for r in resp.json()["data"]["results"]:
rent, period = r["rent"]["min"], r["rent"]["period"]
weekly = rent * 12 / 52 if period == "pcm" else rent
monthly = rent if period == "pcm" else rent * 52 / 12
deposit = r.get("security_deposit")
start = date.fromisoformat(r["availability"]["from"])
print(
r["id"], r["rent"]["rent_options"], round(weekly, 2),
round(deposit / monthly, 2) if deposit else None,
(start - date.today()).days,
)
```
On the two recorded rows, the whole flat works out to 576.92 a week (2,500 × 12 / 52) and the room to 219.23 (950 × 12 / 52). Both have a deposit ratio of 1.0. Run on 2026-10-24, the days-to-availability values are 30 and 40.
To turn those rows into an index input, group the weekly rents by cell (postcode area, `rent_options`) and take the median per cell on each fetch date. Store the fetch date with it.
```python
from collections import defaultdict
from statistics import median
cells = defaultdict(list)
for r in results: # the same list as above
rent, period = r["rent"]["min"], r["rent"]["period"]
weekly = rent * 12 / 52 if period == "pcm" else rent
cells[(r["location"]["postcode"], r["rent"]["rent_options"])].append(weekly)
index_row = {cell: round(median(v), 2) for cell, v in cells.items()}
```
With only two recorded rows, each cell holds one value (E14 whole at 576.92, N16 room at 219.23), so the median is just that rent. On a full 1,000-row sweep, the cells fill up and the median stops moving with one outlier. Yield then needs a sale price joined to the same cell: annual rent (median weekly × 52) divided by the median price.
## How many calls does a market sweep take, and what does it cost?
Each call costs 1 credit, and failed calls cost nothing. The limit to plan around is reach, not price. The recorded HotPads response shows `total_results` of 3,541 but `total_pages` of 10 at 40 per page, so one query reaches 400 rows. The recorded SpareRoom response shows `total_pool` of 12,891, `rows_reachable` of 1,000 and `truncated` set to `true`.
Split the market into cells so each fits under the cap. HotPads search takes `type`, `beds`, `min_price`, `max_price` and `page`. SpareRoom search takes `min_rent`, `max_rent`, `rent_period`, `room_types` and `page`, among others.
```bash
curl "https://api.perceptlayer.com/v1/hotpads/search?area=albuquerque-nm&type=apartments&beds=2&min_price=1500&max_price=2000&page=1" \
-H "X-API-Key: $API_KEY"
```
If you slice one US city by 4 bedroom counts and pull all 10 pages for each, that's 4 × 10 × 1 credit = 40 credits for a snapshot. Repeat it weekly for a year and you spend 52 × 40 = 2,080 credits. The free tier gives 100 credits once, after you verify an email, enough for the first two snapshots; [pricing](https://perceptlayer.com/pricing) has what larger packs cost. Details on how calls are billed are in [credits](https://docs.perceptlayer.com/credits), and a sweep that runs concurrently should respect the [rate limits](https://docs.perceptlayer.com/rate-limits).
## When is this data the wrong tool?
Listing data shows asking rents of homes currently advertised. It doesn't show what tenants signed for, how long a home stayed empty, or the stock that never goes to market. For regulated reporting or published rent statistics, use the official series such as the ONS and BLS measures above, and use listings for timeliness and neighbourhood detail. Data is returned as found at the time of the call, so store the fetch date with every row.
To start, [get a free API key](https://perceptlayer.com/signup), then run `GET /v1/hotpads/search` or `GET /v1/spareroom/search` from the [HotPads API](https://perceptlayer.com/apis/hotpads) or [SpareRoom API](https://perceptlayer.com/apis/spareroom) pages. For the same method on another asset class, see [used car listing data for price analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis).
## APIs in this post
- [Zumper **1 credit per call** · 50 endpoints](https://perceptlayer.com/apis/zumper)
- [HotPads **1 credit per call** · 2 endpoints](https://perceptlayer.com/apis/hotpads)
- [SpareRoom **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/spareroom)
## Frequently asked questions
### Which single field matters most for rent analysis?
Asking rent, but only with its period and unit type attached. A bare number is ambiguous: HotPads gives a `min`/ `max` range per building, and SpareRoom gives `rent.min` with `pcm` or `pw` and a `rent_options` value of `room` or `whole`. Normalise to one period and one unit type before averaging.
### Do HotPads search results include fees or availability dates?
The recorded search response includes `price_drop_count`, `special_offer`, `listed_at` and `updated_at`, but no fee or availability fields. For fees on US listings, check the Zumper `listing-fees` and `building-fees` endpoints on the [Zumper API page](https://perceptlayer.com/apis/zumper), and test them in the playground.
### How do I get more than the first page of results?
Add the `page` parameter, and narrow the query so it fits the cap. In the recordings, HotPads reports 10 pages of 40 and SpareRoom reports 1,000 reachable rows. Split by `beds`, `min_price` and `max_price` on HotPads, or `min_rent` and `max_rent` on SpareRoom.
### What happens if a call fails?
A failed call costs nothing and returns `X-Credits-Used: 0`. Errors come back as an HTTP status with a JSON body containing a `code`, `message` and `request_id`. A rate-limited (429) response carries a `Retry-After` header with the seconds to wait. The [errors page](https://docs.perceptlayer.com/errors) lists every code.
rental data real estate rent index rental yield hotpads spareroom
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 10 Jul 2026 Perceptlayer 10 min read
## [Real Estate Listing Data: Fields That Matter for Valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields)
Which fields in a Zillow search response feed a valuation model (price, livingArea, yearBuilt), which are noisy, and what listing data can't tell you.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 4 Nov 2026 Perceptlayer 7 min read
## [LinkedIn Jobs API: Job Listings as JSON](https://perceptlayer.com/blog/linkedin-jobs-api)
Search public LinkedIn job listings with jobs-search and fetch one posting with job, at 1 credit a call: parameters, cURL and a weekly hiring-signal job.
---
title: "Web Data Quality Checks for Scraped and API Data"
description: "Seven web data quality checks in Python, with code written against a recorded Zillow search response: schema drift, null rates, duplicate zpids and outliers."
url: https://perceptlayer.com/blog/web-data-quality-monitoring-checklist
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Web Data Quality Checks for Scraped and API Data
30 Aug 2026 Updated 21 Oct 2026 Perceptlayer 7 min read
Web data goes wrong quietly: a field disappears, a price turns into text, a page repeats. Seven checks catch most of it: the response envelope, schema drift, null rates, duplicate IDs, price outliers, geographic bounds and freshness. Each one is a short Python function you can run on every response. The examples below use the shape of a recorded Zillow search response, but the same checks work on any JSON endpoint.
## Key takeaways
- Check the envelope first: HTTP status, `X-Credits-Used` and whether `count` matches the length of `data.listings`.
- Track null rates per field against a baseline. In the recorded sample, `estimates.zestimate` is present on one listing and absent on the other, so absence alone isn't an error.
- Treat `zpid` as the key: duplicates inside a page or across pages mean a broken paging loop.
- Flag price outliers with a median-based score, and cross-check `price.value` against `livingArea` and `pricePerSquareFoot`.
- A failed check rarely needs an immediate retry. A repeat call costs another credit, and data is returned as found at the time of each call, so an immediate retry may show the same problem.
## Why does web data need its own quality checks?
Web data is collected from publicly available sources and returned as found at the time of the call, so the shape and completeness of a response can change without a version bump. Scrapers fail loudly when a selector breaks, but they also fail quietly, by returning a null where a number used to be. An API removes the parsing work, not the need to validate what comes back. For the maintenance side of that trade-off, see [what maintaining a scraper really involves](https://perceptlayer.com/blog/scraper-vs-api-maintenance-cost).
A useful rule: validate at the boundary where data enters your pipeline, and store the failures instead of dropping them.
## What are the seven checks?
Seven checks cover most pipeline failures in web data: the response envelope, schema drift, null rates, duplicate IDs, price sanity, geographic bounds and freshness. Run them cheapest first on every response; each is a short Python function that returns a list of problems. Code for each follows in the next section.
1. **Envelope:** the call succeeded, cost what you expected, and the list is where you expect it.
2. **Schema drift:** required fields exist, and new, unexpected fields get logged.
3. **Null rates:** the share of missing values per field stays near its baseline.
4. **Duplicate IDs:** no `zpid` appears twice in a page or across pages.
5. **Price sanity:** prices agree with area and with the stated price per square foot, and extremes get flagged.
6. **Geographic bounds:** every listing sits inside the area you asked for.
7. **Freshness:** the response says when its source data was taken, and that stamp isn't older than your limit.
| Check | What it catches | Extra calls |
| --- | --- | --- |
| Envelope | Failed call, wrong credit cost, `count` mismatch | 0 |
| Schema drift | Missing required fields, new unexpected fields | 0 |
| Null rates | A field that suddenly goes empty | 0 |
| Duplicate IDs | Repeated `zpid` in or across pages | 0 |
| Price sanity | Prices that disagree with area, extreme values | 0 |
| Geographic bounds | Listings outside the requested radius | 0 |
| Freshness | Missing or too-old source timestamp | 0 |
All seven read the response you already paid for, so the only cost is the fetch itself.
## How do you fetch a sample to check?
Send one [Zillow search](https://perceptlayer.com/apis/zillow) request and keep the raw response, because every check below reads from it. Perceptlayer charges 1 credit for a successful call; a failed call costs nothing and returns `X-Credits-Used: 0`. Checking one query a day for 30 days is 30 calls × 1 credit = 30 credits. [Pricing](https://perceptlayer.com/pricing) lists what credits cost.
```python
import os, requests
URL = "https://api.perceptlayer.com/v1/zillow/search"
PARAMS = {"latitude": 47.6062, "longitude": -122.3321, "radius_mi": 5,
"listing_category": "category1", "page_size": 20}
def fetch(page=1):
return requests.get(URL, params={**PARAMS, "page": page},
headers={"X-API-Key": os.environ["API_KEY"]}, timeout=30)
```
## How do you run each check in Python?
Each function takes the parsed listings and returns a list of problems, so you can log them, count them or fail a job on them. The listing fields ( `zpid`, `price.value`, `livingArea`, `location`) come from the recorded response.
### 1\. Envelope
```python
def check_envelope(r):
if not r.ok:
return [f"http {r.status_code}"], []
data = r.json().get("data") or {}
listings = data.get("listings")
if not isinstance(listings, list):
return ["data.listings is not a list"], []
problems = []
if r.headers.get("X-Credits-Used") != "1":
problems.append(f"credits used: {r.headers.get('X-Credits-Used')}")
if data.get("count") != len(listings):
problems.append("count differs from len(listings)")
return problems, listings
```
A non-200 response carries a JSON error body with a `code`; the [error reference](https://docs.perceptlayer.com/errors) lists them, and [credits](https://docs.perceptlayer.com/credits) explains the headers.
### 2\. How do you detect schema drift?
```python
REQUIRED = {"zpid", "address", "location", "price", "livingArea",
"bedrooms", "bathrooms", "propertyType", "listing"}
def check_schema(listings, known_keys):
missing = [l.get("zpid") for l in listings if REQUIRED - set(l)]
seen = set().union(*(set(l) for l in listings))
return missing, sorted(seen - known_keys)
```
Set `REQUIRED` to the fields your code reads, not every field you've seen. For stricter type checks, [JSON Schema](https://json-schema.org/understanding-json-schema/) describes the same rules declaratively. Save `known_keys` from your last good run, and alert on the second return value: a new key is how drift usually shows up first.
### 3\. How do you track null rates?
```python
def get(d, path):
for key in path.split("."):
d = d.get(key) if isinstance(d, dict) else None
return d
def null_rates(listings, paths):
return {p: sum(get(l, p) is None for l in listings) / len(listings)
for p in paths}
```
Compare the result with a stored baseline, and alert on a jump rather than on any null. In the two listings excerpted from the recorded response, `estimates.zestimate` appears on the first and `taxAssessment` on the second, so both are optional fields. A rate that moves from 0.1 to 0.6 is a signal; a single null is not.
### 4\. Duplicate IDs
```python
from collections import Counter
def duplicate_ids(listings, seen_before=frozenset()):
counts = Counter(l.get("zpid") for l in listings if l.get("zpid") is not None)
return [z for z, c in counts.items() if c > 1 or z in seen_before]
```
Pass the IDs from earlier pages as `seen_before`. The recorded response notes that `page * page_size` must not exceed 1000. What happens past that limit isn't documented, so cap your loop below it; [safe page loops](https://perceptlayer.com/blog/paginate-web-data-api-python) covers it.
### 5\. How do you detect price outliers?
Flag price per square foot with the modified z-score, 0.6745 × (x − median) / MAD, and review values above 3.5 ( [NIST e-Handbook](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35h.htm)). Skip it under five rows, and cross-check `price.value` against `livingArea` and `pricePerSquareFoot`.
```python
import statistics
def price_problems(listings, limit=3.5):
rows = [(l.get("zpid"), l["price"]["value"], l["livingArea"],
l["price"].get("pricePerSquareFoot"))
for l in listings
if get(l, "price.value") and l.get("livingArea")]
unit = [v / a for _, v, a, _ in rows]
out = [(z, "stated $/sqft disagrees") for (z, v, a, s), u in zip(rows, unit)
if s and abs(s - u) > 0.02 * u]
if len(rows) >= 5:
med = statistics.median(unit)
mad = statistics.median(abs(u - med) for u in unit) or 1
out += [(z, "price outlier") for (z, *_), u in zip(rows, unit)
if abs(0.6745 * (u - med) / mad) > limit]
return out
```
The [NIST e-Handbook](https://www.itl.nist.gov/div898/handbook/eda/section3/eda35h.htm) describes the modified z-score, attributes it to Iglewicz and Hoaglin and recommends a cutoff of 3.5: values with a larger absolute score are potential outliers. It needs enough rows to be stable, which is why the code skips it under five.
The first recorded listing has `price.value` 14000000 and `livingArea` 7870, which gives about 1,779 per square foot, matching its `pricePerSquareFoot`. A high price that agrees with its own area is flagged for review, not deleted. The [Python statistics docs](https://docs.python.org/3/library/statistics.html) cover `median`, which stays stable when a few extreme values are present. For which fields matter in valuation work, see [listing fields for valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields).
### 6\. Geographic bounds
```python
import math
def miles(lat1, lon1, lat2, lon2):
p = math.pi / 180
a = (math.sin((lat2 - lat1) * p / 2) ** 2 + math.cos(lat1 * p)
* math.cos(lat2 * p) * math.sin((lon2 - lon1) * p / 2) ** 2)
return 3958.8 * 2 * math.asin(math.sqrt(a))
def outside_radius(listings, lat, lon, radius_mi):
out = []
for l in listings:
la, lo = get(l, "location.latitude"), get(l, "location.longitude")
if la is not None and lo is not None \
and miles(lat, lon, la, lo) > radius_mi * 1.05:
out.append(l.get("zpid"))
return out
```
The 5% margin absorbs rounding at the edge. Coordinates of 0, 0 or a different state are worth an alert.
### 7\. Freshness
```python
import re
from datetime import datetime, timezone
from zoneinfo import ZoneInfo
def age_hours(data):
text = " ".join(data.get("freshness", []))
m = re.search(r"as of (\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})", text)
if not m:
return None
ts = datetime.strptime(m.group(1), "%Y-%m-%d %H:%M:%S")
ts = ts.replace(tzinfo=ZoneInfo("America/Los_Angeles"))
return (datetime.now(timezone.utc) - ts).total_seconds() / 3600
```
The recorded `freshness` entry reads "Based on information submitted to the MLS GRID as of 2026-10-21 06:24:36 PDT…", so the code assumes Pacific time. Record the age and alert on a missing stamp, or one older than the limit you pass to the runner below (72 hours is a placeholder). The stamp tells you when the listing data was taken, not that the source is correct.
## What do you do when a check fails?
Store the raw response with the failed check's name, keep it out of your clean tables, and look at it before you retry. A second call costs another credit, and a data-quality failure is often a property of the source rather than a glitch, so don't retry it by reflex. Retry transport problems and the retryable statuses: 429 and 503 carry a `Retry-After` header with the seconds to wait. Read [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) for lost replies.
The sketch below wires the seven checks together. `check_envelope` returns a tuple while the others return lists, and `age_hours` needs the `data` object the envelope check discards, so the runner parses it again. The baseline file, the 0.3 null-rate jump and the 72-hour age limit are placeholders to tune.
```python
import json, time
def run_checks(r, baseline, seen_ids=frozenset(), max_age_hours=72):
env, listings = check_envelope(r)
failed = {"envelope": env} if env else {}
if listings:
data = r.json()["data"]
missing, new_keys = check_schema(listings, set(baseline["known_keys"]))
rates = null_rates(listings, baseline["null_rates"])
jumps = [p for p, v in rates.items()
if abs(v - baseline["null_rates"][p]) > 0.3]
age = age_hours(data)
found = {"schema": missing + new_keys, "null_rates": jumps,
"duplicates": duplicate_ids(listings, seen_ids),
"price": price_problems(listings),
"geo": outside_radius(listings, PARAMS["latitude"],
PARAMS["longitude"], PARAMS["radius_mi"]),
"freshness": ["no timestamp"] if age is None
else [f"{age:.0f}h old"] if age > max_age_hours
else []}
failed.update({k: v for k, v in found.items() if v})
elif not env:
failed["envelope"] = ["no listings"]
if failed:
with open(f"quarantine-{int(time.time())}.json", "w") as f:
json.dump({"checks": failed, "raw": r.text}, f)
return failed
baseline = json.load(open("baseline.json")) # shape below
failed = run_checks(fetch(), baseline)
```
`baseline.json` holds what a known-good run looked like: the top-level listing keys you've seen, and the null rate you expect for each field you track. This shortened example lists only some keys. A real baseline lists every top-level key from your good run, or `check_schema` reports the rest as new, so write yours from that run.
```json
{
"known_keys": ["zpid", "location", "address", "price", "livingArea",
"bedrooms", "bathrooms", "propertyType", "listing",
"estimates", "taxAssessment"],
"null_rates": {"estimates.zestimate": 0.5, "taxAssessment": 0.5,
"price.pricePerSquareFoot": 0.0}
}
```
One more trap sits in the response itself. The `listing_category_counts_note` field warns that a sale (category1) request reports the rent (category2) counts, so read the note before trusting those counts.
Next step: [get a free API key](https://perceptlayer.com/signup), run the fetch above, and wire the seven checks into the job that already loads your data. More pipeline patterns live in the [data engineering category](https://perceptlayer.com/blog/category/data-engineering).
## APIs in this post
- [Zillow **1 credit per call** · 20 endpoints](https://perceptlayer.com/apis/zillow)
## Frequently asked questions
### How often should I run web data quality checks?
Run the cheap checks (envelope, schema, duplicates) on every response, since they cost no extra calls. Run null-rate and outlier checks per batch, because they need enough rows to mean anything. A scheduled probe of one fixed query costs 1 credit per run; 30 daily runs is 30 credits.
### Does a failed call cost credits?
No. A failed call returns `X-Credits-Used: 0` and debits nothing. A successful call costs the credits shown on its endpoint, which is 1 for the Zillow search endpoint. A call whose reply was lost to a client timeout may still have succeeded and been billed, so log those separately. See the [credits docs](https://docs.perceptlayer.com/credits).
### Should I drop rows that fail a check?
Quarantine them instead. Keep the raw record and the failed check's name in a separate table, and exclude it from downstream queries. High-priced listings and missing optional fields are often true to the source, so a human review of the first few flags tells you which thresholds to tune.
### How is this different from validating scraper output?
The checks are the same; the failure modes differ. A scraper breaks when markup changes, and you debug selectors. With an API you validate named JSON fields and read the [error codes](https://docs.perceptlayer.com/errors) for failures. Schema drift and null rates still matter in both, because the underlying website can change either way.
data quality monitoring python zillow data pipelines
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 3 Oct 2026 Perceptlayer 6 min read
## [Detect Schema Changes in API JSON Responses](https://perceptlayer.com/blog/web-data-api-json-schema-changes)
Infer a path-and-type schema from a recorded Google Search response (71 paths), diff each new response against it and alert on removed or retyped fields.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 22 Jul 2026 Perceptlayer 10 min read
## [Deduplicate Listings Across Sources: Matching Without IDs](https://perceptlayer.com/blog/deduplicate-listings-across-sources)
Match car listings from AutoScout24 and AutoTrader UK with no shared ID: normalise make and model, block, then score year, price and mileage in Python.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
---
title: "Hotel Price Data for Rate Monitoring: Fields and Costs"
description: "The fields a rate-monitoring job needs from Booking, Expedia and Trivago, and what 200 hotels over 30 dates costs, 6,000 credits per source."
url: https://perceptlayer.com/blog/hotel-price-data-rate-monitoring
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Hotel Price Data for Rate Monitoring: Fields and Costs
28 Aug 2026 Perceptlayer 8 min read
A rate-monitoring job needs one price per hotel, per stay date, per occupancy, in a known currency, tied to a room and a rate plan. Booking and Expedia room calls return room-level prices, and region searches on Booking, Expedia and Trivago return one price per hotel. Checking 200 hotels over 30 dates with room calls is 200 × 30 = 6,000 calls × 1 credit = 6,000 credits per source.
## Key takeaways
- Pin the query: check-in, check-out, adults and currency decide what a price means, so store them next to every price.
- Expedia `hotels-rooms` returns `rate_plans` per room with `total_price` and `price_per_night`; Booking `rooms` returns a `price` text string per room that you have to parse.
- A region search prices hotels, a rooms call prices rooms. Use searches to find where prices moved and room calls to see which room moved.
- 200 hotels × 30 dates × 1 credit = 6,000 credits for one source and one occupancy. Failed calls cost nothing.
- Total credits for a run is the sum of `X-Credits-Used`, not the difference between two `X-Credits-Remaining` readings.
## What does a rate-monitoring job need from a hotel price feed?
It needs five things on every row: the stay dates, the occupancy, the currency, the room or rate plan the price belongs to, and the source it came from. Without the first three, two prices can't be compared.
| Field | Why a rate check needs it | Where the recordings show it |
| --- | --- | --- |
| Check-in and check-out | A price is for a stay, not a night. Length of stay changes the rate. | Your request; Expedia and Trivago echo `check_in` and `check_out` in the response |
| Occupancy | Rates change with the number of adults. | Your request ( `group_adults`, `adults`); Booking rooms also list `occupancy` per room |
| Currency | Sources return different currencies for the same query. | Expedia `currency` ( `EUR`), Trivago `currency` ( `USD`), Booking inside the price text ( `$351.05`, `€ 588`) |
| Room type | Compares like with like across days. | Booking `name`, `occupancy`, `beds`; Expedia `unit_id`, `name`, `features` |
| Rate plan | The same room is sold at several prices. | Expedia `rate_plans[].rate_plan_id` |
One gap, stated once: neither room response includes cancellation terms. The only cancellation signal in the recordings is Expedia's hotel-level `free_cancellation` flag in search results, so if your rate comparison depends on refundable versus non-refundable rates, plan around that.
## What do the Booking, Expedia and Trivago responses actually contain?
Hotel-level search responses carry a name, a price, a rating and an identifier you can feed into the next call. Room-level responses carry the rooms and their prices for one hotel. The excerpts below are trimmed from recorded responses for 20 to 23 November 2026, three nights. The Booking and Expedia requests used two adults; the Trivago search request had no `adults` parameter.
### Hotel-level prices from region searches
The [Booking.com prices endpoint](https://perceptlayer.com/apis/booking/prices) returns hotels for a destination with a `price` string:
```json
"prices": [
{
"name": "Royal Saint Michel",
"url": "https://www.booking.com/hotel/fr/royal-saint-michel.html",
"price": "$351.05",
"review_score": "8.8",
…
}
],
"total_prices": 25
```
The price is text with a currency symbol, and the response doesn't label whether it covers the stay or one night. Check that against the page before you compare it with anything.
The [Expedia hotels-search endpoint](https://perceptlayer.com/apis/expedia/hotels-search) returns numbers, a currency and both stay and nightly figures:
```json
{
"property_id": "564660",
"name": "Mercure Paris Centre Tour Eiffel",
"total_price": 690,
"price_per_night": 230,
"free_cancellation": false,
"sponsored": true,
"currency": "EUR"
}
```
A discounted hotel in the same response also carries `original_price` (1329 against a `total_price` of 1203).
The [Trivago search endpoint](https://perceptlayer.com/apis/trivago/search) returns hotel records with `id`, `stars`, `rating`, `review_count` and `provider_count`, plus a `forecast_price` per night and a destination-wide `price_histogram`. `forecast_price` is a monthly forecast: it carries a `month` field ( `2026-11` and `2027-01` in the recording), so it is not the price for the dates you searched. The recorded hotels carry no per-hotel stay total, so treat Trivago search as a market-shape source. The [Trivago deals endpoint](https://perceptlayer.com/apis/trivago/deals) takes a hotel ID, dates, `rooms`, `children_ages[]` and `currency`; there's no recording of it here, so try it in the playground first.
### Room-level prices from rooms calls
The [Expedia hotels-rooms endpoint](https://perceptlayer.com/apis/expedia/hotels-rooms) returns each room with its rate plans:
```json
"currency": "EUR",
"rooms": [
{
"unit_id": "226385",
"name": "Classic Room, 1 Double Bed",
"features": ["18 sq m", "Sleeps 2"],
"rate_plans": [
{ "rate_plan_id": "397104173", "total_price": 690, "price_per_night": 230 },
{ "rate_plan_id": "397104181", "total_price": 825, "price_per_night": 275 }
]
},
…
]
```
This is the same hotel as the first Expedia search result, and its cheapest rate plan (690) matches the search's `total_price`, so the rooms call shows what sits above the search price. Use `total_price` as the key figure: the second room's 700 over three nights is shown as 233 a night, so `price_per_night` is rounded.
The [Booking.com rooms call](https://perceptlayer.com/apis/booking) ( `/v1/booking/rooms`) returns a smaller record:
```json
{
"name": "Attic Single Room",
"price": "€ 978 € 588 Original price € 978 Current price € 588 € 326.12 × 3 nights € 978.35 Limited-time Deal …",
"occupancy": "1 adult",
"beds": "1 twin bed",
"available": true
}
```
The price field is one text blob holding the original price, the current price and a deal note. Extract the number after "Current price" and keep the raw string. `occupancy` is the room's stated capacity, not an echo of your `group_adults`, so don't use it to verify your query.
## Should you monitor with region searches or room calls?
Use both, for different jobs. A region search answers "which hotels moved" at one call per page of results. A rooms call answers "which room and rate plan moved" for one hotel, at one call per hotel per date. They return different things, so a search's cost per date is not a cheaper way to get room prices.
| | Region search | Rooms call |
| --- | --- | --- |
| Prices | One per hotel | One or more per room |
| Calls per date | One per page of results | One per hotel |
| Good for | Spotting a market-wide move, finding hotels to track | Rate-plan changes, room mix, undercut checks |
| Endpoints | Booking `prices`, Expedia `hotels-search`, Trivago `search` | Booking `rooms`, Expedia `hotels-rooms` |
A practical pattern: search across your 30 dates to see where the market moves, then run room calls for your own hotels and a fixed competitor set. More sources are on the [Travel APIs page](https://perceptlayer.com/verticals/travel).
## What does checking 200 hotels over 30 dates cost?
A full room sweep of 200 hotels over 30 check-in dates is 6,000 calls, and every successful call costs 1 credit, so 6,000 credits per source and occupancy. Failed calls cost nothing. What a credit costs is on the [pricing page](https://perceptlayer.com/pricing); the arithmetic below stays in credits.
| Job | Calls | Credits |
| --- | --- | --- |
| One room sweep, one source, 2 adults | 200 × 30 = 6,000 | 6,000 |
| The same sweep for 1 and 2 adults | 2 × 6,000 = 12,000 | 12,000 |
| Weekly sweeps for a month (4 runs) | 4 × 6,000 = 24,000 | 24,000, within the Build pack's 50,000 |
| Daily sweeps for a month (30 runs) | 30 × 6,000 = 180,000 | 180,000, within the Growth pack's 200,000 |
| Region search, 30 dates, first page only | 30 × 1 = 30 | 30 per city per source for the first page; a full city needs more calls |
| Free tier: 3 hotels × 30 dates | 90 | 90 of the 100 free credits on signup |
One page is not a whole city. In the recordings the first page returned 10 of Expedia's 500 results and 35 of Trivago's 2,500, so covering a city means more calls per date, following `offset` and `next_offset`.
Rate matters as much as credits. Paying accounts run at a minimum of 5 requests a second, so 6,000 calls take 6,000 ÷ 5 = 1,200 seconds, or 20 minutes, but only if you actually send 5 a second. That is a ceiling. Your throughput is workers ÷ latency: 4 workers at about 2 seconds a call give roughly 2 requests a second, which is about 50 minutes for 6,000 calls. Scale the worker count with latency, for example 10 workers at 2 seconds to approach the ceiling. Free accounts get 1 request a second. The [rate limits page](https://docs.perceptlayer.com/rate-limits) has the details, and the [credits page](https://docs.perceptlayer.com/credits) explains how balances are debited.
## How do you run the sweep and reconcile the credits?
Fan out the calls, honour `Retry-After`, and add up `X-Credits-Used` from every response. Don't compute the total from the first and last `X-Credits-Remaining` of a concurrent run: responses arrive out of order, so those two values don't bracket the run. This script sweeps Expedia room prices for a list of property IDs.
```python
import os
import time
from concurrent.futures import ThreadPoolExecutor
from datetime import date, timedelta
import requests
URL = "https://api.perceptlayer.com/v1/expedia/hotels-rooms"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
PROPERTY_IDS = ["564660", "994215"] # your 200 Expedia property IDs
FIRST_CHECK_IN = date(2026, 11, 20)
DATES = 30
NIGHTS = 3
WORKERS = 4 # requests a second = WORKERS / latency in seconds, capped at 5; use 1 on a free account
def fetch(job):
property_id, check_in = job
params = {
"property_id": property_id,
"check_in": check_in.isoformat(),
"check_out": (check_in + timedelta(days=NIGHTS)).isoformat(),
"adults": 2,
}
for _ in range(3):
try:
r = requests.get(URL, params=params, headers=HEADERS, timeout=30)
except requests.Timeout:
# The call may have succeeded and been billed; the reply was lost.
return job, [], 0, "timeout"
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
break
used = int(r.headers.get("X-Credits-Used", 0))
if not r.ok:
return job, [], used, r.json().get("error", {}).get("code", "error")
data = r.json()["data"]
rows = [
{
"property_id": property_id,
"check_in": data["check_in"],
"currency": data["currency"],
"room": room["name"],
"rate_plan_id": plan["rate_plan_id"],
"total_price": plan["total_price"],
}
for room in data["rooms"]
for plan in room["rate_plans"]
]
return job, rows, used, None
jobs = [
(pid, FIRST_CHECK_IN + timedelta(days=i))
for pid in PROPERTY_IDS
for i in range(DATES)
]
with ThreadPoolExecutor(max_workers=WORKERS) as pool:
results = list(pool.map(fetch, jobs))
rows = [row for _, r, _, _ in results for row in r]
credits_used = sum(used for _, _, used, _ in results)
problems = [(job, why) for job, _, _, why in results if why]
print(f"{len(rows)} rate rows, {credits_used} credits used, {len(problems)} calls to review")
```
Because requests have no idempotency key, a timed-out call may have been billed even though you got no body. The script flags those instead of counting them as free. See [errors](https://docs.perceptlayer.com/errors) for the codes you'll hit, and the [Expedia API page](https://perceptlayer.com/apis/expedia) for the playground.
## What should you check before trusting the numbers?
Check four things before a price goes into a dashboard, so the series isn't a mix of different quantities.
1. **Currency.** In the recordings Expedia returned EUR, Trivago USD and Booking a mix of `$` and `€` strings. Booking and Trivago accept a `currency` parameter and Expedia's room and search endpoints don't list one, so convert on your side and store the original currency.
2. **Unit.** Expedia gives both `total_price` and `price_per_night`; use the total, since the nightly figure is rounded. For Booking text prices, confirm whether a value covers the stay or a night.
3. **Identity.** Booking identifies hotels by `country` and `slug`, Expedia by `property_id`, Trivago by `id`. The recordings don't link them, so keep your own mapping table.
4. **Timestamps.** Data is returned as found at the time of the call. Store the time you made each request next to the price.
Pick one source, run the sweep on 5 hotels and compare it with the site by hand before scaling to 200. [Get a free API key](https://perceptlayer.com/signup) for 100 credits on signup; no card needed. For the Booking side in more depth, see [Booking.com Hotel Prices API](https://perceptlayer.com/blog/booking-com-hotel-prices-api), and for a polling loop around prices, [Build a Price Tracking Agent in Python](https://perceptlayer.com/blog/price-tracking-agent-python). Store dates as [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) and currencies as [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) codes.
## APIs in this post
- [Booking.com **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/booking)
- [Expedia **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/expedia)
- [Trivago **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/trivago)
## Frequently asked questions
### How many credits does a hotel rate check cost?
Each successful call costs 1 credit on these endpoints. Checking 200 hotels over 30 check-in dates with a rooms call is 200 × 30 × 1 credit = 6,000 credits per source and occupancy. Failed calls cost nothing and return `X-Credits-Used: 0`. Credit pricing is on the [pricing page](https://perceptlayer.com/pricing).
### Can I get room-level prices, or only one price per hotel?
Both. Booking `rooms` and Expedia `hotels-rooms` return prices per room, and Expedia adds one entry per rate plan. Booking `prices`, Expedia `hotels-search` and Trivago `search` return hotel-level results. The calls are separate, so budget for each one rather than assuming a search includes rooms.
### Do the responses include cancellation terms?
Not in the room responses. Expedia's search results include a hotel-level `free_cancellation` boolean, which is the only cancellation field in the recordings. If refundable and non-refundable rates must be tracked separately, check the page for each rate plan against your results before relying on it.
### How fast can I run a 6,000-call sweep?
At 5 requests a second, the minimum for paying accounts, 6,000 calls take 20 minutes, but that is a ceiling: throughput is workers ÷ latency, so 4 workers at about 2 seconds a call manage roughly 2 a second. A free account runs at 1 request a second, so the same count would take 100 minutes, and its 100 free credits cover only 100 calls. Rate-limited responses carry `Retry-After`; wait that many seconds before retrying.
hotel prices rate monitoring revenue management travel booking
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 14 Sept 2026 Updated 4 Nov 2026 Perceptlayer 8 min read
## [Airfare Data Feed: What Flight Price Tracking Can Show](https://perceptlayer.com/blog/flight-price-data-fare-tracking)
Build an airfare data feed from flight search calls: price, stops, duration and CO2 per flight from a recorded JFK to LAX search, and the daily cost.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 9 Nov 2026 Perceptlayer 8 min read
## [Booking.com Scraper or API: What You Get](https://perceptlayer.com/blog/booking-com-scraper-vs-api)
A Booking.com scraper vs 11 endpoints at 1 credit a call: one recorded Paris prices call returned 25 hotels, about 0.04 credits per hotel price.
---
title: "MCP vs Function Calling for Live Web Data in Agents"
description: "One Google Maps endpoint as an MCP tool and as a hand-written function: setup, where each spends tokens, upkeep, and a verdict per use case."
url: https://perceptlayer.com/blog/mcp-vs-function-calling-web-data
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# MCP vs Function Calling for Live Web Data in Agents
28 Aug 2026 Updated 10 Nov 2026 Perceptlayer 10 min read
Use function calling when your agent needs one or two known endpoints and you want control over what the model sees. Use MCP when the agent should pick from many sources, or when the client already speaks MCP. Both end in the same HTTP call at the same price. The difference is who writes and maintains the tool definitions: you, or the server.
## Key takeaways
- Function calling means you write one schema and one handler per endpoint. For `GET /v1/google-maps/simple-search`, that is a schema with `query` and `limit` plus a short HTTP function.
- The Perceptlayer MCP server exposes three tools ( `search_endpoints`, `get_endpoint`, `call_endpoint`) for all 2,782 endpoints, so the tool list the model carries doesn't grow with the catalogue.
- Cost per call is identical either way: 1 credit on success, nothing on failure. Catalogue lookups through MCP ( `search_endpoints`, `get_endpoint`) cost no credits.
- Function calling lets you trim a response in your own handler before the model reads it. Over MCP, `call_endpoint` returns the endpoint's JSON response; `simple-search` also has an optional `fields` parameter, but its behaviour isn't documented, so test it before relying on it.
- Rule of thumb: one to three endpoints, write functions. Open-ended source choice, or an MCP-native client like Claude Code, use the server.
## How do MCP and function calling differ for web data?
Function calling is a model feature: you send tool definitions with each request, the model returns a structured call, and your code runs it. MCP is a protocol on top of that idea: a server publishes its tools, and any compatible client lists and calls them. The model still sees tools with a name, a description and a JSON schema either way.
The [MCP specification](https://modelcontextprotocol.io/specification/latest/server/tools) defines this as `tools/list` for discovery and `tools/call` for invocation, with each tool carrying a name, a description and an `inputSchema`. Function calling, as described in [Anthropic's tool use docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview), uses the same three pieces under an `input_schema` key.
So the real question isn't which one the model understands. Both look identical to it. The question is where the definitions live, who keeps them correct, and what happens to the result before the model reads it.
## What does the same endpoint look like both ways?
The same endpoint, `GET /v1/google-maps/simple-search`, can be wired as a hand-written function schema or as a call through the MCP server, and both reach the same URL. Its only required parameter is `query`; optional ones include `limit`, `page`, `hl` and `gl`. It costs 1 credit per successful call. The [Google Maps API page](https://perceptlayer.com/apis/google-maps) lists all 12 endpoints.
### As a function schema
You write the schema, the handler and the loop. This example uses the Anthropic Python SDK and `requests`. The handler returns only the fields the agent needs, all of which appear in the recorded response from this endpoint.
```python
import json
import os
import requests
from anthropic import Anthropic
API = "https://api.perceptlayer.com"
tools = [
{
"name": "search_places",
"description": "Search Google Maps for businesses matching a text query, "
"for example 'restaurants in new york'. Returns name, rating, "
"review count, address and business_id for each place.",
"input_schema": {
"type": "object",
"properties": {
"query": {"type": "string", "description": "What to search for"},
"limit": {"type": "integer", "description": "Maximum places to return"},
},
"required": ["query"],
},
}
]
def search_places(query, limit=5):
r = requests.get(
f"{API}/v1/google-maps/simple-search",
params={"query": query, "limit": limit},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
if not r.ok:
return {"status": r.status_code, "error": r.json().get("error")}
keep = ("name", "rating", "review_count", "full_address", "business_id")
return [{k: item.get(k) for k in keep} for item in r.json()["items"]]
client = Anthropic()
messages = [{"role": "user", "content": "Find well-rated Italian restaurants in Manhattan."}]
while True:
resp = client.messages.create(
model="claude-sonnet-5-5", max_tokens=1024, tools=tools, messages=messages
)
if resp.stop_reason != "tool_use":
break
messages.append({"role": "assistant", "content": resp.content})
results = []
for block in resp.content:
if block.type == "tool_use":
out = search_places(**block.input)
results.append(
{"type": "tool_result", "tool_use_id": block.id, "content": json.dumps(out)}
)
messages.append({"role": "user", "content": results})
print(next(b.text for b in resp.content if b.type == "text"))
```
Failed calls come back as a JSON `error` object with a `code`, a `message` and a `request_id`, and they cost nothing, so the handler passes that object to the model rather than raising.
### As an MCP tool
There's no schema to write. The two paths also serve different clients, so there are two ways to show it. For your own agent loop, the Anthropic API can attach a remote MCP server through its [MCP connector](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector), which replaces the `tools` list, the handler and the `while` loop above:
```python
import os
from anthropic import Anthropic
client = Anthropic()
resp = client.beta.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Find well-rated Italian restaurants in Manhattan."}],
mcp_servers=[
{
"type": "url",
"url": "https://perceptlayer.com/mcp",
"name": "perceptlayer",
"authorization_token": os.environ["API_KEY"],
}
],
tools=[{"type": "mcp_toolset", "mcp_server_name": "perceptlayer"}],
betas=["mcp-client-2025-11-20"],
)
print(next(b.text for b in resp.content if b.type == "text"))
```
The connector is a beta feature, so confirm the parameter names and the `betas` value against its docs before copying this. We haven't run this snippet against the server. With the connector, the API makes the tool calls for you, which means you give up the handler where function calling trims results.
In an interactive client such as Claude Code, one command registers the server instead:
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp --header "Authorization: Bearer $API_KEY"
```
The server at `https://perceptlayer.com/mcp` uses Streamable HTTP and exposes three tools. `search_endpoints` finds endpoints in the catalogue, `get_endpoint` returns one endpoint's details, and `call_endpoint` takes an endpoint ID plus that endpoint's parameters and returns its JSON response. Given those tools, the expected flow is to search for a Google Maps endpoint, read its details with `get_endpoint`, then call it. The [MCP docs section](https://docs.perceptlayer.com/ai-agents) covers the setup per client.
We haven't recorded a test of this flow, so treat it as the expected behaviour from the tool design, not a measurement. If the model does make lookup calls first, they spend no credits, but they do add turns, which matters in the next section.
## How much setup effort does each approach take?
Function calling is faster for the first endpoint only if you already have an agent loop. You write a schema, a handler, error handling and the loop above. MCP is one command, but the model may need to look up an endpoint's details before it can call it (we haven't tested that flow).
The effort scales differently. A second function-calling endpoint, say `GET /v1/google-maps/reviews` with its required `business_id` and optional `sort`, `limit` and `pages`, means another schema and another handler. A tenth means ten. With MCP, the tenth endpoint costs the same as the first: the model would look it up through the same three tools.
If your client already supports MCP, as Claude Code does, the server path has no code at all. If you're building your own loop with a framework, the [LangChain custom tool tutorial](https://perceptlayer.com/blog/langchain-custom-tool-web-data) shows the function route end to end. For a fuller MCP walkthrough, see [MCP Server for Web Scraping: Tools Agents Can Call](https://perceptlayer.com/blog/mcp-server-for-web-scraping) and [Claude MCP Web Search](https://perceptlayer.com/blog/claude-agent-live-search-mcp).
## Which approach uses fewer tokens?
Neither wins outright; they spend tokens in different places. Tool definitions count as input tokens on every request ( [Anthropic, tool use overview, 2026](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview)): the `tools` parameter carries tool names, descriptions and schemas. So the size of your tool list is a recurring cost on each turn.
With function calling, you pay per endpoint you expose. The example above sends one tool with two properties ( `query` and `limit`), and you can write a tight description. Ten schemas means ten tools, and every one is sent on every turn whether the agent uses it or not.
With MCP against this server, the list stays at three tools whatever the catalogue size. By count, function calling sends fewer tools up to two endpoints, ties at three and sends more from four on. Count isn't tokens, since descriptions and schemas differ in size, so the method below measures the real figure. The cost moves to turns: any lookups before the first call, and then the endpoint response in the context. We haven't benchmarked token totals, so we won't give a number.
Here is a method you can reproduce. It is a method, not a result: we haven't run it, so this article publishes no `usage.input_tokens` figures.
1. Send the same prompt twice with the Messages API, once with the one-schema `tools` list from the example and once with the three MCP tools, copied from the server's `tools/list` response.
2. Read `usage.input_tokens` from each response and compare the first turn.
3. Run the agent to completion and sum `usage.input_tokens` and `usage.output_tokens` across all turns.
4. Repeat with ten schemas against the same three MCP tools to see where the lines cross.
The second lever is result shaping. In the function version above, the handler keeps five fields per place: `name`, `rating`, `review_count`, `full_address` and `business_id`. Each item in the recorded `simple-search` response has 28 top-level fields, so the handler drops 23 of them, including coordinates, `photos_sample` with its long photo URLs, owner fields, `phone_numbers`, an `order_link` and an `attributes` object. With function calling, you cut that down in your handler. Over MCP, `call_endpoint` returns the endpoint's JSON response. `simple-search` also takes an optional `fields` string, but how it behaves isn't documented, so check a real response before counting on it to trim output.
A field count isn't a token count, and we haven't measured either side. What the recorded item does show is that the payload is far wider than the five fields the agent needs, and that it repeats for every place returned. On a wide endpoint like this one, that suggests shaping can matter at least as much as the tool list, but measure both with the method above before deciding which to optimise first.
## What does it cost to run?
Running costs are the same for both approaches, because both end in the same HTTP call. A successful call costs 1 credit through function calling or `call_endpoint`, and failed calls return `X-Credits-Used: 0`. Lookups through `search_endpoints` and `get_endpoint` cost nothing, so the only extra spend MCP adds is model tokens.
A worked example: an agent that makes 10,000 data calls a month spends 10,000 calls × 1 credit = 10,000 credits. That equals the Starter pack's 10,000 credits, and purchased credits last 12 months. Every account also gets 100 free credits once, after email verification, with no credit card, which would cover the first 100 of those calls. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
The service is prepaid. When the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited. That is a hard ceiling on a runaway agent in either approach. Each successful response carries `X-Credits-Remaining`, which your function handler can read; over MCP, `call_endpoint` reports credits used and remaining. See [AI Agent API Cost Control](https://perceptlayer.com/blog/ai-agent-web-data-costs) for budget patterns, and [Pricing](https://perceptlayer.com/pricing) for the packs.
## What breaks over time, and who fixes it?
With function calling, the schema is yours, so drift is yours. If you copy a parameter list into a schema today and the endpoint gains an optional parameter, the model won't know it exists until you edit the schema. Wrong or missing `required` entries produce `invalid_parameters` (422) errors the model then has to recover from.
With MCP, the server publishes the tools, and `get_endpoint` returns an endpoint's details, so you don't hand-copy parameter lists into schemas. You write nothing per new endpoint. We haven't tested how quickly a catalogue change reaches the model, so check that if drift matters to you. The trade-off is less control: you can't reword a description to steer the model, and you depend on the client's handling of the server.
Retries are the same in both. Rate-limited (429) and temporarily unavailable (503) responses carry a `Retry-After` header with the seconds to wait. Requests have no idempotency key, so a call whose reply was lost to a client timeout may have succeeded and been billed. Put that logic in your handler or client, not in the model's hands; [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) shows how.
## Comparison: MCP vs function calling
In short, function calling puts definitions, result shaping and turn count in your hands, while MCP hands definition upkeep to the server and keeps the tool list at three tools. Credit cost per successful call is identical. The table sets the two side by side on the points covered above.
| | Function calling | MCP server |
| --- | --- | --- |
| Who writes tool definitions | You, per endpoint | The server |
| Tool list sent to the model | One schema per endpoint you expose | Three tools, any endpoint |
| Setup for one endpoint | Schema, handler, loop | One command in an MCP client |
| Setup for ten endpoints | Ten schemas and handlers | Same as one |
| Extra turns | None | Possible lookups before the first call (untested) |
| Result shaping | In your handler, before the model | `call_endpoint` returns the JSON response; `fields` exists on `simple-search`, behaviour undocumented |
| Parameter drift | Your job to track | Server publishes the tools; `get_endpoint` returns an endpoint's details |
| Cost per successful call | 1 credit | 1 credit |
| Cost of lookups | Not applicable | 0 credits |
| Best control over prompts | Full | Limited |
## Which should you pick for your use case?
Pick by how many endpoints the agent uses and who controls the client: function calling for a few known endpoints where you want control, MCP for open-ended source choice or an MCP-native client. Since the credit price is the same either way, cost shouldn't decide it. Here is a plain verdict for five common cases.
- **A fixed workflow with one to three endpoints** (for example, search a place, then fetch its reviews): function calling. Small schemas, no lookup turns by design, trimmed results.
- **An agent that must choose among many sources:** MCP. Writing and updating dozens of schemas isn't worth it when three tools cover the catalogue.
- **Interactive use in Claude Code or another MCP client:** MCP. There's no code to write, and you can ask for data in plain language.
- **High-volume, latency-sensitive pipelines:** function calling. You avoid any possible lookup turns and control the payload size exactly. If no model needs to choose, call the HTTP endpoint directly from code and skip tools altogether.
- **Prototyping before you know which sources matter:** MCP first, then move the endpoints you settle on into functions.
The two aren't exclusive. You can expose a handful of hand-written functions for the hot path and attach the MCP server for everything else.
Whichever you choose, start with a real call. [Get a free API key](https://perceptlayer.com/signup), then run `simple-search` in the playground on the [Google Maps API page](https://perceptlayer.com/apis/google-maps) to see the response your tool will return. Authentication details are in the [docs](https://docs.perceptlayer.com/authentication).
## APIs in this post
- [Google Maps **1 credit per call** · 12 endpoints](https://perceptlayer.com/apis/google-maps)
## Frequently asked questions
### Is MCP better than function calling?
Neither is better in general. They carry the same kind of tool definition to the model. MCP moves definition upkeep to the server and keeps the tool list short; function calling gives you control over descriptions, results and turn count. For one to three endpoints, function calling is usually simpler. For many sources, MCP is.
### Does MCP cost more credits than calling the API directly?
No. A successful `call_endpoint` spends the same credits as the endpoint's price, which is 1 credit for nearly all endpoints, including every Google Maps endpoint. `search_endpoints` and `get_endpoint` only look up the catalogue and spend nothing. Failed calls cost nothing either.
### Can I use both in one agent?
Yes. One workable setup is hand-written functions for the two or three endpoints the agent calls constantly, plus the MCP server for occasional lookups of other sources. Just avoid exposing the same endpoint through both paths, since the model may pick either and you could see duplicate calls on your balance.
### What happens when an MCP or function call fails?
The API returns an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`; codes include `invalid_parameters` (422), `rate_limited` (429) and `insufficient_credits` (402). The failed call is not billed. Pass the error back to the model so it can correct parameters, and handle `Retry-After` in code. See [Errors](https://docs.perceptlayer.com/errors).
mcp function calling ai agents tool use google maps
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 20 Jul 2026 Perceptlayer 7 min read
## [LLM Tool Schema Design: A Checklist for Web APIs](https://perceptlayer.com/blog/agent-tool-schema-design-web-apis)
LLM tool schema design checklist, applied to the Google Maps simple-search endpoint: a before and after schema that cuts 28 result fields to 7.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 13 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [What Is an MCP Server? A Working Example with Web Data](https://perceptlayer.com/blog/what-is-an-mcp-server)
An MCP server exposes tools, resources and prompts to AI apps over stdio or Streamable HTTP. See a real tools/list and tools/call, and what each costs.
---
title: "Booking.com Hotel Prices API: Search, Rooms and Reviews"
description: "Eleven Booking.com endpoints as JSON: search, prices, rooms and reviews, with parameters and a 1,000-hotel price check costed in credits."
url: https://perceptlayer.com/blog/booking-com-hotel-prices-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Booking.com Hotel Prices API: Search, Rooms and Reviews
25 Aug 2026 Updated 23 Oct 2026 Perceptlayer 8 min read
The [Booking.com API](https://perceptlayer.com/apis/booking) returns hotel prices, rooms and reviews as JSON through eleven endpoints, each costing 1 credit per successful call. Use `GET /v1/booking/prices` to price a destination for your dates, `rooms` for one hotel's room options, and `reviews` for guest feedback. A price check across 1,000 hotels costs between 40 and 2,000 credits, depending on the endpoints you pick.
## Key takeaways
- Booking.com has eleven endpoints here: `search`, `search-by-url`, `prices`, `bulk-prices`, `destinations`, `hotel`, `rooms`, `facilities`, `photos`, `reviews` and `review-scores`. Every one costs 1 credit.
- `prices` needs three parameters: `ss`, `checkin` and `checkout`. Add `dest_id` and `dest_type` to pin the destination.
- Per-hotel endpoints ( `rooms`, `reviews`, `review-scores`) accept a hotel `url`, or `country` plus `slug`.
- Pricing 1,000 hotels with one `rooms` call each costs 1,000 credits, ten times the 100 free credits a new account gets. Reading prices from `prices` result lists costs far fewer, because one call returned 25 hotels in the recorded sample.
- Failed calls cost nothing and return `X-Credits-Used: 0`.
## Which Booking.com endpoint does which job?
The eleven endpoints fall into four jobs: finding hotels ( `destinations`, `search`, `search-by-url`), pricing them ( `prices`, `bulk-prices`), describing one property ( `hotel`, `rooms`, `facilities`, `photos`) and judging quality ( `reviews`, `review-scores`). All return JSON with named fields, and each costs 1 credit on success.
| Job | Endpoint | Method | Use it to |
| --- | --- | --- | --- |
| Find | `/v1/booking/destinations` | GET | Turn a place name ( `q`) into a destination to search |
| Find | `/v1/booking/search` | GET | List hotels for a place, optionally with dates |
| Find | `/v1/booking/search-by-url` | GET | Run a Booking.com search results URL you already have |
| Price | `/v1/booking/prices` | GET | Get hotel names, prices and review scores for dates |
| Price | `/v1/booking/bulk-prices` | POST | Send a list of `searches` in one request |
| Describe | `/v1/booking/hotel` | GET | Read one property's details |
| Describe | `/v1/booking/rooms` | GET | See one property's rooms for your dates |
| Describe | `/v1/booking/facilities` | GET | List one property's facilities |
| Describe | `/v1/booking/photos` | GET | Get one property's photos |
| Judge | `/v1/booking/reviews` | GET | Page through guest reviews, sorted |
| Judge | `/v1/booking/review-scores` | GET | Read the score breakdown for one property |
A typical flow starts with `destinations` or `search` to find hotels, then calls the per-hotel endpoints on the ones you care about. The per-endpoint pages, such as [Prices](https://perceptlayer.com/apis/booking/prices), [Hotel](https://perceptlayer.com/apis/booking/hotel) and [Reviews](https://perceptlayer.com/apis/booking/reviews), have a playground where you can run each one with your key.
## How do you search hotels for a place and dates?
Call `GET /v1/booking/search` with `ss` (the place) and, for dated results, `checkin` and `checkout`. Only `ss` is required. Add `group_adults`, `group_children` and `no_rooms` to describe the party, and `dest_id` with `dest_type` to remove any ambiguity about which place you mean.
```bash
curl "https://api.perceptlayer.com/v1/booking/search?ss=Paris&checkin=2026-06-01&checkout=2026-06-04&group_adults=2&dest_id=-1456928&dest_type=city" \
-H "X-API-Key: $API_KEY"
```
Don't know the `dest_id`? Call [`destinations`](https://perceptlayer.com/apis/booking/destinations) with `q` set to the place name first. `dest_type` accepts one of `city`, `region`, `district`, `hotel`, `landmark` or `airport`. If you already have a Booking.com results page open in a browser, `search-by-url` takes that `url` and nothing else.
Keys go in the `X-API-Key` header; see [authentication](https://docs.perceptlayer.com/authentication) for the query-parameter alternative.
## How do you get hotel prices for your dates?
`GET /v1/booking/prices` returns a list of hotels with a price for your stay. It requires `ss`, `checkin` and `checkout`, which makes it the right call when the question is "what does this stay cost", not "which hotels exist". Here is a recorded request for three nights in Paris for two adults.
```bash
curl "https://api.perceptlayer.com/v1/booking/prices?ss=Paris&checkin=2026-11-20&checkout=2026-11-23&group_adults=2&dest_id=-1456928&dest_type=city" \
-H "X-API-Key: $API_KEY"
```
An excerpt of the real response, recorded on 2026-10-23:
```json
{
"success": true,
"data": {
"title": "Booking.com: hotels in Paris",
"prices": [
{
"name": "Royal Saint Michel",
"url": "https://www.booking.com/hotel/fr/royal-saint-michel.html",
"price": "$351.05",
"review_score": "8.8",
"location": "3 Boulevard Saint Michel, Paris",
"image": "https://cf.bstatic.com/xdata/images/hotel/square240/560523800.jpg?…"
},
…
],
"total_prices": 25,
"parsed": true
},
"meta": {
"duration_ms": 1423.85,
"scraped_at": "2026-10-23T19:48:12+00:00",
"cached": false,
…
}
}
```
These are the parameters for `prices`; `search` takes the same ones, except that its dates are optional.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `ss` | string | yes | The place, up to 200 characters |
| `checkin` | string | yes | Check-in date |
| `checkout` | string | yes | Check-out date |
| `group_adults` | integer | no | Adults in the party |
| `group_children` | integer | no | Children in the party |
| `no_rooms` | integer | no | Number of rooms |
| `dest_id` | integer | no | Destination ID, from `destinations` |
| `dest_type` | string | no | `city`, `region`, `district`, `hotel`, `landmark` or `airport` |
| `lang` | string | no | Up to 10 characters |
| `currency` | string | no | Up to 3 characters |
`prices` documents no `page`, `limit` or offset parameter, so one call returns one result list. Two details matter for pipelines. `price` and `review_score` are strings, so parse them before you compare. The price is a formatted amount, here in dollars; pass `currency` (up to three characters, an [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) code) and `lang` to control the format. And `meta.scraped_at` tells you when the data was read: values are returned as found at the time of the call.
## How do you get rooms and room-level prices?
`GET /v1/booking/rooms` takes a hotel and, optionally, your stay details, and returns that property's rooms. Identify the hotel with its Booking.com `url`, or with `country` (two characters) and `slug`. Add `checkin`, `checkout`, `group_adults`, `group_children`, `no_rooms`, `lang` and `currency` to price the rooms for your dates.
```bash
curl "https://api.perceptlayer.com/v1/booking/rooms?country=fr&slug=royal-saint-michel&checkin=2026-11-20&checkout=2026-11-23&group_adults=2" \
-H "X-API-Key: $API_KEY"
```
The `country` and `slug` come straight from a hotel URL: in `https://www.booking.com/hotel/fr/royal-saint-michel.html`, they are `fr` and `royal-saint-michel`. That means the `url` field in each `prices` result feeds the per-hotel endpoints directly. We haven't recorded a `rooms` response for this article, so the field list lives on the endpoint page and in the playground rather than here.
`facilities` and `photos` take the same parameters as `rooms`, and [`hotel`](https://perceptlayer.com/apis/booking/hotel) takes only the identifiers.
## How do you pull reviews and review scores?
Use `GET /v1/booking/reviews` for the text of guest reviews and `GET /v1/booking/review-scores` for the score breakdown. Both identify the hotel with `url`, or `country` plus `slug`. Reviews add `page`, `limit` and `sort`, where `sort` is one of `recent_desc`, `recent_asc`, `score_desc` or `score_asc`.
```bash
curl "https://api.perceptlayer.com/v1/booking/reviews?country=fr&slug=royal-saint-michel&sort=recent_desc&page=1" \
-H "X-API-Key: $API_KEY"
```
Sorting by `recent_desc` suits monitoring: you see new reviews first and can stop paging once you reach one you've stored. Sorting by `score_asc` surfaces complaints. Each page is one call and one credit, so the cost of reading a hotel's whole review history is the number of pages you fetch. Reviews are guest-written text. If you store them, keep to the source's terms and don't contact the authors.
## What does a price check across 1,000 hotels cost?
It costs between 40 and 2,000 credits, depending on how you build it. Every call is 1 credit, so the arithmetic is call counting. The sample above returned 25 hotels in a single `prices` call, and the number returned varies by search. Because `prices` has no paging parameter, you can't page one search up to 1,000 hotels. The first row below assumes 40 separate searches (different districts or dates, say), each returning 25 distinct hotels, so treat it as a best case.
| Approach | Calls | Credits |
| --- | --- | --- |
| `prices`, 40 separate searches at 25 hotels each (as in the recorded sample) | 1,000 ÷ 25 = 40 | 40 × 1 = 40 |
| `rooms` once per hotel, for room-level prices | 1,000 | 1,000 × 1 = 1,000 |
| `rooms` plus `reviews` page 1 per hotel | 2,000 | 2,000 × 1 = 2,000 |
The 1,000 credits of the second row are ten times the free credits (100, granted once after verifying an email address, no card), so the free credits cover the first 100 hotels and the full check needs a pack. Repeat that check daily for 30 days and you need 30,000 credits, so look at the [pricing](https://perceptlayer.com/pricing) page for what packs cost. Packs start at 10,000 credits, last 12 months, and carry no subscription.
`bulk-prices` takes a list of `searches` in a single POST. Its endpoint listing shows 1 credit per call. Because we haven't recorded a batch here, send a small list first and read `X-Credits-Used` on the response before you size a job. Every successful response also carries `X-Credits-Remaining`, which is how a scheduled job can stop itself before the balance runs out. The [credits guide](https://docs.perceptlayer.com/credits) covers both headers.
### How long does 1,000 calls take?
Rate limits are per account, counted per minute. A free account gets 1 request a second, so 1,000 sequential calls take about 17 minutes. A paying account runs at least 5 requests a second (300 a minute), so the same job finishes in under 4 minutes. A 429 response carries a `Retry-After` header with the seconds to wait; see [rate limits](https://docs.perceptlayer.com/rate-limits).
## A script that calls rooms for a list of hotels
This Python script calls `rooms` for each hotel URL in a list, waits and retries the same hotel on a 429, stops on any other error, and prints the credits the API reports. It doesn't parse the room data, because we haven't recorded a `rooms` response; add that once you've seen one in the playground.
```python
import os
import time
import requests
API = "https://api.perceptlayer.com/v1/booking/rooms"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
hotel_urls = [
"https://www.booking.com/hotel/fr/royal-saint-michel.html",
# …your other hotel URLs
]
def fetch(url, attempts=5):
for _ in range(attempts):
r = requests.get(
API,
headers=HEADERS,
params={"url": url, "checkin": "2026-11-20", "checkout": "2026-11-23", "group_adults": 2},
timeout=60,
)
if r.status_code == 429:
time.sleep(int(r.headers.get("Retry-After", "1")))
continue
r.raise_for_status()
return r
raise RuntimeError(f"still rate limited after {attempts} attempts: {url}")
for url in hotel_urls:
r = fetch(url)
print(url, "credits used:", r.headers["X-Credits-Used"], "remaining:", r.headers["X-Credits-Remaining"])
```
A rate-limited 429 isn't billed, so retrying it is safe. A timed-out request is different: it may have succeeded and been billed, because requests have no idempotency key, so don't blindly retry timeouts on a large job. Error codes such as `invalid_parameters` (422) and `insufficient_credits` (402) are listed in [errors](https://docs.perceptlayer.com/errors).
## When should you use the official Booking.com API instead?
If you're an approved Booking.com partner, the company's own [developer portal](https://developers.booking.com/) is worth checking first: it lists the Demand API, Connectivity APIs, Metasearch Connect API and Data Portability API, and may fit a production affiliate or connectivity product better than collected data. Check the portal for what access each one requires.
This API suits the cases where you need hotel prices, rooms and reviews as JSON today, in the same account and format as the rest of the [travel APIs](https://perceptlayer.com/verticals/travel). Data is collected from publicly available sources and returned as found at the time of the call, so it isn't a booking channel and shouldn't be shown as a guaranteed, bookable rate.
Comparing sources for the same stay is a common next step. The [Google Hotels API guide](https://perceptlayer.com/blog/google-hotels-api) covers a second set of prices, and the [AI travel planning agent](https://perceptlayer.com/blog/ai-travel-planning-agent-mcp) shows how to expose both to an agent over MCP.
Get a free API key at [signup](https://perceptlayer.com/signup), open the [Booking.com API](https://perceptlayer.com/apis/booking) page and run the Prices call in the playground with your own dates.
## APIs in this post
- [Booking.com **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/booking)
## Frequently asked questions
### How much does a Booking.com API call cost?
Every Booking.com endpoint here costs 1 credit on a successful call. Failed calls cost nothing and return `X-Credits-Used: 0`. New accounts get 100 free credits after verifying an email, with no credit card. They cover the first 100 calls of a 1,000-call job; the rest needs a pack, and the smallest, Starter, has 10,000 credits.
### Can I check prices for many destinations in one request?
Yes. `POST /v1/booking/bulk-prices` accepts a list of `searches`, and the endpoint is listed at 1 credit per call. Test it with a few searches and read the `X-Credits-Used` header on the response before you scale it. For a single destination, one `prices` call is simpler.
### What is the difference between search and prices?
`search` requires only `ss` and lists hotels, with dates optional. `prices` requires `ss`, `checkin` and `checkout`, and is built to return a price for each hotel along with its review score. Use `search` to discover hotels and `prices` when the stay dates are known.
### How do I identify a hotel for the rooms and reviews endpoints?
Pass the hotel's Booking.com page as `url`, or pass `country` (two characters) and `slug`. Both come from the hotel's URL, such as `/hotel/fr/royal-saint-michel.html`. The `url` field returned by `prices` gives you these values for every hotel in a result set.
### How fast can I call the API?
Limits are per account and counted per minute. Free accounts get 1 request a second (60 a minute); paying accounts run at the rate of the credits they're using and at least 5 a second (300 a minute). A 429 response includes a `Retry-After` header with the wait in seconds.
booking.com hotel prices travel reviews rooms
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 5 Jul 2026 Perceptlayer 7 min read
## [Expedia Hotels API: Search Hotels and Rooms as JSON](https://perceptlayer.com/blog/expedia-hotels-api-search-json)
Search Expedia hotels by region and dates, then list rooms and rate plans as JSON. Real parameters, a recorded response and 1 credit per call.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 9 Nov 2026 Perceptlayer 8 min read
## [Booking.com Scraper or API: What You Get](https://perceptlayer.com/blog/booking-com-scraper-vs-api)
A Booking.com scraper vs 11 endpoints at 1 credit a call: one recorded Paris prices call returned 25 hotels, about 0.04 credits per hotel price.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
---
title: "Car Auction Price Data: What Sold Prices Can Show"
description: "Auction results are sold prices, not asking prices. The filters that matter on Bring a Trailer, Cars & Bids and Copart, their biases, and a 5-year pull's cost."
url: https://perceptlayer.com/blog/car-auction-price-data
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Car Auction Price Data: What Sold Prices Can Show
25 Aug 2026 Perceptlayer 8 min read
Car auction price data shows what buyers actually paid, which dealer listings can't: an asking price is an offer, a closed auction is a result. That makes auctions the closest public source to transaction prices for enthusiast and damaged cars. But each auction type sells a different slice of the market, so the useful questions are which results to keep, which to separate, and which biases to correct before you average anything.
## Key takeaways
- A sold result and a high bid on an unsold car are different numbers: Bring a Trailer search takes `sale_status` of `sold` or `unsold`, so you can pull both and measure how often a model fails to meet its reserve.
- `auction_type=no-reserve` on Bring a Trailer separates auctions that had to sell from reserve auctions, where low bids never become prices.
- Copart mostly sells insurance total losses: insurers supplied 79% of the vehicles it processed in fiscal 2026, so its prices measure damaged and salvage cars, filtered by `damage` and `title_group`.
- Online enthusiast auctions add a buyer's fee on top of the winning bid, so the hammer price understates what the buyer paid.
- A 5-year model history on Bring a Trailer is one call per page of `auctions-search` with `auction_status=past&range=5Y`, plus 1 credit per auction you open with `listings`.
## Why are auction prices different from listing prices?
Because they're outcomes, not offers. A dealer listing tells you what a seller hopes to get, and it can sit unsold, be cut, or sell below the sticker after negotiation that never appears online. A closed auction records the highest bid at a fixed end time, in public, and whether it was enough to sell. For pricing a specific car, that's the stronger signal.
The catch is coverage. Listings cover nearly every used car for sale; auctions cover the cars their sellers chose to auction. Our guide to [used car listing data for price analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis) covers the listing side, with its own fields and biases. The two work best together: listings for breadth and current supply, auctions for what the market actually cleared.
## Which auction types does the data cover?
Three, each with a different seller and buyer. The [Bring a Trailer API](https://perceptlayer.com/apis/bring-a-trailer) and the [Cars & Bids API](https://perceptlayer.com/apis/cars-and-bids) cover online enthusiast auctions, where private sellers and dealers list collectable and enthusiast cars with photos, history and a public comment thread. The [Copart API](https://perceptlayer.com/apis/copart) covers salvage auctions, where most vehicles come from insurers after a total loss.
| | Bring a Trailer | Cars & Bids | Copart |
| --- | --- | --- | --- |
| What's sold | Collectable and enthusiast cars | Enthusiast cars from the 1980s on | Mostly damaged, total-loss and recovered vehicles |
| Typical seller | Private owners and dealers | Private owners and dealers | Insurance companies, then dealers, banks, rental and fleet companies |
| Price signal | Sold price or high bid, reserve or no reserve | Sold price or high bid | Sale price of a damaged vehicle |
| Key search filters | `sale_status`, `auction_type`, `range`, `minimum_year`, `maximum_year` | `status`, `make_slug`, `model_slug`, `start_year`, `end_year`, `transmission` | `make`, `model`, `damage`, `title_group`, `odometer_max`, `year_from`, `year_to` |
| Endpoints | 4 | 3 | 4 |
Copart's own filings are explicit about its mix: insurance company sellers supplied 79% of the vehicles it processed in fiscal 2026 and 81% in fiscal 2025, and most vehicles sold for insurers are total losses or recovered stolen vehicles ( [Copart Form 10-K, fiscal 2026](https://www.sec.gov/Archives/edgar/data/0000900075/000119312526405731/cprt-20260731.htm), 2026). A Copart price is the value of a car in its damaged state, not a retail price.
## Which fields matter for sold-price analysis?
Five things decide whether two auction results are comparable: the outcome, the reserve, the car's condition, its mileage and the date. On these endpoints, most of them are search filters, which is useful: you can pull comparable sets directly instead of downloading everything and filtering later. We haven't recorded responses from these three APIs, so the response field names are on each endpoint page; the table lists the filters.
| What matters | Why | Filter |
| --- | --- | --- |
| Sold or unsold | An unsold car's high bid is below the seller's reserve, not a price | Bring a Trailer `sale_status` ( `sold`, `unsold`); Cars & Bids `status` ( `closed`) |
| Reserve or no reserve | No-reserve auctions always sell, so their prices include weak days | Bring a Trailer `auction_type` ( `premium`, `no-reserve`, `alumni`) |
| Condition and title | A salvage title or flood damage can outweigh every other factor | Copart `damage`, `title_group` |
| Mileage | The main within-model price driver for drivable cars | Copart `odometer_max`; Cars & Bids `sort=lowest_mileage` |
| Model year and spec | Model years and gearboxes can price very differently | Year ranges on all three; Cars & Bids `transmission` ( `automatic`, `manual`), `body_style` |
| Date | Prices move; compare like periods | Bring a Trailer `range` ( `7D`, `30D`, `1Y`, `2Y`, `5Y`) |
Store the unsold results rather than dropping them. The share of a model's auctions that fail to sell is a market signal in its own right: a rising no-sale rate says sellers' reserves are above what buyers will pay, often before sold prices fall.
## What biases come with each auction type?
Every auction sells a selected sample, and the selection runs in a known direction. Correct for it, or at least don't mix samples. The four biases below are the ones that change averages most.
**Selection on enthusiast sites.** Sellers bring good examples of desirable cars to Bring a Trailer and Cars & Bids, because those sites reward photos, records and originality. Their results describe the top of a model's market, not the average example on a dealer lot.
**Fees on top of the bid.** On online enthusiast auctions, the winning bidder pays a buyer's fee on top of the winning bid; Cars & Bids describes its fee, a percentage of the winning bid with a minimum and a maximum, that way on its own site ( [Cars & Bids](https://carsandbids.com/what-is/), 2026), and it says it focuses on cars from the 1980s onward. Fee rates and caps change, so check the current terms. Decide whether you're modelling the hammer price or the buyer's total, and apply one rule throughout.
**Reserve censoring.** On a reserve auction, a car that doesn't reach its reserve goes unsold, so sold prices alone leave out the low end. A model with a high no-sale rate looks more valuable from sold prices than it is. Pull `sale_status=unsold` too, and report sold prices alongside the no-sale rate.
**Condition on salvage auctions.** Copart prices reflect damage type, title status and whether the car runs. A "front end" hit and a flood car of the same model aren't comparable, and neither tells you a retail value. Segment by `damage` and `title_group` before averaging.
## How much does a 5-year model history cost? A worked example
Price a 5-year history of one model on Bring a Trailer by counting pages. `GET /v1/bring-a-trailer/auctions-search` returns one page of results per call at 1 credit, and it takes `page` and `per_page`. Pull sold and unsold results separately, so you can compute the no-sale rate. These requests haven't been run for this article:
```bash
curl "https://api.perceptlayer.com/v1/bring-a-trailer/auctions-search?auction_status=past&sale_status=sold&make_or_model=porsche+911&range=5Y&page=1&per_page=50" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/bring-a-trailer/auctions-search?auction_status=past&sale_status=unsold&make_or_model=porsche+911&range=5Y&page=1&per_page=50" \
-H "X-API-Key: $API_KEY"
```
The number of pages depends on how many auctions match and how many results a page holds; the endpoint definition documents neither a default nor a maximum `per_page`, so read both from the first response in the playground on the [Auctions Search page](https://perceptlayer.com/apis/bring-a-trailer/auctions-search). The arithmetic is then simple. As an illustration, suppose a model has 600 sold and 150 unsold past auctions and pages hold 50 results:
| Step | Calls | Credits |
| --- | --- | --- |
| Sold results, 600 ÷ 50 per page | 12 | 12 |
| Unsold results, 150 ÷ 50 per page | 3 | 3 |
| Full record for each sold auction ( `listings`) | 600 | 600 |
| Total, search only | 15 | 15 |
| Total, with every record | 615 | 615 |
Those counts are an example, not a measurement. The pattern holds whatever the real numbers are: searching is cheap and opening every record dominates the cost. Open records only for the auctions you need details on, such as the ones closest to your car's year and mileage. A search-only history of 20 models at 15 credits each is 300 credits; the 100 free credits cover the first 6 models, and the Starter pack's 10,000 covers the rest.
The same method applies to the others. On Cars & Bids, `search` pages with `limit` and `offset`, and `auction` opens one result by `id`. On Copart, `lots-search` pages with `page` and `per_page`, `lots-filters` lists the filter values, and `lots-detail` opens one lot by `lot_number`. Every endpoint costs 1 credit per successful call; failed calls cost nothing. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for billing.
## What can't auction data show?
Three things. It can't show private sales, dealer trade-ins or wholesale dealer auctions that aren't public, which is where most used cars change hands. It can't tell you what an unsold car eventually went for. And it can't separate a car's value from its presentation: two identical cars can sell apart because one had better photos and a busier comment thread.
So use auction results as a high-quality sample of the enthusiast and salvage markets, alongside listing data, not as a measure of the whole used-car market. To pull either side as JSON, [get a free API key](https://perceptlayer.com/signup) and try a past-auctions search in the playground on the [Bring a Trailer API page](https://perceptlayer.com/apis/bring-a-trailer). The [cars APIs](https://perceptlayer.com/verticals/cars) list the listing sources on the same key. Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Bring a Trailer **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/bring-a-trailer)
- [Copart **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/copart)
- [Cars & Bids **1 credit per call** · 3 endpoints](https://perceptlayer.com/apis/cars-and-bids)
## Frequently asked questions
### Where can I get car auction price data?
Public online auctions publish their results: Bring a Trailer and Cars & Bids for enthusiast cars, Copart for damaged and salvage vehicles. The Perceptlayer [Bring a Trailer](https://perceptlayer.com/apis/bring-a-trailer), [Cars & Bids](https://perceptlayer.com/apis/cars-and-bids) and [Copart](https://perceptlayer.com/apis/copart) APIs return searches and single results as JSON, at 1 credit per successful call, with filters for sale status, reserve, damage, title, mileage and year.
### Is an auction high bid the same as a sale price?
No. On a reserve auction, the high bid on a car that didn't sell was below the seller's reserve, so it's an upper bound on what buyers offered, not a price. Bring a Trailer search separates them with `sale_status` of `sold` or `unsold`. Keep both: the share that fails to sell is a useful market signal.
### Why are Copart prices so much lower than retail?
Because most Copart vehicles are insurance total losses or recovered stolen vehicles; insurers supplied 79% of the vehicles Copart processed in fiscal 2026, per its annual report. Prices reflect damage, title status and whether a car runs. Filter by `damage` and `title_group`, and don't compare Copart prices with retail listings.
### How much does a model's price history cost?
On Bring a Trailer, one search page costs 1 credit, so a 5-year history of one model is as many credits as it has pages of sold and unsold results. Opening each auction's full record with `listings` adds 1 credit per auction. Failed calls cost nothing, and every account gets 100 free credits on signup.
### Do auction prices include the buyer's fee?
Usually not. Online enthusiast auctions such as Cars & Bids charge the winning bidder a fee on top of the winning bid, so the total the buyer paid is higher than the hammer price. Fee rates and caps change, so check each site's current terms and apply one rule consistently in your analysis.
car auctions used car prices bring a trailer copart vehicle data
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 4 Nov 2026 Perceptlayer 7 min read
## [LinkedIn Jobs API: Job Listings as JSON](https://perceptlayer.com/blog/linkedin-jobs-api)
Search public LinkedIn job listings with jobs-search and fetch one posting with job, at 1 credit a call: parameters, cURL and a weekly hiring-signal job.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 31 Oct 2026 Perceptlayer 9 min read
## [Price Monitoring Tool: Build One on Product APIs](https://perceptlayer.com/blog/price-monitoring-tool-build)
Build a price monitoring tool in Python: daily Google Shopping, Walmart and idealo searches, price and seller per day in SQLite, 1 credit per check.
---
title: "Rightmove API: Get UK Property Listings and Sold Prices"
description: "Pull Rightmove UK listings, sold prices and agents as JSON with 8 endpoints at 1 credit per call, with a real London search response and cURL examples."
url: https://perceptlayer.com/blog/rightmove-api-property-data
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Rightmove API: Get UK Property Listings and Sold Prices
25 Aug 2026 Perceptlayer 8 min read
Rightmove's Real Time Data Feed is described as a way to upload listings. The Perceptlayer Rightmove API is for the reading side: eight GET endpoints return listings, single properties, sold prices, agents and location lookups as JSON, at 1 credit per successful call. One cURL call against `/v1/rightmove/search` is enough to start.
## Key takeaways
- Rightmove's Real Time Data Feed is described as a way for agents to upload and update their own listings, not to read other people's.
- `GET /v1/rightmove/search` needs only `channel` (BUY, RENT, COMMERCIAL\_BUY or COMMERCIAL\_RENT) and returns listings with price, bedrooms, address and coordinates.
- Sold prices come from `GET /v1/rightmove/sold-properties`, filtered by `postcode`, `property_type`, `tenure` and `sold_in`.
- Every one of the 8 Rightmove endpoints costs 1 credit on success. Failed calls cost nothing and return `X-Credits-Used: 0`.
- A single search sweep is capped at about 1,000 records over 41 pages, so narrow the location to go deeper.
## Is there an official Rightmove API?
No. Rightmove's own data-feed documentation is for sending listings in, not for reading them out. Its current specifications page covers loading "UK Sales & Lettings properties", "Overseas Sales properties" and "New Homes Developers properties" onto the live site, and describes no way to search or retrieve listings ( [Rightmove Automated Datafeed Specifications](https://www.rightmove.co.uk/adf.html), 2026). Rightmove introduced the Real Time Data Feed so agents could "upload your properties and make changes to your current Rightmove listings almost instantly" ( [Rightmove news, Real Time Data Feed](https://www.rightmove.co.uk/news/?p=29205), 2015).
If you're an estate agent or a CRM vendor publishing stock, the feed is your route. If you're a developer who needs to read UK listings as JSON, that's the gap the [Rightmove API](https://perceptlayer.com/apis/rightmove) covers. It's one of the sites in the [real estate APIs](https://perceptlayer.com/verticals/real-estate) area, and it uses the same key and the same JSON conventions as the rest of the catalogue.
## What can the Rightmove API return?
Eight endpoints cover the data a Rightmove page shows: listings for sale or rent, a single property, sold prices, agents and branches, addresses, and location lookups. All are GET requests, all cost 1 credit on success, and all return JSON. The table lists each one with its required parameters.
| Endpoint | Returns | Required | Credits |
| --- | --- | --- | --- |
| [`/v1/rightmove/search`](https://perceptlayer.com/apis/rightmove/search) | Search | `channel` | 1 |
| [`/v1/rightmove/property`](https://perceptlayer.com/apis/rightmove/property) | Property | `id` | 1 |
| [`/v1/rightmove/sold-properties`](https://perceptlayer.com/apis/rightmove/sold-properties) | Sold Properties | none | 1 |
| [`/v1/rightmove/sold-property`](https://perceptlayer.com/apis/rightmove/sold-property) | Sold Property | `uuid` | 1 |
| [`/v1/rightmove/locations-typeahead`](https://perceptlayer.com/apis/rightmove/locations-typeahead) | Locations Typeahead | `query` | 1 |
| [`/v1/rightmove/agents`](https://perceptlayer.com/apis/rightmove/agents) | Agents | `channel` | 1 |
| [`/v1/rightmove/branch`](https://perceptlayer.com/apis/rightmove/branch) | Branch | `id` | 1 |
| [`/v1/rightmove/address`](https://perceptlayer.com/apis/rightmove/address) | Address | none | 1 |
The usual flow is: resolve a place name, search listings, then fetch detail for the ones you care about. For sold prices, go straight to `sold-properties` with a postcode, then open individual records with `sold-property`.
## How do you search Rightmove listings?
Call `GET /v1/rightmove/search` with a `channel` and a place. `channel` is the only required parameter. Pass `location` as free text, or `location_identifier` if you already have one. The call below searches London listings for sale, and it's the exact request behind the recorded response in the next section.
```bash
curl "https://api.perceptlayer.com/v1/rightmove/search?location=London&channel=BUY" \
-H "X-API-Key: $API_KEY"
```
Get a key from [the free signup](https://perceptlayer.com/signup); authentication is covered in the [docs](https://docs.perceptlayer.com/authentication). Keys start with `sk_live_` and go in the `X-API-Key` header.
### Which parameters does the search endpoint take?
Search takes one required parameter and thirteen optional ones. Types and allowed values below come straight from the endpoint definition. Nothing else about defaults or page sizes is documented, so don't rely on any.
| Parameter | Type | Notes |
| --- | --- | --- |
| `channel` | string, required | One of `BUY`, `RENT`, `COMMERCIAL_BUY`, `COMMERCIAL_RENT` |
| `location` | string | Up to 120 characters |
| `location_identifier` | string | Up to 60 characters |
| `location_name` | string | Up to 120 characters |
| `radius` | integer | |
| `page` | integer | |
| `sort` | integer | |
| `min_price`, `max_price` | integer | Price bounds |
| `min_bedrooms`, `max_bedrooms` | integer | Bedroom bounds |
| `property_type` | string | Up to 60 characters |
| `must_have` | string | Up to 60 characters |
| `enrich` | boolean | |
For example, `channel=RENT&location=Manchester&min_bedrooms=2&max_price=1800` asks for rentals in Manchester with at least two bedrooms and a price ceiling of 1,800. Check the [Search endpoint page](https://perceptlayer.com/apis/rightmove/search) or the playground for the allowed `sort` values.
### What does a search response look like?
The recorded response for the London request above holds a `data` object with a `properties` array plus paging fields, and a `meta` object. Here is an excerpt, trimmed with `…`:
```json
{
"data": {
"properties": [
{
"id": 90486465,
"bedrooms": 3,
"bathrooms": 2,
"displayAddress": "Cavaye Place, Chelsea, London, SW10",
"countryCode": "GB",
"location": {
"latitude": 51.486678,
"longitude": -0.180225
},
"propertySubType": "Apartment",
"tenure": {
"tenureType": "LEASEHOLD"
},
"price": {
"amount": 1495000,
"currencyCode": "GBP",
"displayPrices": ["…"]
},
"customer": {
"branchId": 298991,
"branchDisplayName": "OB Private, Mayfair"
},
"displaySize": "1,285 sq. ft.",
"channel": "BUY",
"addedOrReduced": "Added on 03/07/2026",
"listing_id": "90486465",
"branch_id": 298991
}
],
"count": 60081,
"page": 1,
"page_size": 24,
"channel": "BUY",
"location_identifier": "REGION^87490",
"has_next_page": true,
"record_limit": {
"max_page": 41,
"approx_records_per_search": 1025,
"note": "Rightmove caps a single search sweep at roughly 1,000 records over 41 pages. Narrow the location to go deeper."
}
},
"meta": {
"attempts": 1,
"lookups": 1,
"duration_ms": 1253
}
}
```
The fields you'd use most are `price.amount`, `bedrooms`, `displayAddress`, `location`, `propertySubType` and `tenure.tenureType`. The listing `id` is what you pass to the property endpoint. The same recorded response shows `channel` as `COMMERCIAL_BUY` on a second, commercial listing in the array, so a residential search can return commercial stock.
## Why does a London search stop at 41 pages?
A single search sweep stops at roughly 1,000 records. The recorded response reports `count: 60081` matches for London but also `max_page: 41` and `approx_records_per_search: 1025`, and its own note says to narrow the location to go deeper. `has_next_page` tells you whether another page exists within that cap.
Treat `count` as the size of the market, not the size of your result set. To collect more than about 1,000 listings, split the area: run one search per borough, outcode or neighbourhood, and add price bands with `min_price` and `max_price` so each slice stays under the cap. Here's a short page loop in Python:
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/rightmove/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def search_all(params, max_pages=41):
listings = []
for page in range(1, max_pages + 1):
r = requests.get(URL, headers=HEADERS, params={**params, "page": page}, timeout=60)
r.raise_for_status()
data = r.json()["data"]
listings.extend(data["properties"])
if not data["has_next_page"]:
break
return listings
homes = search_all({"channel": "BUY", "location": "London"})
print(len(homes))
```
It reads the `has_next_page` flag from the recorded response shape and stops when it's false. For retries, rate limits and safe loops, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
## How do you get one property, or find a location first?
Use `GET /v1/rightmove/property` with the listing `id`, and `GET /v1/rightmove/locations-typeahead` to turn typed text into a location. There's no recorded response for either in this article, so the descriptions below stick to the parameters. Open each endpoint page or the playground to see the actual output.
| Endpoint | Parameters | Use it to |
| --- | --- | --- |
| `/v1/rightmove/property` | `id` (string, required) | Fetch one listing after a search returned its `id` |
| `/v1/rightmove/locations-typeahead` | `query` (string, required, up to 120 characters), `limit` (integer, optional) | Resolve a place name before searching |
```bash
curl "https://api.perceptlayer.com/v1/rightmove/locations-typeahead?query=Chelsea&limit=5" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/rightmove/property?id=90486465" \
-H "X-API-Key: $API_KEY"
```
Typeahead is useful when users type a place name and you want a precise match rather than free text. The [Locations Typeahead page](https://perceptlayer.com/apis/rightmove/locations-typeahead) and the [Property page](https://perceptlayer.com/apis/rightmove/property) list the response fields.
## How do you get sold prices?
Call `GET /v1/rightmove/sold-properties`. Nothing is required, but you'll want to filter: `postcode` (up to 10 characters), `location_id` with a `location_type` of REGION, OUTCODE, POSTCODE, BRANCH or STATION, and `radius`. You can narrow by `property_type` (DETACHED, FLAT, TERRACED, SEMI\_DETACHED), `tenure` (FREEHOLD, LEASEHOLD) and `sold_in`.
```bash
curl "https://api.perceptlayer.com/v1/rightmove/sold-properties?postcode=SW10&property_type=FLAT&tenure=LEASEHOLD" \
-H "X-API-Key: $API_KEY"
```
| Parameter | Type | Allowed values |
| --- | --- | --- |
| `postcode` | string | Up to 10 characters |
| `location_id` | integer | |
| `location_type` | string | `REGION`, `OUTCODE`, `POSTCODE`, `BRANCH`, `STATION` |
| `radius` | integer | |
| `page`, `page_size` | integer | |
| `property_type` | string | `DETACHED`, `FLAT`, `TERRACED`, `SEMI_DETACHED` |
| `tenure` | string | `FREEHOLD`, `LEASEHOLD` |
| `sold_in` | integer | `3`, `6`, `12`, `24`, `120` |
To look at one sale in full, pass its `uuid` to `GET /v1/rightmove/sold-property`. We haven't recorded a sold-prices response for this article, so see the [Sold Properties page](https://perceptlayer.com/apis/rightmove/sold-properties) and the [Sold Property page](https://perceptlayer.com/apis/rightmove/sold-property) for the output, or run it in the playground.
When is the free government data a better fit? If you only need completed sale prices for England and Wales, HM Land Registry's Price Paid Data covers "all property sales in England and Wales that are sold for value and are lodged with us for registration", is released under the Open Government Licence, and is updated on the 20th working day of each month ( [HM Land Registry, Price Paid Data](https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads), 2026). It's free to download, so for bulk historical analysis it's the cheaper route. Rightmove sold-price data is the better fit when you want it alongside live listings, agents and the same JSON shape. Whichever source you use, read Rightmove's terms of use first and make sure your use of the data complies with them.
## What about agents, branches and addresses?
Three more endpoints cover the supply side. `GET /v1/rightmove/agents` needs a `channel` of BUY or RENT and takes `location` or `location_identifier` as optional filters. `GET /v1/rightmove/branch` takes a branch `id`. `GET /v1/rightmove/address` takes an optional `postcode` or `term`.
The search response already carries `branch_id`, so a typical flow is to take it from a listing and pass it to the [Branch endpoint](https://perceptlayer.com/apis/rightmove/branch). The [Agents endpoint](https://perceptlayer.com/apis/rightmove/agents) lists agents for an area, and the [Address endpoint](https://perceptlayer.com/apis/rightmove/address) helps when you start from a postcode or an address fragment instead of a listing. For listing-data design, our guide to [the real estate listing fields that matter for valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields) goes through which of these fields to keep.
## What does a Rightmove API call cost?
Every Rightmove endpoint costs 1 credit per successful call. Failed calls cost nothing and return `X-Credits-Used: 0`. Each success also returns `X-Credits-Used` and `X-Credits-Remaining`, so you can track your balance as you go. See the [credits docs](https://docs.perceptlayer.com/credits) for how billing works.
The free tier gives you 100 credits after you verify an email address, with no credit card. Paid packs are prepaid and last 12 months. There's no subscription and no seats.
| Pack | Credits |
| --- | --- |
| Free | 100, once |
| Starter | 10,000 |
| Build | 50,000 |
| Growth | 200,000 |
| Pro | 500,000 |
| Scale | 1,000,000 |
| Volume | 5,000,000 |
Worked example: a full sweep of one search is at most 41 pages × 1 credit = 41 credits, so the 100 free credits cover 2 sweeps (2 × 41 = 82). A Starter pack of 10,000 credits covers 243 sweeps (243 × 41 = 9,963). Add one `property` call per listing you want in full and each costs 1 more credit. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
Rate-limited (429) and temporarily unavailable (503) responses carry a `Retry-After` header with the seconds to wait. There's no idempotency key, so a request that timed out on your side may still have been billed. The [errors docs](https://docs.perceptlayer.com/errors) and [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the codes. Prices and packs are on the [pricing page](https://perceptlayer.com/pricing).
## Can an AI agent call the Rightmove API?
Yes. The Perceptlayer MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing. `call_endpoint` takes an endpoint ID and its parameters, and spends credits only on success.
An agent can look up the Rightmove search endpoint, read its parameters, then call it with the user's area and budget. Setup is in the [MCP docs](https://docs.perceptlayer.com/ai-agents), and [an MCP server for web scraping](https://perceptlayer.com/blog/mcp-server-for-web-scraping) explains how the tools fit together.
To try the endpoints first, [get a free API key](https://perceptlayer.com/signup) and run your own London search in the playground on the [Rightmove API page](https://perceptlayer.com/apis/rightmove). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Rightmove **1 credit per call** · 8 endpoints](https://perceptlayer.com/apis/rightmove)
## Frequently asked questions
### Does Rightmove have a public API?
No. Rightmove's published data-feed specifications cover uploading listings, and they describe no way to search or retrieve them ( [Rightmove Automated Datafeed Specifications](https://www.rightmove.co.uk/adf.html), 2026). To read listings, sold prices or agent data as JSON, use the [Rightmove API](https://perceptlayer.com/apis/rightmove) from Perceptlayer, which returns each endpoint's data with one key.
### How much does the Rightmove API cost?
Every Rightmove endpoint costs 1 credit per successful call, and failed calls cost nothing. You get 100 free credits on signup. After that, credits come in prepaid packs from 10,000 (Starter) to 5,000,000 (Volume), so 20,000 calls × 1 credit = 20,000 credits. The [pricing page](https://perceptlayer.com/pricing) shows what each pack costs.
### How many listings can one Rightmove search return?
About 1,000. The recorded London search reported 60,081 matches but a cap of 41 pages and roughly 1,025 records per search, and its note says to narrow the location to go deeper. Split a large area into boroughs or outcodes, and add price bands, so each search stays under the cap.
### Can I get Rightmove sold prices as JSON?
Yes. `GET /v1/rightmove/sold-properties` accepts `postcode`, `property_type`, `tenure` and `sold_in`, and `GET /v1/rightmove/sold-property` takes a `uuid` for one record. Each call costs 1 credit. We haven't recorded a sold-prices response here, so check the endpoint pages for the fields it returns.
### What happens if a call fails or I run out of credits?
A failed call returns an HTTP status and a JSON error with a `code`, `message` and `request_id`, and costs nothing. When your prepaid balance reaches zero, calls return `insufficient_credits` (402) and nothing more is debited. There's no automatic top-up. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
rightmove uk property real estate listings sold prices
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 12 Jul 2026 Perceptlayer 7 min read
## [Zoopla API: UK Listings and Sold Prices as JSON](https://perceptlayer.com/blog/zoopla-api-property-listings-sold-prices)
Search Zoopla listings by outcode, pull sold prices and a property's valuation history by UPRN, at 1 credit per call. Parameters, cURL and a sweep cost.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
---
title: "MCP Server for Web Scraping: Tools Agents Can Call"
description: "An MCP server gives an agent three tools to find, inspect and call web endpoints. Use the scraper for uncatalogued pages, structured endpoints for the rest."
url: https://perceptlayer.com/blog/mcp-server-for-web-scraping
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# MCP Server for Web Scraping: Tools Agents Can Call
23 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
An MCP server for web scraping exposes web access to an agent as named tools it can discover and call, instead of code you write and maintain per site. Perceptlayer's server at `https://perceptlayer.com/mcp` has three tools: `search_endpoints`, `get_endpoint` and `call_endpoint`. The agent finds an endpoint, looks it up, then calls it. A raw page scrape and a structured endpoint both cost 1 credit, so the real choice is the shape of the response your agent has to work with.
## Key takeaways
- The server has three tools. `search_endpoints` and `get_endpoint` only read the catalogue and cost nothing; `call_endpoint` spends credits, and only when the call succeeds.
- The `/v1/web-scraper/scrape` endpoint takes a `url` (up to 2048 characters) and costs 1 credit. A structured endpoint such as `/v1/google-search/search` also costs 1 credit, and its recorded response has named fields such as `organic_results[0].link`.
- Use the scraper for pages with no structured endpoint. Use a structured endpoint when the site is in the catalogue, because the agent reads documented fields.
- Every successful response reports `X-Credits-Used` and `X-Credits-Remaining`, and failed calls return `X-Credits-Used: 0`, so an agent can track its own spend.
## What does an MCP server do for a scraping agent?
An MCP server turns web access into a tool list the agent can discover at runtime. The Model Context Protocol is an open standard for connecting models to tools and data ( [Model Context Protocol specification](https://modelcontextprotocol.io/specification/2026-07-28), 2026). Without it, you hand-write a function per site and describe each one in the prompt. With it, the agent asks the server what exists and what each tool needs. If you're weighing this against defining your own functions, [MCP vs Function Calling for Live Web Data in Agents](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) compares the two.
For web data this matters because the catalogue is large: 480 websites and 2,782 endpoints, all returning JSON. You can't list that many tool definitions in a prompt. So the server doesn't try. It gives the agent a search tool over the catalogue and calls the right endpoint on demand.
The transport is Streamable HTTP, one of the two standard transports in the [MCP transport specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports) (2026). That means a plain HTTPS URL, no local process to run.
## Which tools does the Perceptlayer MCP server expose?
The server exposes three tools, and only one of them costs anything. `search_endpoints` finds endpoints in the catalogue, `get_endpoint` looks up one endpoint, and `call_endpoint` runs it. The first two are lookups and are free. The third takes an endpoint ID plus that endpoint's parameters, returns the endpoint's JSON response, and reports the credits used and remaining.
| Tool | What it does | Credits |
| --- | --- | --- |
| `search_endpoints` | Finds endpoints in the catalogue | 0 |
| `get_endpoint` | Looks up one endpoint in the catalogue | 0 |
| `call_endpoint` | Calls an endpoint by ID with its parameters | The endpoint's credits, on success only |
The agent's usual path is search, inspect, call. Because lookups are free, an agent can look at several candidate endpoints before it spends anything. If a call fails, you aren't billed for it.
### What does the search, inspect, call sequence look like?
Take one task: an agent is asked for the top Google result for a query. It starts with `search_endpoints`, describing what it needs, and reads the candidates the catalogue returns. That step is free. It picks the Google Search endpoint that fits.
Next it calls `get_endpoint` on the chosen endpoint, which is also free, to look it up in the catalogue before spending anything. Last, it calls `call_endpoint` with the endpoint's ID and its parameters. For `GET /v1/google-search/search` that means a required `query` plus optional ones such as `hl` and `safe`. The call spends 1 credit if it succeeds and returns the endpoint's JSON, the same shape as the recorded response further down.
If the question had no good match in the catalogue, the first step would show that, and the agent could fall back to the scraper.
### How do you add the server?
For Claude Code, one command registers it. Put your key in `API_KEY` first; you can get one free at [/signup](https://perceptlayer.com/signup).
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp --header "Authorization: Bearer $API_KEY"
```
Other MCP clients need the same three things: the URL, the HTTP transport and the key in the `Authorization` header. The [AI agents (MCP) docs](https://docs.perceptlayer.com/ai-agents) are the place to check the details, and [Claude MCP Web Search](https://perceptlayer.com/blog/claude-agent-live-search-mcp) walks through a full search agent.
## What does raw scraping give an agent?
Raw scraping takes a URL you choose and leaves the extraction to the agent. The Web Scraper API's `scrape` endpoint, `GET /v1/web-scraper/scrape`, costs 1 credit per call; the API also has a `map` endpoint that takes a site `url`. `scrape` takes a required `url` (up to 2048 characters) and three optional parameters: `include_html`, `javascript` and `response_type`.
| Parameter | Type | Notes |
| --- | --- | --- |
| `url` | string, required | Up to 2048 characters |
| `include_html` | boolean, optional | See the [Scrape endpoint](https://perceptlayer.com/apis/web-scraper/scrape) |
| `javascript` | boolean, optional | See the [Scrape endpoint](https://perceptlayer.com/apis/web-scraper/scrape) |
| `response_type` | string, optional | `json` or `markdown` |
Here's the request:
```bash
curl "https://api.perceptlayer.com/v1/web-scraper/scrape?url=https%3A%2F%2Fexample.com&include_html=0&javascript=0" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a response for `scrape`, so this post can't show what it returns. The [Web Scraper API page](https://perceptlayer.com/apis/web-scraper) has a playground where you can run it against your own URL and see the response before you design the agent's extraction step.
The upside is reach: you pass the `url`, so it can point at a page no structured endpoint covers.
## What does a structured endpoint give an agent instead?
A structured endpoint returns named fields for a known site, so the agent reads values rather than hunting for them. For Google results, `GET /v1/google-search/search` takes a required `query` and costs 1 credit, the same as a scrape. This is the recorded response to a search for `best restaurants in Berlin` with `hl=en`, trimmed:
```bash
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
-H "X-API-Key: $API_KEY"
```
```json
{
"search_information": {
"query_displayed": "best restaurants in Berlin",
"organic_results_count": 6
},
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"redirect_link": "https://www.google.com/goto?url=CAESegHrOzAV7vOTOiRYGN3Rq_LJMgUCSUtmes2rLIk-rn2vHS6tGU7IIN38aZ1xjQeD3kZuDFfbW6QvUSum1Woyp6Hmrl5u9WEXLlEP2Ek60dzztg2yT13pxwC2ptSy…",
"displayed_link": "https://andershusa.com › best-restaurants-berlin-german...",
"source": "Anders & Kaitlin",
"rank_group": 1,
"rank_absolute": 4
},
…
],
"related_searches": [
{
"query": "Best restaurants in Berlin for tourists",
…
}
],
…
}
```
An agent asked for the top result's link reads `organic_results[0].link`. There's no page to parse. The same response also carries `snippet` text, `related_searches` and `people_also_search_for`, which an agent can use for follow-up queries. The [Google Search API page](https://perceptlayer.com/apis/google-search) lists all seven endpoints, and [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json) covers the parameters in depth.
One caution: the recorded excerpt includes long `redirect_link` values on each result. They arrive in the response, so a lean agent prompt should say which fields to use.
## How do the two compare on credits and response shape?
On credits they tie: both calls cost 1. These are two different tasks, so it isn't a like-for-like comparison: one starts from a URL you supply, the other from a query. The table sets out what's documented.
| | Web Scraper `scrape` | Structured endpoint ( `search`) |
| --- | --- | --- |
| Credits per call | 1 | 1 |
| Input | `url`, required | `query`, required |
| Response | `json` or `markdown` ( `response_type`) | Named fields such as `organic_results[0].link` |
| Sites covered | The URL you pass | Sites in the catalogue |
### What does a task cost in credits?
Credits add up per call, so work out the calls per task. Suppose an agent runs one `search` and scrapes three of the result pages: 1 + 3 = 4 credits per task. At 1,000 tasks that's 1,000 × 4 credits = 4,000 credits, which fits inside the Starter pack's 10,000 credits. See [pricing](https://perceptlayer.com/pricing) for what credits cost. The free tier gives 100 credits once, after you verify an email address, no credit card: enough for 25 of those tasks.
The same task done with only structured calls might need one call, not four. That's a design choice, not a guarantee: it depends on whether the question needs page text at all. [AI Agent API Cost Control](https://perceptlayer.com/blog/ai-agent-web-data-costs) shows how to cap this spend, and the [credits docs](https://docs.perceptlayer.com/credits) list the rules.
## When is raw scraping the right tool?
Raw scraping is right when no structured endpoint exists for the page, or when you need the page's own text. An agent reading a blog post, a changelog or a documentation page wants prose, not fields. The `response_type` parameter accepts `json` or `markdown`, so you can pick whichever your agent reads better. For what it costs to maintain your own scrapers instead, see [Scraper or API: What Maintaining a Scraper Really Involves](https://perceptlayer.com/blog/scraper-vs-api-maintenance-cost).
It's also the fallback for the long tail. The catalogue covers 480 websites; the web is far bigger. If the agent's question lands outside it, `scrape` is the endpoint to try. Check a site's terms and its `robots.txt` before you point an agent at it ( [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309), 2022).
Structured endpoints are right when the site is in the catalogue and the question is about a value: a ranking, a price, a rating. In that case search first. An agent that calls `search_endpoints` before `scrape` finds structured coverage when it exists, and the lookup costs nothing.
## What happens when a call fails?
A failed call returns an HTTP status and a JSON body shaped as `{"error": {"code", "message", "request_id"}}`, and it costs nothing. The response carries `X-Credits-Used: 0`. Common codes are `invalid_api_key` (401), `insufficient_credits` (402), `invalid_parameters` (422) and `rate_limited` (429).
Two cases matter for agents. A 429 or 503 carries a `Retry-After` header with the seconds to wait, so the agent should sleep that long rather than retry in a loop. And because requests have no idempotency key, a request whose reply was lost to a client timeout may have succeeded and been billed. [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers that case, and the [errors docs](https://docs.perceptlayer.com/errors) list every code.
The service is prepaid. When the balance reaches zero, calls return `insufficient_credits` (402) and nothing more is debited. Nothing tops up automatically.
## What to do next
Add the server, then give the agent a question that has a catalogue answer and one that doesn't, and watch which tool it picks. To see the data before wiring anything, run a call in the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search), or [get a free API key](https://perceptlayer.com/signup) and try the cURL requests above. For a LangChain version of the same idea, see [LangChain Custom Tool for Live Web Data](https://perceptlayer.com/blog/langchain-custom-tool-web-data). More agent guides are in the [AI agents category](https://perceptlayer.com/blog/category/ai-agents).
## APIs in this post
- [Web Scraper **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/web-scraper)
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Do the MCP lookup tools cost credits?
No. `search_endpoints` and `get_endpoint` only look up the catalogue and cost nothing. Only `call_endpoint` spends credits, it spends the endpoint's listed credits, and it does so only when the call succeeds. Most endpoints cost 1 credit. Failed calls cost nothing and return `X-Credits-Used: 0`.
### How does the agent authenticate with the MCP server?
Claude Code sends your API key in the `Authorization: Bearer` header, as in the command above. Direct HTTP calls use the `X-API-Key` header instead. Keys start with `sk_live_`. See [authentication](https://docs.perceptlayer.com/authentication) for the API key details.
### Is a scrape cheaper than a structured call?
No. The `scrape` endpoint costs 1 credit and so does `search`. A structured call costs the credits shown on its endpoint, and nearly all cost 1. So the decision rests on the input and the response shape, not on price per call.
### How much does it cost to run an agent for a month?
Multiply calls per task by tasks by 1 credit. An agent making 10,000 calls a month uses 10,000 calls × 1 credit = 10,000 credits, which is the Starter pack's 10,000 credits. Purchased credits last 12 months, and there's no subscription. See [pricing](https://perceptlayer.com/pricing) for what credits cost and for the Build and Growth packs.
### What happens if my agent hits the rate limit?
A rate-limited response returns 429 with a `Retry-After` header giving the seconds to wait. Temporarily unavailable responses (503) carry the same header. Have the agent wait that long before retrying, and cap the number of retries so a stuck loop can't run indefinitely. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) have details.
mcp web scraping ai agents tool calling credits
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 13 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [What Is an MCP Server? A Working Example with Web Data](https://perceptlayer.com/blog/what-is-an-mcp-server)
An MCP server exposes tools, resources and prompts to AI apps over stdio or Streamable HTTP. See a real tools/list and tools/call, and what each costs.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Sept 2026 Perceptlayer 7 min read
## [MCP Server Too Many Tools: Keeping Agent Context Small](https://perceptlayer.com/blog/mcp-too-many-tools-context)
One tool per endpoint for 1,659 endpoints is about 567,000 characters of schema. A 10-step checklist to keep an MCP server's tool list small.
---
title: "Patent Data for Competitive Intelligence: A Practical Guide"
description: "Which patent fields show where a competitor invests (assignee, priority and filing dates, family status), the 18-month publication lag, and a worked example."
url: https://perceptlayer.com/blog/patent-data-competitive-intelligence
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Patent Data for Competitive Intelligence: A Practical Guide
23 Aug 2026 Perceptlayer 7 min read
Patent data shows where a competitor has committed money to an idea, years before a product ships, but it shows it late. The fields that matter are the assignee, the priority, filing and grant dates, the family's status in each country and the classification codes. The catch is timing: applications are generally published 18 months after their earliest priority date, so the newest work is always invisible. Research papers fill part of that gap.
## Key takeaways
- Filter by `assignee` on `GET /v1/google-patents/search` and sort with `sort=new` to see a company's newest publications; `status` separates `GRANT` from `APPLICATION`.
- The priority date is the closest public proxy for when the work was done; the grant date is a legal event, often years later.
- In the recorded search, both patents were granted about 9.5 and 10 years after their priority dates, and one is kind code B1, meaning it had no earlier pre-grant publication.
- `family_status` shows where protection is active by country: the second recorded patent's WO and EP family members are `NOT_ACTIVE`, a hint about where its owner chose not to pursue it.
- Scholar results for a topic can show research directions before the patents publish; tracking 10 competitors monthly is about 20 credits.
## What can patent data tell you about a competitor?
Three things, with decreasing confidence. Volume over time says how much a company files in an area, which tracks R&D spending more honestly than press releases. Topic, through titles, snippets and classification codes, says which problems it's working on. Geography, through family status, says which markets it thinks are worth protecting, since filing and keeping a patent in each country costs money.
What it can't tell you is what the company will build. Companies patent defensively, patent ideas they abandon, and keep important work as trade secrets. Treat a cluster of filings as evidence of investment, not of a product plan. And remember the lag: anything filed in the last year and a half is mostly invisible.
## Which fields matter, and why?
The ones that place an invention in time, ownership and geography. The [Google Patents search endpoint](https://perceptlayer.com/apis/google-patents/search) returns them for each result. The table maps each field in the recorded response to what it's good for in competitive analysis.
| Field | What it is | What it tells you |
| --- | --- | --- |
| `assignee` | The owner of the patent | Whose investment it is; normalise names, since one company files under several |
| `dates.priority` | Earliest claimed filing date | Closest proxy for when the work was done |
| `dates.filing` | Filing date of this application | Later than priority for continuations; shows a company extending a family |
| `dates.grant`, `dates.publication` | When it was granted and published | When the public could first see it |
| `publication_number` | Number plus kind code, e.g. `US12438891B1` | `B1`/ `B2` granted, `A1` an application |
| `family_status` | Status per country or office | Where protection is active or has lapsed |
| `title`, `snippet` | Title and a claim excerpt | Topic, for clustering |
Classification codes are the other key field for topic analysis. The Cooperative Patent Classification is the scheme the USPTO and the EPO developed jointly and both use ( [CPC](https://www.cooperativepatentclassification.org/about), 2026), and codes cluster filings far better than keywords. They aren't in the recorded search response; the [Details endpoint](https://perceptlayer.com/apis/google-patents/details) returns a single patent's full record, so check there. The inventor field is also returned; it names people, so this guide doesn't use it.
## Why do the newest filings stay hidden?
Because of the publication rule. In the US, applications are published promptly after 18 months from the earliest filing date they claim, with exceptions such as applicants who certify they won't file abroad ( [USPTO MPEP 1120](https://www.uspto.gov/web/offices/pac/mpep/s1120.html), 2026). Most other major offices publish on the same 18-month schedule. Until then, an application is confidential, so no data source, paid or free, can show it.
That sets a floor on how current patent intelligence can be. A search today shows work whose priority date is at least about 18 months old, plus older applications granted recently. A company that starts filing heavily in a new area this quarter won't appear in patent data until around 2028. Plan analysis around that: patent data is for direction over years, not for this quarter's moves.
Some patents never appear as applications at all. The USPTO's kind codes mark a granted patent with no previously published pre-grant publication as `B1`, and one with an earlier publication as `B2` ( [USPTO, kind codes](https://www.uspto.gov/learning-and-resources/support-centers/electronic-business-center/kind-codes-included-uspto-patent), 2026). A `B1` was invisible until the day it was granted.
## What does the recorded data show? A worked example
The recorded response for `q=machine learning` holds two patents. Here's an excerpt, trimmed with `…`, with inventor names cut:
```json
{
"success": true,
"data": {
"total_results": 122797,
"total_pages": 99,
"patents": [
{
"patent_id": "patent/US12438891B1/en",
"title": "Anomaly detection based on ensemble machine learning model",
"publication_number": "US12438891B1",
"dates": { "priority": "2015-08-31", "filing": "2022-02-18", "grant": "2025-10-07", "publication": "2025-10-07" },
"assignee": "Splunk Inc.",
"family_status": [{ "country": "US", "status": "ACTIVE" }],
…
},
{
"patent_id": "patent/US12518214B2/en",
"title": "Distributed machine learning systems including generation of synthetic data",
"publication_number": "US12518214B2",
"dates": { "priority": "2016-07-18", "filing": "2023-04-21", "grant": "2026-01-06", "publication": "2026-01-06" },
"assignee": "Nantomics, Llc",
"family_status": [{ "country": "WO", "status": "NOT_ACTIVE" }, { "country": "EP", "status": "NOT_ACTIVE" }],
…
}
],
…
}
}
```
Work out the gaps from the dates. They show how far a grant can trail the work it protects:
| Patent | Priority to filing | Filing to grant | Priority to grant |
| --- | --- | --- | --- |
| US12438891B1 | 6.5 years | 3.6 years | 10.1 years |
| US12518214B2 | 6.8 years | 2.7 years | 9.5 years |
Both were filed more than six years after their priority dates, which is consistent with a continuation: a later application in an existing family, claiming the original date. Both were granted in 2025 and 2026 on work first filed in 2015 and 2016. If you counted these as "machine learning patents in 2025", you'd be measuring decade-old work. Count by priority year instead.
The `B1` on the first means its owner received a patent with no earlier pre-grant publication of this application. The second's WO and EP entries are `NOT_ACTIVE`, so its owner isn't, or is no longer, pursuing protection through those routes, while it holds a US grant. Two results aren't a trend, but they show which questions each field answers.
## How do research papers fill the gap?
Papers can appear well before related patents publish, and they name institutions. The [Google Scholar API](https://perceptlayer.com/apis/google-scholar) search takes `q`, a year range with `as_ylo` and `as_yhi`, and `scisbd` for date sorting. The recorded response for `q=machine learning&as_ylo=2020` reports 38,300 results, with each result's `publication_info.summary`, a source and year, and `inline_links.cited_by.total`, 292 for its second result.
Citation counts favour older papers, so compare papers of similar age. Scholar results don't carry an affiliation field in the recording, so to follow one company, search its name together with a topic, or follow known researchers with the [Author endpoint](https://perceptlayer.com/apis/google-scholar/author), keeping in mind that author profiles are personal data. Our [Google Scholar API guide](https://perceptlayer.com/blog/google-scholar-api) covers the parameters.
## How do you set up monthly tracking, and what does it cost?
Run one patent search per competitor per month, filtered by `assignee` and sorted newest first, plus one Scholar search for its main topic. Store results keyed by `publication_number` and count by priority year. These requests haven't been run for this article; the `assignee` value must match how the company appears in patent records, so check it in the playground first:
```bash
curl "https://api.perceptlayer.com/v1/google-patents/search?q=anomaly+detection&assignee=Splunk+Inc.&sort=new" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/google-scholar/search?q=anomaly+detection+splunk&as_ylo=2025&scisbd=1" \
-H "X-API-Key: $API_KEY"
```
Every call costs 1 credit on success; failed calls cost nothing. The recorded patent search reports 99 pages for 122,797 results, so a broad query can't be read in full; filter by assignee, `status`, `before` and `after` to keep result sets to a few pages. Our [Google Patents API guide](https://perceptlayer.com/blog/google-patents-api-search-details) covers paging and when the official bulk datasets are a better fit.
| Job | Calls a month | Credits a month |
| --- | --- | --- |
| 10 competitors, 1 patent search + 1 Scholar search | 20 | 20 |
| The same, plus details for 30 new patents | 50 | 50 |
| 50 competitors, 2 pages of patents + 1 Scholar search | 150 | 150 |
The 100 free credits a verified account gets are granted once, so they cover five months of the first job, two of the second and none of the third. A Starter pack's 10,000 credits cover a year of any of them. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for billing. To try it, [get a free API key](https://perceptlayer.com/signup) and search a competitor's name as assignee in the playground on the [Google Patents API page](https://perceptlayer.com/apis/google-patents). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Google Patents **1 credit per call** · 2 endpoints](https://perceptlayer.com/apis/google-patents)
- [Google Scholar **1 credit per call** · 5 endpoints](https://perceptlayer.com/apis/google-scholar)
## Frequently asked questions
### How is patent data used for competitive intelligence?
Analysts count a competitor's filings by priority year and topic to see where it's investing, read family status to see which countries it protects, and watch new grants and applications for direction changes. It's evidence of R&D spending, not of product plans, and it runs at least 18 months behind because of publication rules.
### Why can't I see a competitor's latest patent applications?
Because they aren't public yet. Applications are generally published 18 months after their earliest priority date, and some US applicants opt out of publication if they don't file abroad. Until publication, no source can show them. Granted patents with kind code `B1` had no earlier publication at all.
### Which date should I use to count patents by year?
The priority date, the earliest filing date a patent claims. It's closest to when the work was done. Grant dates can be years later: the two recorded patents were granted 9.5 and 10.1 years after their priority dates, after continuation filings in 2022 and 2023.
### How much does tracking competitors' patents cost?
Each Google Patents or Google Scholar call costs 1 credit per successful call, and failed calls cost nothing. Ten competitors with one patent search and one Scholar search a month is 20 credits a month, so the 100 free credits on signup cover the first five months. Opening a patent's full record with the details endpoint costs 1 more credit.
### Are inventor names personal data?
Yes. Patent records name inventors, and Scholar results name authors, so handle them as personal data under the law that applies to you. For company-level analysis you rarely need them: assignee, dates, family status and classification codes answer most competitive questions without processing individuals' names.
patents competitive intelligence google patents google scholar r&d
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 4 Nov 2026 Perceptlayer 7 min read
## [LinkedIn Jobs API: Job Listings as JSON](https://perceptlayer.com/blog/linkedin-jobs-api)
Search public LinkedIn job listings with jobs-search and fetch one posting with job, at 1 credit a call: parameters, cURL and a weekly hiring-signal job.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 31 Oct 2026 Perceptlayer 9 min read
## [Price Monitoring Tool: Build One on Product APIs](https://perceptlayer.com/blog/price-monitoring-tool-build)
Build a price monitoring tool in Python: daily Google Shopping, Walmart and idealo searches, price and seller per day in SQLite, 1 credit per check.
---
title: "App Store Reviews API: Apple App Store Data as JSON"
description: "Call GET /v1/apple-app-store/product-reviews with an app's product_id to get ratings, titles and review text as JSON. Parameters, a real response, 1 credit."
url: https://perceptlayer.com/blog/app-store-reviews-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# App Store Reviews API: Apple App Store Data as JSON
21 Aug 2026 Perceptlayer 8 min read
To get App Store reviews for any app as JSON, call `GET /v1/apple-app-store/product-reviews` with the app's `product_id` and `store=apps`. The response lists each review with its rating, title, text and date, plus a pagination block for the next page. A successful call costs 1 credit, and a failed call costs nothing.
## Key takeaways
- Apple's App Store Connect API is the tool developers use to manage their own apps. For competitor or market research, work from a public app ID instead.
- `GET /v1/apple-app-store/product-reviews` takes a `product_id`, a `store` and a `country`, and returns `reviews` plus a `reviews_pagination` block.
- Each recorded review carries `id`, `title`, `rating`, `text`, `date` and `is_edited`.
- Details and Charts use the same key and cost 1 credit per call each. Failed calls return `X-Credits-Used: 0`.
- 100 free credits arrive once, when you verify an email address, with no credit card.
## Why can't App Store Connect return reviews for other people's apps?
Apple's App Store Connect API is the tool developers use to manage their own apps. It has a Customer Reviews resource ( [Apple Developer Documentation, Customer Reviews](https://developer.apple.com/documentation/appstoreconnectapi/customer-reviews)), but it's part of an API you sign in to as a team that publishes apps. We wouldn't plan on it for a competitor's reviews, and you should check Apple's documentation for what your own account can read.
That's the right tool when you're reading and answering feedback on your own app. If you're doing market research, competitor tracking or building a review dataset across many apps, you need a source that works from a public app ID. That's the gap this endpoint fills: it works from a public app ID, so you only need the ID. Apple's own API is the place for replies: its Customer Review Responses resource ( [Apple Developer Documentation, Customer Review Responses](https://developer.apple.com/documentation/appstoreconnectapi/customer-review-responses)) is the place to manage replies to reviews. This API doesn't publish replies.
## How do you find an app's product ID?
The `product_id` is the numeric ID in the app's App Store URL (the digits after `id`). If you only know the name, use the search endpoint. It takes one required parameter, `query`, and returns matching apps for the `store` and `country` you choose.
```bash
curl "https://api.perceptlayer.com/v1/apple-app-store/search?query=facebook&store=apps&country=us" \
-H "X-API-Key: $API_KEY"
```
We don't have a recorded search response to show, so this article doesn't name the field that holds the ID. Run the call in the playground on the [Apple App Store API page](https://perceptlayer.com/apis/apple-app-store) and read the ID from the output. The numeric ID in the App Store URL is the more reliable route. The search call costs 1 credit. If you already have the ID from a URL, skip this step.
The `store` parameter accepts one of `apps`, `mac`, `books`, `audiobooks`, `movies`, `tv`, `music` or `podcasts`. For iPhone and iPad apps, use `apps`. The `country` parameter is a code of up to two characters, such as `us`.
## How do you request an app's reviews?
Send a GET request to `/v1/apple-app-store/product-reviews` with the `product_id`, `store` and, optionally, `num` to set how many reviews you want. No parameter is strictly required by the catalogue, but without an app ID there is nothing to look up.
```bash
curl "https://api.perceptlayer.com/v1/apple-app-store/product-reviews?product_id=324684580&store=apps&num=20" \
-H "X-API-Key: $API_KEY"
```
Send the key in the `X-API-Key` header, as above. Where headers aren't possible, the `api_key` query parameter works too. See [authentication in the docs](https://docs.perceptlayer.com/authentication) for both forms. Keys start with `sk_live_`, and you can [get a free API key](https://perceptlayer.com/signup) in a minute.
### Which parameters does the endpoint take?
All parameters are optional in the catalogue. These are the ones you'll use for reviews.
| Parameter | Type | What it does |
| --- | --- | --- |
| `product_id` | string, up to 255 characters | The app's ID from its store URL |
| `id` | string, up to 255 characters | Listed in the catalogue alongside `product_id` |
| `store` | string | One of `apps`, `mac`, `books`, `audiobooks`, `movies`, `tv`, `music`, `podcasts` |
| `country` | string, up to 2 characters | The storefront country, such as `us` |
| `num` | integer | How many reviews to request |
| `offset` | integer | Where to start in the list of reviews |
| `next_page_token` | string, up to 100 characters | The token from the previous page, for the next one |
| `season_id` | string, up to 255 characters | Listed in the catalogue; not used in the request above |
The catalogue documents types and limits for these parameters and nothing more. It doesn't state defaults or page sizes, so set `num` explicitly if you depend on a number.
## What does the response look like?
The response has three parts: `search_parameters` echoing your request, a `reviews` array and a `reviews_pagination` block. This is a real, trimmed response for the request above. We've left out reviewer usernames and cut the text where it says `…`.
```json
{
"search_parameters": {
"product_id": "324684580",
"store": "apps",
"num": 20,
"country": "us",
"engine": "apple_app_store_product_reviews"
},
"reviews": [
{
"id": "11994640656",
"title": "Favorite app ever",
"rating": 5,
"text": "I personally love this app. I have had it for over 4 years, and it’s been an app I use daily. If you are thinking about getting it, for sure get the Premium pla…",
"date": "2024-11-26T17:10:59Z",
"is_edited": false
},
…
],
"reviews_pagination": {
"offset": 0,
"limit": 20,
"next_offset": 20,
"next_page_token": "20",
"end_of_history": false
}
}
```
Each review has an `id`, a `title`, a numeric `rating`, the review `text`, an ISO 8601 `date` and an `is_edited` flag. The raw response also carries an `author` field, which we removed from the excerpt. If you store reviews, decide whether you need it at all; ratings, text and dates are enough for most analysis.
The `…` at the end of each `text` value in the sample marks where we trimmed the excerpt.
## How do you page through all the reviews?
Use `reviews_pagination`. It gives you `next_offset`, `next_page_token` and an `end_of_history` flag. Pass the token back as `next_page_token` (or the offset as `offset`) to fetch the next page, and stop when `end_of_history` is `true`. Every page is a separate call, so every page costs 1 credit.
```python
import os
import requests
BASE = "https://api.perceptlayer.com/v1/apple-app-store/product-reviews"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
params = {"product_id": "324684580", "store": "apps", "num": 20, "country": "us"}
reviews = []
for _ in range(5): # hard cap: at most 5 calls, 5 credits
resp = requests.get(BASE, headers=HEADERS, params=params, timeout=30)
resp.raise_for_status()
body = resp.json()
reviews.extend(body["reviews"])
page = body["reviews_pagination"]
if page["end_of_history"]:
break
params["next_page_token"] = page["next_page_token"]
print(len(reviews), "reviews")
```
The loop has a fixed cap so a large app can't run up your balance by accident.
### How do you turn the pages into a result?
Once `reviews` is filled, you can work with the `rating` and `date` fields from the recorded response without any more calls. This adds a count per star rating and the share of low ratings, then lists the one-star and two-star reviews from the last 90 days. `date` is an ISO 8601 string, so comparing it as text works.
```python
from collections import Counter
from datetime import datetime, timedelta, timezone
by_rating = Counter(r["rating"] for r in reviews)
for stars in sorted(by_rating, reverse=True):
print(stars, "stars:", by_rating[stars])
low = sum(n for stars, n in by_rating.items() if stars <= 2)
print(f"{low / len(reviews):.0%} of {len(reviews)} reviews are 1 or 2 stars")
cutoff = (datetime.now(timezone.utc) - timedelta(days=90)).strftime("%Y-%m-%dT%H:%M:%SZ")
recent_low = [r for r in reviews if r["rating"] <= 2 and r["date"] >= cutoff]
for r in recent_low:
print(r["date"][:10], r["rating"], r["title"])
```
The output is a rating breakdown and a list of recent complaints you can read, which is a usable first pass at what's going wrong in an app. The numbers describe only the pages you fetched, not every review the app has. If `reviews` is empty, the division fails, so check `end_of_history` and your parameters first. For retries, backoff and the lost-reply case, read [paginate a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python). Requests have no idempotency key, so a call whose reply was lost may have succeeded and been billed. [Retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers it.
## What do the Details and Charts endpoints add?
The same API also has `GET /v1/apple-app-store/details`, which takes the same parameters as reviews, and `GET /v1/apple-app-store/charts`, which takes `store`, `chart` ( `top-free`, `top-paid`, `top-grossing`, `most-played`, `top-subscriber` or `top-episodes`), `genre`, `country` and `limit`. We don't have a recorded response for either, so this article doesn't show their fields. Try them in the playgrounds on the [Charts](https://perceptlayer.com/apis/apple-app-store/charts) and [Details](https://perceptlayer.com/apis/apple-app-store/details) pages. Related endpoints include [Developer](https://perceptlayer.com/apis/apple-app-store/developer) (by `artist_id`) and [Apps Product](https://perceptlayer.com/apis/apple-app-store/apps-product).
## What does it cost?
Every endpoint on the Apple App Store API costs 1 credit per successful call. Failed calls cost nothing and return `X-Credits-Used: 0`. Successful responses carry `X-Credits-Used` and `X-Credits-Remaining`, so you can watch your balance in code. The [credits docs](https://docs.perceptlayer.com/credits) explain the accounting.
A worked example: one chart call, then reviews for each of its 10 apps with 5 pages each.
| Step | Calls | Credits |
| --- | --- | --- |
| Charts, `limit=10` | 1 | 1 |
| Reviews, 10 apps × 5 pages | 50 | 50 |
| Total | 51 | 51 |
51 credits sits inside the 100 free credits you get on signup. At scale, credits come in prepaid packs:
| Pack | Credits | Requests a second included |
| --- | --- | --- |
| Starter | 10,000 | 5 |
| Build | 50,000 | 5 |
| Growth | 200,000 | 5 |
| Pro | 500,000 | 5 |
| Scale | 1,000,000 | 10 |
| Volume | 5,000,000 | 20 |
To pull 5 pages for each of 2,000 apps, that's 2,000 × 5 = 10,000 calls × 1 credit = 10,000 credits, which is exactly the Starter pack. Reviews for 10,000 apps at 5 pages each is 10,000 × 5 = 50,000 calls × 1 credit = 50,000 credits, the Build pack. Purchased credits last 12 months, and there's no subscription. See [pricing](https://perceptlayer.com/pricing) for what credits cost and for faster request rates.
## What can go wrong?
Errors return an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. The ones you'll meet most are `invalid_api_key` (401), `insufficient_credits` (402), `invalid_parameters` (422), `rate_limited` (429) and `temporarily_unavailable` (503). The service is prepaid. When the balance runs out you get a 402 and nothing further is debited, with no automatic top-up.
A 429 or 503 carries a `Retry-After` header with the seconds to wait, so honour it instead of retrying in a tight loop. The [errors docs](https://docs.perceptlayer.com/errors) list every code, and [rate limits](https://docs.perceptlayer.com/rate-limits) explain the 429 behaviour.
Data is collected from publicly available sources and returned as found at the time of the call. Reviews can change after you fetch them, so store the `date` and the time you fetched them.
If you're building an agent rather than a pipeline, the same key works over MCP. See [AI agents (MCP)](https://docs.perceptlayer.com/ai-agents) and [MCP server for web scraping](https://perceptlayer.com/blog/mcp-server-for-web-scraping). To compare iOS with Android, the [Google Play Store API guide](https://perceptlayer.com/blog/google-play-store-api) covers the same job on the other store. For a comparable reviews walkthrough on another site, see the [Trustpilot reviews API guide](https://perceptlayer.com/blog/trustpilot-reviews-api) or the [Google Maps reviews API guide](https://perceptlayer.com/blog/google-maps-reviews-api-parameters). More pull-by-source guides are in the [API guides category](https://perceptlayer.com/blog/category/api-guides).
Next step: [get a free API key](https://perceptlayer.com/signup), then run the `product-reviews` call above in the playground on the [Apple App Store API page](https://perceptlayer.com/apis/apple-app-store).
## APIs in this post
- [Apple App Store **1 credit per call** · 13 endpoints](https://perceptlayer.com/apis/apple-app-store)
## Frequently asked questions
### Can I get reviews for an app I don't own?
Yes, this endpoint takes a public `product_id`, so ownership isn't required. App Store Connect also has a [Customer Reviews](https://developer.apple.com/documentation/appstoreconnectapi/customer-reviews) resource, but it sits inside an API for managing your own apps, so we'd use it for your own apps only. You can't post replies through Perceptlayer, though. Apple's [Customer Review Responses](https://developer.apple.com/documentation/appstoreconnectapi/customer-review-responses) resource is the place for that.
### How much does it cost to pull reviews for one app?
Each successful call costs 1 credit and returns one page of reviews, so cost equals the number of pages you fetch. Five pages is 5 credits. Calls that fail cost nothing and return `X-Credits-Used: 0`. The 100 free credits on signup cover 100 pages with no credit card.
### Can I get reviews from a specific country?
Use the `country` parameter, a code of up to two characters such as `us`. The recorded request above returned `"country": "us"` in `search_parameters`. Run the call once per country you care about; each is a separate call and costs 1 credit.
### How do I get the next page of reviews?
Read `reviews_pagination` in the response. Pass its `next_page_token` as `next_page_token` (or `next_offset` as `offset`) in your next request. Keep going until `end_of_history` is `true`. Each page is billed as its own call, so cap your loop to control spend.
### Does this return personal data?
Reviews can include author details and free text written by individuals. Treat them as personal data in your own system: keep only the fields you need, and don't use scraped reviews to contact people. Your lawful basis and retention rules are your responsibility.
app store reviews apple mobile apps app data
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 7 min read
## [Trustpilot Scraper or API: Ratings and Review History](https://perceptlayer.com/blog/trustpilot-scraper-vs-api)
A Trustpilot scraper vs a 1-credit company-reviews call: the recorded Amazon response, its star breakdown, and 2,340 pages × 1 credit for a full history.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 8 min read
## [Yelp Scraper or API: Reviews Without the Upkeep](https://perceptlayer.com/blog/yelp-scraper-vs-api)
A Yelp scraper vs three 1-credit endpoints: a recorded Gary Danko search whose alias feeds the reviews call, with rating, text, created\_at and next\_after.
---
title: "DuckDuckGo Search API: Web Results as JSON | Perceptlayer"
description: "DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query."
url: https://perceptlayer.com/blog/duckduckgo-search-api-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# DuckDuckGo Search API: Web Results as JSON
21 Aug 2026 Updated 6 Nov 2026 Perceptlayer 6 min read
DuckDuckGo's only official API is the Instant Answer API, which returns topic summaries such as abstracts and related topics, not a ranked list of web results. For organic results as JSON, `GET /v1/duckduckgo/search?q=...` returns each result's position, title, link and snippet, plus paging and, for some queries, an AI answer. It takes a region ( `kl`), a date filter ( `df`), safe search and an offset ( `start`), and costs 1 credit per successful query.
## Key takeaways
- DuckDuckGo's Instant Answer API at `api.duckduckgo.com` answers well-known topics with abstracts and related links; specific queries often come back empty, and it has no ranked results.
- `GET /v1/duckduckgo/search` needs only `q` (up to 499 characters) and accepts `kl`, `df` ( `d`, `w`, `m`, `y`), `safe` and `start`.
- The recorded response returns `organic_results[]` with `position`, `title`, `link`, `snippet` and `display_url`, and a `pagination` object whose `next_start` is 10.
- Each query costs 1 credit on success; tracking 100 keywords daily on the first page is 100 × 30 = 3,000 credits a month.
- DuckDuckGo says most of its traditional links come from Bing, so expect overlap with Bing results but not identical rankings.
## Does DuckDuckGo have an official search API?
It has one official API, and it isn't a web search API. The Instant Answer API at `api.duckduckgo.com` returns the answer boxes DuckDuckGo shows above results: abstracts, definitions and related topics, mostly for well-known entities ( [DuckDuckGo Instant Answer API](https://api.duckduckgo.com/api), 2026). It covers well-known topics, so a specific query, such as a product comparison, often comes back with empty fields. It's free and needs no key, so for a quick topic summary it's a fine fit.
For a ranked list of links, DuckDuckGo publishes nothing. That's the gap the [DuckDuckGo API](https://perceptlayer.com/apis/duckduckgo) covers: three endpoints ( `search`, `news` and `maps`), the same key as the rest of the [search engine APIs](https://perceptlayer.com/verticals/search), JSON out. Data is collected from publicly available sources and returned as found at the time of the call.
| Need | Instant Answer API | `/v1/duckduckgo/search` |
| --- | --- | --- |
| Topic summary for a known entity | Yes | `knowledge_graph` on some queries |
| Ranked organic results | No | `organic_results[]` |
| Paging | No | `start` and `pagination` |
| Region and date filters | No | `kl`, `df` |
| Key and cost | No key, free | API key, 1 credit per query |
## Which parameters does the search endpoint take?
`GET /v1/duckduckgo/search` takes `q`, the query, and four optional parameters. Types and allowed values come from the endpoint definition. `kl` and `df` mirror the region and date settings DuckDuckGo documents for its own search URLs ( [DuckDuckGo URL parameters](https://duckduckgo.com/duckduckgo-help-pages/settings/params), 2026); defaults for this endpoint aren't documented, so set what you need.
| Parameter | Type | Allowed values or notes |
| --- | --- | --- |
| `q` | string, required | Up to 499 characters |
| `kl` | string | Region and language, up to 10 characters, for example `us-en` |
| `df` | string | Date filter: `d` (day), `w` (week), `m` (month), `y` (year) |
| `safe` | boolean | Safe search on or off |
| `start` | integer | Result offset; the recorded first page uses `0` |
A search for news-like queries from the past week in the UK would pass `kl=uk-en&df=w`. We haven't recorded that request; the playground on the [Search endpoint page](https://perceptlayer.com/apis/duckduckgo/search) runs it.
## How do you get DuckDuckGo results as JSON?
Send `q` and, ideally, `kl` so results come from the region you mean. The request below is the exact one behind the recorded response. Put your key in the `X-API-Key` header; keys start with `sk_live_`, and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest.
```bash
curl "https://api.perceptlayer.com/v1/duckduckgo/search?q=laravel+taylor+otwell&kl=us-en&start=0" \
-H "X-API-Key: $API_KEY"
```
### What does the response look like?
The recorded response holds `search_parameters`, `organic_results`, `pagination` and, for this query, a `knowledge_graph` with an `ai_answer`. Here is an excerpt, trimmed with `…`; the first result, a personal profile page, is cut:
```json
{
"success": true,
"data": {
"search_parameters": {
"q": "laravel taylor otwell",
"kl": "us-en",
"safe": true,
"start": 0
},
"organic_results": [
…,
{
"position": 2,
"title": "taylorotwell (Taylor Otwell) · GitHub",
"link": "https://github.com/taylorotwell",
"snippet": "Creator of @laravel. taylorotwell has 10 repositories available. Follow their code on GitHub.",
"display_url": "github.com/taylorotwell",
"favicon": "https://icons.duckduckgo.com/ip3/github.com.ico"
}
],
"pagination": {
"current": 1,
"has_more": true,
"next_start": 10,
"next": 2
},
"knowledge_graph": {
"ai_answer": {
"answer": "**Taylor Otwell** is the creator of **Laravel**, a PHP web application framework he started in **2011** as a side project for himself. …"
}
}
},
"meta": {
"duration_ms": 2169,
"endpoint_family": "web_search"
}
}
```
Two details matter when you parse it. Snippets can carry HTML entities as found: the first result's snippet in the recording contains `&`, so unescape before display. And `ai_answer.answer` is markdown with `**bold**`, so render or strip it rather than showing it raw. The response echoes `safe: true` even though the request didn't send `safe`, so check `search_parameters` to see what was applied.
## How do you page through results?
Use the `pagination` object. In the recording, the first page reports `current: 1`, `has_more: true` and `next_start: 10`, so the second page is the same request with `start=10`. Stop when `has_more` is false. Each page is one call and 1 credit.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/duckduckgo/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def search(q, pages=3, kl="us-en"):
results, start = [], 0
for _ in range(pages):
r = requests.get(URL, headers=HEADERS, params={"q": q, "kl": kl, "start": start}, timeout=60)
r.raise_for_status()
data = r.json()["data"]
results.extend(data.get("organic_results", []))
page = data.get("pagination", {})
if not page.get("has_more"):
break
start = page["next_start"]
return results
for row in search("laravel taylor otwell", pages=2):
print(row["position"], row["link"])
```
This code follows the recorded response shape; we haven't run it against the live API for this article. The recording doesn't show whether `position` restarts on page two, so sort by page and position together. For retries and loop safety, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
## How do DuckDuckGo results differ from Bing's?
Expect overlap, not identity. DuckDuckGo says it runs its own crawler and indexes, and that most of its traditional links and images come from Bing ( [DuckDuckGo Help Pages](https://duckduckgo.com/duckduckgo-help-pages/results/sources), 2026). It also says it doesn't use Google's results. Instant Answers draw on other sources such as Wikipedia.
So DuckDuckGo is a reasonable second opinion on Bing-like results, with its own ranking and answer boxes on top. If you're replacing Microsoft's retired Bing Search API, the [Bing Search API alternative guide](https://perceptlayer.com/blog/bing-search-api-alternative-json) compares the Bing, Brave and DuckDuckGo endpoints side by side, so this article doesn't repeat it. For Google results instead, see the [Google Search API guide](https://perceptlayer.com/blog/google-search-api-json).
## What does a DuckDuckGo query cost?
Each successful query costs 1 credit; failed calls cost nothing and return `X-Credits-Used: 0`. Every success returns `X-Credits-Used` and `X-Credits-Remaining`, so you can watch the balance from the response headers. The [credits docs](https://docs.perceptlayer.com/credits) explain how billing works.
| Job | Calls | Credits |
| --- | --- | --- |
| One query, first page | 1 | 1 |
| One query, three pages | 3 | 3 |
| 100 keywords daily, first page, 30 days | 3,000 | 3,000 |
| An agent answering 500 questions, 2 searches each | 1,000 | 1,000 |
The 100 free credits you get on signup after verifying an email address cover 100 queries, once. Daily tracking of 100 keywords, 3,000 credits a month, needs a pack: a Starter pack of 10,000 credits covers three months and a bit, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Free accounts run at 1 request a second; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) list paid rates.
## Can an AI agent use DuckDuckGo search?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints` and `get_endpoint`, which are free catalogue lookups, and `call_endpoint`, which runs `/v1/duckduckgo/search` with the agent's query and spends 1 credit on success. The result comes back as JSON, so the agent reads titles, links and snippets instead of a page of HTML.
Two habits keep an agent's searches useful. Pass `kl` so results match the user's region. And for time-sensitive questions, add `df=d` or `df=w` so stale pages drop out. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents); errors return an HTTP status and a JSON `code`, listed in the [errors docs](https://docs.perceptlayer.com/errors). For a pattern that checks agent answers against search results, see [grounding LLM answers with live search](https://perceptlayer.com/blog/ground-agent-answers-live-search).
To try a query, [get a free API key](https://perceptlayer.com/signup) and run it in the playground on the [DuckDuckGo API page](https://perceptlayer.com/apis/duckduckgo).
## APIs in this post
- [DuckDuckGo **1 credit per call** · 3 endpoints](https://perceptlayer.com/apis/duckduckgo)
## Frequently asked questions
### Is the DuckDuckGo Instant Answer API a search API?
No. It returns Instant Answers, such as an abstract, a definition or related topics, mostly for well-known entities; specific queries often come back with empty fields. It has no ranked web results or paging. For organic results as JSON, `GET /v1/duckduckgo/search` returns positions, titles, links and snippets at 1 credit per query.
### How much does the DuckDuckGo search endpoint cost?
1 credit per successful query, and failed calls cost nothing. Each further page is another call. Every account gets 100 free credits after verifying an email address, so your first 100 first-page queries cost no money. Prepaid packs start at 10,000 credits; the [pricing page](https://perceptlayer.com/pricing) has what they cost.
### How do I get the second page of results?
Read `pagination.next_start` from the response and send it as `start`. In the recorded first page, `next_start` is 10, so page two is the same request with `start=10`. Keep going while `has_more` is true. Each page costs 1 credit.
### Can I filter DuckDuckGo results by date or region?
Yes. `df` takes `d`, `w`, `m` or `y` for the past day, week, month or year, and `kl` takes a region and language code such as `us-en`. `safe` turns safe search on or off. Check `search_parameters` in the response to confirm what was applied.
### What happens if a query fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and nothing is debited. A missing `q` returns `invalid_parameters` (422). Rate-limited (429) and temporarily unavailable (503) responses include `Retry-After` with the seconds to wait. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
duckduckgo search api serp web search json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 2 Aug 2026 Perceptlayer 8 min read
## [Bing Search API Alternative: Web Results as JSON](https://perceptlayer.com/blog/bing-search-api-alternative-json)
Replace Microsoft's retired Bing Search API with three search endpoints at 1 credit per call. Parameters compared, real responses, and where results differ.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Aug 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [Brave Search API: Official Plans or One Multi-Source Key](https://perceptlayer.com/blog/brave-search-api-results-json)
Brave's official Search API has freshness, country and Goggles filters. When it fits, and when one key for Brave, Google and Bing at 1 credit a query wins.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Aug 2026 Perceptlayer 7 min read
## [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json)
Call GET /v1/google-search/search for organic results as JSON at 1 credit a call. Parameters, a real recorded response and the cost in credits.
---
title: "Used Car Listing Data: Fields for Price Analysis"
description: "Which fields a used-car price model needs (mileage, year, trim, seller type, days listed) and how AutoScout24, CarGurus and AutoTrader UK return them."
url: https://perceptlayer.com/blog/used-car-listing-data-price-analysis
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Used Car Listing Data: Fields for Price Analysis
21 Aug 2026 Perceptlayer 7 min read
A used-car price model needs a target and six candidate features from every listing. The target is the advertised price. The features are mileage, first-registration year, make with model and trim, power or engine, seller type (dealer or private) and how long the car has been listed. The AutoScout24, CarGurus and AutoTrader UK search endpoints return most of these as named JSON fields. None returns all of them in the same shape, so the real work is normalising them.
## Key takeaways
- Price is the target. Mileage, year, trim, power and seller type are the candidate features; `days_on_market` (CarGurus) is the only listing-age field in the recorded search responses.
- AutoScout24 reports mileage as `mileage.value_km`, CarGurus as `mileage.value` with a `MILES` unit, and the recorded AutoTrader UK search results carry no mileage at all.
- Prices come in three currencies ( `EUR`, `USD`, `GBP`). Don't compare them without converting. The recorded responses have a single price field and no sale-price field.
- Each marketplace returns its own deal-rating field ( `evaluation`, `rating`, `price_indicator`) with its own values, so use them as features inside one market, never across markets.
- Pulling the 193 BMW 316 listings matching `market=de`, `model_id=1639` and EUR 5,000 to 20,000 in the recorded AutoScout24 search takes 10 calls at 1 credit each: 10 credits.
## Which listing fields matter for a used-car price model?
The advertised price is the target. The candidate features are mileage, first-registration year, make-model-trim, power or engine, seller type and listing age. Treat listing age as a feature to test rather than assume; your own data will show whether it carries signal. Everything else (colour, photo count, dealer name) is secondary until those six are clean.
The table maps the target and those features to what each endpoint returned in the recorded responses.
| Feature | AutoScout24 `search` | CarGurus `search` | AutoTrader UK `search` |
| --- | --- | --- | --- |
| Price | `price.amount`, `price.currency` ( `EUR`) | `price.amount`, `price.currency` ( `USD`) | `price.amount`, `price.currency` ( `GBP`) |
| Mileage | `mileage.value_km` | `mileage.value`, `mileage.unit` ( `MILES`) | not in the recorded excerpt |
| Year | `first_registration.year`, `.month` | `year` | `tracking_context.year` |
| Make, model | `make`, `model`, `model_group` | `make`, `model`, `make_id`, `model_id` | `title`, `tracking_context.make`, `.model` |
| Trim | `motor_type` (engine designation); `variant` is the body variant | `trim` | `sub_title` (free text) |
| Power | `power.kw`, `power.ps` | `power` (hp), `engine` | no power field in the recorded search record |
| Seller type | `seller.type` ( `Dealer`, `PrivateSeller`) | `seller_type` ( `DEALER`) | `seller_type` ( `PRIVATE`) |
| Listing age | not in the recorded excerpt | `days_on_market` | not in the recorded excerpt |
| Identifier | `listing_id` | `listing_id`, `vin` | `advert_id` |
Blank cells in this table mean the field wasn't in the recorded search response. Each marketplace also has a single-listing endpoint ( `listing` with `listing_id` on [AutoScout24](https://perceptlayer.com/apis/autoscout24/listing), `advert_id` on [AutoTrader UK](https://perceptlayer.com/apis/autotrader-uk/listing)). Run one in the playground on the API page to see what the detail view adds before you build around a gap.
## How do you pull comparable listings from AutoScout24?
Call `GET /v1/autoscout24/search` with a make, a model and a price band, and page through the results. The endpoint filters on `make_id`, `model_id`, `registration_year_min`, `registration_year_max`, `mileage_min`, `mileage_max` and `seller_type`, so you can cut the sample to the cars you want to compare before any code runs. Each call costs 1 credit.
```bash
curl "https://api.perceptlayer.com/v1/autoscout24/search?market=de&make_id=13&model_id=1639&price_min=5000&price_max=20000&sort=price&page=2&limit=20" \
-H "X-API-Key: $API_KEY"
```
The `make_id` and `model_id` values come from the [taxonomy endpoint](https://perceptlayer.com/apis/autoscout24/taxonomy) ( `include[]=makes`, `include[]=models`). Here is an excerpt of the recorded response, trimmed:
```json
{
"price": { "amount": 5800, "currency": "EUR", "evaluation": 1, "is_evaluation_enabled": true },
"mileage": { "value_km": 177000, "unit": "km" },
"first_registration": { "raw": "01/2012", "year": 2012, "month": 1 },
"power": { "kw": 85, "ps": 116 },
"make": "BMW",
"model_group": "3er",
"variant": "Limousine",
"motor_type": "316d",
"seller": { "id": "…", "type": "PrivateSeller" },
…
}
```
That one record already carries price, mileage, year and month, power, body variant, engine designation and seller type. The pagination block in the same response reports `total: 193` across `total_pages: 10` at `limit: 20`, so the whole sample is 10 calls: 10 × 1 credit = 10 credits. The [pagination guide](https://perceptlayer.com/blog/paginate-web-data-api-python) covers safe page loops.
## What do CarGurus and AutoTrader UK return instead?
CarGurus returns the richest record for pricing work in the recorded sample: a VIN, a `trim`, a drivetrain, `days_on_market` and a `seller_type`. AutoTrader UK returns a clean price and year but keeps trim inside a text string. Both are single calls per page at 1 credit, so the difference is in the fields, not the cost.
```bash
curl "https://api.perceptlayer.com/v1/cargurus/search?make_model_trim_paths=m26%2Fd126&distance=50000&sort=best_match" \
-H "X-API-Key: $API_KEY"
```
From the recorded CarGurus response:
```json
{
"listing_title": "1996 GMC Suburban",
"vin": "…",
"year": 1996,
"trim": "K1500 4WD",
"price": { "amount": 7995, "currency": "USD", "rating": "NA" },
"mileage": { "value": 175456, "unit": "MILES" },
"days_on_market": 14,
"seller_type": "DEALER",
…
}
```
The [CarGurus search endpoint](https://perceptlayer.com/apis/cargurus/search) takes `make_model_trim_paths` ( `m26/d126` above is a make and model path), `price_min`, `price_max`, `distance`, `sort` and `page`. You can sort by `date` or `deal_score` as well as `price` and `mileage`. The [makes](https://perceptlayer.com/apis/cargurus/makes) and [models](https://perceptlayer.com/apis/cargurus/models) endpoints list the IDs.
The [AutoTrader UK search endpoint](https://perceptlayer.com/apis/autotrader-uk/search) requires a `postcode` and filters on `min_mileage`, `max_mileage`, `min_year_manufactured`, `max_year_manufactured` and `seller_type` ( `private` or `trade`). The recorded excerpt looks like this:
```json
{
"title": "BMW 5 Series",
"sub_title": "2.0 518d SE Euro 6 (s/s) 4dr",
"price": { "amount": 2200, "currency": "GBP" },
"seller_type": "PRIVATE",
"tracking_context": { "make": "BMW", "model": "5 Series", "year": 2014, "price_indicator": "NOANALYSIS" },
…
}
```
Mileage isn't in that excerpt. You can still get at it: filter with `min_mileage` and `max_mileage` to build mileage bands, or sort by `mileage`. Set `price_search_type=total` so you collect full prices rather than monthly finance figures.
## Where does cross-market comparison break down?
It breaks in five places: currency, mileage units, trim vocabulary, seller-type labels and the marketplace's own deal rating. Each is a mechanical fix, but only if you handle it before pooling the data. Skip any one and a "UK cars are cheaper" result may just be pounds against euros.
- **Currency and units.** Prices arrive as `EUR`, `USD` and `GBP`. CarGurus mileage is in miles, AutoScout24 in kilometres. Convert mileage to one unit, and model each market's price in its own currency until you've chosen an exchange-rate source and date.
- **Trim.** CarGurus gives `trim` as a field. AutoScout24 has no trim field in the recorded record: `variant` is a body variant ( `Touring`, `Limousine`) and `motor_type` the engine designation. AutoTrader UK embeds trim wording in `sub_title`. Matching "the same car" across markets means parsing, and some parsing will fail.
- **Seller type.** `Dealer` or `PrivateSeller` on AutoScout24, `DEALER` on CarGurus, `PRIVATE` on AutoTrader UK. Map them to one vocabulary. Keep the flag as a feature and let your data show whether it matters.
- **Deal ratings.** AutoScout24 has `price.evaluation`, CarGurus `price.rating`, AutoTrader UK `price_indicator`. They are separate fields with different values ( `1` and `2`, `NA`, `NOANALYSIS` in the recorded responses), and the responses don't say how each is computed. Don't pool them, and don't use one as your target if you're predicting price.
- **Localised text.** The recorded AutoScout24 `transmission` value is `Schaltgetriebe`, not "manual". Filter with the coded values from the taxonomy endpoint and normalise display text yourself.
One caveat applies everywhere: the price in each record is the advertised price as found at the time of the call. The recorded responses carry no sale-price field, and a negotiated sale can land away from the ask. If you need mileage you can trust, official records beat adverts: in the UK, the [GOV.UK MOT history service](https://www.gov.uk/check-mot-history) shows the mileage recorded at each test. For decoding a CarGurus `vin` into factory specs, the [NHTSA vPIC API](https://vpic.nhtsa.dot.gov/api/) decodes a VIN into key-value pairs.
## How do you normalise three marketplaces into one table?
Write one small mapper per marketplace that outputs the same keys, and keep the currency as a column. The script below fetches one page from each source and prints a pooled table; the AutoTrader UK mileage stays `None` because the search record doesn't carry it.
```python
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
KM_PER_MILE = 1.609344
def listings(path, **params):
r = requests.get(BASE + path, headers=HEADERS, params=params, timeout=30)
r.raise_for_status()
return r.json()["data"]["listings"]
def from_autoscout24(l):
return {
"source": "autoscout24",
"currency": l["price"]["currency"],
"price": l["price"]["amount"],
"km": (l.get("mileage") or {}).get("value_km"),
"year": (l.get("first_registration") or {}).get("year"),
"trim": f'{l.get("variant", "")} {l.get("motor_type", "")}'.strip(),
"seller": "dealer" if l["seller"]["type"] == "Dealer" else "private",
"days_listed": None,
}
def from_cargurus(l):
m = l.get("mileage") or {}
km = m["value"] * KM_PER_MILE if m.get("unit") == "MILES" else None
return {
"source": "cargurus",
"currency": l["price"]["currency"],
"price": l["price"]["amount"],
"km": km,
"year": l.get("year"),
"trim": l.get("trim"),
"seller": l["seller_type"].lower(),
"days_listed": l.get("days_on_market"),
}
def from_autotrader_uk(l):
return {
"source": "autotrader-uk",
"currency": l["price"]["currency"],
"price": l["price"]["amount"],
"km": None,
"year": (l.get("tracking_context") or {}).get("year"),
"trim": l.get("sub_title"),
"seller": l["seller_type"].lower(),
"days_listed": None,
}
rows = [
*map(from_autoscout24, listings("/v1/autoscout24/search", market="de", make_id=13, model_id=1639, limit=20)),
*map(from_cargurus, listings("/v1/cargurus/search", make_model_trim_paths="m26/d126", distance=50000)),
*map(from_autotrader_uk, listings("/v1/autotrader-uk/search", postcode="SW1A1AA", price_search_type="total", make="BMW")),
]
for row in rows:
print(row)
```
That's 3 calls × 1 credit = 3 credits. Add `page` loops to build a real sample, and keep a `collected_at` timestamp on each row so repeat pulls become a price history.
## What does a monthly price snapshot cost?
A repeatable snapshot is the pages in your sample times the number of pulls. Using the recorded AutoScout24 search, 193 listings at 20 per page is 10 calls. Pulled weekly for a year, that's 52 × 10 = 520 credits. The free tier's 100 credits on signup cover the first 10 weekly pulls; the rest of the year needs a pack. Failed calls cost nothing.
Add a second marketplace and the arithmetic stays visible: 10 pages from each of three sources is 30 credits per snapshot. Credits come in prepaid packs that last 12 months; the [pricing page](https://perceptlayer.com/pricing) has what credits cost, and [credits in the docs](https://docs.perceptlayer.com/credits) explains debits. If a snapshot job runs unattended, read the [rate limit headers](https://docs.perceptlayer.com/rate-limits) and wait on a 429 for the `Retry-After` seconds.
Next step: [get a free API key](https://perceptlayer.com/signup), run the AutoScout24 call above in the playground on its [API page](https://perceptlayer.com/apis/autoscout24), and check which fields come back for the make you care about. For the same field-by-field approach on property data, see [real estate listing data for valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields).
## APIs in this post
- [AutoScout24 **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autoscout24)
- [CarGurus **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/cargurus)
- [AutoTrader UK **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autotrader-uk)
## Frequently asked questions
### Which field matters most for predicting a used car's price?
Mileage and first-registration year are the first features to test, alongside make, model and trim; your own data will show their weights. In the recorded AutoScout24 results, a 316d Touring from a dealer (215,000 km, first registered 06/2013) asks EUR 5,700, while a 316d Limousine from a private seller (177,000 km, 01/2012) asks EUR 5,800. A 38,000 km gap moved the ask by only EUR 100 because body, seller and age differ too, which is why you test fields together.
### Do these endpoints return the price a car actually sold for?
Not in the recorded responses. Each has one price field, `price.amount`, with no separate sale-price field, and data is returned as found at the time of the call. Treat listing data as a view of advertised levels, and confirm any sale-price need in the playground before you build around it.
### How do I get listing age for AutoScout24 or AutoTrader UK?
The recorded search responses for those two don't include a listing-age field; CarGurus returns `days_on_market`. For the others you can sort by `age` (AutoScout24) or `most_recent` (AutoTrader UK) to order by recency, or record the first date you see each `listing_id` or `advert_id` in repeated pulls and compute age yourself.
### Can I cover several countries with one key?
Yes. One key works across the whole catalogue, including these three marketplaces. AutoScout24 takes a `market` parameter with values `de`, `at`, `be`, `it`, `fr`, `nl`, `es`, `com` and `pl`. Each call costs 1 credit. Keep the currency and mileage unit per row, since they differ by market.
### What happens if a call fails?
A failed call costs nothing and returns `X-Credits-Used: 0`. Errors come back as an HTTP status with a JSON body holding `code`, `message` and `request_id`, such as `rate_limited` (429) or `invalid_parameters` (422). A client timeout is the exception: the request may have succeeded and been billed. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
used cars car listings price analysis autoscout24 cargurus autotrader uk
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 4 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [AutoScout24 API: Search European Car Listings as JSON](https://perceptlayer.com/blog/autoscout24-api-car-listings-json)
Search AutoScout24 listings as JSON: make\_id and price filters, a recorded BMW response, and what a monthly price sweep costs in credits.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 4 Nov 2026 Perceptlayer 7 min read
## [LinkedIn Jobs API: Job Listings as JSON](https://perceptlayer.com/blog/linkedin-jobs-api)
Search public LinkedIn job listings with jobs-search and fetch one posting with job, at 1 credit a call: parameters, cURL and a weekly hiring-signal job.
---
title: "Google Events API: Find Local Events as JSON | Perceptlayer"
description: "Search Google Events as JSON with one GET: q, hl, gl, location and start parameters, a recorded London response, and 1 credit per call."
url: https://perceptlayer.com/blog/google-events-api-local-events
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Events API: Find Local Events as JSON
19 Aug 2026 Updated 6 Nov 2026 Perceptlayer 8 min read
Send a `GET` to `/v1/google-events/search` with a query such as `concerts in austin`, and you get Google's event listings back as JSON: title, date, address, venue, ticket links and a thumbnail. The call costs 1 credit, and a failed call costs nothing. This guide covers the parameters, a recorded response, an honest look at the date and location filters, and a small script that builds a city events feed.
## Key takeaways
- The [Google Events API](https://perceptlayer.com/apis/google-events) has two endpoints: `GET /v1/google-events/search`, covered here, and `details`, which takes an `event_token`. For search, only `q` is required; `hl`, `gl`, `location`, `uule`, `htichips` and `start` are optional.
- Each successful call costs 1 credit. A 50-city feed that runs three queries per city costs 150 credits per refresh.
- There is no date parameter you can rely on. Put the timeframe in `q` ("this weekend"), then filter on `date.start_time`, which is in UTC.
- Location comes from the wording of `q`, `location`, `uule` and `gl`. Treat them as hints and check `address` in the results.
- Free accounts get 100 credits on signup, so you can build and test a feed before buying anything.
## What does the Google Events API return?
The endpoint returns the event cards Google shows for a search such as "events in london this weekend", as structured JSON. Each item in `events_results` has a `position`, `title`, a `date` object, an `address` array, a `link`, a `venue` object, `ticket_info` entries and a `thumbnail`. The response also echoes your inputs in `search_parameters` and includes a `pagination` object.
That makes it a fit for city guides, "what's on" widgets, newsletters and agents that answer "what can I do this weekend". It isn't a catalogue of every event in a city. You get what Google ranks for the query you send, and the data is collected from publicly available sources and returned as found at the time of the call.
If you need ticketing, inventory or on-sale data from a single organiser, that organiser's own API usually fits better. Ticketmaster, for example, publishes its own [Discovery API](https://developer.ticketmaster.com/products-and-docs/apis/discovery-api/v2/) for its events. For breadth across venues and organisers in one query, a search-based endpoint is the more practical route.
## How do you make your first request?
Send the key in the `X-API-Key` header and put the search in `q`. Keys start with `sk_live_`, and you get one free by [signing up](https://perceptlayer.com/signup) and verifying an email address. The [authentication docs](https://docs.perceptlayer.com/authentication) cover the `api_key` query parameter for places where headers aren't possible.
```bash
curl "https://api.perceptlayer.com/v1/google-events/search?q=concerts+in+austin&hl=en&gl=us" \
-H "X-API-Key: $API_KEY"
```
Every successful response carries `X-Credits-Used` and `X-Credits-Remaining` headers, so you can check what the call cost without parsing the body. You can also run the same call from the playground on the [Google Events search endpoint page](https://perceptlayer.com/apis/google-events/search) before writing any code.
## Which parameters does the search endpoint take?
The endpoint takes one required parameter, `q`, and six optional ones. Types and length limits are the only documented constraints, so the table sticks to those and adds notes on how each one is meant to be used.
| Parameter | Type | Required | Limit | Notes |
| --- | --- | --- | --- | --- |
| `q` | string | yes | 255 characters | The search text, such as `events in london this weekend`. |
| `hl` | string | no | none documented | Interface language, for example `en`. |
| `gl` | string | no | 2 characters | Country code, for example `us`. |
| `location` | string | no | 255 characters | A place name to anchor the search. |
| `uule` | string | no | 500 characters | Google's encoded location value, for when you already have one. |
| `htichips` | string | no | 200 characters | A filter chip value. Allowed values aren't documented here. |
| `start` | integer | no | none documented | Result offset, for paging. |
Defaults and page sizes aren't documented, so don't hard-code either. Read `events_results` and `pagination` in the response instead.
Invalid input returns `invalid_parameters` (422), for example a `q` over 255 characters. The [errors docs](https://docs.perceptlayer.com/errors) list every code, and since a failed call costs nothing, a bad request is only a lost minute.
## What does a real response look like?
Here is a recorded response for `q=events in london this weekend` with `hl=en` and `gl=uk`. The excerpt is trimmed with `…` and shows the first event only.
```bash
curl "https://api.perceptlayer.com/v1/google-events/search?q=events+in+london+this+weekend&hl=en&gl=uk" \
-H "X-API-Key: $API_KEY"
```
```json
{
"search_parameters": {
"engine": "google_events",
"q": "events in london this weekend",
"gl": "uk",
"hl": "en",
"start": 0
},
"search_information": {
"events_results_state": "Results for exact spelling"
},
"events_results": [
{
"position": 1,
"title": "Halloween River Cruise",
"date": {
"when": "Sat, 24 Oct 2026, 19:00",
"start_time": "2026-10-24T18:00:00Z",
"end_time": "2026-10-24T19:00:00Z"
},
"address": [
"Riverside Building, London Eye, County Hall, Westminster Bridge Rd, London SE1 7PB"
],
"description": "A 60-minute London Eye River Cruise along the Thames with live actors telling ghost stories of Jack the Ripper, the ghost of Captain Kidd and the haunted cries …",
"ticket_info": [
{
"source": "Mato Events",
"link": "https://ma.to/event/london-eye-halloween-river-cruise-2026-10-24",
"link_type": "tickets"
},
{
"source": "londoneye.com",
"link": "https://www.londoneye.com/",
"link_type": "more info"
}
],
"venue": {
"name": "London Eye",
"rating": 4.5,
"reviews": 206031,
"link": "https://www.google.com/search?q=London+Eye&ludocid=4796882358840715922"
},
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSIyGJkdedlIlKt-RDN0ud-FP177CCvK_cM-VDPtGilIsEngLzXTMXfTGmHpgIvc6S0f3hXZaJaUcgcI3w"
}
],
"pagination": {
"current_page": 1,
"start": 0
}
}
```
A few details in the recording matter when you build on it:
- `date.when` is display text in local time ("Sat, 24 Oct 2026, 19:00"), while `start_time` is UTC. The 19:00 event has a `start_time` of `18:00:00Z` because London was on summer time that day.
- The second event in the recording, a ghost walk, has `when` set to "Sun, 25 Oct 2026" with no clock time. Its `start_time` and `end_time` are both `2026-10-24T23:00:00Z`. Date-only events can have identical start and end times, so don't treat the pair as a duration.
- `description` is cut off with an ellipsis and the same event shows `?` where the source text had other characters. Show it as a teaser, and link to the event instead of republishing it.
- `ticket_info` mixes `tickets` and `more info` links, distinguished by `link_type`.
## How reliable are the date and location filters?
There is no `date` or `from`/ `to` parameter. The timeframe lives in the wording of `q` ("tonight", "this weekend", "in november") and possibly in `htichips`, whose accepted values aren't documented here. Both steer Google's ranking. Neither guarantees every result falls inside your window, so filter again on your side.
The recorded call above is a fair example: it asked for "this weekend" and the events it holds fall on 24 and 25 October 2026. That is what you'd hope for, but it comes from Google's interpretation of the phrase, and "weekend" depends on the day you run the query.
Location works the same way:
- **In `q`**: "concerts in austin" carries the city in the text, as in the first example.
- **`location`**: a free-text place name up to 255 characters, for when you'd rather keep the city out of the query.
- **`uule`**: Google's encoded location string, useful if you already generate them.
- **`gl`**: a two-character country bias. The recorded call used `gl=uk`, and it returned London events. Google's own code for the United Kingdom is usually `gb`, and we haven't documented the accepted `gl` values, so try `gb` if `uk` doesn't bias results the way you expect.
Compare `address` against the city you asked for and drop mismatches. Run a few queries in the playground before choosing between `location` and a city in `q`, because we haven't documented which wins when they disagree.
## How do you build a city events feed?
A city feed is a handful of query phrasings per city, a page or two of each, merged and deduplicated, then filtered to a time window. The script below does that with `requests`. It pages by advancing `start` by the number of events it just received, which assumes `start` is a plain offset. Confirm that in the playground before relying on it.
```python
import os
import time
from datetime import datetime, timedelta, timezone
from zoneinfo import ZoneInfo
import requests
URL = "https://api.perceptlayer.com/v1/google-events/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def fetch(q, gl, start=0):
for _ in range(3):
r = requests.get(
URL,
params={"q": q, "hl": "en", "gl": gl, "start": start},
headers=HEADERS,
timeout=30,
)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json()
raise RuntimeError(f"gave up on {q!r}")
def city_feed(city, gl, tz, days=7, pages=2):
phrasings = [f"events in {city} this weekend", f"concerts in {city}", f"things to do in {city}"]
now = datetime.now(timezone.utc)
cutoff = now + timedelta(days=days)
seen = {}
for q in phrasings:
start = 0
for _ in range(pages):
events = fetch(q, gl, start).get("events_results", [])
if not events:
break
for e in events:
when = e.get("date", {}).get("start_time")
if not when:
continue
begins = datetime.fromisoformat(when.replace("Z", "+00:00"))
if not now <= begins <= cutoff:
continue
key = (e["title"].lower(), when, e.get("venue", {}).get("name"))
seen.setdefault(key, {
"title": e["title"],
"starts_local": begins.astimezone(ZoneInfo(tz)).isoformat(),
"venue": e.get("venue", {}).get("name"),
"address": ", ".join(e.get("address", [])),
"tickets": [t["link"] for t in e.get("ticket_info", []) if t.get("link_type") == "tickets"],
})
start += len(events)
return sorted(seen.values(), key=lambda e: e["starts_local"])
if __name__ == "__main__":
for event in city_feed("london", "uk", "Europe/London"):
print(event["starts_local"], event["title"], "-", event["venue"])
```
Three details in that script come straight from the recorded response. It filters on `start_time` because that field is machine-readable UTC. It converts to the city's time zone for display. And it deduplicates on title, start time and venue, because the same event can surface under more than one query. The same idea at larger scale is in [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources).
The script retries `429` and `503` after the `Retry-After` seconds. One caution: requests have no idempotency key, so a call that timed out on your side may still have succeeded and been billed. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) cover the per-minute counts, and free accounts get 1 request a second.
## What does an events feed cost per refresh?
Every successful call costs 1 credit, so a refresh costs queries × pages × cities, in credits. Failed calls cost nothing and return `X-Credits-Used: 0`. The script above runs 3 phrasings with up to 2 pages each, so one city costs at most 6 credits per refresh.
| Setup | Calls | Credits |
| --- | --- | --- |
| 1 city, 3 phrasings, 2 pages | 6 | 6 |
| 50 cities, 3 phrasings, 1 page | 150 | 150 |
| 50 cities, 3 phrasings, 2 pages, daily for 30 days | 9,000 | 9,000 |
The last row is 50 × 3 × 2 = 300 calls a day, and 300 calls × 30 days × 1 credit = 9,000 credits. That fits inside the Starter pack's 10,000 credits, and purchased credits last 12 months. The 100 free credits on signup don't cover a day of that feed, but they cover a full test of 16 cities at 6 credits each. See [pricing](https://perceptlayer.com/pricing) for what credits cost and [how credits are counted](https://docs.perceptlayer.com/credits) for the details.
Cutting cost is mostly a question of calls you don't make. Most event lists don't change by the hour, so a daily or twice-daily refresh is enough for a guide or a newsletter. If you need to schedule the pulls, [cron, queues or workflows](https://perceptlayer.com/blog/schedule-web-data-pulls-cron-queue) compares the options.
## When should you use this instead of another source?
Use the endpoint when you want what people see in a Google events search, across many venues, without scraping it yourself. Use your own pipeline, or an organiser's API, when you need complete inventory for one venue or one ticketing platform. The endpoint returns ranked search results, not a database of everything on sale.
If you publish events on your own site, Google documents how to mark them up in its [event structured data guide](https://developers.google.com/search/docs/appearance/structured-data/event). That is the reverse direction: it helps your events appear in Google, while this endpoint reads what Google shows. Both are useful if you run a venue and also want to track what's listed around you.
For agents, the same endpoint is available through the MCP server, so an assistant can answer "what's on in Lisbon on Saturday" with a live call. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) show how to add it. For related Google endpoints, [Google Hotels](https://perceptlayer.com/blog/google-hotels-api) pairs naturally with an events feed for trip planning, and the [Google Places alternative](https://perceptlayer.com/blog/google-maps-places-api-alternative) covers venue data.
Your next step: [get a free API key](https://perceptlayer.com/signup), then run `concerts in austin` from the playground on the [Google Events search page](https://perceptlayer.com/apis/google-events/search) and compare the `address` fields with the city you asked for.
## APIs in this post
- [Google Events **1 credit per call** · 2 endpoints](https://perceptlayer.com/apis/google-events)
## Frequently asked questions
### How much does a Google Events API call cost?
A successful call to `/v1/google-events/search` costs 1 credit. Failed calls cost nothing and return `X-Credits-Used: 0`. Free accounts get 100 credits after verifying an email address, with no credit card. That's 100 calls before you buy anything. The [pricing page](https://perceptlayer.com/pricing) shows what credit packs cost.
### Can I filter Google events by date?
There's no date parameter. Put the timeframe in `q`, such as "this weekend" or "tonight", and then filter the results on `date.start_time`, which is in UTC. `htichips` also accepts a filter string, but its allowed values aren't documented, so test any value in the playground first.
### How do I get events for a specific city?
Include the city in `q`, as in `concerts in austin`, or pass a place name in `location`. You can also add `gl` for the country. Then check each result's `address` array against your city, because these inputs steer the ranking and don't guarantee that every result matches.
### What happens when I hit the rate limit?
You get a `429` response with a `Retry-After` header giving the seconds to wait. Free accounts get 1 request a second, and paid accounts run at the rate of the credits they're using, at least 5 a second. Wait the stated time and retry. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) have the details.
### Is there a way to call it from an AI agent?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing. `call_endpoint` runs the Google Events search and spends 1 credit on success. See the [AI agents docs](https://docs.perceptlayer.com/ai-agents).
google events local events events api search json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 28 Sept 2026 Updated 22 Oct 2026 Perceptlayer 7 min read
## [Google News API: Search News Articles as JSON](https://perceptlayer.com/blog/google-news-api)
One GET call to /v1/google-news/news returns articles with title, link, source and ISO date as JSON for 1 credit. Parameters, a real response, cost.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Sept 2026 Perceptlayer 6 min read
## [Google Patents API: Search Patents and Get Details](https://perceptlayer.com/blog/google-patents-api-search-details)
Search Google Patents by keyword, inventor or assignee with one GET call, then fetch full details by patent\_id. Both endpoints cost 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 2 Aug 2026 Updated 26 Oct 2026 Perceptlayer 6 min read
## [Yelp Reviews API: Business Search and Reviews as JSON](https://perceptlayer.com/blog/yelp-reviews-api-json)
Three Yelp endpoints return search results, business details and reviews as JSON, 1 credit per call. Parameters, a real response and a cost example.
---
title: "Google Flights API: Fares, Date Ranges and Airports"
description: "Get Google Flights fares as JSON: one-way, round-trip and date-range calls, a recorded JFK to LAX response, and the credit cost of a daily fare check."
url: https://perceptlayer.com/blog/google-flights-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Flights API: Fares, Date Ranges and Airports
19 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
Google retired its flight-fare API, QPX Express, in 2018, so to get Google Flights fares in code you call an API that returns them as JSON, as found at the time of the call. Perceptlayer's Google Flights API has nine endpoints: one-way, round-trip, date-range, calendar, deals, booking details, airports, airlines and autocomplete. Each successful call costs 1 credit, failed calls cost nothing, and every account gets 100 free credits on signup.
One limit up front: we recorded a response only for `one-way`. That is the only response shown in this article. For the other endpoints we list the parameters and link their pages, where the playground runs a real call.
## Key takeaways
- Google shut down its QPX Express flights API in April 2018. The Google Flights API here offers 9 endpoints for fares as JSON.
- `GET /v1/google-flights/one-way` needs only `origin`, `destination` and `departure_date`. It returns itineraries with `price`, `stops`, `legs` and `emissions`.
- `round-trip` adds `return_date`, and `date-range` takes `from_date` and `to_date` instead of a single date.
- Every endpoint costs 1 credit per successful call. A daily check of one route is 30 credits a month, so the 100 free credits on signup cover the first 3 months.
- Each flight carries a `booking_token` you can pass to `booking-details`.
## Is there an official Google Flights API?
No public one. Google's own flight-fare API was QPX Express, and Google said in 2017 that it would shut off access on April 10, 2018 ( [Engadget](https://www.engadget.com/2017-11-01-google-flight-data-api-shutdown.html), 2017). The Points Guy quotes a Google spokesperson giving the reason as low interest among its travel partners ( [The Points Guy](https://thepointsguy.com/2017/11/google-stop-flight-data-travel), 2017). Engadget adds that Google kept a separate enterprise QPX offering.
What exists today is partner-only. Google's [Flights Search developer page](https://developers.google.com/travel/flights) (2026) describes onboarding for airlines and online travel agencies, and says its materials are shared under NDA with select, invite-only partners. It describes Google Flights as a metasearch engine that links out to those partners. That is a feed for companies selling tickets, not a self-serve fare API for developers. If you want Google Flights fares in code, you need another route.
That leaves two options: build and maintain a scraper for the Google Flights page, or call an API that returns the page's fares as JSON. If you only need a few lookups, the website is fine. If you need fares in a script, an agent or a dashboard, the endpoints below are the shorter path. For the maintenance side of that trade-off, see [what maintaining a scraper really involves](https://perceptlayer.com/blog/scraper-vs-api-maintenance-cost).
## Which endpoints does the Google Flights API have?
The [Google Flights API](https://perceptlayer.com/apis/google-flights) has 9 endpoints, all `GET`, all 1 credit per successful call. Three are search endpoints (one-way, round-trip, date-range), two are `calendar` and `deals`, one takes a booking token from a search, and three are lookups for airports, airlines and place names. They sit under the [Travel](https://perceptlayer.com/verticals/travel) area of the catalogue.
| Endpoint | Returns | Required parameters |
| --- | --- | --- |
| [`/v1/google-flights/one-way`](https://perceptlayer.com/apis/google-flights/one-way) | One Way | `origin`, `destination`, `departure_date` |
| [`/v1/google-flights/round-trip`](https://perceptlayer.com/apis/google-flights/round-trip) | Round Trip | `origin`, `destination`, `departure_date`, `return_date` |
| [`/v1/google-flights/date-range`](https://perceptlayer.com/apis/google-flights/date-range) | Date Range | `origin`, `destination`, `from_date`, `to_date` |
| [`/v1/google-flights/booking-details`](https://perceptlayer.com/apis/google-flights/booking-details) | Booking Details | `booking_token`, `origin`, `destination`, `departure_date`, `airline`, `flight_number` |
| [`/v1/google-flights/airports`](https://perceptlayer.com/apis/google-flights/airports) | Airports | none |
| [`/v1/google-flights/airlines`](https://perceptlayer.com/apis/google-flights/airlines) | Airlines | none |
| [`/v1/google-flights/autocomplete`](https://perceptlayer.com/apis/google-flights/autocomplete) | Autocomplete | `q` |
You can try any of them in the playground on the API page before writing code.
## How do you search one-way fares?
Send `origin`, `destination` and `departure_date` to `GET /v1/google-flights/one-way` with your key in the `X-API-Key` header. The response lists flights with a price, stop count, airline and per-leg times. This call asks for JFK to LAX on 15 December 2026:
```bash
curl "https://api.perceptlayer.com/v1/google-flights/one-way?origin=JFK&destination=LAX&departure_date=2026-12-15" \
-H "X-API-Key: $API_KEY"
```
You don't have a key yet? [Get a free API key](https://perceptlayer.com/signup); the [quick start](https://docs.perceptlayer.com/quickstart) covers the first call and [authentication](https://docs.perceptlayer.com/authentication) covers the header. Here is an excerpt of the recorded response, trimmed with `…`:
```json
{
"flights": [
{
"price": 179,
"currency": "USD",
"total_duration_minutes": 384,
"stops": 0,
"airline_name": "JetBlue",
"emissions": {
"co2_kilograms": 426,
"typical_co2_kilograms": 344,
"difference_percent": 24
},
"booking_token": "CjRISVFvemhYdy1QZTBBQTR3SXdCRy0tLS0tLS0tLWVqY3J5N0FBQUFBR3JhOFJBQUFyOGdBEgZCNjIyMjMaCwiwiwEQAhoDVVNEOBxwsIsB",
"legs": [
{
"airline": "B6",
"flight_number": "2223",
"departure_airport": "JFK",
"arrival_airport": "LAX",
"departure_time": "2026-12-15T08:01:00",
"arrival_time": "2026-12-15T11:25:00",
"duration_minutes": 384
}
]
},
…
],
"search_metadata": {
"origin": "JFK",
"destination": "LAX",
"departure_date": "2026-12-15",
"cabin_class": "Economy",
"sort_by": "Top Flights",
"currency": "USD",
…
}
}
```
The second recorded itinerary was a nonstop Delta flight, number 773, at 189 USD and 378 minutes. Its `emissions.difference_percent` was -29, against 24 for the JetBlue flight above. `search_metadata` echoes the search, including the `sort_by` and `cabin_class` it applied.
### Which one-way parameters narrow the results?
The optional parameters filter and sort the list. Allowed values below are the ones the endpoint documents.
| Parameter | Type | Notes |
| --- | --- | --- |
| `adults`, `children`, `infants_in_seat`, `infants_on_lap` | integer | Passenger counts |
| `cabin_class` | string | `economy`, `premium_economy`, `business`, `first` |
| `max_stops` | string | `any`, `nonstop`, `one_or_fewer`, `two_or_fewer` |
| `sort_by` | string | `top_flights`, `cheapest`, `departure_time`, `arrival_time`, `duration`, `emissions` |
| `airlines[]` | list of string | Airline codes, up to 2 characters each |
| `max_price` | integer | Price ceiling |
| `max_duration_minutes` | integer | Duration ceiling |
| `exclude_basic`, `include_baggage` | boolean | Fare-type and baggage options |
| `departure_time_min`, `departure_time_max`, `arrival_time_min`, `arrival_time_max` | integer | Time windows |
| `currency`, `hl`, `gl` | string | Currency (up to 3 characters), language and country |
For a price-first view, add `sort_by=cheapest&max_stops=nonstop`.
## How do you search round trips?
Use `GET /v1/google-flights/round-trip` with the same three parameters as one-way plus `return_date`. It accepts the same passenger, cabin, stop, sort and filter parameters, plus `api_version` (documented value: 2) and `departure_token`, a string of up to 16,384 characters.
```bash
curl "https://api.perceptlayer.com/v1/google-flights/round-trip?origin=JFK&destination=LAX&departure_date=2026-12-15&return_date=2026-12-22&sort_by=cheapest" \
-H "X-API-Key: $API_KEY"
```
We have no recorded `round-trip` response either, so this section stops at the request. The [Round Trip page](https://perceptlayer.com/apis/google-flights/round-trip) lists every parameter and has the playground for a real call. The call costs 1 credit, the same as one-way.
## How do you search a range of dates in one call?
`GET /v1/google-flights/date-range` takes `from_date` and `to_date` along with `origin` and `destination`, in place of a single `departure_date`. An optional `trip_duration` integer is also accepted. Each successful call costs 1 credit.
We have no recorded `date-range` response, so we won't describe what it returns here; the playground on its page runs a real call. The cost angle is documented, though. Covering December with `one-way` takes one call per departure date, so 31 credits. One `date-range` call over the same window is 1 credit. Whether its output fits your use is something to check in the playground before you rely on it.
```bash
curl "https://api.perceptlayer.com/v1/google-flights/date-range?origin=JFK&destination=LAX&from_date=2026-12-01&to_date=2026-12-31" \
-H "X-API-Key: $API_KEY"
```
It also accepts passengers, `cabin_class`, `exclude_basic`, `max_stops`, `currency`, `outbound_times`, `bags` and `api_version`. The [Date Range page](https://perceptlayer.com/apis/google-flights/date-range) shows what a call returns when you run it in the playground.
## How do you look up airports, airlines and booking details?
The lookup endpoints take little or no input. `GET /v1/google-flights/airports` and `GET /v1/google-flights/airlines` take no parameters and return the airports and airlines lists. `GET /v1/google-flights/autocomplete` takes `q` (up to 255 characters) with optional `hl` and `gl`, and takes free text; its page shows the output.
```bash
curl "https://api.perceptlayer.com/v1/google-flights/airlines" \
-H "X-API-Key: $API_KEY"
```
`booking-details` is the follow-up to a search. Every flight in the one-way response carries a `booking_token`. Pass it with `origin`, `destination`, `departure_date`, `airline` (a 2-character code like `B6`) and `flight_number` (like `2223`), all of which appear in the recorded flight above. What the call returns is on the [Booking Details page](https://perceptlayer.com/apis/google-flights/booking-details).
## When does another source fit better?
This API returns fares as found at the time of the call, and they may differ when you book. Treat a price as a snapshot for tracking, comparison or an agent's answer, not as a quote. If you need a bookable, ticketable fare, or you sell tickets yourself, an airline's own API or a booking-grade source is the better fit. For a handful of one-off lookups, the Google Flights website is enough.
## What does a daily fare check cost?
A daily fare check costs 1 credit per route per day, because every successful call costs 1 credit. Tracking one route for 30 days is 30 × 1 = 30 credits, inside the 100 free credits you get once, on signup, after verifying an email; they cover 3 months of it. No credit card is needed.
Here is the arithmetic for larger watches:
| Watch (30 days) | Calls | Credits per month | Covered by |
| --- | --- | --- | --- |
| 1 route, one-way | 30 | 30 | free credits for the first 3 months, then a pack |
| 1 route, one-way + round-trip | 60 | 60 | free credits for the first month, then a pack |
| 20 routes, one call a day | 600 | 600 | free credits for the first 5 days, then a pack |
| 100 routes, one call a day | 3,000 | 3,000 | free credits for the first day, then a pack |
The 100-route watch is 100 routes × 30 daily calls. The 100 free credits cover the first 100 calls, one day of it. For the rest of the month you buy a Starter pack of 10,000 credits. Packs are sold whole, so 2,900 calls × 1 credit = 2,900 credits used, and the unused 7,100 credits last 12 months and cover the next two months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Failed calls return `X-Credits-Used: 0`, and each success reports `X-Credits-Remaining`. See [credits](https://docs.perceptlayer.com/credits).
A minimal Python check that prints the cheapest nonstop and your balance:
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/google-flights/one-way",
params={
"origin": "JFK",
"destination": "LAX",
"departure_date": "2026-12-15",
"sort_by": "cheapest",
"max_stops": "nonstop",
},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
resp.raise_for_status()
flights = resp.json()["flights"]
best = flights[0]
print(best["airline_name"], best["price"], best["currency"])
print("credits left:", resp.headers["X-Credits-Remaining"])
```
Run it from a scheduler once a day and store the price. To avoid repeat charges on identical lookups, see [caching API responses](https://perceptlayer.com/blog/cache-web-data-api-responses).
## How do you handle errors and retries?
Errors return an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. The ones you'll meet are `invalid_parameters` (422) for a bad airport code or date, `rate_limited` (429) and `temporarily_unavailable` (503), which both carry a `Retry-After` header with the seconds to wait. See [errors](https://docs.perceptlayer.com/errors) and [rate limits](https://docs.perceptlayer.com/rate-limits).
Requests have no idempotency key, so a call that timed out on your side may still have succeeded and been billed. Read how to [retry without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) before you wrap these calls in a loop. For agents, the same endpoints are available through the [MCP server](https://docs.perceptlayer.com/ai-agents).
Next step: run the JFK to LAX call above in the [playground](https://perceptlayer.com/apis/google-flights), then move it into a daily job.
## APIs in this post
- [Google Flights **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/google-flights)
## Frequently asked questions
### Does Google have an official Flights API?
No public one. Google's QPX Express API was announced for shutdown in 2017, with access ending on April 10, 2018 ( [Engadget](https://www.engadget.com/2017-11-01-google-flight-data-api-shutdown.html), 2017). Google's [Flights Search developer page](https://developers.google.com/travel/flights) (2026) now describes a program for airlines and online travel agencies, shared under NDA with select, invite-only partners. Perceptlayer's Google Flights API returns fares as JSON from publicly available sources, as found at the time of the call.
### How much does a Google Flights API call cost?
Each successful call to any of the 9 endpoints costs 1 credit. Failed calls cost nothing. You get 100 free credits after verifying an email, with no credit card. After that, credits come in prepaid packs from 10,000 to 5,000,000 credits, so 20,000 calls × 1 credit = 20,000 credits. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
### Can I search a range of dates in one call?
`GET /v1/google-flights/date-range` takes `origin`, `destination`, `from_date` and `to_date`, and costs 1 credit per successful call. It also accepts an optional integer `trip_duration`. Run it in the playground on the [Date Range page](https://perceptlayer.com/apis/google-flights/date-range) to see what it returns.
### Do I need an airport code or can I search by city name?
The `origin` and `destination` parameters accept up to 3 characters, so send IATA airport codes such as `JFK` or `LAX`. If you only have free text, call `autocomplete` with `q` to resolve it, or use `airports` to get the full list.
### Can an AI agent call the Google Flights API?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only read the catalogue and cost nothing. `call_endpoint` runs a flights endpoint with its parameters and spends 1 credit on success. See the [MCP docs](https://docs.perceptlayer.com/ai-agents).
travel flights google flights fares airports
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 1 Sept 2026 Perceptlayer 6 min read
## [Kiwi.com API: Search Fares and Cheapest Dates as JSON](https://perceptlayer.com/blog/kiwi-flights-api-cheapest-dates)
Search Kiwi.com fares by origin, destination and date, then scan a window with calendar-cheapest-dates. A recorded London–Barcelona response and costs.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 4 Nov 2026 Perceptlayer 9 min read
## [Google Flights Scraper or API: What You Get](https://perceptlayer.com/blog/google-flights-scraper-vs-api)
Compare a Google Flights scraper with 9 endpoints at 1 credit a call: a recorded JFK to LAX search with price, stops, CO2 and a booking\_token per flight.
---
title: "Build an AI Property Research Agent with Live Listings"
description: "A Python agent that pulls Redfin and Zillow data for one home, compares list price, Zestimate, last sale and tax value, and caps each question at 4 credits."
url: https://perceptlayer.com/blog/ai-property-research-agent
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Build an AI Property Research Agent with Live Listings
17 Aug 2026 Perceptlayer 7 min read
An AI real estate research tool needs two things: live listing and valuation data from more than one source, and a model that explains the numbers without inventing any. This tutorial builds one in Python. Given a Redfin property ID, it pulls the listing and valuation from Redfin and the matching Zillow listing nearby, reconciles list price, Zestimate, last sale and tax assessment, and has Claude explain the gaps. A question costs 3 credits, capped at 4.
## Key takeaways
- Three calls answer one question: `GET /v1/redfin/property`, `GET /v1/redfin/valuation` and `GET /v1/zillow/search` around the home's coordinates, at 1 credit each.
- Code chooses the calls and the model only explains the result, so the cost per question is fixed at 3 credits, with a hard cap of 4.
- Estimates are often missing: the recorded Redfin valuation returns `sectionPreviewText: "Estimate Not Available"`, and one of two recorded Zillow listings has no `zestimate`, only a tax assessment.
- Zillow and Redfin don't share IDs, so the agent matches on a normalised street address plus ZIP code, and says so when nothing matches.
- The data steps were tested on recorded responses with mocked HTTP calls; the full script hasn't been run against the live API or a model.
## What does the agent do, step by step?
It turns one property into a short, sourced explanation of what it's worth on paper. The plan is fixed, which keeps the cost predictable: code makes three calls, builds a facts object, and hands it to the model with instructions to use only those numbers. The model never decides which endpoints to call.
1. Fetch the home from the [Redfin Property endpoint](https://perceptlayer.com/apis/redfin/property): address, beds, baths, square feet, year built and coordinates.
2. Fetch its valuation from the [Redfin Valuation endpoint](https://perceptlayer.com/apis/redfin/valuation): list price, last sale price and date, and whether a Redfin Estimate is available.
3. Search Zillow within a quarter mile of the coordinates with the [Zillow API](https://perceptlayer.com/apis/zillow), and keep the listing whose street address and ZIP match.
4. Build the facts: every number with its source, and `null` for anything missing.
5. Ask Claude to compare the list price with each estimate that exists and to name what's missing.
You need Python 3.10 or later, a Perceptlayer API key and an Anthropic API key. [Get a free API key](https://perceptlayer.com/signup); verified accounts get 100 free credits once, enough for 33 questions. Install `pip install anthropic requests` and export `PERCEPTLAYER_API_KEY` and `ANTHROPIC_API_KEY`.
## Why compare Redfin and Zillow at all?
Because automated valuations disagree, and each is only as good as the data behind it. Both companies publish their own accuracy: Zillow reports a nationwide median error of about 2% for homes on the market and about 7% for off-market homes ( [Zillow](https://www.zillow.com/how-much-is-my-home-worth/), 2026), and Redfin reports similar figures for the Redfin Estimate ( [Redfin](https://www.redfin.com/redfin-estimate), 2026). A median error means half of estimates miss the sale price by more than that.
Both report much smaller errors for homes on the market, where a current listing's details are available, so an estimate close to the list price on a listed home is less independent than it looks. The useful signals are elsewhere: a large gap between list price and an estimate, a last sale far below today's price, or a tax assessment out of line with both. A second source also covers the case where one has no estimate at all, which, as the recordings below show, happens.
## How do you fetch the Redfin side?
Call the property and valuation endpoints with the same `property_id`, and the `listing_id` when you have one. Both are in a Redfin search result, and the `property_id` is the number at the end of a Redfin home URL, such as `/home/124182`. These are the exact requests behind the recordings used here:
```bash
curl "https://api.perceptlayer.com/v1/redfin/property?property_id=124182&listing_id=224635828" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/redfin/valuation?property_id=124182&listing_id=224635828" \
-H "X-API-Key: $API_KEY"
```
The property response gives the address and coordinates the next step needs. Here's an excerpt, trimmed with `…`:
```json
{
"data": {
"property_id": 124182,
"address": "2517 25th Ave W",
"city": "Seattle",
"state": "WA",
"zip": "98199",
"price": 2750000,
"beds": 3,
"baths": 4,
"sqft": 3570,
"year_built": 2005,
"latitude": 47.6416879,
"longitude": -122.3893426,
…
}
}
```
The valuation response carries the price history fields. Note the last line of this excerpt:
```json
{
"data": {
"listingPrice": 2750000,
"lastSoldPrice": 1050000,
"lastSoldDate": 1285830000000,
"priceInfo": {
"amount": 2750000,
"label": "Listed at Price",
…
},
…
"sectionPreviewText": "Estimate Not Available",
"propertyId": 124182
}
}
```
`lastSoldDate` is milliseconds since the epoch, 30 September 2010. And this home has no Redfin Estimate: `sectionPreviewText` says so. We don't have a recording of a valuation that includes an estimate, so the agent reports this status text rather than reading an estimate field it can't name. The [Redfin API guide](https://perceptlayer.com/blog/redfin-api-property-valuation) covers search, region codes and valuation in more depth.
## How do you find the same home on Zillow?
Search Zillow around the Redfin coordinates and match the address. `GET /v1/zillow/search` takes `latitude`, `longitude` and `radius_mi`, plus `listing_category` ( `category1` in the recorded request, which returned homes for sale) and `page_size`. A quarter-mile radius keeps the result set small; the agent then compares each listing's street address and ZIP with Redfin's.
```bash
curl "https://api.perceptlayer.com/v1/zillow/search?latitude=47.6416879&longitude=-122.3893426&radius_mi=0.25&listing_category=category1&page_size=50" \
-H "X-API-Key: $API_KEY"
```
We haven't run that request. The recorded Zillow search, a 5-mile radius around downtown Seattle, shows what a match would contribute. Here's an excerpt of its two listings, trimmed with `…`:
```json
{
"data": {
"listings": [
{
"zpid": 2068074790,
"address": { "streetAddress": "1124 Sunset Avenue SW", "zipcode": "98116", "city": "Seattle", "state": "WA" },
"price": { "value": 14000000, "pricePerSquareFoot": 1779 },
"estimates": { "zestimate": 13068300 },
…
},
{
"zpid": 49046647,
"address": { "streetAddress": "1627 33rd Avenue", "zipcode": "98122", "city": "Seattle", "state": "WA" },
"listing": { "listingStatus": "forSale", "marketingStatus": "comingSoon", … },
"price": { "value": 1050000, "pricePerSquareFoot": 500 },
"taxAssessment": { "taxAssessedValue": 949000, "taxAssessmentYear": "2025" },
…
}
],
"count": 20,
"total_matching_count": 2058,
…
}
}
```
The first listing has a Zestimate 6.7% below its asking price (13,068,300 against 14,000,000). The second has no Zestimate at all, but a 2025 tax assessment of 949,000, 90% of its asking price. Neither is the Redfin home above, so in a test on these recordings the agent correctly reports no Zillow match. Zillow writes "Avenue" where Redfin writes "Ave", which is why the matcher normalises suffixes and directions before comparing.
## What does the complete agent look like?
Here's the whole script. `get` counts credits from each response's `X-Credits-Used` header and refuses to call once the cap is reached. `research` makes the three calls and builds the facts. `explain` sends them to Claude with a system prompt that forbids new numbers. Set `CLAUDE_MODEL` to use another model.
```python
"""Research one US home from Redfin and Zillow data, then have Claude explain the numbers."""
import datetime
import json
import os
import re
import sys
import anthropic
import requests
API = "https://api.perceptlayer.com/v1"
HEADERS = {"X-API-Key": os.environ["PERCEPTLAYER_API_KEY"]}
MODEL = os.environ.get("CLAUDE_MODEL", "claude-opus-5-5")
CREDIT_CAP = 4 # a question needs 3 calls; one spare
spent = 0
def get(path, **params):
"""One API call, counted against the cap. Failed calls cost nothing."""
global spent
if spent >= CREDIT_CAP:
raise RuntimeError(f"credit cap of {CREDIT_CAP} reached")
r = requests.get(f"{API}/{path}", headers=HEADERS, params=params, timeout=60)
spent += int(r.headers.get("X-Credits-Used", "0"))
r.raise_for_status()
return r.json()["data"]
ABBREV = {"avenue": "ave", "street": "st", "drive": "dr", "road": "rd", "boulevard": "blvd",
"place": "pl", "court": "ct", "lane": "ln", "southwest": "sw", "southeast": "se",
"northwest": "nw", "northeast": "ne", "north": "n", "south": "s", "east": "e", "west": "w"}
def street_key(address, zip_code):
words = re.sub(r"[^a-z0-9 ]", " ", address.lower()).split()
return " ".join(ABBREV.get(w, w) for w in words) + f" {zip_code}"
def ms_to_date(ms):
return datetime.datetime.fromtimestamp(ms / 1000, datetime.timezone.utc).date().isoformat() if ms else None
def research(property_id, listing_id=None):
ids = {"property_id": property_id, **({"listing_id": listing_id} if listing_id else {})}
home = get("redfin/property", **ids)
value = get("redfin/valuation", **ids)
nearby = get("zillow/search", latitude=home["latitude"], longitude=home["longitude"],
radius_mi=0.25, listing_category="category1", page_size=50)
key = street_key(home["address"], home["zip"])
match = next((z for z in nearby.get("listings", [])
if street_key(z["address"]["streetAddress"], z["address"]["zipcode"]) == key), None)
facts = {
"address": f'{home["address"]}, {home["city"]}, {home["state"]} {home["zip"]}',
"beds": home.get("beds"), "baths": home.get("baths"), "sqft": home.get("sqft"),
"year_built": home.get("year_built"),
"redfin": {
"list_price": value.get("listingPrice"),
"price_label": value.get("priceInfo", {}).get("label"),
"last_sold_price": value.get("lastSoldPrice"),
"last_sold_date": ms_to_date(value.get("lastSoldDate")),
"estimate_status": value.get("sectionPreviewText"),
},
"zillow": None,
"credits_used": spent,
}
if match:
tax = match.get("taxAssessment", {})
facts["zillow"] = {
"zpid": match["zpid"],
"list_price": match.get("price", {}).get("value"),
"zestimate": match.get("estimates", {}).get("zestimate"),
"tax_assessed_value": tax.get("taxAssessedValue"),
"tax_assessment_year": tax.get("taxAssessmentYear"),
"status": match.get("listing", {}).get("marketingStatus"),
}
facts["credits_used"] = spent
return facts
SYSTEM = """You explain US home valuation data to a buyer.
Use only the numbers in the JSON you are given. Never estimate a missing value.
Say which values are missing and why that matters. Compare the list price with
each estimate that exists, as a percentage. Mention the last sale and its date.
Keep it under 200 words and end with what to check next."""
def explain(facts):
client = anthropic.Anthropic()
response = client.messages.create(
model=MODEL,
max_tokens=16000,
system=SYSTEM,
messages=[{"role": "user", "content": json.dumps(facts, indent=2)}],
)
if response.stop_reason == "refusal":
return "The model declined to answer."
return "".join(b.text for b in response.content if b.type == "text")
if __name__ == "__main__":
pid = int(sys.argv[1])
lid = int(sys.argv[2]) if len(sys.argv) > 2 else None
facts = research(pid, lid)
print(json.dumps(facts, indent=2))
print(explain(facts))
print(f"\nCredits used: {spent}")
```
Run it with a Redfin property ID and, optionally, a listing ID: `python property_agent.py 124182 224635828`.
## What does the agent return?
The facts object is the part we could test. With `requests.get` mocked to return the recorded Redfin property, Redfin valuation and Zillow search responses, `research(124182, 224635828)` made the three calls and returned this:
```json
{
"address": "2517 25th Ave W, Seattle, WA 98199",
"beds": 3,
"baths": 4,
"sqft": 3570,
"year_built": 2005,
"redfin": {
"list_price": 2750000,
"price_label": "Listed at Price",
"last_sold_price": 1050000,
"last_sold_date": "2010-09-30",
"estimate_status": "Estimate Not Available"
},
"zillow": null,
"credits_used": 3
}
```
That's an honest, if thin, result: a list price of 2,750,000 against a 2010 sale at 1,050,000, no Redfin Estimate and no Zillow match in the recorded search. The model's job is to say exactly that, plus what to check next, such as the [Zillow Property endpoint](https://perceptlayer.com/apis/zillow/property) for a direct lookup by `zpid`. We haven't run the explanation step against a model for this article, so we don't show its output.
The fields map to the questions a buyer asks. List price against estimates answers "is it priced like the market thinks?". The last sale answers "what did the owners pay?". The tax assessment is a third, slower-moving reference. For which listing fields matter in valuation models, see [real estate listing data for valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields).
## What does a question cost?
Three successful calls at 1 credit each, so 3 credits a question, with the cap at 4 so a retry fits but a loop doesn't. Failed calls cost nothing and return `X-Credits-Used: 0`, which is why `get` reads the header instead of counting calls. The [credits docs](https://docs.perceptlayer.com/credits) explain billing, and the model's tokens are billed separately by Anthropic.
| Questions a month | Credits |
| --- | --- |
| 100 | 300 |
| 1,000 | 3,000 |
| 10,000 | 30,000 |
The 100 free credits cover the first 33 questions once; after that you need a pack. Worked example: an internal tool answering 1,000 property questions a month spends 1,000 × 3 = 3,000 credits; 10,000 questions, 30,000 credits, fit in a Build pack of 50,000 credits. Purchased credits last 12 months; see [pricing](https://perceptlayer.com/pricing) for what credits cost. The free tier runs at 1 request a second, so a question's three calls take about three seconds; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the paid rates.
## How do you make it more robust?
Four changes cover most failures. Each is small, and each keeps the fixed-plan design.
1. **Widen the Zillow search on no match.** Retry once at 0.5 miles before giving up; the cap of 4 allows one extra call.
2. **Fall back to a direct Zillow lookup.** If you already know the `zpid`, the Zillow Property endpoint takes `zpid[]` and skips the address match.
3. **Handle units.** Apartments need the unit in the key; Redfin writes it into `address` ("Unit D4" in the recorded search), so keep it rather than stripping it.
4. **Retry the right errors.** Retry `rate_limited` and `temporarily_unavailable` after `Retry-After`; never retry `invalid_parameters`. [Handling web data API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python) has the pattern, and the [errors docs](https://docs.perceptlayer.com/errors) list the codes.
To let a model choose calls itself instead, put the same endpoints behind the MCP server, as in the [AI agents docs](https://docs.perceptlayer.com/ai-agents), and keep a per-question cap. To start, [get a free API key](https://perceptlayer.com/signup) and run the valuation call in the playground on the [Redfin API page](https://perceptlayer.com/apis/redfin). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Zillow **1 credit per call** · 20 endpoints](https://perceptlayer.com/apis/zillow)
- [Redfin **1 credit per call** · 14 endpoints](https://perceptlayer.com/apis/redfin)
## Frequently asked questions
### Which data does the property research agent use?
Redfin property details and valuation (list price, last sale price and date, estimate status) and a Zillow search around the home's coordinates (list price, Zestimate, tax assessment), all as JSON. The agent matches the Zillow listing to the Redfin home by normalised street address and ZIP code, since the two sites share no IDs.
### How much does each question cost?
3 credits: one call each to `redfin/property`, `redfin/valuation` and `zillow/search`, at 1 credit per successful call. The script caps a question at 4 credits. Failed calls cost nothing. Every account gets 100 free credits once, after verifying an email address, enough for 33 questions. See [pricing](https://perceptlayer.com/pricing).
### Why do some homes have no estimate?
Neither site estimates every home. The recorded Redfin valuation for a listed Seattle home returns "Estimate Not Available", and one of two recorded Zillow listings has a tax assessment but no Zestimate. The agent passes the missing values to the model as `null`, and the system prompt tells it to say so, not to guess.
### Can the model make up a valuation?
The design makes that harder: code fetches the data, and the system prompt tells the model to use only the numbers in the facts object and never to estimate a missing value. Check its output against the facts before you show it to a user, especially percentages, which the model calculates itself.
### Is this real estate advice?
No. The agent restates published list prices, automated estimates, past sales and tax assessments, as found at the time of the call. Automated estimates have known error rates, published by Zillow and Redfin themselves. Use the output as a starting point for an appraisal or an agent's comparable sales, not as a valuation.
real estate ai agents redfin zillow property valuation python
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 9 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [CrewAI Tools: Build a Custom Tool for Live Web Data](https://perceptlayer.com/blog/crewai-custom-tool-web-data)
Build a CrewAI custom tool (a BaseTool subclass) that searches Google for live results, cap it at 5 calls a run, or load MCP tools instead. Tested code.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Oct 2026 Perceptlayer 8 min read
## [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends)
Wire Google Search, Trends and News into one Python agent, cap it at 8 credits per question, and see a recorded Trends response.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 11 Sept 2026 Perceptlayer 8 min read
## [Build a Price Tracking Agent in Python with Live Data](https://perceptlayer.com/blog/price-tracking-agent-python)
A Python price tracker that checks Google Shopping and eBay once per product per run, stores history in SQLite, flags drops and costs 2 credits a product.
---
title: "Google Hotels API: Hotel Prices for Your Dates as JSON"
description: "One GET to /v1/google-hotels/search returns Paris hotels with nightly rate, total rate and rating for your dates as JSON. Parameters, a response and cost."
url: https://perceptlayer.com/blog/google-hotels-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Hotels API: Hotel Prices for Your Dates as JSON
17 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
Google's [Hotel Prices developer guide](https://developers.google.com/hotels/hotel-prices/dev-guide) is about supplying hotel pricing data for Google's search results, and it doesn't present a way to read prices for a city and dates. To read prices for a city and dates, call `GET /v1/google-hotels/search` with a destination and a check-in and check-out date. It returns hotels with nightly rate, total rate, rating and review count as JSON, for 1 credit per call.
## Key takeaways
- Google's Hotel Prices developer guide covers supplying pricing data to Google. It doesn't present a way to look up prices for a city and dates. Search results for a destination and dates come from `/v1/google-hotels/search`.
- Three parameters are required: `q`, `check_in_date` and `check_out_date`. Everything else, including `currency`, `adults` and `hotel_class`, narrows the results.
- Each property in the recorded Paris response carries `rate_per_night`, `total_rate`, `overall_rating` and a `property_token` for the reviews endpoint.
- Every call to the five Google Hotels endpoints costs 1 credit, and failed calls cost nothing. A nightly check of 5 destinations uses 150 credits a month.
## Is there an official Google Hotels API for prices?
We didn't find one for reading prices back out, and we can't rule out that something exists outside the pages we read. Google's [Hotel Prices developer guide](https://developers.google.com/hotels/hotel-prices/dev-guide) covers how to configure your environment and supply hotel pricing data for Google's search results. It is written for the side of the market that publishes rates, not the side that wants to look them up.
That matters if you're the one who needs prices. A travel app, a rate-monitoring script or an agent comparing destinations is a consumer of that data, not a supplier. Google also documents a [Travel Partner API](https://developers.google.com/hotels/hotel-prices/api-reference/rest) for Hotel Center accounts, which sits alongside that supply-side guide.
If you are a hotel, use Google's own tooling. If you want what a traveller sees for a given city and dates, that's what the [Google Hotels API](https://perceptlayer.com/apis/google-hotels) returns as JSON: data collected from publicly available sources and returned as found at the time of the call.
## Which endpoints does the Google Hotels API have?
The [Google Hotels API](https://perceptlayer.com/apis/google-hotels) has five endpoints: autocomplete, search, reviews, photos and price calendar. All five are `GET` requests, and each costs 1 credit per successful call. Search is the one that returns prices for a destination and dates. The API is part of the [Travel APIs](https://perceptlayer.com/verticals/travel), and the table below lists each path with its required parameters.
| Path | Returns | Credits | Required parameters |
| --- | --- | --- | --- |
| `/v1/google-hotels/autocomplete` | Autocomplete | 1 | `q` |
| `/v1/google-hotels/search` | Search | 1 | `q`, `check_in_date`, `check_out_date` |
| `/v1/google-hotels/reviews` | Reviews | 1 | `property_token` |
The usual flow is search first. Each property in a search response has a `property_token`, and that token is what the reviews endpoint needs. The autocomplete endpoint takes a partial `q` and a `type` of `location`, `hotel` or `all`, which helps when you want to resolve user input into a destination or hotel name before searching.
Authentication is one header, `X-API-Key`. The [authentication docs](https://docs.perceptlayer.com/authentication) cover keys and the `api_key` query parameter, and the [quick start](https://docs.perceptlayer.com/quickstart) gets a first call running.
## How do you get hotel prices for specific dates?
To get hotel prices for specific dates, send the destination as `q` and the stay as `check_in_date` and `check_out_date` in one `GET` to the search endpoint. Add `currency` for the price format and `gl` for the country. The request below asks for Paris, 15 to 18 December 2026, in euros, and costs 1 credit.
```bash
curl "https://api.perceptlayer.com/v1/google-hotels/search?q=Paris%2C+France&check_in_date=2026-12-15&check_out_date=2026-12-18¤cy=EUR&gl=fr" \
-H "X-API-Key: $API_KEY"
```
The response echoes your inputs under `search_parameters`, and shows what was applied, including `adults: 2` and `children: 0`. Here's an excerpt of the recorded response, trimmed with `…`:
```json
{
"search_parameters": {
"engine": "google_hotels",
"q": "Paris, France",
"gl": "fr",
"hl": "en",
"currency": "EUR",
"check_in_date": "2026-12-15",
"check_out_date": "2026-12-18",
"adults": 2,
"children": 0
},
"search_information": {
"total_results": 15000,
"cached": false
},
"properties": [
{
"type": "hotel",
"name": "Novotel Paris Porte de Versailles",
"property_token": "ChkI5rWisq2xuMNRGg0vZy8xMWhfa18xc2w4EAE",
"gps_coordinates": {
"latitude": 48.8300073,
"longitude": 2.2917392999999997
},
"check_in_time": "3:00 PM",
"check_out_time": "12:00 PM",
"rate_per_night": {
"lowest": "€136",
"extracted_lowest": 136,
"before_taxes_fees": "€136",
"extracted_before_taxes_fees": 135.76042
},
"total_rate": {
"lowest": "€408",
"extracted_lowest": 408,
"before_taxes_fees": "€407",
"extracted_before_taxes_fees": 407.28126000000003
},
"overall_rating": 4.6,
"reviews": 4337,
"hotel_class": "4-star hotel",
"extracted_hotel_class": 4
},
…
],
"pagination": {
"current_from": 1,
"current_to": 20,
"next_page_token": "gho_jRZtj7WKgqLkF8eP.Q0JJPQ",
…
},
"response_time_ms": 2501
}
```
### What do the price fields mean?
Each property has two price objects. `rate_per_night` is the nightly figure and `total_rate` covers the stay. For the Novotel, the three nights come to `€408` in `total_rate.lowest`, which is 3 × `€136`.
Each object has a display string ( `"€136"`) and an `extracted_` number ( `136`) you can sort and sum without parsing currency symbols. The `before_taxes_fees` pair gives the figure before taxes and fees. Use the numeric fields in code and keep the strings for display.
The second property in the recording, Hôtel Aramis Saint-Germain Best Western, shows `rate_per_night.lowest` of `€124` and `overall_rating` of `4.4` from `826` reviews. Rate, rating and review count are on the same object, so ranking by value takes no second request.
## Which parameters does the search endpoint take?
The search endpoint takes three required parameters, `q`, `check_in_date` and `check_out_date`, and a long list of optional filters for party size, price, star class and more. Only the types and allowed values below are documented, so the table doesn't claim defaults. The recorded response shows `adults: 2` and `children: 0` for a request that set neither.
| Parameter | Type | Notes |
| --- | --- | --- |
| `q` | string, required | Destination, up to 200 characters |
| `check_in_date` | string, required | Check-in date |
| `check_out_date` | string, required | Check-out date |
| `adults`, `children` | integer | Party size |
| `children_ages[]` | list of integer | Ages of the children |
| `currency` | string | Up to 3 characters |
| `gl`, `hl` | string | Country and language, up to 2 characters each |
| `sort_by` | integer | One of 3, 8, 13 |
| `min_price`, `max_price` | integer | Price bounds |
| `hotel_class` | integer | One of 2, 3, 4, 5 |
| `rating` | integer | One of 7, 8, 9 |
| `free_cancellation` | boolean | Filter |
| `amenities[]` | list of integer | Amenity filter |
| `property_types[]`, `brands[]` | list of integer | Type and brand filters |
| `vacation_rentals`, `eco_certified`, `special_offers` | boolean | Filters |
| `bedrooms`, `bathrooms` | integer | Size filters |
| `next_page_token` | string | Continues a result set |
| `property_token` | string | Targets one property |
| `engine` | string | One of `google_hotels` |
The response includes a `brands` list with an `id` and `name` for each brand, such as `118` for Park Hyatt and `155` for Best Western in the recording. The `brands[]` filter is a list of integers. The docs don't say where its values come from, so try it in the playground on the [Search endpoint page](https://perceptlayer.com/apis/google-hotels/search).
For a filtered search, add parameters to the same call. This one asks for 4-star hotels with free cancellation:
```bash
curl "https://api.perceptlayer.com/v1/google-hotels/search?q=Paris%2C+France&check_in_date=2026-12-15&check_out_date=2026-12-18¤cy=EUR&gl=fr&hotel_class=4&free_cancellation=true" \
-H "X-API-Key: $API_KEY"
```
## How do you page through results and read reviews?
The recorded response has `total_results` of 15000 and a `pagination` object showing `current_from: 1` and `current_to: 20`. To get the next page, pass the `next_page_token` from that object back as the `next_page_token` parameter, with the same query. Each page is its own call and its own credit. The [pagination guide](https://perceptlayer.com/blog/paginate-web-data-api-python) covers safe page loops in Python.
For reviews, take a property's `property_token` from search and call the reviews endpoint:
```bash
curl "https://api.perceptlayer.com/v1/google-hotels/reviews?property_token=ChkI5rWisq2xuMNRGg0vZy8xMWhfa18xc2w4EAE" \
-H "X-API-Key: $API_KEY"
```
| Parameter | Type | Notes |
| --- | --- | --- |
| `property_token` | string, required | Up to 256 characters |
| `hl`, `gl` | string | Language and country, up to 2 characters |
| `category_token` | string | Up to 40 characters |
| `next_page_token` | string | Up to 256 characters, for more reviews |
We haven't recorded a reviews response for this guide, so there's no excerpt here. The [Reviews endpoint page](https://perceptlayer.com/apis/google-hotels/reviews) lists the fields, and the playground runs a real call. Search already gives you a summary per hotel: `overall_rating`, `reviews`, a star `ratings` breakdown and `reviews_breakdown` by topic. The reviews endpoint is for the review entries themselves.
For the same pattern on another Google product, see the [Google Maps reviews guide](https://perceptlayer.com/blog/google-maps-reviews-api-parameters).
## How do you run a nightly price check in Python?
A nightly price check is a loop over destinations and date windows that stores `extracted_lowest` with a timestamp, so you can compare the same stay from one night to the next. The script below runs one search and prints name, nightly rate, rating and reviews for each property. Set `API_KEY` in your environment first.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/google-hotels/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def check(destination, check_in, check_out):
params = {
"q": destination,
"check_in_date": check_in,
"check_out_date": check_out,
"currency": "EUR",
}
resp = requests.get(URL, headers=HEADERS, params=params, timeout=30)
resp.raise_for_status()
print("credits used:", resp.headers.get("X-Credits-Used"),
"remaining:", resp.headers.get("X-Credits-Remaining"))
return resp.json()["properties"]
for p in check("Paris, France", "2026-12-15", "2026-12-18"):
rate = p.get("rate_per_night", {}).get("extracted_lowest")
print(p["name"], rate, p.get("overall_rating"), p.get("reviews"))
```
Some properties may lack a rate for your dates, so the script reads `rate_per_night` defensively. Don't assume every field exists on every property. Only the fields in the recording are shown here.
Errors come back as an HTTP status with a JSON `error` body. Handle `429` and `503` by waiting for the `Retry-After` seconds, as described in the [errors](https://docs.perceptlayer.com/errors) and [rate limit](https://docs.perceptlayer.com/rate-limits) docs. A request that timed out client-side may still have succeeded and been billed, which [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) goes into. Store results, and use the [caching guide](https://perceptlayer.com/blog/cache-web-data-api-responses) so the same query isn't paid for twice in a day.
## What does a nightly hotel price check cost?
Each search is 1 credit, so the cost is the number of destination and date combinations times the number of nights you run it. Failed calls cost nothing and return `X-Credits-Used: 0`, and every successful response reports `X-Credits-Remaining`. The [credits docs](https://docs.perceptlayer.com/credits) and [pricing](https://perceptlayer.com/pricing) have the rest.
| Check | Calls per night | Credits per 30 nights | Cost |
| --- | --- | --- | --- |
| 5 destinations, 1 date window each | 5 | 150 | The 100 free credits on signup cover the first 20 nights; the Starter pack's 10,000 covers a year (12 × 150 = 1,800) |
| 20 destinations, 3 date windows each | 60 | 1,800 | 60 calls × 30 nights × 1 credit = 1,800 credits, within the Starter pack's 10,000 |
The free tier gives 100 credits after you verify an email address, with no credit card. Credits also come in prepaid packs, starting with the 10,000-credit Starter pack, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Paging deeper into a result set adds one credit per extra page, so count pages as calls.
The service is prepaid. If the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited.
Next step: [get a free API key](https://perceptlayer.com/signup) and run the Paris search above in the playground on the [Google Hotels API page](https://perceptlayer.com/apis/google-hotels). If you want an agent to make these calls, the [MCP docs](https://docs.perceptlayer.com/ai-agents) show how.
## APIs in this post
- [Google Hotels **1 credit per call** · 5 endpoints](https://perceptlayer.com/apis/google-hotels)
## Frequently asked questions
### Does Google have an API to get hotel prices?
We didn't find one. Google's [Hotel Prices developer guide](https://developers.google.com/hotels/hotel-prices/dev-guide) covers supplying pricing data to Google's search results, and the pages we read don't describe reading prices for a city and dates. The Google Hotels API on Perceptlayer returns that search view as JSON from `/v1/google-hotels/search`, for 1 credit per call.
### How much does the Google Hotels API cost?
Each successful call to the search, reviews and autocomplete endpoints costs 1 credit. Failed calls cost nothing. You get 100 free credits after verifying an email. Beyond that, prepaid packs run from 10,000 credits (Starter) to 5,000,000 (Volume), and [pricing](https://perceptlayer.com/pricing) has what credits cost. A nightly check of 5 destinations is 150 credits a month.
### What parameters are required for a hotel search?
Three: `q` for the destination, `check_in_date` and `check_out_date`. Everything else is optional, including `currency`, `gl`, `hl`, `adults`, `children`, `hotel_class`, `rating`, `min_price`, `max_price` and `free_cancellation`. Check-in and check-out are strings. The recorded request writes them like `2026-12-15`.
### How do I get reviews for a specific hotel?
Run a search, copy the `property_token` from the hotel you want, and pass it to `/v1/google-hotels/reviews`. Use `next_page_token` to continue to more reviews and `category_token` to narrow by category. Each reviews call costs 1 credit. The hotel's summary rating and review count are already in the search response.
### What happens if a call fails?
You get an HTTP status and a JSON body with `error.code`, `error.message` and `request_id`. Failed calls aren't billed and return `X-Credits-Used: 0`. For `429` and `503`, wait the number of seconds in the `Retry-After` header. A call that timed out on your side may have succeeded and been billed.
travel hotels google hotels prices reviews
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Aug 2026 Updated 23 Oct 2026 Perceptlayer 8 min read
## [Booking.com Hotel Prices API: Search, Rooms and Reviews](https://perceptlayer.com/blog/booking-com-hotel-prices-api)
Eleven Booking.com endpoints as JSON: search, prices, rooms and reviews, with parameters and a 1,000-hotel price check costed in credits.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 24 Jul 2026 Perceptlayer 8 min read
## [Trivago Hotel Prices API: Deals and Search as JSON](https://perceptlayer.com/blog/trivago-api-hotel-prices)
Call trivago suggest, search and deals as JSON: 1 credit per call, a recorded Paris search response, and the provider\_count field in a metasearch result.
---
title: "Google Shopping API: Product Prices and Offers as JSON"
description: "One GET to /v1/google-shopping/search returns product titles, sellers, prices and ratings as JSON. Parameters, a response and the cost of 500 products a day."
url: https://perceptlayer.com/blog/google-shopping-api-product-prices
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Shopping API: Product Prices and Offers as JSON
17 Aug 2026 Perceptlayer 7 min read
To get Google Shopping prices as JSON, send one GET request to `/v1/google-shopping/search` with a search query in `q`. Each result comes back with a title, a seller, a price as text, the same price as a number, a rating and a product ID. A successful call costs 1 credit, and a failed call costs nothing.
This guide covers the request, the parameters, a recorded response and what a daily price check for 500 products costs in credits.
## Key takeaways
- The Google Shopping API has one endpoint, `GET /v1/google-shopping/search`. It needs only `q`, and every successful call costs 1 credit.
- Each result carries `price` as display text and `extracted_price` as a number, so you can compare prices without parsing currency symbols.
- Google's own Merchant API is for managing how a seller's products appear on Google. For price research across sellers, you need a search endpoint like this one.
- Tracking 500 products once a day is 500 credits a day, or 15,000 credits over 30 days. The 100 free credits on signup cover a first run on 100 products.
- Pass `gl` and `hl` to set the country and language, and `start` to page through results.
## Is there an official Google Shopping API for price research?
Google's official option is the Merchant API, and it serves sellers. Google describes it as a way to [manage how your business and products appear on Google](https://developers.google.com/merchant/api/overview). That is a job for the seller who owns the products, not a search over what other sellers charge.
If you sell on Google and want to update your own feed, use the Merchant API; it fits that job better than anything here. If you want to know what a product costs across retailers, you need search results, which is what the endpoint below returns. Perceptlayer collects the data from publicly available sources and returns it as found at the time of the call, so a price is a snapshot, not a guarantee.
## How do you request product prices as JSON?
You make a GET request with a search query and your key in the `X-API-Key` header. The only required parameter is `q`. Adding `gl` (country) and `hl` (language) keeps results consistent from one run to the next, which matters when you compare prices over time.
```bash
curl "https://api.perceptlayer.com/v1/google-shopping/search?q=iphone+15&gl=us&hl=en" \
-H "X-API-Key: $API_KEY"
```
Keys start with `sk_live_`. If you don't have one, [get a free API key](https://perceptlayer.com/signup); the [quick start](https://docs.perceptlayer.com/quickstart) takes you to a first call, and [authentication](https://docs.perceptlayer.com/authentication) covers the header and the `api_key` query parameter for places where headers aren't possible. You can also run the call from the playground on the [Google Shopping API page](https://perceptlayer.com/apis/google-shopping) before writing any code.
## Which parameters does the search endpoint take?
The search endpoint takes one required parameter, `q`, and eight optional ones: `gl`, `hl`, `location`, `uule`, `start`, `device`, `small_business` and `shoprs`. Types and limits below are as documented for [`/v1/google-shopping/search`](https://perceptlayer.com/apis/google-shopping/search). Nothing else about defaults or page sizes is documented, so test before you depend on them.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `q` | string | yes | The search query, up to 500 characters |
| `gl` | string | no | Country code, up to 2 characters |
| `hl` | string | no | Language code, up to 2 characters |
| `location` | string | no | Search location, up to 63 characters |
| `uule` | string | no | Encoded location, up to 500 characters |
| `start` | integer | no | Offset for the next page of results |
| `device` | string | no | One of `desktop`, `mobile`, `tablet` |
| `small_business` | boolean | no | Small-business filter |
| `shoprs` | string | no | Filter token, up to 2000 characters |
Prices differ by country, so set `gl` and `hl` deliberately and keep them the same across runs. Use `location` or `uule` when you need a more specific place than a country. The recorded response below echoes the parameters it ran with in `search_parameters`, including `device`, which is worth logging next to every price you store.
## What does the response look like?
The response has three parts: `search_parameters`, which echoes the request; a `shopping_results` array with one object per product listing; and a `pagination` object that points to the next page. This is an excerpt of a recorded response for the request above, trimmed with `…`.
```json
{
"search_parameters": {
"q": "iphone 15",
"gl": "us",
"hl": "en",
"start": 0,
"device": "desktop"
},
"shopping_results": [
{
"position": 1,
"category": "Popular products",
"title": "Apple iPhone 15",
"source": "Walmart - Wireless Source",
"rating": 4.7,
"reviews": 45000,
"product_id": "4263606017411565992",
"link": "https://www.google.com/shopping/product/4263606017411565992",
"price": "$393.73",
"extracted_price": 393.73,
…
},
{
"position": 2,
"title": "Apple iPhone 15 128GB",
"source": "Best Buy",
"rating": 4.4,
"reviews": 94,
"product_id": "4379032623638529631",
"price": "$441.00",
"extracted_price": 441,
…
}
],
"pagination": {
"current_page": 1,
"start": 0,
"next_start": 10
}
}
```
The fields a price pipeline uses are these:
| Field | What it holds |
| --- | --- |
| `title` | The product name as listed |
| `source` | The seller the result points to |
| `price` | The price as display text, with currency symbol |
| `extracted_price` | The same price as a number |
| `product_id` | An ID for each product, usable as a key to store it under |
| `rating`, `reviews` | Star rating and review count |
| `link` | The Google Shopping product page |
The full results also carry `product_token`, `thumbnail`, `extensions` and `rank_absolute`; they're cut here for length. Store `extracted_price` for arithmetic and keep `price` only if you need the display string. Note that the two results above come from different sellers, so a price in one row isn't the price of the same offer in the next.
## How do you track prices for 500 products every day?
The endpoint answers a search; it doesn't track anything on its own. A price tracker needs a product list, a daily loop, a store for history and a retry rule around it. Run one search per product, pick the matching result, and write `product_id`, `source`, `extracted_price` and the date to a table.
This script does that for a list of queries. It keeps the first result as the match, which is a shortcut: for products with common names, match on `title` or a stored `product_id` instead.
```python
import os
import time
import requests
API = "https://api.perceptlayer.com/v1/google-shopping/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def fetch(query, tries=3):
params = {"q": query, "gl": "us", "hl": "en"}
for _ in range(tries):
r = requests.get(API, params=params, headers=HEADERS, timeout=30)
if r.status_code == 200:
return r.json()
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return None
def daily_prices(queries):
rows = []
for q in queries:
data = fetch(q)
results = (data or {}).get("shopping_results", [])
if not results:
continue
top = results[0]
rows.append((q, top["product_id"], top["source"], top["extracted_price"]))
return rows
```
The [requests library](https://requests.readthedocs.io/) handles the HTTP. Rate-limited (429) and temporarily unavailable (503) responses carry a `Retry-After` header with the seconds to wait, and the loop honours it. There is no idempotency key, so a call that timed out on your side may still have been billed; [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers how to handle that. For results beyond the first page, see [paginating a web data API safely](https://perceptlayer.com/blog/paginate-web-data-api-python), using `next_start` from `pagination` as the next `start`.
## What does tracking 500 products a day cost?
Tracking 500 products once a day costs 500 credits a day, because each product is one search at 1 credit. Over 30 days that is 500 × 30 = 15,000 credits. The arithmetic scales linearly, so doubling the list or checking twice a day doubles the credits.
| Plan of calls | Calls | Credits |
| --- | --- | --- |
| 500 products, once a day, 1 day | 500 | 500 |
| 500 products, once a day, 30 days | 15,000 | 15,000 |
| 500 products, once a day, 365 days | 182,500 | 182,500 |
| 500 products, twice a day, 30 days | 30,000 | 30,000 |
The 100 free credits on signup cover a test run on 100 products. A month of daily checks, 15,000 credits, is more than the 10,000-credit Starter pack and fits inside the 50,000-credit Build pack with 35,000 left over. A full year at 182,500 credits fits inside the 200,000-credit Growth pack. Purchased credits last 12 months, there's no subscription, and [pricing](https://perceptlayer.com/pricing) shows what credits cost. The [credits docs](https://docs.perceptlayer.com/credits) explain how debits work; failed calls return `X-Credits-Used: 0`.
Rate limits are per account. Free accounts get 1 request a second, so 500 sequential calls take roughly 500 seconds. Paying accounts run at 5 requests a second at least, which brings the same loop to about 100 seconds. Details are in the [rate limits docs](https://docs.perceptlayer.com/rate-limits).
## What should you check before trusting a price?
Treat each stored price as an observation: this query, this country, this device, this moment. It isn't a fixed fact about the product, because sellers, variants and countries change what a search returns. Three habits make the stored history usable for comparison over time.
- Log `search_parameters` with every row, so a change in `gl` or `device` isn't mistaken for a price move.
- Compare on `product_id` and `source`, not on rank. Position changes without any price change.
- Alert on large jumps instead of acting on them. A result can be a different variant, so check `title` when a price moves sharply.
Errors arrive as an HTTP status with a JSON body holding `code`, `message` and `request_id`. Handle `invalid_parameters` (422) by fixing the request, and `insufficient_credits` (402) by topping up, since nothing else is debited when the balance reaches zero. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
If you're building an agent rather than a pipeline, the same endpoint is available as a tool through the MCP server; see the [AI agents docs](https://docs.perceptlayer.com/ai-agents). For sibling Google endpoints, the guides to [Google Hotels prices](https://perceptlayer.com/blog/google-hotels-api) and [Google Flights fares](https://perceptlayer.com/blog/google-flights-api) follow the same pattern. Next step: run the iPhone query in the [Google Shopping playground](https://perceptlayer.com/apis/google-shopping), then swap in your own first product.
## APIs in this post
- [Google Shopping **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/google-shopping)
## Frequently asked questions
### Does the Google Shopping API return prices from several sellers?
Each item in `shopping_results` has a `source` field naming the seller and a `price` for that listing. In the recorded response, one result came from Walmart and another from Best Buy. Search for a product and read the results to compare sellers; the endpoint returns what Google Shopping shows for that query at call time.
### How much does one Google Shopping API call cost?
A successful call costs 1 credit, and a failed call costs nothing. Every response carries `X-Credits-Used` and `X-Credits-Remaining` headers, so you can track spend per call. Accounts get 100 free credits after verifying an email address, with no credit card. See [pricing](https://perceptlayer.com/pricing) for what credit packs cost.
### Can I get prices for a specific country?
Yes. Set `gl` to a two-character country code and `hl` to a language code, and use `location` or `uule` for a more specific place. Keep these the same across runs, because the same product can show different prices and sellers in different countries. The response echoes the values in `search_parameters`.
### How do I get the next page of results?
Pass `start` with the `next_start` value from the previous response's `pagination` object. The recorded response ran with `start` 0 and returned `next_start` 10. Page sizes aren't documented, so read `next_start` from each response instead of assuming a step. The [Google Search guide](https://perceptlayer.com/blog/google-search-api-json) shows a similar loop.
### What happens when I hit the rate limit?
You get a 429 `rate_limited` response with a `Retry-After` header giving the seconds to wait. Limits are per account and counted per minute: free accounts get 60 requests a minute, and paying accounts at least 300. Wait for `Retry-After`, then retry; a rate-limited call isn't billed.
google shopping price monitoring ecommerce product data json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Nov 2026 Perceptlayer 9 min read
## [Google Shopping Scraper or API: What You Get](https://perceptlayer.com/blog/google-shopping-scraper-vs-api)
A Google Shopping scraper vs one GET at 1 credit: the recorded iphone 15 search with source, extracted\_price and product\_id, and the cost per item tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 16 Nov 2026 Perceptlayer 8 min read
## [Shopify Scraper or API: What You Get](https://perceptlayer.com/blog/shopify-scraper-vs-api)
A Shopify scraper vs a 1-credit products call: a recorded store page of 30 products with variant SKUs, prices and stock flags, and the cost per product tracked.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 14 Nov 2026 Perceptlayer 7 min read
## [Amazon Product API: Search, Offers and Reviews as JSON](https://perceptlayer.com/blog/amazon-product-api-json)
Search Amazon by keyword, then look each asin up with product, offers, rating-summary and customers-say. Domain values per endpoint, 1 credit a call.
---
title: "Brave Search API: Official Plans or One Multi-Source Key"
description: "Brave's official Search API has freshness, country and Goggles filters. When it fits, and when one key for Brave, Google and Bing at 1 credit a query wins."
url: https://perceptlayer.com/blog/brave-search-api-results-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Brave Search API: Official Plans or One Multi-Source Key
15 Aug 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
Brave runs its own official Search API on its own index, with published prices, a monthly free allowance and a deep parameter set: freshness, country, language, Goggles re-ranking and extra snippets. If Brave is the only engine you need, use it. `GET /v1/brave/search` is the other option: Brave web results as JSON at 1 credit per query, on the same key and the same MCP server as Google, Bing, DuckDuckGo and the rest of the catalogue, with fewer parameters than Brave's own API.
## Key takeaways
- Brave's official Search plan lists $5 per 1,000 requests at up to 50 requests a second, with a $5 monthly allowance on every plan, per its pricing page in 2026.
- The official web search endpoint takes `q`, `count` (up to 20), `offset` (0 to 9), `country`, `search_lang`, `freshness` and Goggles; `/v1/brave/search` takes `query`, `language`, `page` and `include_html`.
- The recorded `/v1/brave/search` response returns `organic_results`, `related_searches` and `related_questions`, with `results_count: 20`.
- Pick Brave's own API for Brave-only products, date filters, country targeting or high request rates; pick the multi-source key when you query several engines or give an agent one MCP server.
- Each `/v1/brave/search` call costs 1 credit on success and failed calls cost nothing; the 100 free credits on signup cover the first 100 queries.
## How do the two options compare?
They overlap on the core job, ranked Brave web results as JSON, and differ on everything around it. Brave's API is first-party: it has every parameter Brave supports, its own rate tiers and an Answers plan for AI-generated responses. The catalogue endpoint trades depth for breadth: fewer Brave parameters, but one key, one billing balance and one response style across 480 websites.
| | Brave Search API (official) | `/v1/brave/search` |
| --- | --- | --- |
| Who runs it | Brave, on its own index | Perceptlayer, from publicly available Brave results |
| Price | Per 1,000 requests (see below) | 1 credit per successful query ( [pricing](https://perceptlayer.com/pricing)) |
| Free use | A monthly allowance per plan (see below) | 100 free credits on signup, no card |
| Payment | Prepaid, card required | Prepaid credit packs, no card for the free tier |
| Query parameter | `q`, up to 600 characters | `query`, up to 500 characters |
| Results per call | `count`, up to 20 | Not a parameter; 20 in the recorded call |
| Paging | `offset`, 0 to 9 | `page` |
| Date filter | `freshness` ( `pd`, `pw`, `pm`, `py` or a range) | None |
| Country and language | `country`, `search_lang` | `language` only |
| Re-ranking | Goggles | None |
| Rate | Up to 50 requests a second on Search | 1 a second free, 5 or more on packs |
| Other engines | Brave only | Google, Bing, DuckDuckGo and more on the same key |
| MCP | Brave's own server | One server for the whole catalogue |
Brave's figures come from its pricing page and API reference ( [Brave Search API pricing](https://api-dashboard.search.brave.com/documentation/pricing) and [web search reference](https://api-dashboard.search.brave.com/api-reference/web/search/get), 2026). Brave's Search plan is listed at $5 per 1,000 requests, and each plan carries a $5 monthly allowance. Brave also lists Spellcheck and Autosuggest plans, and an Answers plan billed per query plus tokens. Check its page before you budget; Brave's launch-era pricing was different.
## What does Brave's official API do better?
Filtering and scale. Brave's web search takes `freshness` with past day, week, month, year or a custom date range, so "news about X this week" is one parameter. `country` and `search_lang` target a market; `extra_snippets` returns up to five additional excerpts per result, which helps retrieval for AI answers; and Goggles let you re-rank results with your own rules. None of these exist on `/v1/brave/search`.
It also scales further on one engine. The Search plan allows up to 50 requests a second. Brave describes its index as independent, built by its own crawler, and its documentation for AI use (Answers, extra snippets) is first-party. If your product is built on Brave results, you'll want that relationship, its attribution terms and its support.
Verdict for Brave-only products, recency-sensitive search, market targeting and high throughput: Brave's own API.
## When does one multi-source key fit better?
When Brave is one engine among several. Search results differ by engine, and the [Bing Search API alternative guide](https://perceptlayer.com/blog/bing-search-api-alternative-json) shows a recorded query where the Bing and Brave top results did not overlap. If you compare engines, fall back from one to another, or let an agent pick, you'd otherwise hold a Brave key, a Google results provider, a Bing replacement and separate bills.
On one key, those are paths on the same API. [`/v1/brave/search`](https://perceptlayer.com/apis/brave/search), [`/v1/duckduckgo/search`](https://perceptlayer.com/apis/duckduckgo/search), [`/v1/bing/search`](https://perceptlayer.com/apis/bing/search) and [`/v1/google-search/search`](https://perceptlayer.com/apis/google-search/search) cost 1 credit each and draw on one prepaid balance. Errors share one format, and every response reports `X-Credits-Used` and `X-Credits-Remaining`. Agents get one MCP server whose free `search_endpoints` tool finds the right engine, instead of one MCP server per engine.
Verdict for multi-engine comparison, fallbacks, SEO checks across engines and agents that need search plus other web data: the multi-source key. If you only need Brave and none of its filters, either works; compare what credits cost on the [pricing page](https://perceptlayer.com/pricing) with Brave's rate.
## How do you call /v1/brave/search?
Send `query`. The request below is the exact one behind the recorded response. Put your key in the `X-API-Key` header; keys start with `sk_live_`, and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest.
```bash
curl "https://api.perceptlayer.com/v1/brave/search?query=best+web+scraping+api" \
-H "X-API-Key: $API_KEY"
```
The endpoint takes five parameters. Types and allowed values come from the endpoint definition; nothing else, such as page size, is documented.
| Parameter | Type | Allowed values or notes |
| --- | --- | --- |
| `query` | string, required | Up to 500 characters |
| `language` | string | `english`, `deutsch`, `french`, `spanish`, `italian`, `portuguese`, `dutch`, `russian`, `chinese`, `japanese`, `arabic`, `all`, or the codes `en`, `de`, `fr`, `es`, `it`, `pt`, `nl`, `ru`, `zh`, `ja`, `ar` |
| `page` | integer | Page number |
| `include_html` | boolean | |
| `q` | string | Optional; `query` is the required one |
`language` takes both names and two-letter codes, so `language=de` and `language=deutsch` both pass validation; pick one form and keep it.
### What does the response look like?
The recorded response has `search_information`, `organic_results`, `related_searches` and `related_questions`, then counts and the engine used. Here is an excerpt, trimmed with `…`; the organic results, which name commercial products, are cut:
```json
{
"search_information": {
"query_displayed": "best web scraping api"
},
"organic_results": [
…
],
"related_searches": [
{
"query": "data scraping tools chrome extension",
"link": "https://search.brave.com/search?q=data%20scraping%20tools%20chrome%20extension&source=relatedQueries"
},
…
],
"related_questions": [
…
],
"results_count": 20,
"engine_used": "brave",
"source": "brave",
"service_used": "brave"
}
```
Each organic result in the recording carries `position`, `title`, `link`, `redirect_link`, `displayed_link`, `snippet` and `source`. Snippets can start with a relative age such as "2 weeks ago -", as found on the page, so strip it before you index text. `related_questions` entries carry a `question`, an `answer`, a `link` and a `title`: the answer is text from the linked page, not a verified fact, so treat it as a claim with a source.
## What does each option cost for common jobs?
On the catalogue endpoint, every successful query costs 1 credit and failed calls cost nothing, returning `X-Credits-Used: 0`. The [credits docs](https://docs.perceptlayer.com/credits) explain billing. Brave's own rate is per 1,000 requests; compare its pricing page with ours rather than trusting a converted figure here, since both change.
| Job | Queries a month | `/v1/brave/search` credits |
| --- | --- | --- |
| Prototype an agent | 100, once | 100 (the free credits on signup) |
| 100 keywords daily, one engine | 3,000 | 3,000 |
| 100 keywords daily on Brave, Google and Bing | 9,000 | 9,000 |
| 1,000 agent questions, 2 searches each | 2,000 | 2,000 |
Worked example: tracking 100 keywords daily on three engines is 100 × 3 × 30 = 9,000 queries at 1 credit each, so 9,000 credits a month, inside a Starter pack of 10,000 credits. Purchased credits last 12 months, and all engines draw on the same balance. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the request rates that come with each pack.
## Can an AI agent use Brave search through MCP?
Both options have an MCP route. Brave publishes its own MCP server for its API. Perceptlayer's server at `https://perceptlayer.com/mcp` exposes three tools for the whole catalogue: `search_endpoints` and `get_endpoint` are free lookups, and `call_endpoint` runs `brave.search` or any other endpoint, spending credits only on success.
The difference is how many servers the agent carries. With one server per engine, each adds its own tool definitions to the model's context. With one catalogue server, the agent searches for the engine it needs; our post on [MCP servers with too many tools](https://perceptlayer.com/blog/mcp-too-many-tools-context) explains why that keeps context small. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents), and errors come back with codes from the [errors docs](https://docs.perceptlayer.com/errors).
To try the endpoint, [get a free API key](https://perceptlayer.com/signup) and run a query in the playground on the [Brave API page](https://perceptlayer.com/apis/brave). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Brave Search **1 credit per call** · 1 endpoint](https://perceptlayer.com/apis/brave)
## Frequently asked questions
### Does Brave have an official search API?
Yes. Brave runs the Brave Search API on its own independent index, with a Search plan listed at $5 per 1,000 requests, a $5 monthly allowance per plan, and plans for Answers, Spellcheck and Autosuggest. It needs a card even for the free allowance. Its web search takes freshness, country, language and Goggles parameters.
### When should I use Brave's own API instead?
When Brave is the only engine you need, or you need its filters: `freshness` for date ranges, `country` and `search_lang` for market targeting, Goggles for re-ranking, extra snippets for AI retrieval, or up to 50 requests a second. `/v1/brave/search` has none of those, only `query`, `language`, `page` and `include_html`.
### How much does /v1/brave/search cost?
1 credit per successful query, and failed calls cost nothing. Every account gets 100 free credits after verifying an email address, with no card. Prepaid packs start at 10,000 credits and are shared across every endpoint, including Google, Bing and DuckDuckGo search. The [pricing page](https://perceptlayer.com/pricing) has what credits cost.
### Can I filter Brave results by date with /v1/brave/search?
No. The endpoint takes `query`, `language`, `page`, `include_html` and an optional `q`, with no date or country filter. For date filtering on Brave results, Brave's own API has `freshness`. On the same key, DuckDuckGo's endpoint takes a `df` filter for the past day, week, month or year.
### What happens if a Brave query fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and nothing is debited. A missing `query` or a `language` outside the allowed values returns `invalid_parameters` (422). Rate-limited (429) and temporarily unavailable (503) responses carry `Retry-After` with the seconds to wait.
brave search search api serp web search ai agents
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 21 Aug 2026 Updated 6 Nov 2026 Perceptlayer 6 min read
## [DuckDuckGo Search API: Web Results as JSON](https://perceptlayer.com/blog/duckduckgo-search-api-json)
DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 5 Nov 2026 Perceptlayer 8 min read
## [Bing Scraper or API: Ten Result Types as JSON](https://perceptlayer.com/blog/bing-scraper-vs-api)
A Bing scraper next to 10 Bing endpoints at 1 credit a call: a recorded web search with position, url and domain, and 0.1 credits per ranking tracked.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Aug 2026 Perceptlayer 7 min read
## [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json)
Call GET /v1/google-search/search for organic results as JSON at 1 credit a call. Parameters, a real recorded response and the cost in credits.
---
title: "Normalise Prices Across Currencies and Sources in Python"
description: "Parse '162,90 €' and $89.99 into Decimals, tag each price with its currency, convert with a dated ECB reference rate, and keep the original value for audit."
url: https://perceptlayer.com/blog/normalize-prices-multiple-currencies
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Normalise Prices Across Currencies and Sources in Python
15 Aug 2026 Updated 2 Nov 2026 Perceptlayer 7 min read
To normalise prices across currencies in Python, store every price as a `Decimal` with its ISO currency code, convert it with a reference rate for the date you collected it, and keep the original amount, currency, rate and rate date next to the converted figure. This guide does that for three recorded responses in three currencies: Idealo in euros, Walmart in US dollars and Mercado Libre in Argentine pesos, with a parser for strings like `162,90 €`.
## Key takeaways
- All three recorded responses carry a numeric `price` and a `currency` code ( `EUR`, `USD`, `ARS`), so parse strings only where you must, such as Idealo's `shipping_costs` of `4,99 €`.
- Walmart's recorded prices come back as both floats ( `89.99`) and integers ( `79`); convert through `Decimal(str(x))` so every amount has one type and no float error.
- The ECB publishes euro reference rates for 29 currencies around 16:00 CET on working days; the Argentine peso isn't among them, so ARS needs a different source, such as the BCRA's reference rate.
- Store `amount`, `currency`, `rate`, `rate_date` and the converted amount on every row; a conversion you can't trace can't be corrected.
- German consumer prices include VAT by law and US shelf prices usually don't include sales tax, so a converted price comparison across those two still isn't like for like.
## What do the raw prices look like?
Each source returns a number and a currency, plus a formatted string in some cases. That's the best starting point: parse the number, not the display text. The excerpts below are trimmed with `…`. The [Idealo search endpoint](https://perceptlayer.com/apis/idealo/search) returned German-formatted strings next to the number:
```json
{
"results": [
{
"id": "203597427",
"title": "Ninja AF500",
"price": 162.9,
"price_formatted": "162,90 €",
"currency": "EUR",
"offer_count": 80,
"cheapest_offer": { "shop_name": "alza.de", "shipping_costs": "4,99 €", "shipping_is_free": false, … },
…
},
…
]
}
```
The [Walmart search endpoint](https://perceptlayer.com/apis/walmart/search) returns a bare number, and the type changes with the value:
```json
{
"data": {
"results": [
{ "us_item_id": "17268119743", "title": "Instant Pot 4QT VORTEX 6-in-1 Mini Air Fryer, …", "price": 89.99, "currency": "USD", … },
…,
{ "us_item_id": "14140920286", "title": "Thyme & Table 6 Quart Ceramic-Coated Air Fryer, Sand White", "price": 79, "currency": "USD", … }
]
}
}
```
The [Mercado Libre category products endpoint](https://perceptlayer.com/apis/mercadolibre/category-products) returns whole pesos, with the earlier price and a discount label:
```json
{
"data": {
"site": "MLA",
"products": [
{ "item_id": "MLA1829410667", "price": 9208, "previous_price": 10963, "currency": "ARS", "discount_label": "16% OFF", … },
…
]
}
}
```
| Source | Price field | Type in the recording | Currency field | Formatted text |
| --- | --- | --- | --- | --- |
| Idealo | `price` | float | `currency` ( `EUR`) | `price_formatted`, `shipping_costs` |
| Walmart | `price` | float or integer | `currency` ( `USD`) | none |
| Mercado Libre | `price`, `previous_price` | integer | `currency` ( `ARS`) | `discount_label` |
## How do you parse price strings like "162,90 €"?
Find the decimal separator from the string itself, strip the thousands separators, and return a `Decimal` with the currency the symbol implies. German, French and many other locales write a comma for decimals and a dot for thousands; US and UK formats do the opposite. A string with both marks settles it: whichever comes last is the decimal separator.
```python
"""Normalise prices from several sources to one currency, keeping the original for audit."""
import re
from decimal import ROUND_HALF_EVEN, Decimal
CENT = Decimal("0.01")
def parse_price(text):
"""'162,90 €' -> (Decimal('162.90'), 'EUR'); '$1,234.56' -> (Decimal('1234.56'), 'USD')."""
symbols = {"€": "EUR", "$": "USD", "£": "GBP"}
currency = next((c for s, c in symbols.items() if s in text), None)
digits = re.sub(r"[^\d.,]", "", text)
if "," in digits and "." in digits:
decimal_sep = "," if digits.rfind(",") > digits.rfind(".") else "."
elif "," in digits:
decimal_sep = "," if len(digits.rsplit(",", 1)[1]) == 2 else None
elif "." in digits:
decimal_sep = "." if len(digits.rsplit(".", 1)[1]) == 2 else None
else:
decimal_sep = None
thousands = {",", "."} - {decimal_sep}
for t in thousands:
digits = digits.replace(t, "")
if decimal_sep == ",":
digits = digits.replace(",", ".")
return Decimal(digits), currency
```
We ran it on strings from the recordings and a few of our own. `162,90 €` and `4,99 €` parsed to 162.90 and 4.99 EUR, `1.234,56 €` and `$1,234.56` both to 1234.56, and the Idealo characteristic `2.470` (watts) to 2470 with no currency. With a single separator and three digits after it, the function treats it as a thousands separator; that's right for prices, but `1,234` in a locale that means 1.234 would be misread, so keep the source's locale in mind.
Symbols are ambiguous: `$` is used by many currencies, including the Argentine peso. Use the parser's currency only when the source gives no code, and prefer the `currency` field whenever there is one.
## How do you map each source onto one record?
Write one small function per source that returns the same fields: source, ID, title, amount as a `Decimal`, ISO currency, shipping if known, and the original value as text. `Decimal(str(x))` matters: `Decimal(89.99)` would carry the float's binary error into every later sum, while `Decimal("89.99")` is exact.
```python
def from_idealo(r):
return {"source": "idealo", "id": r["id"], "title": r["title"],
"amount": Decimal(str(r["price"])), "currency": r["currency"],
"shipping": parse_price(r["cheapest_offer"]["shipping_costs"])[0]
if r.get("cheapest_offer", {}).get("shipping_costs") else None,
"original": r.get("price_formatted")}
def from_walmart(r):
return {"source": "walmart", "id": r["us_item_id"], "title": r["title"],
"amount": Decimal(str(r["price"])), "currency": r["currency"],
"shipping": None, "original": str(r["price"])}
def from_mercadolibre(r):
return {"source": "mercadolibre", "id": r["item_id"], "title": r["title"],
"amount": Decimal(str(r["price"])), "currency": r["currency"],
"shipping": None, "original": str(r["price"])}
```
Shipping is kept separate rather than added in. Idealo gives the cheapest offer's shipping; the Walmart and Mercado Libre search results don't carry a shipping amount, only, for Mercado Libre, text such as "Envío gratis" with a note that it applies to a first purchase. Comparing item prices plus shipping only where you know shipping would bias the comparison.
## Which exchange rate should you use?
A published reference rate, for the date you collected the price, from a source you name. The ECB publishes euro foreign exchange reference rates for 29 currencies, usually around 16:00 CET on working days, and says they're for information purposes only ( [European Central Bank](https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html), 2026). That's what price analysis needs: a consistent, citable daily rate, not the rate a bank would charge.
The ECB's list doesn't include the Argentine peso. For ARS, the Banco Central de la República Argentina publishes a wholesale reference rate against the US dollar, known by its regulation, Communication A 3500, with historical series to download ( [BCRA](https://www.bcra.gob.ar/en/reference-exchange-rate-communication-a-3500-and-monthly-average-nominal-exchange-rate-tcnpm/), 2026). Convert ARS to USD with that, then USD to EUR with the ECB rate for the same date, and record both rates.
```python
def to_eur(row, rates, rate_date):
"""rates: {(currency, date): units of currency per 1 EUR}, as the ECB publishes them."""
out = dict(row, target="EUR", rate_date=rate_date)
if row["currency"] == "EUR":
out.update(rate=Decimal(1), amount_eur=row["amount"].quantize(CENT))
return out
rate = rates.get((row["currency"], rate_date))
if rate is None:
out.update(rate=None, amount_eur=None) # no dated rate: leave it unconverted
return out
eur = (row["amount"] / rate).quantize(CENT, rounding=ROUND_HALF_EVEN)
out.update(rate=rate, amount_eur=eur)
return out
```
The function refuses to guess: a currency with no rate for that date stays unconverted, with `amount_eur` set to `None`. Load `rates` from the ECB's daily file or its data API, keyed by currency and date. Use the rate for the collection date, or the last published rate before it on weekends and holidays, and store which one you used.
## What does the normalised output look like?
We ran the three mappers and `to_eur` on the recorded responses with one rate: 1.1193 US dollars per euro, the ECB reference rate for 23 October 2026. We read that figure from the ECB's published table through search results, not from its data feed, so check it against the ECB's file before you reuse it. We had no ARS rate loaded, so the Mercado Libre rows stayed unconverted, as designed.
| Source | Product | Original | Amount | Currency | EUR |
| --- | --- | --- | --- | --- | --- |
| idealo | Ninja AF500 | `162,90 €` | 162.9 | EUR | 162.90 |
| idealo | Philips NA221/00 | `76,30 €` | 76.3 | EUR | 76.30 |
| walmart | Chefman Air Fryer 1500W, 6 Quart | `59.98` | 59.98 | USD | 53.59 |
| walmart | Thyme & Table 6 Quart Ceramic-Coated Air Fryer | `79` | 79 | USD | 70.58 |
| walmart | Instant Pot 4QT VORTEX Mini Air Fryer | `89.99` | 89.99 | USD | 80.40 |
| mercadolibre | Barra Luz Led 50cm Recargable | `9208` | 9208 | ARS | none (no rate) |
Every row keeps the original text, the parsed amount, the currency, and, in the full output, the rate and its date. If the rate turns out to be wrong, or you switch to a different rate source, you can recompute every converted figure without calling the APIs again. Load the rows into a table with those columns; [loading API JSON into Postgres](https://perceptlayer.com/blog/load-web-data-json-into-postgres) shows the pattern.
## Why is a converted price still not like for like?
Because currency is only one difference. Taxes, shipping, product and market all differ, and none of them is fixed by an exchange rate. Normalise currency first, then decide which of the others your analysis must control for.
Taxes are the largest. Germany's price indication rules require prices offered to consumers to be stated as total prices including VAT ( [PAngV § 3](https://www.gesetze-im-internet.de/pangv_2022/__3.html), 2026). US retail prices are usually shown before sales tax, which varies by state and city. So 162.90 EUR on Idealo and 53.59 EUR converted from Walmart differ by tax treatment as well as by product.
Products need matching, too: the table compares different air fryers, not one model in two markets. And in a currency with fast-moving rates, converting a month of prices at one rate misstates every day but one, which is why the code keys rates by date. For matching the same product across sources, see [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources).
## What does collecting the prices cost?
Each call to these endpoints costs 1 credit on success, and failed calls cost nothing and return `X-Credits-Used: 0`. Normalisation runs locally and costs nothing. The [credits docs](https://docs.perceptlayer.com/credits) explain billing; exchange rate files from the ECB and the BCRA are free.
| Job | Calls a day | Credits a month (30 days) |
| --- | --- | --- |
| 1 query on each of 3 sources | 3 | 90 |
| 10 queries on each of 3 sources | 30 | 900 |
| 100 queries on each of 3 sources | 300 | 9,000 |
Worked example: tracking 10 products on Idealo, Walmart and Mercado Libre daily is 10 × 3 × 30 = 900 credits a month. The 100 free credits cover its first 3 days, and a Starter pack of 10,000 credits covers the next 11 months. A hundred products is 9,000 credits a month, inside a Starter pack of 10,000 credits; purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. The source guides cover each endpoint's parameters: [Idealo](https://perceptlayer.com/blog/idealo-api-price-comparison-json), [Walmart](https://perceptlayer.com/blog/walmart-product-search-api) and [Mercado Libre](https://perceptlayer.com/blog/mercado-libre-api-product-search).
To try the endpoints, [get a free API key](https://perceptlayer.com/signup) and run a search in the playground on the [Idealo API page](https://perceptlayer.com/apis/idealo), the [Walmart API page](https://perceptlayer.com/apis/walmart) or the [Mercado Libre API page](https://perceptlayer.com/apis/mercadolibre). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Idealo **1 credit per call** · 13 endpoints](https://perceptlayer.com/apis/idealo)
- [Mercado Libre **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/mercadolibre)
- [Walmart **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/walmart)
## Frequently asked questions
### How do I convert prices in different currencies in Python?
Parse each price into a `Decimal`, attach its ISO currency code, and divide by a reference rate for the collection date, such as the ECB's euro rate. Round with `quantize(Decimal("0.01"))`. Keep the original amount, currency, rate and rate date on the row, so any conversion can be checked and recomputed later.
### Why use Decimal instead of float for prices?
Floats can't represent most decimal fractions exactly, so sums and conversions drift by small amounts. `Decimal(str(89.99))` is exactly 89.99. Build `Decimal`s from strings, not floats: `Decimal(89.99)` carries the float's binary error into the result. Round only once, when you store or display the converted value.
### Which exchange rate source should I use?
A published, dated reference rate you can cite. The ECB's euro reference rates cover 29 currencies on working days and are free; for currencies it doesn't publish, such as the Argentine peso, use that country's central bank, such as the BCRA's Communication A 3500 rate. Record which source and date you used for every row.
### How do I parse prices with commas as decimal separators?
Look at the string: if it has both a comma and a dot, the one that comes last is the decimal separator. With only a comma followed by two digits, as in `162,90 €`, the comma is decimal. Remove the other separator, swap a decimal comma for a dot, and build a `Decimal`.
### Can I compare converted prices across countries directly?
Not without caveats. German consumer prices include VAT by law, while US shelf prices usually exclude sales tax; shipping and the exact product also differ. Convert currency first, then adjust for tax and shipping where your analysis needs it, and compare matched products rather than similar ones.
currency conversion price data python data engineering ecb
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 24 Sept 2026 Perceptlayer 7 min read
## [Fetch Incremental Data From an API: Only New Records](https://perceptlayer.com/blog/incremental-api-data-pulls)
Fetch incremental data from an API: sort newest first, keep a high-water mark or seen-ID set per query, and stop paging early. Python, Craigslist and eBay.
---
title: "AutoTrader UK API: Get Used Car Listings as JSON"
description: "Search UK used car listings by postcode, make and price with one GET call. Real BMW response, 6 endpoints, 1 credit per call, failed calls free."
url: https://perceptlayer.com/blog/autotrader-uk-api-listings-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# AutoTrader UK API: Get Used Car Listings as JSON
13 Aug 2026 Updated 10 Nov 2026 Perceptlayer 6 min read
You can get AutoTrader UK listings as JSON without writing a scraper: call `GET /v1/autotrader-uk/search` with a UK `postcode` and an `X-API-Key` header, and you get listings with price, title, distance, images and a total result count. Each call costs 1 credit, and failed calls cost nothing. This guide shows the request, the parameters, a recorded response and the cost of paging through a whole search.
## Key takeaways
- Reading every page of the recorded BMW search costs 2,146 credits, so filter before you page.
- `GET /v1/autotrader-uk/search` needs only `postcode`; add `make`, `model`, price, year and mileage filters to narrow it.
- A recorded BMW search returned `total_results` of 42,916 across `page_count` 2,146, so every response tells you how much more there is to fetch.
- Six endpoints cover search, a single listing, facets, taxonomy, a dealer and a dealer's stock, all at 1 credit per call.
- Failed calls return `X-Credits-Used: 0`, and the free tier gives you 100 credits on signup to try it.
## Is there an official AutoTrader UK API?
We can't point you to one. We haven't verified what Auto Trader offers directly, so if you're a dealer managing your own adverts, ask Auto Trader about its partner options.
To read public used-car search results for a postcode, the options are writing and maintaining a scraper, or calling an API that returns the listings as JSON. This article covers the second one.
## What does the AutoTrader UK API return?
The AutoTrader UK API in the Perceptlayer catalogue has six endpoints, all `GET`, all 1 credit per call. The catalogue holds 480 websites and 2,782 endpoints in total, all returning JSON, and this is the [AutoTrader UK API](https://perceptlayer.com/apis/autotrader-uk) in the [Cars area](https://perceptlayer.com/verticals/cars).
| Endpoint | Returns | Required parameters |
| --- | --- | --- |
| `/v1/autotrader-uk/search` | [Search](https://perceptlayer.com/apis/autotrader-uk/search) results | `postcode` |
| `/v1/autotrader-uk/listing` | [One listing](https://perceptlayer.com/apis/autotrader-uk/listing) | `advert_id` |
| `/v1/autotrader-uk/facets` | [Facets](https://perceptlayer.com/apis/autotrader-uk/facets) for a search | `postcode` |
| `/v1/autotrader-uk/taxonomy` | [Taxonomy](https://perceptlayer.com/apis/autotrader-uk/taxonomy) | `postcode` |
| `/v1/autotrader-uk/dealer` | [Dealer](https://perceptlayer.com/apis/autotrader-uk/dealer) details | `retailer_id` |
| `/v1/autotrader-uk/dealer-listings` | [A dealer's listings](https://perceptlayer.com/apis/autotrader-uk/dealer-listings) | `postcode`, `retailer_id` |
A typical flow: search to find candidates, then `listing` with an `advert_id` for one advert's detail. Use `facets` to see how a search breaks down, and `dealer-listings` to read one dealer's stock.
## How do you run a used car search?
Send a `GET` to `/v1/autotrader-uk/search` with a postcode and your key. Keys start with `sk_live_` and go in the `X-API-Key` header; the [authentication docs](https://docs.perceptlayer.com/authentication) cover the query-parameter option. [Get a free API key](https://perceptlayer.com/signup) if you don't have one.
```bash
curl "https://api.perceptlayer.com/v1/autotrader-uk/search?postcode=SW1A1AA&price_search_type=total&make=BMW&sort=relevance&page=1" \
-H "X-API-Key: $API_KEY"
```
This searches BMWs around `SW1A1AA` and sorts by relevance. `price_search_type=total` asks for the total price rather than a monthly one. Only `postcode` is required, so you can drop everything else and get an unfiltered search.
### Which parameters does the search endpoint take?
The search endpoint takes one required parameter and seventeen optional ones. Types and allowed values below are as documented; nothing else about them is documented, so check the [Search endpoint page](https://perceptlayer.com/apis/autotrader-uk/search) or try values in the playground.
| Parameter | Type | Notes |
| --- | --- | --- |
| `postcode` | string, required | Up to 8 characters |
| `price_search_type` | string | `total` or `monthly` |
| `make` | string | Up to 100 characters |
| `model` | string | Up to 100 characters |
| `body_type` | string | Up to 100 characters |
| `colour` | string | Up to 100 characters |
| `transmission` | string | Up to 100 characters |
| `seller_type` | string | `private` or `trade` |
| `fuel_type[]` | list of string | Up to 50 characters per value |
| `min_price`, `max_price` | integer | |
| `min_year_manufactured`, `max_year_manufactured` | integer | |
| `min_mileage`, `max_mileage` | integer | |
| `distance` | integer | |
| `sort` | string | `relevance`, `price_asc`, `price_desc`, `distance`, `mileage`, `year_dsc`, `year_asc`, `most_recent` |
| `page` | integer | |
`dealer-listings` takes the same filters plus a required `retailer_id`.
## What does a search response look like?
A search response has three parts: `data.listings`, an array of adverts; `data.pagination`; and a `meta` block. This is a trimmed excerpt of a real recorded response for the BMW request above, with `…` marking what was cut.
```json
{
"success": true,
"data": {
"listings": [
{
"advert_id": "202610227244889",
"type": "NATURAL_LISTING",
"title": "BMW X5",
"sub_title": "3.0d SE Exclusive Edition Auto 4WD Euro 4 5dr",
"price": {
"amount": 2700,
"currency": "GBP",
"display": "£2,700"
},
"vehicle_location": "Crawley (27 miles)",
"distance": { "value": 27, "unit": "miles" },
"number_of_images": 16,
"seller_type": "PRIVATE",
"position": 1,
"tracking_context": {
"price": 2700,
"make": "BMW",
"model": "X5",
"year": 2005,
"condition": "used",
"price_indicator": "NOANALYSIS"
}
},
…
],
"pagination": {
"page": 1,
"page_count": 2146,
"total_results": 42916,
"has_more": true
}
},
"meta": {
"duration_ms": 1129,
"endpoint_family": "search"
}
}
```
### What do the main fields mean?
The fields you'll use most are in the table below. Meanings are read from the recorded values, not from separate documentation.
| Field | Example | Use |
| --- | --- | --- |
| `advert_id` | `"202610227244889"` | The key for the `listing` endpoint |
| `title`, `sub_title` | `"BMW X5"`, `"3.0d SE Exclusive Edition…"` | Model name and trim line |
| `price.amount` | `2700` | Numeric price, in `price.currency` ( `GBP`) |
| `price.display` | `"£2,700"` | The formatted string |
| `distance.value`, `distance.unit` | `27`, `"miles"` | Distance from your postcode |
| `seller_type` | `"PRIVATE"` | Private or trade seller |
| `tracking_context.year` | `2005` | Year of the car |
| `tracking_context.make`, `.model` | `"BMW"`, `"X5"` | Make and model as separate fields |
| `images` | URLs containing `{resize}` | Photo URLs; the `{resize}` token is part of the returned string |
| `number_of_images` | `16` | How many photos the advert has |
| `position` | `1` | Rank within the results |
Mileage, fuel type and the like aren't in the excerpt, so this guide doesn't describe them. Run a `listing` call in the playground on the [AutoTrader UK API page](https://perceptlayer.com/apis/autotrader-uk) to see what an individual advert carries. For which fields matter when you analyse prices, see [Used Car Listing Data: Fields for Price Analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis).
## How do you narrow a search or list what's available?
Add filters to cut a search down, or call `facets` to see how results break down before you filter. Both are the same 1 credit per call, and a narrower search means fewer pages to fetch. Here is a filtered search for automatic cars under £10,000 from trade sellers, newest first.
```bash
curl -G "https://api.perceptlayer.com/v1/autotrader-uk/search" \
-d "postcode=SW1A1AA" \
-d "make=BMW" \
-d "transmission=Automatic" \
-d "seller_type=trade" \
-d "max_price=10000" \
-d "sort=most_recent" \
-H "X-API-Key: $API_KEY"
```
`transmission` is a free-text string, so check the accepted values against the facets before relying on one.
For the breakdown, `facets` takes a `facets[]` list. Allowed values include `make`, `model`, `body_type`, `colour`, `fuel_type`, `transmission`, `seller_type`, `price`, `mileage` and `year_manufactured`, among others.
```bash
curl -G "https://api.perceptlayer.com/v1/autotrader-uk/facets" \
-d "postcode=SW1A1AA" \
-d "facets[]=make" \
-d "facets[]=fuel_type" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a facets response for this article, so it doesn't quote one. The [Facets endpoint page](https://perceptlayer.com/apis/autotrader-uk/facets) has a playground. The `taxonomy` endpoint, which takes `postcode` and an optional `make`, is the place to look when you need valid make and model values.
## How do you page through all the results?
Read `data.pagination` on every response and keep going while `has_more` is `true`. In the recorded search, `page_count` was 2,146 and `total_results` 42,916, so one call returns a page of a much larger set. Each page is a separate call at 1 credit.
```python
import os
import time
import requests
URL = "https://api.perceptlayer.com/v1/autotrader-uk/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
params = {"postcode": "SW1A1AA", "make": "BMW", "sort": "price_asc", "page": 1}
max_pages = 5 # cap spend while you test
listings = []
while params["page"] <= max_pages:
resp = requests.get(URL, params=params, headers=HEADERS, timeout=30)
if resp.status_code in (429, 503):
time.sleep(int(resp.headers.get("Retry-After", "5")))
continue
resp.raise_for_status()
data = resp.json()["data"]
listings.extend(data["listings"])
if not data["pagination"]["has_more"]:
break
params["page"] += 1
print(len(listings), "listings")
```
The `Retry-After` header carries the seconds to wait on a 429 or 503. For safer loops see [Paginate a Web Data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python), and for what a timed-out request can mean for billing, [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice).
## What does it cost?
Every endpoint here costs 1 credit per successful call. A failed call costs nothing and returns `X-Credits-Used: 0`; every successful response carries `X-Credits-Used` and `X-Credits-Remaining`. The free tier gives you 100 credits once, after you verify an email address, with no credit card.
Worked examples, using the recorded search:
- Reading all 2,146 pages of that BMW search once: 2,146 pages × 1 credit = 2,146 credits. That is far more than the 100 free credits, so filter first.
- Checking 200 adverts with `listing` after a search: 200 calls × 1 credit = 200 credits.
- A daily 5-page search for one postcode over 30 days: 30 × 5 × 1 credit = 150 credits.
Purchased credits last 12 months, with no subscription. The [credits docs](https://docs.perceptlayer.com/credits) explain billing, and [pricing](https://perceptlayer.com/pricing) shows what credits cost. Rate limits are per account; free accounts get 1 request a second, so a page loop needs the `Retry-After` handling above. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) and [errors docs](https://docs.perceptlayer.com/errors) cover the rest.
## What should you build next?
Start with one postcode and one make, store `advert_id` with `price.amount` and a timestamp on each run, and compare runs. That gives you price movement for a model without scraping anything. If you're building an agent instead, the same endpoints are callable as tools over MCP; see the [AI agents docs](https://docs.perceptlayer.com/ai-agents).
For other UK listings, see the [Rightmove API guide](https://perceptlayer.com/blog/rightmove-api-property-data). To try this call now, [get a free API key](https://perceptlayer.com/signup) and run the search in the playground on the [AutoTrader UK API page](https://perceptlayer.com/apis/autotrader-uk).
## APIs in this post
- [AutoTrader UK **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autotrader-uk)
## Frequently asked questions
### Does AutoTrader have a public API for listings?
We can't confirm one, and we haven't verified what Auto Trader offers directly. To read public search results as JSON without a scraper, call the `search` endpoint described in this guide.
### How much does one AutoTrader UK API call cost?
One credit for each of the six endpoints on a successful call. Failed calls cost nothing and return `X-Credits-Used: 0`. Free accounts get 100 credits once, on signup, enough for 100 search pages; 1,000 pages cost 1,000 credits. The [pricing page](https://perceptlayer.com/pricing) shows what credit packs cost.
### Can I get one dealer's stock?
Yes. Call `/v1/autotrader-uk/dealer-listings` with a `postcode` and a `retailer_id`; it accepts the same filters as search, such as `make`, `max_price` and `sort`. Use `/v1/autotrader-uk/dealer` with the same `retailer_id` for the dealer's own details.
### What happens when a call fails or I hit the rate limit?
Errors return an HTTP status and a JSON body with `error.code`, `message` and `request_id`. A 429 `rate_limited` or 503 `temporarily_unavailable` response includes `Retry-After` with the seconds to wait. A bad parameter returns 422 `invalid_parameters`. See the [errors docs](https://docs.perceptlayer.com/errors).
### Is it legal to use this data?
Data is collected from publicly available sources and returned as found at the time of the call. Whether your use is allowed depends on what you do with it and on AutoTrader's terms and UK law, so check those for your case. UK copyright law has a narrow exception: [GOV.UK](https://www.gov.uk/guidance/exceptions-to-copyright) says researchers may copy material for computational analysis "if they already have the right to read the work", which doesn't cover commercial reuse. Perceptlayer can't give you legal advice.
autotrader used cars car listings uk cars api
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 1 Nov 2026 Perceptlayer 8 min read
## [Autotrader Scraper or API: What You Get](https://perceptlayer.com/blog/autotrader-scraper-vs-api)
An Autotrader UK scraper vs a 1-credit search call: a recorded BMW search near SW1A 1AA with 42,916 results, advert\_id, price.amount and year as JSON.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 9 Oct 2026 Perceptlayer 7 min read
## [Cars.com API: Used Car Listings and Price Evaluations](https://perceptlayer.com/blog/cars-com-api-listings-price-evaluation)
Search Cars.com listings with its six required parameters (zip, radius\_miles, stock\_type, sort, page, page\_size), then listing, dealer and price-eval calls.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 4 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [AutoScout24 API: Search European Car Listings as JSON](https://perceptlayer.com/blog/autoscout24-api-car-listings-json)
Search AutoScout24 listings as JSON: make\_id and price filters, a recorded BMW response, and what a monthly price sweep costs in credits.
---
title: "Cache API Responses in Python: TTLs and Credit Savings"
description: "A SQLite cache for API responses, keyed on endpoint and parameters, with per-endpoint TTLs and the credits each cache hit saves."
url: https://perceptlayer.com/blog/cache-web-data-api-responses
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Cache API Responses in Python: TTLs and Credit Savings
13 Aug 2026 Perceptlayer 10 min read
To cache API responses in Python, hash the endpoint path and the normalised parameters into a key, store the JSON body in SQLite with a timestamp, and serve it again until a per-endpoint TTL expires. Only successful responses go in the cache. On a prepaid API where a successful call costs 1 credit, every cache hit is a credit you don't spend.
This tutorial builds that cache in a short script, wires it to the Google Search API, and works through the credit arithmetic on a repeated-query workload.
## Key takeaways
- Key the cache on the endpoint path plus the sorted, non-empty parameters. Leave the API key out of the key.
- Set TTLs per data type, not globally. The values here (24 hours, 6 hours, 1 hour) are our starting choices; tune them to how old an answer can be before it misleads you.
- Cache only HTTP 200 responses. Failed calls cost 0 credits and shouldn't be remembered.
- In a hypothetical workload of 10,000 requests over 2,000 distinct queries, the cost falls from 10,000 credits to 2,000 (see [pricing](https://perceptlayer.com/pricing) for what credits cost) only if every repeat arrives within one TTL window. That is a best case, not a measured result.
- Bypass the cache when the use case is the change itself, such as rank tracking or monitoring.
## Why cache web data API responses at all?
Because repeated requests for the same data are the cheapest ones to remove. Each successful call to the [Google Search API](https://perceptlayer.com/apis/google-search) costs 1 credit, so ten identical calls cost 10 credits and return the same answer ten times. A cache turns the second to tenth call into a local read with no network call that costs 0 credits.
Caching also protects you from your own code. Agents loop, retry and re-ask. Dashboards refresh. Batch jobs restart after a crash and replay the first half of their input. A cache absorbs all of that without a code change at the call sites. For spend caps on agents specifically, see [AI Agent API Cost Control: Cap Web Data Spend](https://perceptlayer.com/blog/ai-agent-web-data-costs).
The idea isn't new. HTTP caching rules in [RFC 9111](https://www.rfc-editor.org/rfc/rfc9111) describe freshness lifetimes and revalidation for exactly this reason. We're building the client-side version of the same contract, with the freshness lifetime decided by you per endpoint.
## What goes into the cache key?
The key must identify the request, and nothing else. For a GET API that means the endpoint path and the query parameters, normalised so that the same request always hashes to the same value. Parameter order, unset parameters and the API key shouldn't change the key; any parameter that changes the answer, such as `hl`, `gl` or `page`, must.
Three rules cover it:
1. **Sort parameters** by name, so `hl=en&query=x` and `query=x&hl=en` match.
2. **Drop `None` values**, so passing `gl=None` equals omitting `gl`.
3. **Exclude the `X-API-Key` header.** Rotating a key shouldn't empty your cache, and the key must never end up in a database file.
The part people get wrong is over-normalising. Lowercasing a query or trimming it usually merges requests that return the same results, but you're asserting that, not the API. Strip surrounding whitespace, which is safe, and decide about case from your own data. The code below leaves case alone.
## How do you pick a TTL for each data type?
Set the TTL to how long the answer stays useful to your application, not to how long the source stays the same. The numbers below are our own starting choices for this tutorial, not measurements of how often search results change and not Perceptlayer guarantees. The data is returned as found at the time of the call.
| Endpoint | Returns | Starting TTL | Reasoning |
| --- | --- | --- | --- |
| `/v1/google-search/search-light-autocomplete` | Search Light Autocomplete | 24 hours | Short suggestion lists; a day-old list is usually fine for a research script |
| `/v1/google-search/search-light` | Search Light | 6 hours | A few hours of lag is acceptable for most research jobs |
| `/v1/google-search/search` | Search | 6 hours | Same choice, richer response |
| `/v1/google-search/search-ai-overview` | Search Ai Overview | 1 hour | Shortest TTL, because we'd rather re-check generated answers sooner |
Each of these endpoints costs 1 credit per successful call, so the TTL is the only thing that differs between them. Tune it by asking one question per endpoint: what is the cost of showing someone an answer that is this old? If the honest answer is "nothing", lengthen it. If it's "a wrong decision", shorten it or skip the cache, as covered further down.
## How do you build the cache in Python?
Use SQLite from the standard library. It gives you a persistent file, atomic writes and no extra service, and it survives restarts, which an in-process dictionary doesn't. The [sqlite3 module documentation](https://docs.python.org/3/library/sqlite3.html) covers everything used here. If you want a drop-in cache for `requests` with no custom code, the [requests-cache](https://github.com/requests-cache/requests-cache) library fits better than writing your own. This version adds what a prepaid API needs on top: credit accounting per hit and miss, and a TTL map keyed on endpoint path with a 200-only write rule. You need the `requests` package and your key in the `API_KEY` environment variable; [get a free API key](https://perceptlayer.com/signup) if you don't have one.
### Step 1: Create the store
One table holds the key, the body, the time it was fetched and the credits the call cost. Storing the cost lets the cache report what it saved.
```python
import hashlib
import json
import os
import sqlite3
import time
import requests
BASE_URL = "https://api.perceptlayer.com"
API_KEY = os.environ["API_KEY"]
TTL_SECONDS = {
"/v1/google-search/search-light-autocomplete": 24 * 3600,
"/v1/google-search/search-light": 6 * 3600,
"/v1/google-search/search": 6 * 3600,
"/v1/google-search/search-ai-overview": 3600,
}
db = sqlite3.connect("api_cache.sqlite")
db.execute(
"""CREATE TABLE IF NOT EXISTS cache (
key TEXT PRIMARY KEY,
body TEXT NOT NULL,
fetched_at REAL NOT NULL,
credits INTEGER NOT NULL
)"""
)
stats = {"hits": 0, "misses": 0, "credits_spent": 0, "credits_saved": 0}
```
### Step 2: Build the key
The key hashes the path and the cleaned parameters. A fixed JSON encoding with sorted keys keeps it stable.
```python
def cache_key(path, params):
clean = {k: str(v).strip() for k, v in params.items() if v is not None}
raw = json.dumps([path, sorted(clean.items())], separators=(",", ":"))
return hashlib.sha256(raw.encode()).hexdigest()
```
### Step 3: Read, call, write
The function checks the cache first, calls the API on a miss, and stores the body only when the status is exactly 200. Errors raise, which keeps them out of the cache and costs nothing: failed calls return `X-Credits-Used: 0`. Any other 2xx status is returned to the caller but not cached. The `fresh=True` flag skips the read but still writes, so a forced refresh updates the entry.
```python
def cached_get(path, fresh=False, **params):
ttl = TTL_SECONDS.get(path, 0)
key = cache_key(path, params)
if ttl and not fresh:
row = db.execute(
"SELECT body, fetched_at, credits FROM cache WHERE key = ?", (key,)
).fetchone()
if row and time.time() - row[1] < ttl:
stats["hits"] += 1
stats["credits_saved"] += row[2]
return json.loads(row[0])
resp = requests.get(
BASE_URL + path,
params={k: v for k, v in params.items() if v is not None},
headers={"X-API-Key": API_KEY},
timeout=30,
)
resp.raise_for_status()
credits = int(resp.headers.get("X-Credits-Used", 1))
stats["misses"] += 1
stats["credits_spent"] += credits
if ttl and resp.status_code == 200:
db.execute(
"INSERT OR REPLACE INTO cache VALUES (?, ?, ?, ?)",
(key, resp.text, time.time(), credits),
)
db.commit()
return resp.json()
```
Endpoints missing from `TTL_SECONDS` get a TTL of 0 and are never cached, which is a safe default for anything you haven't thought about yet.
### Step 4: Call it
Use it exactly like the plain request. This is the recorded request from our [Search endpoint](https://perceptlayer.com/apis/google-search/search) page, now going through the cache.
```python
data = cached_get(
"/v1/google-search/search",
query="best restaurants in Berlin",
hl="en",
safe="off",
)
print(data["search_information"]["organic_results_count"])
print(stats)
```
The response is the same JSON you'd get without the cache. A trimmed excerpt of the recorded response:
```json
{
"search_information": {
"query_displayed": "best restaurants in Berlin",
"organic_results_count": 6
},
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
…
```
Run the script twice and `stats` shows one miss on the first run. On the second run, in a new process, the call is a hit, because the file persists. The `X-Credits-Remaining` header on your first call lets you confirm that the second one didn't move your balance.
## How much does caching actually save?
Savings are the number of requests you no longer send, multiplied by the credits per call. With a successful call at 1 credit, you can work it out before writing any code. The workload below is a hypothetical we chose to show the arithmetic, not a measurement.
Say a job makes 10,000 requests spread over 2,000 distinct queries, so each query is asked five times on average. The last row assumes every repeat of a query arrives within one TTL window of its first call, which makes it a best case and an upper bound on the saving. A job spread over a month with a 6-hour TTL would land between the last two rows or worse. The "40% of repeats expire" row is an assumption to show the effect of a short TTL, not an observed rate.
| Scenario | Calls that reach the API | Credits |
| --- | --- | --- |
| No cache | 10,000 | 10,000 × 1 = 10,000 |
| Cache, TTL too short (40% of repeats expire) | 2,000 + 0.4 × 8,000 = 5,200 | 5,200 × 1 = 5,200 |
| Cache, every repeat within one TTL window (best case) | 2,000 | 2,000 × 1 = 2,000 |
The last row saves 8,000 credits. The best case uses 2,000 credits, which fits inside the Starter pack of 10,000 credits; the uncached run uses all of it. The credits you keep are the same whichever pack you buy, and [pricing](https://perceptlayer.com/pricing) shows what each pack costs.
The middle row is the one to watch. A TTL that expires before the next repeat arrives behaves like no cache for those requests. Log the gap between repeats of the same key for a week, then set the TTL just above the typical gap. For plan sizing, the free allowance is 100 credits, granted once at signup; see [pricing](https://perceptlayer.com/pricing) and the [credits section of the docs](https://docs.perceptlayer.com/credits).
## When is stale data the wrong trade?
Stale data is the wrong trade whenever the change is the thing you are measuring, or whenever a decision depends on the current state. A cache that serves a six-hour-old results page is correct for a research script and wrong for a rank tracker, which exists to notice that a result moved.
Skip or shorten the cache in these cases:
- **Monitoring and alerting.** If you compare today's results to yesterday's, a cache hit makes them identical and hides the change. Pass `fresh=True`.
- **Time-sensitive queries.** News, prices and availability go out of date faster than a generic TTL assumes.
- **Agent answers shown to a user as current.** Cache the lookup if you like, but pass the age along so the answer can say how old it is.
- **After a known change.** If you know the underlying data moved, evict the entry instead of waiting out the TTL.
Eviction is a single DELETE. Remove one entry by its key, and purge every row older than its TTL so the file doesn't grow without bound:
```python
def evict(path, **params):
db.execute("DELETE FROM cache WHERE key = ?", (cache_key(path, params),))
db.commit()
def purge_expired():
# Keys are hashes, so rows don't record their path. The longest TTL is
# the cutoff: anything older is expired for every endpoint.
cutoff = time.time() - max(TTL_SECONDS.values())
db.execute("DELETE FROM cache WHERE fetched_at < ?", (cutoff,))
db.commit()
```
Rows younger than the longest TTL but older than their own endpoint's TTL stay in the file until a lookup finds them expired and `INSERT OR REPLACE` overwrites them, so the purge is a size control, not a freshness check.
A middle path is storing `fetched_at` with every hit and exposing it. A caller who sees "fetched 5 hours ago" can choose to refresh. That costs one extra field in your return value and avoids silent staleness.
## What should the cache never store?
Never store errors, and never let the cache hide an error from your caller. Failures come back as an HTTP status with a JSON body of the form `{"error": {"code", "message", "request_id"}}`, and they cost nothing. The code above raises on any non-2xx status before reaching the write, so a 429 or a 503 can't poison the cache for six hours.
Handle those errors where the call is made. A 429 or 503 carries a `Retry-After` header with the seconds to wait, and an `insufficient_credits` (402) means the balance is empty and nothing is debited. The [errors section of the docs](https://docs.perceptlayer.com/errors) lists every code.
One more trap: a request whose reply was lost, such as a client timeout, may have succeeded and been billed, because requests carry no idempotency key. A cache gives you a partial fix for free. If the retry happens after a successful write for the same key, the retry is a hit. But when the original reply never arrived, nothing was written, and the retry pays again. [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers that case.
Caching also pairs with paging. Each page is its own key because `page` is part of the parameters, so a restarted crawl skips pages it already holds. See [Paginate a Web Data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
## How do you check the cache is working?
Read the counters, then read the balance. `stats` tells you hits, misses and the credits saved per run, and a hit rate that is lower than your repeat rate means the TTL is too short or your key includes something that varies. Compare against the `X-Credits-Remaining` header on a miss to confirm the balance moves only when a call reaches the API.
A short report at the end of a job is enough:
```python
total = stats["hits"] + stats["misses"]
rate = stats["hits"] / total if total else 0
print(f"hit rate {rate:.0%}, spent {stats['credits_spent']} credits, "
f"saved {stats['credits_saved']}")
```
If the hit rate is near zero on a workload you know repeats, print `cache_key(path, params)` for two requests that should match. A stray timestamp or request ID in the parameters is the usual cause.
Next step: run your own repeated-query job through `cached_get`, log the gap between repeats, and set each TTL just above it. The [Google Search API page](https://perceptlayer.com/apis/google-search) has a playground for trying parameters before you hard-code them, and the [data engineering category](https://perceptlayer.com/blog/category/data-engineering) has more on running pipelines on web data.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### How long should I cache Google Search API responses?
It depends on the endpoint and the use. Our starting choices in this tutorial are 24 hours for autocomplete, 6 hours for search results and 1 hour for AI overviews; they are defaults to adjust, not measured figures. Measure the gap between repeats of the same query and set the TTL just above it. Data is returned as found at the time of the call, so the TTL is your freshness decision.
### Do cache hits cost credits?
No. A hit is served from your own SQLite file and never reaches the API, so nothing is debited. Only a successful call costs the credits shown on its endpoint, which is 1 credit for the Google Search endpoints. Failed calls cost nothing and return `X-Credits-Used: 0`, so neither a miss that errors nor a hit adds to your bill.
### Should I cache error responses?
No. Errors such as `rate_limited` (429) or `temporarily_unavailable` (503) are temporary, and caching one would repeat the failure until the TTL ran out. The code here writes to the cache only after a successful response. Let the caller see the error and retry using the `Retry-After` header.
### Is a SQLite file enough, or do I need Redis?
SQLite fits a single script or one worker, and it persists across restarts with no service to run. If several machines share one cache, or you want automatic eviction, use a shared store such as Redis. The key design and TTL logic stay the same; only the read and write calls change.
caching python ttl cost control google search
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 5 Oct 2026 Perceptlayer 8 min read
## [Concurrent API Requests in Python: Asyncio Under Rate Limits](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit)
A Python asyncio fetcher that paces calls to your per-second limit, honours Retry-After and prices a 20,000-call batch at 20,000 credits.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
---
title: "Walmart Product Search API: Prices and Product Data"
description: "Search Walmart by keyword and get price, rating, seller and stock as JSON with GET /v1/walmart/search. Parameters, a real response and a credit count."
url: https://perceptlayer.com/blog/walmart-product-search-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Walmart Product Search API: Prices and Product Data
13 Aug 2026 Updated 26 Oct 2026 Perceptlayer 7 min read
Call `GET /v1/walmart/search` with a `query` and you get Walmart search results as JSON: item ID, title, price, rating, review count, seller and stock status. Call `GET /v1/walmart/product` with a `us_item_id` to look up one item. Each successful call costs 1 credit, and failed calls cost nothing. This guide covers both endpoints, every parameter, a recorded response and the credit cost of a 10,000-product pass.
## Key takeaways
- `GET /v1/walmart/search` needs only `query`; `page`, `sort`, `min_price`, `max_price`, `cat_id` and `facet_filter` are optional.
- `GET /v1/walmart/product` takes one required parameter, `us_item_id`, which is the `us_item_id` field every search result carries.
- Both endpoints cost 1 credit per successful call, so a detail lookup for 10,000 products costs 10,000 credits.
- The search response already includes `price`, `rating`, `reviews`, `seller_name` and `availability_status`, so many price-monitoring jobs never need the detail call.
- Failed calls return `X-Credits-Used: 0`, and the free tier gives 100 credits on signup with no credit card.
## Why is there a gap between Walmart's own APIs and a product search API?
Walmart's [affiliate programme](https://affiliates.walmart.com/) is built for publishers: it lets them "earn commission by connecting your audience to products they love", with link generation and data feeds in its Affiliate Member Center (Walmart, 2026). Walmart's [developer portal](https://developer.walmart.com/) is aimed at marketplace sellers, solutions providers, first-party suppliers, carriers and advertising partners, to manage items, prices, orders and ads (Walmart, 2026).
Both are built for partners, not for someone who just wants search results with prices and stock as JSON. If you are a publisher earning commission, start with the affiliate programme. If you sell on Walmart, the developer portal is the place. If you are a data team or agent builder who needs search results across a catalogue, that is the job of the [Walmart API](https://perceptlayer.com/apis/walmart): two endpoints, a free key, and JSON back. It is part of the [Marketplaces APIs](https://perceptlayer.com/verticals/marketplaces). Data is collected from publicly available sources and returned as found at the time of the call.
## How do you search Walmart products with one request?
Send a GET request to `/v1/walmart/search` with the `query` parameter and your key in the `X-API-Key` header. The response is JSON with a `results` array, a `search_metadata` object and a `pagination` object. `query` can be up to 500 characters. Everything else is optional.
```bash
curl "https://api.perceptlayer.com/v1/walmart/search?query=coffee+maker" \
-H "X-API-Key: $API_KEY"
```
Keys start with `sk_live_`. If a header isn't possible, the `api_key` query parameter works too. The [authentication docs](https://docs.perceptlayer.com/authentication) cover both, and the [quick start](https://docs.perceptlayer.com/quickstart) takes you from sign-up to a first call. You can also run the call in the playground on the [Walmart search endpoint page](https://perceptlayer.com/apis/walmart/search) before writing code.
## Which parameters does the search endpoint take?
The search endpoint takes one required parameter, `query`, and six optional ones for paging, sorting, price bounds, category and facet filters. Types and limits below are the only ones documented, so this guide doesn't state defaults or page sizes. If you need a page size, read it from a real response rather than assuming.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | yes | Up to 500 characters |
| `page` | integer | no | Page of results to return |
| `sort` | string | no | One of `best_match`, `price_low`, `price_high`, `rating_high`, `new` |
| `min_price` | integer | no | Lower price bound |
| `max_price` | integer | no | Upper price bound |
| `cat_id` | string | no | Category ID, up to 64 characters |
| `facet_filter` | string | no | Up to 2,000 characters |
A price-bounded, cheapest-first search looks like this:
```bash
curl "https://api.perceptlayer.com/v1/walmart/search?query=air+fryer&sort=price_low&min_price=20&max_price=80" \
-H "X-API-Key: $API_KEY"
```
Bad values come back as `invalid_parameters` (422), with a `request_id` you can quote. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
## What does a search response look like?
A successful search returns `success: true`, a `data` object and a `meta` object. Inside `data`, `search_metadata` echoes your query, page and sort and reports `total_items`; `results` holds one object per product; `pagination` tells you whether to keep going. This excerpt is from a recorded call for `query=air+fryer`, trimmed to the first result with its `thumbnail` URL shortened ( `…` marks each cut):
```json
{
"success": true,
"data": {
"search_metadata": {
"query": "air fryer",
"page": 1,
"sort": "best_match",
"total_items": 72
},
"results": [
{
"us_item_id": "17268119743",
"title": "Instant Pot 4QT VORTEX 6-in-1 Mini Air Fryer, Air fry, Bake, Roast, Broil, Dehydrate or Reheat, Black, 4 Quarts",
"price": 89.99,
"currency": "USD",
"rating": 4.4,
"reviews": 87,
"seller_name": "Walmart.com",
"availability_status": "IN_STOCK",
"thumbnail": "https://i5.walmartimages.com/seo/Instant-Pot-4QT-VORTEX-6-in-1-Mini-Air-Fryer-…",
"product_page_url": "https://www.walmart.com/ip/17268119743",
"out_of_stock": false,
"sponsored": true
},
…
],
"pagination": {
"current_page": 1,
"max_page": 13,
"has_more": true
}
},
"meta": {
"endpoint_family": "search",
"duration_ms": 4134,
"attempts": 2
}
}
```
Two fields are worth checking before you rely on the data. Both recorded results show `sponsored: true`, so look at that flag before treating the order as organic ranking. `seller_name` is `Walmart.com` in both. Check it across your own queries to see what other values appear. The `thumbnail` field is an image URL.
## How do you look up a single Walmart product?
Pass the `us_item_id` from a search result to `GET /v1/walmart/product`. It's the only parameter, it's required, and it can be up to 32 characters. The call returns the Product record for that item and costs 1 credit, the same as a search page.
```bash
curl "https://api.perceptlayer.com/v1/walmart/product?us_item_id=17268119743" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a product response for this guide, so we won't show one here. The [Walmart product endpoint page](https://perceptlayer.com/apis/walmart/product) lists what it returns, and the playground there runs a real call with your key. In the recorded results, the `us_item_id` is also the last part of each `product_page_url` ( `https://www.walmart.com/ip/`), which helps if you already hold product links and want to skip search.
## What is the search-then-detail pattern?
Run a search to discover item IDs and headline fields, then call the product endpoint only for items you need more about. A search page costs 1 credit and a detail lookup costs 1 credit for a single item, so search is cheaper per product only if a page holds more than one item. The page size isn't documented, and the recorded excerpt shows only two results, so measure items per page on your own queries before you decide how much to lean on search.
Here is a Python loop that walks every page of a search using the `has_more` flag from the response, collecting item IDs:
```python
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def search_all(query, **filters):
page, items = 1, []
while True:
r = requests.get(
f"{BASE}/v1/walmart/search",
headers=HEADERS,
params={"query": query, "page": page, **filters},
timeout=60,
)
r.raise_for_status()
data = r.json()["data"]
items.extend(data["results"])
if not data["pagination"]["has_more"]:
return items
page += 1
items = search_all("air fryer", sort="price_low")
organic = [i for i in items if not i["sponsored"]]
print(len(items), len(organic))
```
For retries and page-loop safety, see [safe page loops in Python](https://perceptlayer.com/blog/paginate-web-data-api-python) and [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice). A timed-out request may have succeeded and been billed, because requests have no idempotency key.
## What does a 10,000-product catalogue pass cost?
A detail lookup for 10,000 products costs 10,000 calls × 1 credit = 10,000 credits, which equals the Starter pack exactly. The discovery step is extra: every search page is 1 credit. The recorded `air fryer` search reported `max_page` 13, so walking that one query end to end costs 13 credits.
| Step | Calls | Credits per call | Credits |
| --- | --- | --- | --- |
| Walk one query (the recorded example, 13 pages) | 13 | 1 | 13 |
| Detail lookup for 10,000 items | 10,000 | 1 | 10,000 |
| Search-only refresh of 10,000 items | ⌈10,000 ÷ items per page⌉ | 1 | the same number, measured on your own queries |
The third row is a formula, not a figure. Items per page isn't documented, so count it in a real response and divide 10,000 by that number to get the credits for a search-only refresh. A single query also reports only so many items (72 in the recorded call), so reaching 10,000 products takes many queries, and the same product can appear in more than one. Search results already carry `price`, `availability_status`, `rating` and `reviews`, so a price monitor can refresh from search pages and call the product endpoint only when a field you need is missing. The [credits docs](https://docs.perceptlayer.com/credits) explain billing, and [pricing](https://perceptlayer.com/pricing) shows what credits cost. Purchased credits last 12 months, with no subscription.
At 1 request a second on the free tier, 10,000 sequential detail calls take about 10,000 seconds, so plan for the [rate limits](https://docs.perceptlayer.com/rate-limits). Paid packs include higher rates. A 429 carries a `Retry-After` header, and you should wait that many seconds.
## Can an AI agent call the Walmart endpoints?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. An agent finds the Walmart endpoints in the catalogue for free, then calls them with the same parameters as above. Only a successful `call_endpoint` spends credits, and the result reports credits used and remaining.
In Claude Code, add it with one command:
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp --header "Authorization: Bearer $API_KEY"
```
A shopping agent can then search, filter out `sponsored` items and fetch one product for a final check. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) cover setup. For the same pattern on a different source, see [eBay search results as JSON](https://perceptlayer.com/blog/ebay-item-search-data-json).
Next step: [get a free API key](https://perceptlayer.com/signup), run `query=coffee+maker` in the playground on the [Walmart API page](https://perceptlayer.com/apis/walmart), then copy the cURL call into your own code.
## APIs in this post
- [Walmart **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/walmart)
## Frequently asked questions
### How many credits does a Walmart search cost?
A successful call to `GET /v1/walmart/search` costs 1 credit, and so does `GET /v1/walmart/product`. A failed call costs nothing and returns `X-Credits-Used: 0`. Every successful response also carries `X-Credits-Remaining`, so you can track your balance. The free tier gives 100 credits on signup.
### Does the API return Walmart prices in dollars?
Each search result carries a numeric `price` and a `currency` field; the recorded sample shows `USD`. Prices are returned as found at the time of the call, so they can change between a search and a later product lookup. Store the call time next to the price if you track history.
### How do I get the next page of Walmart results?
Check `data.pagination.has_more`. When it is true, repeat the same request with `page` increased by one. The response also gives `current_page` and `max_page`, and the recorded example reported 13 pages. Each page is a separate call that costs 1 credit.
### What happens if I run out of credits mid-run?
The service is prepaid, so calls return `insufficient_credits` (402) once the balance is gone, and nothing more is debited. There's no automatic top-up. Check `X-Credits-Remaining` during long loops and stop cleanly; the [errors docs](https://docs.perceptlayer.com/errors) list the codes to handle.
### Can I use this instead of Walmart's official API?
It depends on your use. If you earn commission through Walmart links, start with Walmart's own [affiliate programme](https://affiliates.walmart.com/). If you sell on Walmart, see its [developer portal](https://developer.walmart.com/). If you need product data for analysis, monitoring or an agent, a keyed JSON endpoint is the more direct path.
### Should I build a Walmart scraper instead?
A Walmart scraper means maintaining selectors for product and search pages, handling blocks, and following Walmart's terms. The search endpoint returns price, rating, seller and stock as named JSON fields for 1 credit per successful call, with nothing charged for failures. Build your own only for a page the endpoints don't cover, and check the response in the playground first.
walmart product search ecommerce pricing data marketplaces
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 8 min read
## [Etsy Scraper or API: What You Get](https://perceptlayer.com/blog/etsy-scraper-vs-api)
An Etsy scraper vs one 10-credit product endpoint: a recorded listing with price, discount, quantity, variations and favorites, and the cost per item tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 8 Nov 2026 Perceptlayer 8 min read
## [AliExpress Scraper or API: What You Get](https://perceptlayer.com/blog/aliexpress-scraper-vs-api)
An AliExpress scraper vs 1-credit endpoints: a recorded search with 60 products a page, price.amount, sold\_count and is\_sponsored, and cost per product.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 28 Oct 2026 Perceptlayer 9 min read
## [Walmart Scraper or API: Price, Stock and Seller Data](https://perceptlayer.com/blog/walmart-scraper-vs-api)
Compare a Walmart scraper with Walmart search and product calls at 1 credit each: a recorded air fryer search with price, seller\_name and availability\_status.
---
title: "Google Maps Business Data API: Search Places as JSON"
description: "One GET to simple-search returns places as JSON: name, rating, review_count, address, phone and business_id. Parameters, a real response, 1 credit per call."
url: https://perceptlayer.com/blog/google-maps-business-data-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Maps Business Data API: Search Places as JSON
10 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
To get Google Maps business data as JSON, call `GET /v1/google-maps/simple-search` with a `query` such as `restaurants in new york`. You get back an `items` array where each place carries its name, rating, review count, address, phone numbers, coordinates and a `business_id`. One successful call costs 1 credit, and a failed call costs nothing.
## Key takeaways
- `simple-search` has one required parameter, `query`, and returns each place with fields like `name`, `rating`, `review_count`, `full_address`, `phone_numbers` and `business_id`.
- Pass a place's `business_id` to `business-details`, `photos` or `reviews` to go from a search hit to the full record.
- The Google Maps API has 12 endpoints. Each costs 1 credit per successful call, except `reviews`, which costs 1 per page fetched.
- 10,000 search calls × 1 credit = 10,000 credits, which is the size of the Starter pack; [pricing](https://perceptlayer.com/pricing) shows what credits cost.
- Every account gets 100 free credits after email verification, with no credit card.
## How do you search Google Maps places as JSON?
Send a GET request to `/v1/google-maps/simple-search` with your key in the `X-API-Key` header and a `query` parameter. The query is free text, the same words you'd type into the Maps search box. The response is JSON with a top-level `items` array, one object per place. Here is the call we recorded:
```bash
curl "https://api.perceptlayer.com/v1/google-maps/simple-search?query=restaurants+in+new+york" \
-H "X-API-Key: $API_KEY"
```
Keys start with `sk_live_`. If you don't have one yet, [get a free API key](https://perceptlayer.com/signup); the [quick start](https://docs.perceptlayer.com/quickstart) covers the first call, and [authentication](https://docs.perceptlayer.com/authentication) covers the header and the `api_key` query parameter for places where you can't set headers.
The same request in Python:
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/google-maps/simple-search",
params={"query": "restaurants in new york"},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
resp.raise_for_status()
for place in resp.json()["items"]:
print(place["name"], place["business_id"], place.get("rating"), place.get("review_count"))
print("credits used:", resp.headers["X-Credits-Used"])
print("credits left:", resp.headers["X-Credits-Remaining"])
```
The two credit headers come back on every successful response, so you can track spend without a separate call. You can also run the same request without writing code in the playground on the [Google Maps API page](https://perceptlayer.com/apis/google-maps).
## Which parameters does the search endpoint take?
`simple-search` takes one required parameter, `query`, and six optional ones: `hl`, `gl`, `google_domain`, `limit`, `page` and `fields`. The table below lists all of them with the types from the endpoint's documentation. Nothing else is documented about them, so we don't state defaults or page sizes here. The response's `pagination` block, covered below, tells you where you are in the results; check `limit` in the playground on your query.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | yes | What to search for, for example `restaurants in new york` |
| `hl` | string | no | |
| `gl` | string | no | |
| `google_domain` | string | no | Up to 100 characters |
| `limit` | integer | no | |
| `page` | integer | no | |
| `fields` | string | no | |
Put the location in the query itself. The recorded call used `restaurants in new york`, and the first two results both came back with `district` set to Manhattan. If you need to search around specific coordinates, the [Advanced Search endpoint](https://perceptlayer.com/apis/google-maps/advanced-search) takes `lat`, `lon` and a required `zoom` alongside `query`.
### Which endpoint should you start with?
Start with `simple-search` when you have a text query and want a list of businesses. Use `advanced-search` when your starting point is a map position rather than words. Use [Autocomplete](https://perceptlayer.com/apis/google-maps/autocomplete) when you're building a search box and want suggestions as someone types. All three cost 1 credit per call.
## What does a Google Maps search response look like?
Each object in `items` is one business, and the recorded sample carries identity, location, contact and reputation fields in a flat structure. This is a trimmed excerpt of the real response from the call above, with `…` marking what we cut:
```json
{
"items": [
{
"name": "Altair Restaurant NYC",
"review_count": 1225,
"rating": 4.8,
"website": "https://www.altairnyc.com/",
"domain": "altairnyc.com",
"latitude": 40.7556565,
"longitude": -73.9936282,
"business_id": "0x89c2591598891521:0x4ebcde18610e64",
"subtypes": [
"New American restaurant",
"Restaurant"
],
"district": "Manhattan",
"full_address": "351 W 38th St, New York, NY 10018, United States",
"timezone": "America/New_York",
…
"phone_numbers": [
"+1 929-561-6131"
],
"place_id": "ChIJIRWJmBVZwokRZA5hGN68TgA=",
…
"city": "New York",
"zip_code": "10018",
"state": "New York",
"country_code": "US",
…
},
…
]
}
```
The fields group like this:
| Group | Fields in the recorded response |
| --- | --- |
| Identity | `name`, `business_id`, `place_id`, `google_mid`, `subtypes` |
| Reputation | `rating`, `review_count` |
| Location | `latitude`, `longitude`, `full_address`, `street_address_full`, `city`, `state`, `zip_code`, `country_code`, `district`, `neighborhood`, `timezone` |
| Contact | `website`, `domain`, `phone_numbers`, `order_link` |
| Owner | `owner_id`, `owner_name`, `owner_link` |
| Media and attributes | `photos_sample` (with `photo_id`, `photo_url`, `photo_url_large`), `attributes` |
The second result in the same recording, Lulla NYC, has the same shape: an Italian restaurant with 1,571 reviews and a 4.8 rating. Both items carry `photos_sample` and an `attributes` object (in the recording, an `accessibility` group of wheelchair-access flags). Still, treat anything outside `name` and `business_id` as optional in your parser.
### How does pagination work?
After `items`, the recorded response ends with a `pagination` object:
```json
"pagination": {
"current_page": 0,
"total_results": 173,
"has_more": false
}
```
The recording shows `current_page` as 0, `total_results` as 173 and `has_more` as `false`. We haven't documented what each field means, so confirm them in the playground before you rely on them. For a business-list collector, a page loop that stops when `has_more` is `false` is the natural design, but cap the loop so a bug can't spend credits unchecked. Each page is one call, so it's 1 credit. We haven't documented what `limit` caps or the default page size, so check both in the playground.
The recording includes `owner_id`, `owner_name` and a link in `owner_link`, so handle them as personal data. Only collect and store them if you have a lawful basis, and don't use them to contact the people behind a listing.
## How do you go from a search hit to full details?
Take the `business_id` from a search result and pass it to the endpoint that answers your next question. A search gives you the summary; the other endpoints take one business and go deeper. `business_id` is required by Business Details, Photos, Reviews and Review, so it's the key you carry between calls.
```bash
curl "https://api.perceptlayer.com/v1/google-maps/business-details?business_id=0x89c2591598891521:0x4ebcde18610e64" \
-H "X-API-Key: $API_KEY"
```
That's a real endpoint and a real `business_id` from the recorded search. We haven't recorded a `business-details` response, so check its fields in the playground rather than assuming them.
A common pipeline looks like this: run a handful of searches, dedupe on `business_id`, then call details only for the places that pass your filter, for example `rating` above a threshold or a particular entry in `subtypes`. Filtering on search fields first keeps the second stage small, and every call you skip is a credit you keep.
If reviews are what you're after, the `reviews` endpoint takes the same `business_id`; its parameters are listed on the [Google Maps API page](https://perceptlayer.com/apis/google-maps), and [Google Maps Reviews API: Parameters, Requests and Cost](https://perceptlayer.com/blog/google-maps-reviews-api-parameters) covers it in full.
## What are the other eleven Google Maps endpoints?
The Google Maps API has 12 endpoints, all `GET`. Besides `simple-search`, they cover advanced search, autocomplete, business details, photos, photo metadata, posts, popular times, reviews, a single review, a contributor's reviews and directions. Each costs 1 credit per successful call, except `reviews`, which costs 1 per page fetched. The table has the required parameters for each.
| Endpoint | Returns | Required parameters |
| --- | --- | --- |
| `/v1/google-maps/simple-search` | Simple Search | `query` |
| [`/v1/google-maps/advanced-search`](https://perceptlayer.com/apis/google-maps/advanced-search) | Advanced Search | `query`, `zoom` |
| [`/v1/google-maps/autocomplete`](https://perceptlayer.com/apis/google-maps/autocomplete) | Autocomplete | none |
| [`/v1/google-maps/business-details`](https://perceptlayer.com/apis/google-maps/business-details) | Business Details | `business_id` |
| [`/v1/google-maps/photos`](https://perceptlayer.com/apis/google-maps/photos) | Photos | `business_id` |
| [`/v1/google-maps/posts`](https://perceptlayer.com/apis/google-maps/posts) | Posts | `data_id` |
| `/v1/google-maps/reviews` | Reviews | `business_id` |
| [`/v1/google-maps/review`](https://perceptlayer.com/apis/google-maps/review) | Review | `review_id`, `business_id` |
| [`/v1/google-maps/contributor-reviews`](https://perceptlayer.com/apis/google-maps/contributor-reviews) | Contributor Reviews | `contributor_id` |
| [`/v1/google-maps/directions`](https://perceptlayer.com/apis/google-maps/directions) | Directions | `origin`, `destination` |
Directions also takes an optional `mode` with the values `driving`, `walking`, `bicycling` or `transit`. Photos takes optional `page` and `limit`. Posts is keyed by `data_id` rather than `business_id`, and pages with `next_page_token`. Autocomplete has no required parameter; it accepts `query` or `q`, each up to 255 characters.
## How much does a Google Maps data call cost?
Every Google Maps endpoint costs 1 credit per successful call, so the cost of a run is simply the number of calls. A failed call costs nothing and returns `X-Credits-Used: 0`. The free tier gives you 100 credits after you verify an email address, with no credit card.
| Pack | Credits |
| --- | --- |
| Free | 100, once, after email verification |
| Starter | 10,000 |
| Build | 50,000 |
| Growth | 200,000 |
| Pro | 500,000 |
| Scale | 1,000,000 |
| Volume | 5,000,000 |
Purchased credits last 12 months, and there's no subscription and no seats. The service is prepaid, so when the balance hits zero calls return `insufficient_credits` (402) and nothing more is debited. There's no automatic top-up. [Pricing](https://perceptlayer.com/pricing) shows what each pack costs.
A worked example: 200 searches plus a `business-details` call for each of 1,000 places is 1,200 calls × 1 credit = 1,200 credits. That's 1,100 more than the 100 free credits on signup, so a run that size needs a pack. A bigger run of 10,000 calls × 1 credit = 10,000 credits, which is exactly the Starter pack. See [how credits work](https://docs.perceptlayer.com/credits) for the full rules.
## What happens when a call fails?
A failed call returns an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`, and it costs 0 credits. For a search workflow, the codes you'll meet most are `invalid_parameters` (422) when a required parameter is missing or invalid, `rate_limited` (429) when you're sending too fast, and `source_error` (502) or `temporarily_unavailable` (503) when the source side fails.
Retry 429, 502 and 503. For 429 and 503, wait the number of seconds in the `Retry-After` header rather than guessing a backoff. Don't retry 422 or 401 without changing the request. A response that returns an error isn't billed, but requests have no idempotency key: if the reply is lost, for example when the 30-second client timeout in the Python example fires, the call may have succeeded and been billed. A retry then spends a second credit, so cap your retries. The [errors reference](https://docs.perceptlayer.com/errors) lists every code, and [rate limits](https://docs.perceptlayer.com/rate-limits) explains 429.
## When is Google's own Places API the better choice?
If you're building an app on Google's own platform, look at Google's official [Places API](https://developers.google.com/maps/documentation/places/web-service/overview) and check its [billing and pricing](https://developers.google.com/maps/billing-and-pricing/pricing) for your volume. Read Google's terms for your use case before you choose. This API fits when you want flat JSON, one key across many sources and a fixed 1 credit per call. [Google Places API Alternative: Place Data Priced per Call](https://perceptlayer.com/blog/google-maps-places-api-alternative) compares the two approaches in more detail.
Data here is collected from publicly available sources and returned as found at the time of the call. We don't promise completeness or freshness beyond that, so if you depend on a field, check it in the playground first. Agents can reach the same endpoints through the [MCP server](https://docs.perceptlayer.com/ai-agents), where `search_endpoints` and `get_endpoint` are free lookups and `call_endpoint` spends credits only on success.
Next step: open the [Google Maps API page](https://perceptlayer.com/apis/google-maps), pick `simple-search` in the playground and run your own query. If you're comparing how other listing sources look as JSON, the [Zillow listings guide](https://perceptlayer.com/blog/zillow-listings-api-json) and the [API guides category](https://perceptlayer.com/blog/category/api-guides) follow the same format.
## APIs in this post
- [Google Maps **1 credit per call** · 12 endpoints](https://perceptlayer.com/apis/google-maps)
## Frequently asked questions
### What does a Google Maps search return for each business?
Each item in `items` carries `name`, `rating`, `review_count`, `full_address`, `latitude`, `longitude`, `phone_numbers`, `website`, `subtypes` and a `business_id`, plus address parts such as `city`, `state`, `zip_code` and `country_code`. Both recorded items also have `photos_sample` and `attributes`, and the response ends with a `pagination` object ( `current_page`, `total_results`, `has_more`). Treat fields beyond the name and ID as optional.
### How many credits does one Google Maps call use?
One for most endpoints. `reviews` costs 1 credit per page of reviews it fetches; every other Google Maps endpoint costs 1 credit per successful call, and failed calls cost nothing. The response carries `X-Credits-Used` and `X-Credits-Remaining`, so you can log what each call cost and what's left. A run of 1,000 calls is 1,000 credits; see [pricing](https://perceptlayer.com/pricing) for what credits cost.
### How do I get reviews or photos for a place I found?
Copy the `business_id` from the search result and pass it to `/v1/google-maps/photos` or `/v1/google-maps/reviews`. Both take `business_id` as their only required parameter. Photos accepts optional `page` and `limit`, and reviews accepts `page`, `pages`, `search`, `sort`, `limit`, `hl` and `gl`. Each call is 1 credit.
### Can I try it before paying?
Yes. Verify an email address and you get 100 free credits on signup, with no credit card. That's 100 `simple-search` calls at 1 credit each. The playground on each API page runs real calls with your key, so you can see a response for your own query before you write any code.
google maps places local business search business data
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 2 Aug 2026 Updated 26 Oct 2026 Perceptlayer 6 min read
## [Yelp Reviews API: Business Search and Reviews as JSON](https://perceptlayer.com/blog/yelp-reviews-api-json)
Three Yelp endpoints return search results, business details and reviews as JSON, 1 credit per call. Parameters, a real response and a cost example.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Jul 2026 Updated 7 Nov 2026 Perceptlayer 8 min read
## [Google Maps Reviews API: Parameters, Requests and Cost](https://perceptlayer.com/blog/google-maps-reviews-api-parameters)
Call GET /v1/google-maps/reviews with a business\_id from Simple Search. Every parameter, the sort values 1 to 4, and the cost: 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 1 Nov 2026 Perceptlayer 9 min read
## [Google Reviews Scraper or API: What You Get](https://perceptlayer.com/blog/google-reviews-scraper-vs-api)
A Google reviews scraper versus the reviews endpoint: rating, timestamp, review\_text and a nextPage token per call, at 1 credit per business checked.
---
title: "Web Data to a Warehouse: Loading API JSON into Postgres"
description: "Land AutoScout24 search JSON in a Postgres JSONB table, flatten it with a view, then upsert on listing_id. Code and credit cost per refresh."
url: https://perceptlayer.com/blog/load-web-data-json-into-postgres
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Web Data to a Warehouse: Loading API JSON into Postgres
10 Aug 2026 Perceptlayer 7 min read
To load API JSON into Postgres, store each response untouched in a `jsonb` column, expose the fields you need through a view, and upsert into a typed table keyed on the record's own ID. This tutorial does that with the AutoScout24 search endpoint: raw pages in, a flat `listings` table out, and re-runs that never create duplicates.
## Key takeaways
- Land every page as one `jsonb` row first. A parsing bug or a new field then costs a replay from your own table, not another API call.
- A view over `jsonb_array_elements(payload #> '{data,listings}')` turns one response into one row per listing.
- `INSERT … ON CONFLICT (listing_id) DO UPDATE` makes the load idempotent; `SELECT DISTINCT ON` stops one batch from touching a row twice.
- In the recorded search, 193 results at 20 per page is 10 pages, so a full refresh is 10 credits at 1 credit per call.
## What does the pipeline look like?
The pipeline has three layers: a raw table that holds each API response exactly as received, a view that unpacks the JSON into columns, and a typed table that holds one current row per listing. A small Python script fetches pages, writes the raw rows, then runs one SQL statement to move new rows into the typed table. Each layer can be rebuilt from the one before it.
| Layer | Object | Key | Purpose |
| --- | --- | --- | --- |
| Landing | `raw_autoscout24_search` | `id` (one per page fetched) | Immutable record of what the API returned |
| Flattening | `autoscout24_search_listings` (view) | none | One row per listing per page, typed columns |
| Current state | `listings` | `listing_id` | Latest values for each listing |
| History | `listing_prices` | `listing_id`, `raw_id` | Price at each fetch |
You need Python 3.10 or later, the oldest version the current psycopg 3 release supports ( [psycopg 3 installation docs](https://www.psycopg.org/psycopg3/docs/basic/install.html), 2026), a Postgres database, and an API key from [the free tier](https://perceptlayer.com/signup): 100 free credits on signup, no credit card. Install the two libraries with `pip install requests "psycopg[binary]"`. The key goes in the `X-API-Key` header, as described in the [authentication docs](https://docs.perceptlayer.com/authentication).
## Why land the raw JSON in a JSONB column first?
Landing the raw response first separates "what the API said" from "what I decided to keep". Postgres stores `jsonb` in a decomposed binary form that supports path operators and indexing ( [PostgreSQL docs: JSON types](https://www.postgresql.org/docs/current/datatype-json.html)), so you can query the payload directly while you are still deciding on columns. If you later add `co2` or `consumption` to the typed table, you re-run the view over rows you already hold.
The cost is storage: every page keeps its image URLs and fields you may never read. If you only ever need five fields and never replay, flatten in Python and skip the raw table. For anything that feeds reports, the raw copy is cheap insurance.
## Step 1: How do you create the landing table?
Create one table for raw pages, one for current listings and one for price history. The raw table stores the request parameters next to the payload, so any row explains itself. A partial index on unprocessed rows keeps the "what is new" lookup fast however large the table grows. `listing_id` is `text` rather than `uuid` because the endpoint documents it only as a string.
```sql
-- schema.sql
CREATE TABLE raw_autoscout24_search (
id bigserial PRIMARY KEY,
fetched_at timestamptz NOT NULL DEFAULT now(),
market text NOT NULL,
params jsonb NOT NULL,
payload jsonb NOT NULL,
processed_at timestamptz
);
CREATE INDEX raw_autoscout24_search_unprocessed
ON raw_autoscout24_search (id) WHERE processed_at IS NULL;
CREATE TABLE listings (
listing_id text PRIMARY KEY,
market text NOT NULL,
title text,
make text,
model text,
price_amount integer,
price_currency text,
mileage_km integer,
registration_year integer,
power_kw integer,
fuel text,
transmission text,
city text,
seller_type text,
dealer_slug text,
first_seen_at timestamptz NOT NULL,
last_seen_at timestamptz NOT NULL,
last_raw_id bigint NOT NULL
);
CREATE TABLE listing_prices (
listing_id text NOT NULL,
raw_id bigint NOT NULL REFERENCES raw_autoscout24_search (id),
observed_at timestamptz NOT NULL,
price_amount integer,
price_currency text,
PRIMARY KEY (listing_id, raw_id)
);
```
## Step 2: How do you fetch pages and land them?
Loop over `GET /v1/autoscout24/search`, follow `pagination.next_page` until `has_more` is false, and commit each page as soon as it arrives. Committing per page matters because every successful page was already billed: if page 7 fails, pages 1 to 6 stay in your table. The loop below only stores responses that returned HTTP 200, and it logs credit headers, never bodies.
```python
# load.py
import os
from pathlib import Path
import psycopg
import requests
from psycopg.types.json import Jsonb
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
PARAMS = {
"market": "de", "make_id": "13", "model_id": "1639",
"price_min": 5000, "price_max": 20000, "sort": "price", "limit": 20,
}
def fetch_pages(params, max_pages=50):
page = 1
while page <= max_pages:
resp = requests.get(
f"{BASE}/v1/autoscout24/search",
headers=HEADERS,
params={**params, "page": page},
timeout=30,
)
resp.raise_for_status()
print(
f"page {page}: used {resp.headers.get('X-Credits-Used')}, "
f"remaining {resp.headers.get('X-Credits-Remaining')}"
)
body = resp.json()
yield page, body
pagination = body["data"]["pagination"]
if not pagination["has_more"]:
break
page = pagination["next_page"]
def land(conn, params, page, body):
conn.execute(
"INSERT INTO raw_autoscout24_search (market, params, payload) "
"VALUES (%s, %s, %s)",
(params["market"], Jsonb({**params, "page": page}), Jsonb(body)),
)
conn.commit()
```
`max_pages` is a guard so a bad cursor can't loop forever. For pacing, retries and timeouts, see [safe page loops in Python](https://perceptlayer.com/blog/paginate-web-data-api-python), [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) and the [error codes](https://docs.perceptlayer.com/errors).
## Step 3: How do you flatten the JSON into a view?
Use `jsonb_array_elements` in a lateral join to turn `data.listings` into one row per listing, and `#>>` to pull nested values out as text before casting. The paths below match the recorded response: `price.amount`, `mileage.value_km`, `first_registration.year`, `power.kw`, `location.city` and `seller.type` ( [PostgreSQL docs: JSON functions](https://www.postgresql.org/docs/current/functions-json.html)).
```sql
-- view.sql
CREATE VIEW autoscout24_search_listings AS
SELECT
r.id AS raw_id,
r.fetched_at,
r.market,
l ->> 'listing_id' AS listing_id,
l ->> 'title' AS title,
l ->> 'make' AS make,
l ->> 'model' AS model,
(l #>> '{price,amount}')::integer AS price_amount,
l #>> '{price,currency}' AS price_currency,
(l #>> '{mileage,value_km}')::integer AS mileage_km,
(l #>> '{first_registration,year}')::integer AS registration_year,
(l #>> '{power,kw}')::integer AS power_kw,
l ->> 'fuel' AS fuel,
l ->> 'transmission' AS transmission,
l #>> '{location,city}' AS city,
l #>> '{seller,type}' AS seller_type,
l #>> '{seller,dealer_slug}' AS dealer_slug
FROM raw_autoscout24_search AS r
CROSS JOIN LATERAL jsonb_array_elements(r.payload #> '{data,listings}') AS l;
```
Applied to the two listings in the recorded response, the view gives:
| listing\_id | price\_amount | mileage\_km | registration\_year | power\_kw | city | seller\_type | dealer\_slug |
| --- | --- | --- | --- | --- | --- | --- | --- |
| `f81b29b2-…` | 5700 | 215000 | 2013 | 85 | Mainz-Kastel | Dealer | `rheinkastelautomobile` |
| `2a852a90-…` | 5800 | 177000 | 2012 | 85 | Berlin | PrivateSeller | NULL |
The private seller has no `dealer_slug`, because its `seller` object holds only `id` and `type`. Path operators return NULL for missing keys instead of raising, which is why this works for optional fields. Text values such as `Schaltgetriebe` come back as found, so map them yourself if you mix markets.
## Step 4: How do you upsert on listing ID?
Key the typed table on `listing_id` and use `INSERT … ON CONFLICT DO UPDATE` ( [PostgreSQL docs: INSERT](https://www.postgresql.org/docs/current/sql-insert.html)). Two details make it safe. First, `DISTINCT ON (listing_id)` keeps one row per listing per batch, because Postgres raises an error if one statement tries to update the same row twice. Second, the `WHERE` guard stops an older batch from overwriting newer values.
```sql
-- upsert.sql
WITH batch AS (
SELECT v.*
FROM autoscout24_search_listings AS v
JOIN raw_autoscout24_search AS r ON r.id = v.raw_id
WHERE r.processed_at IS NULL AND r.id <= %(max_id)s
),
prices AS (
INSERT INTO listing_prices
(listing_id, raw_id, observed_at, price_amount, price_currency)
SELECT listing_id, raw_id, fetched_at, price_amount, price_currency
FROM batch
ON CONFLICT (listing_id, raw_id) DO NOTHING
),
latest AS (
SELECT DISTINCT ON (listing_id)
batch.*,
min(fetched_at) OVER (PARTITION BY listing_id) AS first_fetched
FROM batch
ORDER BY listing_id, fetched_at DESC, raw_id DESC
)
INSERT INTO listings (
listing_id, market, title, make, model, price_amount, price_currency,
mileage_km, registration_year, power_kw, fuel, transmission, city,
seller_type, dealer_slug, first_seen_at, last_seen_at, last_raw_id
)
SELECT
listing_id, market, title, make, model, price_amount, price_currency,
mileage_km, registration_year, power_kw, fuel, transmission, city,
seller_type, dealer_slug, first_fetched, fetched_at, raw_id
FROM latest
ON CONFLICT (listing_id) DO UPDATE SET
title = EXCLUDED.title,
price_amount = EXCLUDED.price_amount,
price_currency = EXCLUDED.price_currency,
mileage_km = EXCLUDED.mileage_km,
registration_year = EXCLUDED.registration_year,
power_kw = EXCLUDED.power_kw,
fuel = EXCLUDED.fuel,
transmission = EXCLUDED.transmission,
city = EXCLUDED.city,
seller_type = EXCLUDED.seller_type,
dealer_slug = EXCLUDED.dealer_slug,
last_seen_at = EXCLUDED.last_seen_at,
last_raw_id = EXCLUDED.last_raw_id
WHERE listings.last_raw_id <= EXCLUDED.last_raw_id;
```
The `<=` lets you replay a raw row after fixing the view, while still refusing older data. `first_seen_at` is left out of the update list, so it keeps the value from the first insert. The script below runs this statement and marks the rows processed in the same transaction. Add it to `load.py`:
```python
UPSERT_SQL = Path("upsert.sql").read_text()
def transform(conn):
max_id = conn.execute(
"SELECT max(id) FROM raw_autoscout24_search WHERE processed_at IS NULL"
).fetchone()[0]
if max_id is None:
return
conn.execute(UPSERT_SQL, {"max_id": max_id})
conn.execute(
"UPDATE raw_autoscout24_search SET processed_at = now() "
"WHERE processed_at IS NULL AND id <= %(max_id)s",
{"max_id": max_id},
)
conn.commit()
def main():
with psycopg.connect(os.environ["DATABASE_URL"]) as conn:
for page, body in fetch_pages(PARAMS):
land(conn, PARAMS, page, body)
transform(conn)
if __name__ == "__main__":
main()
```
Capturing `max_id` first means pages that land while the transform runs wait for the next run instead of being marked processed unseen.
## Step 5: How do you run it and check the result?
Create the objects once, then run the script as often as you like:
```bash
psql "$DATABASE_URL" -f schema.sql -f view.sql
API_KEY=sk_live_... DATABASE_URL=postgresql://localhost/cars python load.py
```
Run it twice and compare `SELECT count(*) FROM listings`. The second run adds raw rows and price observations, but `listings` only grows by listings that are new. Then query it like any table:
```sql
SELECT registration_year,
count(*) AS listings,
percentile_cont(0.5) WITHIN GROUP (ORDER BY price_amount) AS median_price
FROM listings
WHERE price_currency = 'EUR'
GROUP BY registration_year
ORDER BY registration_year;
```
To see price movement, compare each observation to the previous one for the same listing:
```sql
SELECT *
FROM (
SELECT listing_id, observed_at, price_amount,
price_amount - lag(price_amount) OVER (
PARTITION BY listing_id ORDER BY observed_at
) AS change
FROM listing_prices
) AS p
WHERE change <> 0;
```
For which fields to model next, see [used car listing data for price analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis).
## What does a refresh cost in credits?
A successful call costs 1 credit, so a refresh costs one credit per page. The recorded response reports `total: 193`, `limit: 20` and `total_pages: 10`, so that search needs 10 pages: 10 pages × 1 credit = 10 credits. A daily refresh for 30 days is 30 × 10 = 300 credits. The 100 free credits on signup cover the first 10 refreshes; after that, the Starter pack's 10,000 credits cover a year of daily refreshes (12 × 300 = 3,600). Failed calls cost nothing and return `X-Credits-Used: 0`.
The total changes as listings come and go, so read `pagination.total_pages` from your own run. Because the raw table keeps every page, reprocessing never spends credits. See [credits](https://docs.perceptlayer.com/credits) for how billing works, [rate limits](https://docs.perceptlayer.com/rate-limits) for pacing, and [pricing](https://perceptlayer.com/pricing) for what credits cost.
## Where does this design break?
It breaks in three places. Pages are fetched one at a time, so if listings change between requests, one can appear on two pages or be missed. The upsert absorbs duplicates, but a missed listing only shows up in the next run. A listing that disappears is never deleted, so use `last_seen_at` to find the ones that stopped appearing. Finally, fetching a page and storing it are not one transaction. A timed-out request may have succeeded and been billed, which the [retry guide](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers.
Raw rows also grow without limit. Once the typed tables are trusted, archive or drop old `payload` values. If your warehouse is BigQuery or Snowflake, the same layers apply with their own JSON types and `MERGE` in place of `ON CONFLICT`.
Next step: [get a free API key](https://perceptlayer.com/signup), try the call in the playground on the [AutoScout24 Search page](https://perceptlayer.com/apis/autoscout24/search), then run `load.py`. For the endpoint's fields and filters, read [AutoScout24 API: Search European Car Listings as JSON](https://perceptlayer.com/blog/autoscout24-api-car-listings-json), and find more pipeline guides in the [data engineering category](https://perceptlayer.com/blog/category/data-engineering).
## APIs in this post
- [AutoScout24 **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autoscout24)
## Frequently asked questions
### Should I store the raw JSON or flatten it before inserting?
Store the raw JSON when the data feeds anything you will need to rebuild. A parsing bug or a new column then costs a replay from your own table, not new API calls. Flatten before inserting only when you need a handful of fields and will never replay. A view over `jsonb` costs nothing to change later.
### How do I avoid duplicate rows when I re-run the load?
Key the typed table on the record's own ID, here `listing_id`, and write with `INSERT … ON CONFLICT DO UPDATE`. Re-running then updates existing rows instead of adding new ones. Deduplicate inside each batch with `DISTINCT ON`, because one statement can't update the same row twice. The history table's `(listing_id, raw_id)` key keeps replays from duplicating observations.
### What happens if a page request fails halfway through a run?
Pages already committed stay in the raw table, and failed calls cost nothing. Run the script again: it fetches from page 1 and lands a second copy of the earlier pages, which the upsert handles without duplicates. If you want to avoid paying twice for those pages, store the last completed page and resume from it. The [error handling guide](https://perceptlayer.com/blog/handle-web-data-api-errors-python) covers which errors are worth retrying.
### Can I use the same pattern for other endpoints?
Yes. Any endpoint returns JSON, so the layers stay the same: one raw table per endpoint family, a view with that response's paths, and an upsert keyed on the ID the response provides. Check the [API reference for the endpoint](https://perceptlayer.com/apis) for the field names, and take the response shape only from a real call, not from guesswork.
### Is the data in my table current?
It is as found at the time of each call. The API doesn't promise freshness beyond that, so `fetched_at` and `last_seen_at` in your tables are the record of when you saw each listing. If you refresh often, [caching responses](https://perceptlayer.com/blog/cache-web-data-api-responses) can avoid repeating identical calls.
postgres jsonb data pipeline upsert autoscout24 etl
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 13 Oct 2026 Updated 25 Oct 2026 Perceptlayer 6 min read
## [Build an ETL Pipeline in Python for Web Data](https://perceptlayer.com/blog/etl-pipeline-python-web-data)
An ETL pipeline in Python for web data: extract Google Shopping prices with retries, transform to typed rows, load into SQLite idempotently, run daily.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 31 Oct 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [Extract Data From a Website: Pages, Sites and APIs](https://perceptlayer.com/blog/extract-data-from-website)
Three ways to extract data from a website: one page as markdown or JSON, every URL on a site with map, or structured records. 1 credit per call.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
---
title: "Mercado Libre API: Category Prices and Reviews as JSON"
description: "Pull Mercado Libre best sellers and offers by category as JSON: price, previous price, shipping and reviews, at 1 credit per call."
url: https://perceptlayer.com/blog/mercado-libre-api-product-search
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Mercado Libre API: Category Prices and Reviews as JSON
8 Aug 2026 Perceptlayer 7 min read
The [Mercado Libre API](https://perceptlayer.com/apis/mercadolibre) returns product data for Latin American marketplaces as JSON, with one key and no scraper. Call `/v1/mercadolibre/category-products` with a `site` and a `category_id` and you get the category's best sellers and offers, each with price, previous price, currency, discount label and shipping text. Every call costs 1 credit.
## Key takeaways
- `GET /v1/mercadolibre/category-products` takes `site` and `category_id` and returns products with `price`, `previous_price`, `currency` and `discount_label`.
- There's no free-text product search endpoint in the list. Use `category-discovery` to turn a query into a category, then pull that category.
- `reviews` and `review-summary` take a `site` and an `id`, and `id_type` switches between `item` and `product`.
- Tracking one category daily for 30 days costs 30 credits. Adding weekly review summaries for 33 products brings it to 162 credits a month. The 100 free credits on signup cover the first two weeks.
- Failed calls cost nothing and return `X-Credits-Used: 0`.
## Which Mercado Libre endpoints return product data?
Eleven endpoints cover the marketplace, and each costs 1 credit per successful call. Four of them matter for price and review tracking: `categories` for category data, `category-products` for the products in a category, `reviews` for individual reviews and `review-summary` for the rating overview. The rest cover discovery, shipping, stores and suggestions.
| Endpoint | Returns | Required parameters |
| --- | --- | --- |
| `/v1/mercadolibre/categories` | Categories | none |
| `/v1/mercadolibre/category-discovery` | Category Discovery | `site`, `q` |
| `/v1/mercadolibre/category-products` | Category Products | `site`, `category_id` |
| `/v1/mercadolibre/reviews` | Reviews | `site`, `id` |
| `/v1/mercadolibre/review-summary` | Review Summary | `site`, `id` |
| `/v1/mercadolibre/shipping-options` | Shipping Options | `item_id`, `zip_code` |
Related Products, Suggestions, Category Attributes, Store and Stores round out the set. All of them sit on the [Mercado Libre API page](https://perceptlayer.com/apis/mercadolibre), part of the [Marketplaces APIs](https://perceptlayer.com/verticals/marketplaces).
## How do you get a key and make the first call?
Sign up, verify an email address and you get 100 free credits on signup, with no credit card. Send the key in the `X-API-Key` header. Keys start with `sk_live_`. The [authentication docs](https://docs.perceptlayer.com/authentication) cover the `api_key` query parameter for places where headers aren't possible, and the [quick start](https://docs.perceptlayer.com/quickstart) walks through a first call.
[Get a free API key](https://perceptlayer.com/signup), then call `categories` for a category:
```bash
curl "https://api.perceptlayer.com/v1/mercadolibre/categories?site=MLA&category_id=MLA1574" \
-H "X-API-Key: $API_KEY"
```
`site` and `category_id` are both optional on this endpoint. The `site` values are MLA, MLB, MLM, MLC, MCO, MPE, MLU, MEC and MLV, one per country marketplace. The recorded sample below is MLA, which resolves to `mercadolibre.com.ar` and prices in `ARS`.
## How do you find the category you want to track?
Start from a keyword and let `category-discovery` map it to categories, because the API has no free-text item search. It takes `site` and `q` (up to 200 characters) and an optional `limit`. It returns matching categories (the [Category Discovery page](https://perceptlayer.com/apis/mercadolibre/category-discovery) lists the fields); pass a category's ID to `category-products`. `suggestions` takes `site`, `q` (up to 100 characters) and `limit`.
```bash
curl "https://api.perceptlayer.com/v1/mercadolibre/category-discovery?site=MLA&q=camara%20de%20seguridad&limit=5" \
-H "X-API-Key: $API_KEY"
```
Do this once per category and store the IDs. Category discovery is a setup step, not part of the tracking loop, so it costs you a handful of credits in total rather than per run. If you need the fields a category's items must carry, [Category Attributes](https://perceptlayer.com/apis/mercadolibre/category-attributes) takes only a `category_id`.
## Which parameters does Category Products take?
`category-products` takes two required parameters and nothing else. The [Category Products](https://perceptlayer.com/apis/mercadolibre/category-products) page has the playground if you'd rather try it in the browser first.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `site` | string | yes | One of MLA, MLB, MLM, MLC, MCO, MPE, MLU, MEC, MLV |
| `category_id` | string | yes | For example `MLA1574` |
Here's the call behind the recorded response:
```bash
curl "https://api.perceptlayer.com/v1/mercadolibre/category-products?site=MLA&category_id=MLA1574" \
-H "X-API-Key: $API_KEY"
```
There's no `limit` or `offset` on this endpoint, so one call returns whatever the category's lists hold at that moment.
## What does a price record look like?
Each product carries the current `price`, the `previous_price`, the `currency` and a `discount_label`, plus shipping text and a `fulfilled_by_mercado_libre` flag. That's enough to build a price history without opening a single product page. This is an excerpt of the recorded response for category `MLA1574` on `MLA`:
```json
{
"success": true,
"data": {
"site": "MLA",
"category_id": "MLA1574",
"products": [
{
"position": 2,
"tab": "affiliate-profile-best-sellers",
"item_id": "MLA1550818153",
"product_id": "MLA43779215",
"title": "Camara Seguridad Geotek 3mp Ip Wifi Exterior Full Hd Domo Vision Nocturna …",
"brand": "GEOTEK",
"official_store": true,
"highlight": "MÁS VENDIDO",
"price": 46567,
"previous_price": 74999,
"currency": "ARS",
"discount_label": "37% OFF",
"shipping_text": "Envío gratis",
"shipping_note": "por ser tu primera compra",
"fulfilled_by_mercado_libre": true
}
],
"total": 33,
"source_tabs": [
{ "id": "affiliate-profile-best-sellers", "title": "Más vendidos", "count": 18 },
{ "id": "affiliate-profile-offers", "title": "Ofertas", "count": 15 }
]
},
"meta": { "endpoint_family": "category_products", "billable": true, "duration_ms": 764 }
}
```
Three things worth knowing. `tab` says which list a product came from, and `source_tabs` counts them: 18 best sellers and 15 offers make the `total` of 33. `item_id` identifies the listing, while `product_id` is only present on some products, so don't treat it as always there. And `previous_price` is a single value per product, not a series. Your own stored snapshots are the history.
## How do you turn this into a price tracker?
Call the endpoint on a schedule, key each product by `item_id`, and store `price`, `previous_price` and `currency` with a timestamp. Compare today's price to the last stored one, not to `previous_price`. The script below does the first half: it pulls the category and prints the products whose listed discount is deepest.
```python
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
resp = requests.get(
f"{BASE}/v1/mercadolibre/category-products",
headers=HEADERS,
params={"site": "MLA", "category_id": "MLA1574"},
timeout=30,
)
resp.raise_for_status()
print("credits used:", resp.headers.get("X-Credits-Used"))
rows = []
for p in resp.json()["data"]["products"]:
old, new = p.get("previous_price"), p.get("price")
if old and new:
rows.append((round(100 * (old - new) / old), p["item_id"], new, p["currency"]))
for pct, item_id, price, currency in sorted(rows, reverse=True)[:10]:
print(f"{pct}% off {item_id} {price} {currency}")
```
Writing each run to a database table keyed by `item_id` and date gives you the history. Handle failures as covered in [Docs: Errors](https://docs.perceptlayer.com/errors): a 429 or 503 carries a `Retry-After` header.
## How do you pull reviews and rating summaries?
Use `review-summary` for the overview and `reviews` for the individual entries, both keyed by `site` and `id`. Set `id_type` to `item` or `product` to say what the `id` is. `reviews` also accepts `limit`, `offset`, `rating` (an integer filter) and `order` ( `relevance` or `date`). We don't have a recorded response for these two, so check the [Review Summary](https://perceptlayer.com/apis/mercadolibre/review-summary) and [Reviews](https://perceptlayer.com/apis/mercadolibre/reviews) pages for the returned fields.
```bash
curl "https://api.perceptlayer.com/v1/mercadolibre/review-summary?site=MLA&id=MLA43779215&id_type=product" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/mercadolibre/reviews?site=MLA&id=MLA43779215&id_type=product&order=date&limit=20" \
-H "X-API-Key: $API_KEY"
```
The `product_id` from the category response is the natural `id` here, with `id_type=product`. Where a product has no `product_id`, use its `item_id` with `id_type=item`. A sensible pattern is to poll `review-summary` for every tracked product and fetch `reviews` only when the summary changes.
## What does tracking one category cost?
Tracking one category daily costs 30 credits a month, and adding review summaries for its 33 products once a week brings it to 162. All of these endpoints cost 1 credit per successful call, so the arithmetic is a count of calls. The [credits docs](https://docs.perceptlayer.com/credits) explain how debits work.
| Task | Calls | Credits |
| --- | --- | --- |
| `category-products`, once a day for 30 days | 30 | 30 |
| `review-summary`, 33 products × 4 weekly runs | 132 | 132 |
| Total for one category | 162 | 162 |
The 100 free credits on signup cover the first two weeks of that (14 daily pulls plus 2 weekly review runs is 14 + 66 = 80 credits); after that it needs a pack. Scale it out: 10 categories pulled 4 times a day for 30 days is 10 × 4 × 30 = 1,200 calls × 1 credit = 1,200 credits for the price pulls alone. Paid credits come in prepaid packs starting at 10,000 credits, last 12 months, and have no subscription. [Pricing](https://perceptlayer.com/pricing) has what credits cost. Failed calls return `X-Credits-Used: 0`, and the [rate limits](https://docs.perceptlayer.com/rate-limits) are per account.
## When is the official API a better fit?
If you sell on the marketplace and need to create listings or manage orders, use Mercado Libre's own [developer platform](https://developers.mercadolibre.com.ar/en_us/register-your-application). You register an application, and calls on behalf of a seller authenticate through [OAuth 2.0 access tokens](https://developers.mercadolibre.com.ar/en_us/identity-and-access-management-oauth-and-tokens), so it's built around a seller's own account: listings, orders and similar seller data. That's the right fit for running a store, but it means registering an app and running the token flow before you read anything.
This API is the other trade-off. It only reads public market data and never touches a seller account, so it can't create or change anything. For read-only data across a category, such as best sellers, offers, prices and reviews, with one key and a `site` parameter that switches between the nine country sites, it's the shorter path. Browse the storefront itself, for example [mercadolibre.com.ar](https://www.mercadolibre.com.ar/), to check any value against what a shopper sees.
Data is collected from publicly available sources and returned as found at the time of the call, so a price you pull is the price shown then. For the same workflow on other stores see the [Walmart product search API](https://perceptlayer.com/blog/walmart-product-search-api) and the [Google Shopping API](https://perceptlayer.com/blog/google-shopping-api-product-prices).
Your next step: open the [Mercado Libre API page](https://perceptlayer.com/apis/mercadolibre), pick `category-products`, enter `MLA` and `MLA1574` in the playground and run the call with your key.
## APIs in this post
- [Mercado Libre **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/mercadolibre)
## Frequently asked questions
### Is there a Mercado Libre product search endpoint?
Not for free-text queries. `category-discovery` takes a `site` and a `q` and returns matching categories, and `category-products` then returns the best sellers and offers in a category. `suggestions` takes a `site`, a `q` and an optional `limit`; its response is on the [Mercado Libre API page](https://perceptlayer.com/apis/mercadolibre). Together they cover finding a category and reading its products.
### How much does it cost to monitor Mercado Libre prices?
Each call costs 1 credit, whether it's `category-products`, `reviews` or `review-summary`. One category pulled daily for 30 days is 30 calls × 1 credit = 30 credits. Free accounts get 100 credits on signup, and [pricing](https://perceptlayer.com/pricing) lists what larger packs cost.
### Which Mercado Libre countries can I query?
Nine site codes are accepted: MLA, MLB, MLM, MLC, MCO, MPE, MLU, MEC and MLV. Pass one as `site` on most endpoints. Every product carries a `currency` field ( `ARS` for MLA in the recorded sample), so read it from each row and don't compare prices across sites until the currencies match.
### What happens when a call fails?
You get an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. Failed calls aren't billed and return `X-Credits-Used: 0`. A 429 or 503 includes `Retry-After` with the seconds to wait. See [Docs: Errors](https://docs.perceptlayer.com/errors) for every code.
### Can an AI agent call these endpoints?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. Lookups cost nothing, and `call_endpoint` spends credits on success only. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) show how to add it to Claude Code.
mercado libre ecommerce price tracking latin america reviews
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 8 min read
## [Etsy Scraper or API: What You Get](https://perceptlayer.com/blog/etsy-scraper-vs-api)
An Etsy scraper vs one 10-credit product endpoint: a recorded listing with price, discount, quantity, variations and favorites, and the cost per item tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 13 Nov 2026 Perceptlayer 8 min read
## [Amazon Scraper or API: Search, Offers and Reviews](https://perceptlayer.com/blog/amazon-scraper-vs-api)
An Amazon scraper vs 18 endpoints at 1 credit a call: a recorded laptop stand search with asin, price.amount and rating, and the domains each call takes.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 18 Sept 2026 Perceptlayer 6 min read
## [AliExpress Product API: Search, Reviews and Shipping](https://perceptlayer.com/blog/aliexpress-api-product-search-reviews)
Chain AliExpress search, product, product-reviews and product-shipping, with every required parameter, at 1 credit per call, and cost a 100-product review pull.
---
title: "News Data for Event Detection: Signals and Noise"
description: "Turn news search results into event signals: drop duplicate URLs, cluster syndicated titles, count distinct sources in a window, and compare with a baseline."
url: https://perceptlayer.com/blog/news-data-event-detection
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# News Data for Event Detection: Signals and Noise
8 Aug 2026 Updated 2 Nov 2026 Perceptlayer 7 min read
News data detects events when you count independent coverage, not articles. One story syndicated to forty sites is one source repeated; three unrelated outlets writing about the same thing within hours is a signal. So event detection on news search results comes down to four steps: drop duplicate URLs, cluster articles that tell the same story, count distinct sources per cluster in a time window, and compare that count with a baseline.
## Key takeaways
- Count distinct `source.name` values per story cluster, not articles: syndication and rewrites inflate article counts without adding evidence.
- Use `iso_date` for windows; the relative `date` ("2 days ago") changes meaning every day.
- Cluster by title similarity; in the recorded Google News response, the three titles share almost no words (Jaccard similarity 0 to 0.083), so they form three separate clusters.
- A fixed threshold, such as 3 distinct sources in 24 hours, is a starting point; compare with each query's own baseline so busy topics don't fire constantly.
- One `GET /v1/google-news/news` call costs 1 credit; checking 50 queries hourly is 36,000 credits a month, every 6 hours 6,000.
## What counts as an event in news data?
A change in coverage that's larger than normal for that topic. Researchers have formalised this for decades: Jon Kleinberg's burst detection model treats a stream of documents as switching between a baseline state and bursty states, so an event is a period when arrivals come faster than usual ( [Kleinberg, Bursty and Hierarchical Structure in Streams](https://www.cs.cornell.edu/home/kleinber/bhs.pdf), 2002). The working version for a monitoring job is simpler: more independent sources than usual, about the same thing, in a short window.
Every part of that sentence filters noise. "Independent" removes syndication. "The same thing" needs clustering. "Short window" needs exact timestamps. "Than usual" needs a baseline per query, because ten articles a day about a large company is quiet, while ten about a small one is news.
## What does a news search result give you to work with?
Each result has the fields the four steps need: a link to dedupe on, a title to cluster on, a source name to count, and an exact timestamp to place it in a window. Nothing else is required, which keeps the detector independent of any one source's extras. The [Google News endpoint](https://perceptlayer.com/apis/google-news/news) returned this for `q=technology`, trimmed with `…`:
```json
{
"news_results": [
{
"position": 1,
"title": "Top Strategic Technology Trends for 2027",
"link": "https://www.gartner.com/en/articles/top-technology-trends-2027",
"type": "article",
"iso_date": "2026-10-20T15:59:45+00:00",
"date": "2 days ago",
"source": { "name": "Gartner", … },
"story_token": "CBMib0FVX3lxTE1zMGNNN1p0UTdtOXV0U3RoU2JvSGlYUXpQYTZIeEFvcHZGZVpiazBjZ2UyZ0ZhVzZ6NUl3c3Y3LTdCWUVfYVd1YnZuMFdtVElGcHlsR3IwM1BnYXBQNGZueEdldUZJOWM0UnRTQ3Y0WQ",
"related_publications": [ { "title": "Gartner", "publication_token": "CAAqJQgKIh9DQklTRVFnTWFnMEtDMmRoY25SdVpYSXVZMjl0S0FBUAE", … } ]
},
{
"position": 2,
"title": "How did AI discover the internet's massive cyber-security risk?",
"link": "https://www.bbc.com/news/videos/cq0ld7e0jg2eo",
"iso_date": "2026-10-22T12:17:44+00:00",
"date": "today",
"source": { "name": "BBC", … },
…
},
…
]
}
```
| Field | Use in event detection |
| --- | --- |
| `link` | Duplicate removal, after stripping query strings |
| `title` | Clustering articles about the same story |
| `source.name` | Counting independent coverage |
| `iso_date` | Placing an article in a time window |
| `story_token` | Different on every recorded result, so it identifies the article, not a shared story |
| `date` | Display only: "today" and "2 days ago" are relative to the day of the call |
The [Google News API guide](https://perceptlayer.com/blog/google-news-api) covers the endpoint's parameters, including `gl` and `hl` for market and language.
## How do you separate the signal from the noise?
Apply the four steps in order, each in plain code. Cheap rules catch most noise: duplicate links and syndicated copies are mechanical problems with mechanical fixes, and only the clustering step involves any judgment. You don't need a language model until then, and often not at all. The functions below were run on the recorded response.
### Step 1: Drop duplicate URLs
The same article comes back on consecutive runs and sometimes with tracking parameters. Key each one by host and path, without `www.` or the query string. In our test, appending `?utm_source=x` to the first recorded link produced the same key, and the article was counted once.
### Step 2: Cluster articles that tell the same story
Group articles whose titles share most of their words. A Jaccard similarity of title words (shared words divided by all words, after dropping stopwords) is crude but transparent; 0.5 is a reasonable first threshold. On the recording, the three pairs scored 0, 0.083 and 0, so each article is its own cluster: a Gartner trends article, a BBC video on a security risk and a university building ceremony are three stories, not one.
```python
import re
from datetime import datetime, timedelta
from urllib.parse import urlsplit
STOP = {"the", "a", "an", "of", "to", "in", "for", "and", "on", "at", "with", "how", "did", "is", "s"}
def canonical(url):
p = urlsplit(url)
return p.netloc.lower().removeprefix("www.") + p.path.rstrip("/")
def words(title):
return {w for w in re.findall(r"[a-z0-9]+", title.lower()) if w not in STOP}
def similar(a, b):
"""Jaccard similarity of title words."""
wa, wb = words(a), words(b)
return len(wa & wb) / len(wa | wb) if wa | wb else 0.0
def clusters(articles, threshold=0.5):
"""Greedy clustering: an article joins the first cluster whose lead title is similar enough."""
seen, groups = set(), []
for a in sorted(articles, key=lambda x: x["iso_date"]):
key = canonical(a["link"])
if key in seen:
continue # same article twice
seen.add(key)
for g in groups:
if similar(g[0]["title"], a["title"]) >= threshold:
g.append(a)
break
else:
groups.append([a])
return groups
```
Title matching misses rewrites with different headlines and can merge unrelated stories with formulaic titles. When that matters, compare embeddings of title plus snippet instead; the structure of the job stays the same.
### Step 3: Count distinct sources in a window
For each cluster, count the distinct `source.name` values among articles whose `iso_date` falls inside the window. Distinct sources, not articles: a wire story republished by many outlets often keeps its headline, so it lands in one cluster, but if it was carried under one source name it still counts once.
```python
def signals(articles, now, window=timedelta(hours=24), min_sources=3):
"""A cluster is an event when enough distinct sources covered it inside the window."""
out = []
for g in clusters(articles):
recent = [a for a in g if now - datetime.fromisoformat(a["iso_date"]) <= window]
sources = {a["source"]["name"] for a in recent}
out.append({"lead": g[0]["title"], "articles": len(g), "sources_in_window": len(sources),
"event": len(sources) >= min_sources})
return out
```
### Step 4: Compare with a baseline
A fixed `min_sources` works for narrow queries. For broad ones, keep each query's daily count of distinct sources and flag a day only when it's well above that query's recent norm, for example at least three times the median of the previous 14 days, with a floor of 3. That's a rough version of the baseline-versus-burst idea; it needs a couple of weeks of history before it says anything.
## What does the worked example show?
We ran `signals` on the recorded response with the clock set to 18:00 UTC on 22 October 2026, the day of the BBC article, a 24-hour window and a threshold of 3 distinct sources. It returned three clusters of one article each, none of them an event, which is what a broad query over unrelated stories should produce:
| Lead title | Articles | Distinct sources in last 24 h | Event |
| --- | --- | --- | --- |
| Top Strategic Technology Trends for 2027 | 1 | 0 | No |
| Ohio State holds groundbreaking ceremony for Timashev Technology Tower | 1 | 0 | No |
| How did AI discover the internet's massive cyber-security risk? | 1 | 1 | No |
That's the right answer for a broad query like "technology": unrelated stories, one source each, two of them outside the 24-hour window. The recorded sample has three results, so it can show the mechanics but not a burst; a real event would show up as one cluster with several sources inside the window.
The example also shows why the query matters more than the threshold. "technology" matches everything, so no single story stands out. Event detection works on narrow queries: a company, a product, a place, a regulation. Those have a low, stable baseline that a real event clearly exceeds.
## When is a larger news dataset a better fit?
When you need global coverage rather than a watch list. The GDELT Project monitors print, broadcast and web news in over 100 languages and updates its event data every 15 minutes, free ( [GDELT](https://gdeltproject.org/about.html), 2026). For research across all world news, or for event types rather than named entities, that's a better starting point than running thousands of searches.
A search endpoint fits the opposite case: a defined list of companies, products or places you care about, checked on a schedule, with results you can act on and link to. For a weekly digest built on the same results, see our [AI competitor monitoring agent](https://perceptlayer.com/blog/ai-competitor-monitoring-agent).
## What does an event detector cost to run?
One call per query per check, at 1 credit per successful call; failed calls cost nothing and return `X-Credits-Used: 0`. The cost is set by how many queries you watch and how often. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
| Watch list | Every 6 hours | Hourly |
| --- | --- | --- |
| 10 queries | 1,200 credits a month | 7,200 credits a month |
| 50 queries | 6,000 credits a month | 36,000 credits a month |
Worked example: 50 queries every 6 hours is 50 × 4 × 30 = 6,000 credits a month, inside a Starter pack of 10,000 credits; hourly, it's 36,000, inside a Build pack of 50,000 credits. Ten queries checked twice a day is 600 credits a month; the 100 free credits on signup cover its first 5 days. See [pricing](https://perceptlayer.com/pricing) for what credits cost; for running the checks on a timer, see [scheduling web data pulls](https://perceptlayer.com/blog/schedule-web-data-pulls-cron-queue).
To try a query, [get a free API key](https://perceptlayer.com/signup) and run it in the playground on the [Google News API page](https://perceptlayer.com/apis/google-news). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Google News **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/google-news)
## Frequently asked questions
### How do you detect events from news data?
Remove duplicate URLs, cluster articles that cover the same story, count distinct sources per cluster within a time window, and flag clusters whose count is well above that query's normal level. Distinct sources matter more than article counts, because syndication and rewrites multiply articles without adding independent evidence.
### Why count sources instead of articles?
Because one story can appear dozens of times. Wire copy is republished, outlets rewrite each other, and the same article comes back on every run. Counting distinct `source.name` values per story cluster measures how many independent outlets picked it up, which is a better sign that something actually happened.
### What threshold should I use?
Start with a fixed floor, such as 3 distinct sources within 24 hours, for narrow queries. For broader ones, compare each day's count with that query's own recent median, for example flagging three times the median of the previous 14 days. Tune on a few weeks of history before alerting anyone.
### Which date field should I use?
`iso_date`, an ISO 8601 timestamp with an offset, such as `2026-10-20T15:59:45+00:00`. The `date` field is relative to the day of the call, such as "today" or "2 days ago", so it can't place an article in a window you'll compare across runs.
### How much does news monitoring cost?
One Google News call per query per check, at 1 credit per successful call; failed calls cost nothing. Fifty queries every six hours is 6,000 credits a month. Every account gets 100 free credits after verifying an email address. The [pricing page](https://perceptlayer.com/pricing) has what credits cost.
event detection news data google news monitoring python
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 31 Oct 2026 Perceptlayer 9 min read
## [Price Monitoring Tool: Build One on Product APIs](https://perceptlayer.com/blog/price-monitoring-tool-build)
Build a price monitoring tool in Python: daily Google Shopping, Walmart and idealo searches, price and seller per day in SQLite, 1 credit per check.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 3 Sept 2026 Perceptlayer 8 min read
## [Search Result Data for SEO Monitoring: Fields to Track](https://perceptlayer.com/blog/search-result-data-seo-monitoring)
Which search result fields to store per keyword per day, from position to snippet, and what 200 keywords tracked daily cost in credits.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
---
title: "Scraper or API: What Maintaining a Scraper Really Involves"
description: "What a scraper costs to keep running: selector fixes, proxies, retries and monitoring, set against an API at 1 credit per successful call."
url: https://perceptlayer.com/blog/scraper-vs-api-maintenance-cost
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Scraper or API: What Maintaining a Scraper Really Involves
8 Aug 2026 Updated 10 Nov 2026 Perceptlayer 11 min read
A scraper is cheap to write and expensive to keep alive. The first version takes an afternoon; the upkeep is a recurring tax of selector repairs, blocked requests, retry logic and monitoring that never reaches zero. An API replaces that tax with a per-call price. For most teams who need data from many websites, the API is cheaper once you count engineer hours. A scraper still wins in a few specific cases, listed below.
## Key takeaways
- A scraper's real cost is recurring work: fixing selectors after layout changes, handling blocks and proxies, writing retries, and monitoring for silent breakage.
- Price the upkeep in engineer hours. At an assumed $100 an hour, 8 hours a month is $800 of upkeep. Count your API usage separately in credits, at 1 credit per call, and check [pricing](https://perceptlayer.com/pricing) for what they cost.
- Perceptlayer covers 480 websites and 2,782 endpoints with one key, and failed calls cost nothing and return `X-Credits-Used: 0`.
- Build a scraper when the source isn't in any catalogue, when you need fields an API doesn't return, or when volume is so high that per-call pricing exceeds upkeep.
- Moving off a scraper is low risk: run both for a week, diff the fields, then switch.
## What does maintaining a scraper involve week to week?
A scraper breaks in four recurring ways: the page layout changes and your selectors stop matching, the site starts rejecting your requests, transient errors need retries, and nobody notices a partial failure until a downstream report looks wrong. Each is small on its own. Together they become a standing job that belongs to someone, whether or not it's on their title.
### Selector breakage
Your scraper reads a page by pointing at structure: a CSS selector, an XPath, a position in the DOM. The site owner never agreed to keep that structure stable, and a redesign, an A/B test or a renamed class takes your parser down. The failure is often quiet. The request returns 200, the selector matches nothing, and you store an empty field.
That quiet part is what costs time. A loud crash gets fixed the same day. An empty `price` column gets found when someone asks why the dashboard dropped.
### Blocks, proxies and rate limits
Sites limit how fast one client can read them. Once you scale past a few requests a minute you meet 429 responses, CAPTCHAs and IP-based limits. Teams respond with proxy pools, request pacing and header tuning, and each of those has its own bill and its own failure modes.
Respect the site's rules while you do this. The [Robots Exclusion Protocol (RFC 9309)](https://www.rfc-editor.org/rfc/rfc9309) is the baseline for what a crawler should read, and a site's terms can add limits on top. Engineering around a site's protections is a legal and ethical question as much as a technical one, and it's the part of scraper upkeep that gets least attention in estimates.
### Retries and error handling
Every network call fails sometimes. A scraper needs a policy: which statuses to retry, how long to wait, when to stop, and how to avoid hammering a site that is already struggling. The HTTP spec defines [`Retry-After`](https://www.rfc-editor.org/rfc/rfc9110#field.retry-after) for exactly this, but a scraper only sees it if the site sends it. Our guide to [retrying web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers the pattern in detail.
### Monitoring
You can't maintain what you can't see. A scraper in production needs a success rate per site, a check that each field is populated, an alert when output volume drops, and a way to replay a failed job. Building that is real work, and it has to be maintained too.
## Where does the engineering time actually go?
The time goes to recurring tasks, not to the original build. Count the tasks per site, because they multiply with every source you add: ten sites means ten sets of selectors, ten sets of block behaviour and ten places for a silent failure. The table lists what each task costs you in practice.
| Recurring task | What triggers it | How it shows up | Scales with |
| --- | --- | --- | --- |
| Fix selectors | Layout change, A/B test, renamed class | Empty or wrong fields, often with HTTP 200 | Number of sites |
| Handle blocks | Request rate, repeated patterns | 403, 429, CAPTCHAs, timeouts | Request volume |
| Run proxies | Blocks, geo targeting | A separate vendor bill and a new failure source | Request volume |
| Write retries | Transient errors, rate limits | Duplicate work or gaps in the data | Number of sites |
| Monitor output | Silent breakage | A report that looks wrong days later | Number of sites |
| Handle pagination | Cursor or page changes | Missing or repeated pages | Number of endpoints |
None of this is exotic. It's ordinary engineering, and the issue is that it never finishes. If you run pagination loops against anything, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python) for the safe version.
## How does the cost compare with per-call pricing?
Price a scraper by multiplying hours by your loaded hourly rate, then compare it with calls times the per-call price. The only figure you need from us is the credits per call. Perceptlayer gives 100 free credits once, after you verify an email address, and sells prepaid packs with no subscription and no seats. The [pricing](https://perceptlayer.com/pricing) page shows what credits cost.
| Pack | Credits | Included rate (requests a second) |
| --- | --- | --- |
| Starter | 10,000 | 5 |
| Build | 50,000 | 5 |
| Growth | 200,000 | 5 |
| Pro | 500,000 | 5 |
| Scale | 1,000,000 | 10 |
| Volume | 5,000,000 | 20 |
| Volume 10M | 10,000,000 | 25 |
| Volume 25M | 25,000,000 | 25 |
| Volume 50M | 50,000,000 | 50 |
A successful call costs the credits shown on its endpoint, which is 1 credit for nearly all of them. Failed calls cost nothing. Purchased credits last 12 months.
### A worked example
Take 100,000 calls a month at 1 credit each: 100,000 calls × 1 credit = 100,000 credits a month. That fits inside one Growth pack of 200,000 credits, which lasts about two months at that rate.
Now the scraper side. The hours below are an assumption, not a measurement; replace them with your own. Say one engineer spends 8 hours a month on selector fixes, block handling and monitoring, at an assumed $100 an hour. That's $800 a month, before proxy fees and servers.
To decide which is cheaper, use the break-even form:
monthly calls × 1 credit = credits a month; price those credits on the pricing page and compare with monthly upkeep
Work in credits first. At 1 credit per call, your monthly calls are your monthly credits. Then check the [pricing](https://perceptlayer.com/pricing) page for what that many credits cost in the pack you'd buy. Set that against your upkeep, which is $800 in this example. If the credits come to less than the upkeep, the API is cheaper. If they come to more, the scraper is cheaper, as long as upkeep stays where it is.
The comparison flips when volume is very high and upkeep is low, because per-call cost grows with volume and upkeep mostly doesn't. Do the sum with your own numbers.
## Scraper vs API: how do they compare side by side?
An in-house scraper gives you control over every field and no per-call fee, at the price of owning every failure. An API gives you a stable JSON contract and a predictable bill, at the price of being limited to the endpoints and fields it offers. The table compares the two across the things that decide maintenance.
| Concern | In-house scraper | Perceptlayer API |
| --- | --- | --- |
| Output shape | Whatever your parser extracts | JSON with named fields from every endpoint |
| Layout changes | Your selectors break, you fix them | Not your parser |
| Blocks and proxies | Yours to manage and pay for | Not part of your code |
| Retries | You write and tune the policy | `Retry-After` on 429 and 503; you still write the loop |
| Failure signal | Often silent | HTTP status plus `{"error": {"code", "message", "request_id"}}` |
| Cost model | Engineer hours, proxies, servers | Credits per successful call; failed calls cost nothing |
| Coverage | Any page you can read | 480 websites, 2,782 endpoints |
| Custom fields | Anything on the page | Only what the endpoint returns |
| Spend visibility | Infrastructure bills | `X-Credits-Used` and `X-Credits-Remaining` on every successful response |
An API doesn't remove error handling. You still write a retry loop and decide what to do with a 502 `source_error`. What it removes is the part that depends on someone else's HTML. See the [errors reference](https://docs.perceptlayer.com/errors) and the [rate limits](https://docs.perceptlayer.com/rate-limits) for what to handle.
Data is collected from publicly available sources and returned as found at the time of the call. That means you should validate it the way you would any third-party feed.
## Which should your team choose?
Choose by team size and by how many sources you need, because maintenance cost scales with sources while an API's cost scales with calls. The verdicts below are plain recommendations, not rules. They assume the data you need is in the catalogue; check the [list of APIs](https://perceptlayer.com/apis) first.
| Situation | Verdict |
| --- | --- |
| Solo developer or small team, a few sources, no one to own upkeep | Use an API. You'd be your own on-call for the scraper. |
| Team building an AI agent that needs many sources | Use an API, over HTTP or [MCP](https://docs.perceptlayer.com/ai-agents). One key beats a scraper per site. |
| Data team with a stable list of sources and a dedicated engineer | Start with an API and keep a scraper only for gaps. |
| Platform team with one source at very high volume | Cost both. A scraper may win if upkeep is low and volume is huge. |
| Source isn't in any catalogue | Build a scraper. |
### Small teams
If nobody owns the scraper, nobody fixes it. The silent failures arrive at the worst time, and the person who wrote the parser has moved on. A per-call price is easier to defend than an engineer's time spent on selectors.
### Agent builders
Agents call many sources, and a scraper per source multiplies upkeep. One key and a catalogue you can search cuts that to a single integration. The MCP server at `https://perceptlayer.com/mcp` has `search_endpoints` and `get_endpoint` (both free) and `call_endpoint`, which spends credits on success only. Cap the spend with the approach in [AI agent API cost control](https://perceptlayer.com/blog/ai-agent-web-data-costs).
### Larger data teams
You have the people to run a scraper. The question is whether you should. Put the first few sources on the API, measure the hours you get back, and keep scrapers where the catalogue has no coverage. The [data engineering hub](https://perceptlayer.com/blog/category/data-engineering) has related pipeline guidance.
## When is a scraper the right call?
Build a scraper when the data isn't available any other way, when you need fields an API doesn't expose, or when your volume makes per-call pricing the larger cost. Those cases are real, and an article that pretended otherwise wouldn't help you. Each comes with a condition.
- **The source isn't covered.** If no catalogue lists the website, you have no choice. Check [the APIs list](https://perceptlayer.com/apis) before you start.
- **You need page-specific fields.** An API returns the fields its endpoint defines. If you need something visible on the page but absent from the JSON, a scraper can read it.
- **A website offers its own official API that fits.** Use it. An official API is a contract from the site owner, and that's the most stable source you can get.
- **Volume dwarfs upkeep.** Once your monthly calls pass the break-even point from the worked example, against one stable page, a scraper's fixed upkeep can undercut per-call pricing.
- **You need exact control over timing and raw HTML.** Archiving pages or replaying parsers over stored HTML needs the HTML itself.
Even then, keep it small. Scrape only what you're allowed to, keep the parser narrow, and log which fields came back empty.
## How do you move from a scraper to an API?
Run both side by side for a week, compare the fields, then switch one source at a time. The comparison tells you whether the API covers the fields you actually use. You need a free key and one call per source to find out.
1. [Get a free API key](https://perceptlayer.com/signup). Keys start with `sk_live_`, and the free tier gives 100 credits on signup with no credit card.
2. Send the key in the `X-API-Key` header, as in [the authentication docs](https://docs.perceptlayer.com/authentication).
3. Pick the endpoint that matches your scraper's output and run it in the playground on that API's page.
4. Diff the fields against your scraper's output for the same inputs. Note which fields are missing.
5. Log `X-Credits-Used` and `X-Credits-Remaining` from each successful response so the cost is visible from day one.
6. Switch the source, then retire its selectors and proxy rules.
Here is a copyable call. Replace `ENDPOINT_PATH` with the path shown on the endpoint's page, and add that endpoint's parameters as the page lists them ( [request format](https://docs.perceptlayer.com/requests)):
```bash
curl -i "https://api.perceptlayer.com/ENDPOINT_PATH" \
-H "X-API-Key: $API_KEY"
```
The `-i` flag prints the response headers, so you can read `X-Credits-Used` and `X-Credits-Remaining`. The response body shape depends on the endpoint, so check the fields on that endpoint's page before you diff against your scraper.
The service is prepaid. When the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited, and there is no automatic top-up. Read [how credits work](https://docs.perceptlayer.com/credits) before you point a job at it.
To see what one call returns, [get a free API key](https://perceptlayer.com/signup) and run an endpoint from your current scraper in the playground.
## Frequently asked questions
### Is a web scraper cheaper than an API?
It depends on volume and on how many hours upkeep takes. A scraper has no per-call fee, but you pay for selector fixes, proxies, servers and monitoring. Perceptlayer charges 1 credit per successful call, so 100,000 calls × 1 credit = 100,000 credits. Check [pricing](https://perceptlayer.com/pricing) for what those credits cost, then set that against your upkeep. Eight hours a month at an assumed $100 an hour is $800. Run the sum with your own figures.
### How often does a scraper break?
There's no fixed rate, because it depends on how often each site changes its markup. What matters is that breakage is unscheduled and often silent: the request succeeds but a selector returns nothing. Plan for it by checking that key fields are populated on every run and alerting when output volume drops.
### Does an API remove the need for retries?
No. You still retry transient failures. Perceptlayer returns `Retry-After` with the seconds to wait on 429 and 503 responses. Requests have no idempotency key, so a call whose reply was lost to a client timeout may have succeeded and been billed. Failed calls cost nothing and return `X-Credits-Used: 0`.
### Can I use both a scraper and an API?
Yes. Use the API for sources it covers and keep a scraper for gaps in coverage or fields it doesn't return. Keep the scraper narrow, and treat each remaining scraper as a cost you chose, with an owner and a reason.
### Are scraping and APIs both legal?
That depends on the site's terms, the data and your jurisdiction, so this isn't legal advice. Read the terms of any site you scrape and respect its robots rules. Some Perceptlayer endpoints return social, personal or SEO data and need the restricted-endpoint terms accepted in the dashboard first.
web scraping scraper vs api maintenance cost data engineering retries monitoring
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 31 Oct 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [Extract Data From a Website: Pages, Sites and APIs](https://perceptlayer.com/blog/extract-data-from-website)
Three ways to extract data from a website: one page as markdown or JSON, every URL on a site with map, or structured records. 1 credit per call.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
---
title: "Glassdoor API: Company Reviews and Salaries as JSON"
description: "Find a Glassdoor employer ID, then pull reviews and salary percentiles as JSON. Real responses, parameters and 1 credit per call."
url: https://perceptlayer.com/blog/glassdoor-salary-data-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Glassdoor API: Company Reviews and Salaries as JSON
6 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
Glassdoor's own API is closed to new developers, so you can't sign up for one. The Perceptlayer Glassdoor API returns the same kind of data as JSON instead: search a company by name, take its `employer_id`, then call the reviews, overview and salaries endpoints. Each successful call costs 1 credit, and failed calls cost nothing.
## Key takeaways
- Glassdoor's partner API stopped taking new applications in 2021, so a self-serve key from Glassdoor isn't available.
- The flow is two steps: `companies-search` returns an `id` for the employer, and every other company endpoint takes that value as `employer_id`.
- `companies-reviews` returns company-level review fields (rating, pros, cons, job title, location) plus paging fields such as `total_pages` and `has_more`.
- `salaries` returns `total_pay` percentiles from `p10` to `p90` per employer, and an overall `estimate` block for the job title.
- All 13 Glassdoor endpoints cost 1 credit per successful call, and the free tier gives 100 credits on signup.
## Is there an official Glassdoor API you can still use?
Not for a new project. Glassdoor's Partner API program was [closed to new applications in 2021](https://providers.apievangelist.com/providers/glassdoor/) (API Evangelist, 2021), and Zuplo's guide to the API says the same: [Glassdoor closed off public access to its API in 2021](https://dev.to/zuplo/what-is-the-glassdoor-api-how-to-use-it-and-alternatives-35d7) (Zuplo, 2024). That leaves no self-serve route where you request a key and start calling.
If you hold an existing partner agreement, use it: that's the first-party route and the one with Glassdoor's terms attached. If you don't, the options are scraping the pages yourself or calling an API that returns the public data as JSON. For the maintenance side of the first option, see [what maintaining a scraper really involves](https://perceptlayer.com/blog/scraper-vs-api-maintenance-cost).
## What does the Glassdoor API return?
The [Glassdoor API](https://perceptlayer.com/apis/glassdoor) has 13 endpoints in the [Jobs area](https://perceptlayer.com/verticals/jobs). Eight cover companies (search, autocomplete, overview, reviews, benefits, interviews, photos and jobs), two return salaries ( `salaries` and `salaries-estimate`), two cover job listings ( `jobs-search` and `jobs-details`) and one searches locations. Every response is JSON with named fields, and the data is collected from publicly available sources and returned as found at the time of the call.
| Endpoint | Returns | Credits | Required | Optional |
| --- | --- | --- | --- | --- |
| [`/v1/glassdoor/companies-autocomplete`](https://perceptlayer.com/apis/glassdoor/companies-autocomplete) | Companies Autocomplete | 1 | `query` | none |
| [`/v1/glassdoor/companies-search`](https://perceptlayer.com/apis/glassdoor/companies-search) | Companies Search | 1 | `query` | `page`, `limit` |
| [`/v1/glassdoor/companies-overview`](https://perceptlayer.com/apis/glassdoor/companies-overview) | Companies Overview | 1 | `employer_id` | none |
| [`/v1/glassdoor/companies-reviews`](https://perceptlayer.com/apis/glassdoor/companies-reviews) | Companies Reviews | 1 | `employer_id` | `page`, `limit` |
| [`/v1/glassdoor/salaries`](https://perceptlayer.com/apis/glassdoor/salaries) | Salaries | 1 | `job_title` | `employer_id`, `page`, `limit` |
| [`/v1/glassdoor/jobs-search`](https://perceptlayer.com/apis/glassdoor/jobs-search) | Jobs Search | 1 | `keyword` | `cursor` |
The string parameters ( `query`, `job_title`, `keyword`) accept up to 100 characters. `employer_id` and the paging parameters `page` and `limit` are integers. The catalogue doesn't document defaults or page sizes for `page` and `limit`, so read `page`, `total_pages` and `has_more` from each response instead of assuming a size.
## How do you find a company's employer ID?
Call `companies-search` with the company name. The response lists matching employers, and each one has an `id` you pass as `employer_id` to the other endpoints. The search can return several employers with similar names, so check the name and `review_count` before you pick one.
```bash
curl "https://api.perceptlayer.com/v1/glassdoor/companies-search?query=Stripe" \
-H "X-API-Key: $API_KEY"
```
A recorded response, trimmed:
```json
{
"success": true,
"data": {
"query": "Stripe",
"companies": [
{
"id": 671932,
"name": "Stripe",
"rating": 3.8,
"review_count": 1619,
"salary_count": 4702,
"job_count": 3
},
{
"id": 5554043,
"name": "Stripe OLT",
"rating": 4,
"review_count": 24,
"salary_count": 38,
"job_count": 0
}
],
"page": 1,
"total_pages": 5,
"has_more": true
},
"meta": {
"endpoint_family": "company_search",
"billable": true
}
}
```
Two employers match "Stripe". The first, `671932`, has 1,619 reviews; the second has 24. A script that blindly takes `companies[0]` works here, but for ambiguous names it's safer to compare `name` exactly and fall back to the highest `review_count`.
For a type-ahead box rather than a full result list, [`companies-autocomplete`](https://perceptlayer.com/apis/glassdoor/companies-autocomplete) takes the same `query` parameter. Use `companies-search` when you need the counts and ratings to disambiguate.
## How do you get company reviews as JSON?
Pass the employer ID to `companies-reviews`. The response holds a `company` object, a `reviews` array and paging fields. In the recorded Stripe response, `total_reviews` is 1564 across 157 pages. Reviews are returned as company-level data: a rating, free text, a job title and a location, with no reviewer names.
```bash
curl "https://api.perceptlayer.com/v1/glassdoor/companies-reviews?employer_id=671932" \
-H "X-API-Key: $API_KEY"
```
A recorded response, trimmed:
```json
{
"success": true,
"data": {
"company": {
"id": 671932,
"name": "Stripe",
…
},
"reviews": [
{
"id": 106035163,
"date": "2026-10-20T11:12:55Z",
"summary": "Progressive environment with intense performance expectations",
"pros": "Progressive workplace environment\nGood benefits\nGood compensation",
"cons": "Intense performance ecosystem\nOffice is moving to less convenient location",
"rating": 4,
"job_title": "Software Engineer",
"is_current_employee": true,
"location": "Toronto, ON"
},
{
"id": 106018689,
"rating": 3,
"ratings": {
"career_opportunities": 3,
"compensation_and_benefits": 3,
"culture_and_values": 3,
"diversity_and_inclusion": 4,
"senior_leadership": 3,
"work_life_balance": 3
},
…
}
],
"page": 1,
"total_pages": 157,
"total_reviews": 1564,
"has_more": true
},
…
}
```
### Which review fields can you rely on?
The excerpt above shows the first review in full and only the rating fields of the second; the full recorded sample has two reviews. Both carry `id`, `date`, `summary`, `pros`, `cons`, `rating`, `job_title`, `is_current_employee` and `location`. Only the second also carries a `ratings` object (shown above) with `career_opportunities`, `compensation_and_benefits`, `culture_and_values`, `diversity_and_inclusion`, `senior_leadership` and `work_life_balance`. Treat `ratings` as optional in your code.
`pros` and `cons` are plain strings with line breaks ( `\n`), and some reviewers format them as bullet lists with leading dashes. Split on newlines and strip a leading `- ` if you want one point per row.
### What can you do with review data?
Aggregate it. Average `rating` per month, count reviews by `job_title`, or split by `is_current_employee` to compare current and former staff. Because every review has an `id`, you can store them and deduplicate when you re-pull. Keep the analysis at company level: group and count, and don't try to identify who wrote a review.
## How do you get salary data by job title?
Call `salaries` with a `job_title`. `employer_id` is optional. In the recorded call below, which doesn't pass it, the response holds rows for several employers plus an `estimate` block for the whole title. Each row has base pay, additional pay and `total_pay` percentiles.
```bash
curl "https://api.perceptlayer.com/v1/glassdoor/salaries?job_title=software+engineer" \
-H "X-API-Key: $API_KEY"
```
A recorded response, trimmed:
```json
{
"success": true,
"data": {
"job_title": "software engineer",
"salaries": [
{
"job_title": "Software Engineer",
"employer": {
"id": 9079,
"name": "Google",
"rating": 4.4
},
"currency": "USD",
"pay_period": "ANNUAL",
"base_pay_mean": 184722.83,
"additional_pay_mean": 126972.82,
"total_pay": {
"p10": 207909.08,
"p25": 251388.51,
"p50": 311695.65,
"p75": 396273.52,
"p90": 486503.67
}
},
…
],
"page": 1,
"total_pages": 10438,
"total_results": 104377,
"has_more": true,
"estimate": {
"location": "United States",
"confidence": "CONFIDENT",
"salaries_count": 727155,
"total_pay": {
"p10": 99464.84,
"p50": 152101.59,
"p90": 237195.82
},
…
}
},
…
}
```
### How do you read the percentiles?
In this recording, the Google row has a `total_pay` median ( `p50`) of 311,695.65 USD a year, against 152,101.59 USD for the `estimate` across all employers in the United States. The gap between `base_pay_mean` (184,722.83) and `additional_pay_mean` (126,972.82) shows why total pay, not base pay, is the field to compare for employers that pay in stock and bonuses.
Two cautions. These are figures as found at the time of the call, not a guarantee of accuracy, and the `estimate` carries its own `confidence` value and `salaries_count`. Check both before you quote a number. Also, with 10,438 pages for one title, don't page through everything: plan your questions so one page answers them.
### Which parameters narrow a salary query?
| Parameter | Type | Required | Use |
| --- | --- | --- | --- |
| `job_title` | string, up to 100 characters | yes | The title to look up, such as `software engineer` |
| `employer_id` | integer | no | An employer `id` from `companies-search` |
| `page` | integer | no | Move through results; read `total_pages` and `has_more` |
| `limit` | integer | no | Ask for a number of rows per page |
## What does it cost to pull a company's data?
Every Glassdoor endpoint is 1 credit per successful call, and a failed call returns `X-Credits-Used: 0` and bills nothing. A full pull of one company is cheap: one search call, one overview call and one call per page of reviews.
Using the recorded Stripe numbers, 157 pages of reviews means 157 calls. The arithmetic: 1 search + 1 overview + 157 review pages = 159 credits. The 100 free credits you get on signup after verifying an email address cover the search, the overview and the first 98 review pages, with no credit card; the rest of the pull needs a pack.
At volume, you buy prepaid credit packs of 10,000 (Starter), 50,000 (Build), 200,000 (Growth), 500,000 (Pro), 1,000,000 (Scale) or 5,000,000 (Volume) credits. Purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
Tracking 100 employers, each pulled once with all 157 pages as in the Stripe example, is 100 × 159 calls × 1 credit = 15,900 credits. That's more than the Starter pack's 10,000 and within the Build pack's 50,000. Real companies vary widely in review count, so read `total_pages` from the first reviews response before you loop. See [credits in the docs](https://docs.perceptlayer.com/credits).
Every successful response carries `X-Credits-Used` and `X-Credits-Remaining`, so you can stop a loop when the balance gets low. The service is prepaid: when credits run out, calls return `insufficient_credits` (402) and nothing more is debited.
## How do you handle errors and rate limits?
Errors come back with an HTTP status and a JSON body: `{"error": {"code", "message", "request_id"}}`. The ones you'll meet on this API are `invalid_parameters` (422) for parameters the endpoint doesn't accept, `invalid_api_key` (401), `insufficient_credits` (402), `rate_limited` (429) and `temporarily_unavailable` (503).
For 429 and 503, wait the number of seconds in the `Retry-After` header and try again. Requests have no idempotency key, so if a client timeout hides the reply, the call may have succeeded and been billed. Count that possibility in your retry logic, and see [the error codes](https://docs.perceptlayer.com/errors) and [rate limits](https://docs.perceptlayer.com/rate-limits) in the docs. The pattern is covered in [retrying web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice).
## How do you page through a long reviews list?
Loop on `page` until `has_more` is false. Start at 1, keep the `id` of every review you store, and stop early if `X-Credits-Remaining` falls under your floor. On a 429 or 503, wait the `Retry-After` seconds and retry the same page. The loop below needs only `requests`.
```python
import os
import time
import requests
BASE = "https://api.perceptlayer.com/v1/glassdoor"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
CREDIT_FLOOR = 50
def get(path, **params):
while True:
r = requests.get(f"{BASE}/{path}", headers=HEADERS, params=params, timeout=30)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "1")))
continue
r.raise_for_status()
return r.json()["data"], int(r.headers["X-Credits-Remaining"])
(found, _) = get("companies-search", query="Stripe")
company = found["companies"][0]
reviews, page = {}, 1
while True:
data, remaining = get("companies-reviews", employer_id=company["id"], page=page)
for review in data["reviews"]:
reviews[review["id"]] = review
if not data["has_more"] or remaining < CREDIT_FLOOR:
break
page += 1
print(company["name"], len(reviews), "reviews;", remaining, "credits left")
```
Keying the dictionary on `id` means a repeated page can't create duplicates. A free account is limited to 1 request a second (60 a minute), so the 157 pages of the Stripe example take about 3 minutes, and a 429 sends the loop to sleep for the `Retry-After` it is given. Paid accounts run at least 5 requests a second. If a client timeout hides a reply, that page may have been billed once already, which the `id` keys absorb on the re-pull but the credits don't. For a fuller treatment, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python), and to avoid paying twice for the same page, [cache API responses](https://perceptlayer.com/blog/cache-web-data-api-responses).
Run the first call in the playground on the [Glassdoor API page](https://perceptlayer.com/apis/glassdoor) to see the shape before you write code, then [get a free API key](https://perceptlayer.com/signup). For authentication details, see [the docs](https://docs.perceptlayer.com/authentication). If you're building job-market tooling, the [Indeed Jobs API guide](https://perceptlayer.com/blog/indeed-jobs-api-json) covers postings, and the [Trustpilot reviews guide](https://perceptlayer.com/blog/trustpilot-reviews-api) covers customer reviews of the same companies.
## APIs in this post
- [Glassdoor **1 credit per call** · 13 endpoints](https://perceptlayer.com/apis/glassdoor)
## Frequently asked questions
### Does Glassdoor have a public API?
Not one you can join today. Its Partner API was [closed to new applications in 2021](https://providers.apievangelist.com/providers/glassdoor/) (API Evangelist, 2021), and [public access to the API ended that year](https://dev.to/zuplo/what-is-the-glassdoor-api-how-to-use-it-and-alternatives-35d7) (Zuplo, 2024). The Perceptlayer Glassdoor API fills that gap with six endpoints and one key, at 1 credit per successful call.
### How much does the Glassdoor API cost?
Each of the 13 endpoints costs 1 credit per successful call. You get 100 free credits after verifying an email, with no credit card. Paid packs start at 10,000 credits (Starter), so 10,000 calls × 1 credit = 10,000 credits; [pricing](https://perceptlayer.com/pricing) has what credits cost. Failed calls cost nothing.
### Can I get reviewer names from the reviews endpoint?
The recorded `companies-reviews` response has no reviewer names. Each review has a rating, summary, pros, cons, job title, employment status and location. That fits company-level analysis such as rating trends and themes, and you should keep your analysis at that level too.
### How do I get salaries for one company only?
Look up the company with `companies-search`, then call `salaries` with both `job_title` and that company's `employer_id`, which is an optional parameter. The recorded call without it returned rows across many employers plus an overall `estimate`. Check the rows' `employer` field for the company you asked about. Both forms cost 1 credit per call.
### Can an AI agent call these endpoints?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing; `call_endpoint` spends the endpoint's 1 credit on success. Setup is in the [MCP docs](https://docs.perceptlayer.com/ai-agents).
glassdoor company reviews salary data jobs
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Glassdoor Scraper or API: What You Get](https://perceptlayer.com/blog/glassdoor-scraper-vs-api)
A Glassdoor scraper vs 1-credit company, review and salary calls: recorded Stripe data, 157 pages for a full review backfill, and the weekly cost per company.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Nov 2026 Perceptlayer 9 min read
## [Indeed Scraper or API: Postings, Companies, Salaries](https://perceptlayer.com/blog/indeed-scraper-vs-api)
An Indeed scraper parses five kinds of page; 9 Indeed endpoints return them as JSON at 1 credit a call. A recorded Berlin search is 0.05 credits a posting.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 20 Sept 2026 Perceptlayer 7 min read
## [Salary Data from Job Sites: Reading Ranges Without Bias](https://perceptlayer.com/blog/salary-data-job-sites-bias)
Glassdoor's salaries endpoint returns p10 to p90 total pay, a currency and a national count. How to read those ranges and the biases of self-reported pay.
---
title: "Google Images API: Search Image Results as JSON"
description: "One GET to /v1/google-images/images returns image results as JSON for 1 credit: parameters, cURL and Python calls, a real response and licensing notes."
url: https://perceptlayer.com/blog/google-images-api-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Images API: Search Image Results as JSON
6 Aug 2026 Perceptlayer 7 min read
You can get Google Images results as JSON with one call: `GET /v1/google-images/images` with a `q` parameter and your key in the `X-API-Key` header. Each result in the array has a thumbnail, the page it came from, the original image URL and its pixel size. A successful call costs 1 credit, and a failed call costs nothing. Results are pointers to other people's images, not licensed assets, so read the licensing section before you reuse any of them.
## Key takeaways
- `GET /v1/google-images/images` takes one required parameter, `q`, and nine optional ones: `hl`, `gl`, `imgsz`, `imgtype`, `imgcolor`, `imgar`, `tbs`, `safe` and `page`.
- Each result carries `position`, `thumbnail`, `source`, `title`, `link`, `original`, `original_width`, `original_height` and `is_product`.
- A successful call costs 1 credit, so 20,000 searches cost 20,000 credits. Failed calls return `X-Credits-Used: 0`.
- `link` is the page that shows the image and `original` is the file itself. Neither tells you whether you may reuse the image.
- The free tier gives 100 credits after you verify an email address, with no credit card.
## How do you get Google Images results as JSON?
Send a GET request to `https://api.perceptlayer.com/v1/google-images/images` with the search text in `q` and your key in the `X-API-Key` header. The response is a JSON array, one object per image result, with named fields instead of a page of HTML to parse. The call costs 1 credit when it succeeds and nothing when it fails.
Here is the smallest useful request:
```bash
curl "https://api.perceptlayer.com/v1/google-images/images?q=coffee" \
-H "X-API-Key: $API_KEY"
```
Keys start with `sk_live_`. If your client can't set headers, the `api_key` query parameter works too, though a header keeps the key out of logs and URLs. The [authentication docs](https://docs.perceptlayer.com/authentication) cover both. You can also run the same call without writing code in the playground on the [Google Images API page](https://perceptlayer.com/apis/google-images).
## Which parameters does the Images endpoint take?
The endpoint has one required parameter, `q`, and nine optional ones that narrow the results by language, country, size, type, colour, aspect ratio and safe-search setting. The table lists every parameter and the values the endpoint documents for it. Nothing beyond these is documented, so don't rely on defaults or a fixed page size.
| Parameter | Type | Required | Allowed values or limit |
| --- | --- | --- | --- |
| `q` | string | yes | Search text |
| `hl` | string | no | Up to 2 characters |
| `gl` | string | no | Up to 2 characters |
| `imgsz` | string | no | `large`, `medium`, `icon` |
| `imgtype` | string | no | `photo`, `clipart`, `lineart`, `gif`, `face` |
| `imgcolor` | string | no | `color`, `gray`, `trans`, `red`, `orange`, `yellow`, `green`, `teal`, `blue`, `purple`, `pink`, `white`, `black`, `brown` |
| `imgar` | string | no | `tall`, `square`, `wide` |
| `tbs` | string | no | Up to 500 characters |
| `safe` | string | no | `active`, `off` |
| `page` | integer | no | Page number |
Use `imgsz`, `imgtype`, `imgcolor` and `imgar` before anything else, because they have fixed values and invalid ones are rejected with an `invalid_parameters` (422) error. A wide, large photo search looks like this:
```bash
curl "https://api.perceptlayer.com/v1/google-images/images?q=coffee&imgsz=large&imgtype=photo&imgar=wide&safe=active" \
-H "X-API-Key: $API_KEY"
```
The `hl` and `gl` parameters accept up to two characters each, which fits a language code and a country code. The `tbs` parameter takes a free-form string of up to 500 characters. The [endpoint page](https://perceptlayer.com/apis/google-images/images) is the reference for the full list.
## What does a response look like?
The response is a JSON array of result objects, ordered by `position`. This excerpt is a real response to the `q=coffee` request above, trimmed with `…` where results and long URLs were cut:
```json
[
{
"position": 1,
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:…",
"source": "Wikipedia",
"title": "Coffee - Wikipedia",
"link": "https://en.wikipedia.org/wiki/Coffee",
"original": "https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg?…",
"original_width": 3200,
"original_height": 2000,
"is_product": false
},
{
"position": 2,
"thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:…",
"source": "InstaCuppa Store",
"title": "Easy Coffee Recipe at Home: Simple Cafe-Style Coffee in 2 Minutes",
"link": "https://instacuppastore.com/blogs/recipes/easy-coffee-recipe-at-home?…",
"original": "https://instacuppastore.com/cdn/shop/articles/blog-easy-coffee-recipe-at-home-cover_….jpg?…",
"original_width": 1100,
"original_height": 738,
"is_product": true
}
]
```
| Field | What it holds |
| --- | --- |
| `position` | The result's rank in the list |
| `thumbnail` | A small preview image URL |
| `source` | The name of the site that shows the image |
| `title` | The title of the page |
| `link` | The page the image appears on |
| `original` | The full-size image file |
| `original_width`, `original_height` | Pixel dimensions of the original |
| `is_product` | Whether the result is flagged as a product |
The two results show why `link` and `original` are separate. The first image is hosted on Wikimedia Commons and shown on a Wikipedia page. The second comes from a shop's blog post. Same field names, very different owners.
## How do you call it from Python?
Python needs only `requests`. The script below searches for large photos, keeps results at least 1,000 pixels wide and prints the page each one came from. It reads the key from the environment and raises on any error status, so a failed call stops the script instead of passing an error body along as data.
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/google-images/images",
headers={"X-API-Key": os.environ["API_KEY"]},
params={"q": "coffee", "imgsz": "large", "imgtype": "photo"},
timeout=30,
)
resp.raise_for_status()
print("credits used:", resp.headers.get("X-Credits-Used"))
print("credits left:", resp.headers.get("X-Credits-Remaining"))
for item in resp.json():
if item["original_width"] >= 1000:
print(item["position"], item["source"], item["link"])
```
Two headers help here. `X-Credits-Used` shows what the call cost and `X-Credits-Remaining` shows your balance afterwards. If a request times out on your side, it may still have succeeded and been billed, because requests have no idempotency key. The [errors docs](https://docs.perceptlayer.com/errors) list every code and what to do about each.
## Can you reuse the images you find?
Not automatically. A search result tells you where an image appears, not that you may copy it. Google's own help page says that "images might be subject to copyright" and tells you to confirm an image's license information through the license details link and the host site ( [Google Search Help](https://support.google.com/websearch/answer/29508), 2026). Treat every result as owned by someone else until you've checked.
The API gives you the facts needed for that check, but not the licence itself. Here is a practical way to use the fields:
1. **Keep `link` with every image.** It is the page you will need to open to find the owner, the licence or a contact. Store it next to `original`.
2. **Don't hotlink `original`.** The file belongs to the host, which can change or remove it, and serving it from your own pages may breach their terms.
3. **Check the licence on the host page.** Google documents a `license` property in image structured data that sites can use to earn a Licensable badge, which links to the licence and usage details ( [Google Search Central, Image license metadata](https://developers.google.com/search/docs/appearance/structured-data/image-license-metadata), 2026). A site that doesn't publish this isn't granting you anything.
4. **Treat `is_product` results with extra care.** Product images are usually a seller's or brand's marketing material.
5. **Ask when in doubt.** Licences differ. Some require attribution and some prohibit commercial use, so the host page or the owner is the only authority.
This is general guidance, not legal advice. If your product republishes images, take advice on the licences that apply.
## What is it good for instead?
Reading image results as data is safe in ways that copying them isn't. The metadata and the pointers are the useful part, and you can build on them without storing a single image file.
- **Visual research.** Count which sites appear for a query, and read `source` and `title` to see how a topic is illustrated.
- **Product and brand monitoring.** Filter on `is_product` to see which shops show an item, with a `link` to each page.
- **Asset sourcing.** Build a shortlist of candidates with sizes from `original_width` and `original_height`, then clear each one with its owner or a licensed library.
- **Agent tools.** Give an agent a search tool that returns titles and page links, so it can cite where an image appears rather than reproducing it. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) explain the MCP server, which exposes the same endpoint through `call_endpoint`.
If you need web results rather than images, see [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json). For product prices, see [Google Shopping API: Product Prices and Offers as JSON](https://perceptlayer.com/blog/google-shopping-api-product-prices).
## What does it cost?
Each successful call to `/v1/google-images/images` costs 1 credit. A failed call costs 0 and returns `X-Credits-Used: 0`. There is no per-seat fee or subscription, and purchased credits last 12 months. New accounts get 100 free credits after verifying an email address, with no credit card.
| Searches | Credits |
| --- | --- |
| 1,000 | 1,000 |
| 20,000 | 20,000 |
| 50,000 | 50,000 |
Twenty thousand calls × 1 credit = 20,000 credits, which fits inside the Build pack's 50,000. The [pricing page](https://perceptlayer.com/pricing) has what credits cost, and the [credits docs](https://docs.perceptlayer.com/credits) explain how debits work. Rate limits are per account and counted per minute: free accounts get 1 request a second, and [the rate limits docs](https://docs.perceptlayer.com/rate-limits) cover paid rates and the `Retry-After` header on 429 responses.
To run your first search, [get a free API key](https://perceptlayer.com/signup) and paste the cURL call above. Then try `imgcolor` or `imgar` in the playground on the [Google Images API page](https://perceptlayer.com/apis/google-images).
## APIs in this post
- [Google Images **1 credit per call** · 1 endpoint](https://perceptlayer.com/apis/google-images)
## Frequently asked questions
### Is there an official Google Images API?
This endpoint is not an official Google service. It returns Google Images results as JSON from publicly available sources, as found at the time of the call. If you need a licensed, contractual image source, a stock library or the image owner's own API will fit better than a search result.
### How much does a Google Images search cost?
A successful call costs 1 credit, so 10,000 searches cost 10,000 credits. Failed calls cost nothing and return `X-Credits-Used: 0`. The free tier includes 100 credits on signup with no credit card, and the [pricing page](https://perceptlayer.com/pricing) lists what credit packs cost.
### Can I use the images that come back?
Not by default. Google says images might be subject to copyright and advises confirming license information with the host site. Use `link` to find the owner, check the licence there, and don't assume that a visible or downloadable file is free to publish or sell.
### How do I filter by size, colour or type?
Add `imgsz` ( `large`, `medium`, `icon`), `imgtype` ( `photo`, `clipart`, `lineart`, `gif`, `face`), `imgcolor` or `imgar` ( `tall`, `square`, `wide`) to the request. Values outside the allowed lists return an `invalid_parameters` (422) error. Failed calls aren't billed.
### What happens if I hit the rate limit?
You get a `rate_limited` (429) response with a `Retry-After` header giving the seconds to wait. Rate-limit headers ( `RateLimit-Remaining`, `RateLimit-Reset`) show how much of the minute is left. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) cover the details.
google images image search search api json licensing
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 5 Nov 2026 Perceptlayer 8 min read
## [Google Images Scraper or API: What You Get](https://perceptlayer.com/blog/google-images-scraper-vs-api)
Compare a Google Images scraper with one 1-credit call that returns position, source, link, original URL, pixel size and is\_product for each result.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 27 Oct 2026 Perceptlayer 8 min read
## [News API Options: Google News and Search as JSON](https://perceptlayer.com/blog/news-api-comparison)
Compare three news API routes: Google News returns headline, source.name, iso\_date and link per article; web search endpoints don't. 1 credit a query.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 21 Aug 2026 Updated 6 Nov 2026 Perceptlayer 6 min read
## [DuckDuckGo Search API: Web Results as JSON](https://perceptlayer.com/blog/duckduckgo-search-api-json)
DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query.
---
title: "Google Search API: Get Search Results as JSON | Perceptlayer"
description: "Call GET /v1/google-search/search for organic results as JSON at 1 credit a call. Parameters, a real recorded response and the cost in credits."
url: https://perceptlayer.com/blog/google-search-api-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Search API: Get Search Results as JSON
6 Aug 2026 Perceptlayer 7 min read
One GET request to `/v1/google-search/search` with a `query` returns Google search results as JSON: organic results with position, title, link and snippet, plus related searches. It costs 1 credit per successful call, and failed calls cost nothing. This matters now because Google's own Custom Search JSON API is closed to new customers.
## Key takeaways
- Google's Custom Search JSON API is closed to new customers, and existing customers have until January 1, 2027 to move to something else.
- `GET /v1/google-search/search` takes one required parameter, `query`, and returns `organic_results`, `related_searches` and `people_also_search_for` in the recorded response.
- Each successful call costs 1 credit, so 1,000 calls cost 1,000 credits; see [pricing](https://perceptlayer.com/pricing) for what credits cost. Custom Search charges $5 per 1,000 queries.
- The Google Search API has 7 endpoints, covering standard results, AI Overviews, AI Mode, place details and autocomplete.
- You get 100 free credits after verifying an email address, with no credit card.
## Why does the Custom Search JSON API no longer work for new projects?
Google's documentation states that ["the Custom Search JSON API is closed to new customers"](https://developers.google.com/custom-search/v1/overview) and that existing customers have until January 1, 2027 to transition to an alternative. The page points to Vertex AI Search for searching up to 50 domains. If you need results from the open web as JSON, you need a different source.
That is a real constraint if you were planning to start on it today. A new project can't get a key, and an old one has a deadline. Google's page also lists the pricing that still applies to current users: 100 queries a day free, then $5 per 1,000 queries, up to 10,000 queries a day.
Vertex AI Search is the better fit if your goal is search over a fixed set of your own sites. It is a different product from "give me the results page for this query as JSON". For that job, the rest of this article shows the replacement request.
## How do you get Google search results as JSON?
Send a GET request to `https://api.perceptlayer.com/v1/google-search/search` with your query and your key in the `X-API-Key` header. The response is JSON with named fields, not a page of HTML. If you don't have a key yet, [get a free API key](https://perceptlayer.com/signup); the [authentication docs](https://docs.perceptlayer.com/authentication) cover the header and the `api_key` query parameter alternative.
```bash
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
-H "X-API-Key: $API_KEY"
```
`hl` sets the interface language and `safe=off` turns off safe search. Both are optional. Only `query` is required.
You can also run the same call from the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search): pick the endpoint, fill in the parameters and run it with your key.
## What does the response look like?
The recorded response for the request above starts with `search_information`, followed by an `organic_results` array. Each entry carries the fields below, taken from the recorded output. The excerpt is trimmed with `…`.
```json
{
"search_information": {
"query_displayed": "best restaurants in Berlin",
"organic_results_count": 6
},
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"displayed_link": "https://andershusa.com › best-restaurants-berlin-german...",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. It holds two Michelin stars, has been frequently ranked on The World's 50 ...",
"snippet_highlighted_words": [
"Tim Raue is the most internationally renowned restaurant in Berlin"
],
"source": "Anders & Kaitlin",
"rank_group": 1,
"rank_absolute": 4
},
…
],
"related_searches": [
{
"query": "Best restaurants in Berlin for tourists",
"link": "https://www.google.com/search?safe=off&gl=us&hl=en&complete=0&pws=0&nfpr=1&q=Best+restaurants+in+Berlin+for+tourists"
},
…
],
"people_also_search_for": [
{
"name": "Best restaurants in Berlin for tourists",
"query": "Best restaurants in Berlin for tourists",
"link": "https://www.google.com/search?safe=off&gl=us&hl=en&complete=0&pws=0&nfpr=1&q=Best+restaurants+in+Berlin+for+tourists"
},
…
],
…
}
```
The recorded response also includes a `redirect_link` on each organic result, which we cut from the excerpt for length.
| Field | What it holds |
| --- | --- |
| `search_information.query_displayed` | The query as the results page displayed it |
| `search_information.organic_results_count` | A count of organic results (6 in this recording) |
| `organic_results[].position` | The result's position in the organic list |
| `organic_results[].title`, `link`, `snippet` | The heading, destination URL and text snippet |
| `organic_results[].displayed_link` | The shortened URL shown under the title |
| `organic_results[].source` | The site name shown for the result |
| `organic_results[].rank_group`, `rank_absolute` | Rank within the organic group, and the absolute rank on the page |
| `related_searches[]`, `people_also_search_for[]` | Suggested follow-up queries with their links |
Note the difference between `position` and `rank_absolute`. In the recording, the first organic result has `position` 1 and `rank_absolute` 4, so the two fields measure different things. If you track rankings, store both.
## Which parameters does the search endpoint take?
`GET /v1/google-search/search` takes one required parameter, `query`, and a long list of optional ones for location, language, filters and paging. The ones most readers need are in the table below. Allowed values come from the endpoint's parameter list; no defaults or page sizes are documented, so don't assume any.
| Parameter | Type | What it does |
| --- | --- | --- |
| `query` | string, required | The search text |
| `location` | string, up to 500 characters | The location to search from |
| `gl` | string, up to 2 characters | Country code for the search |
| `hl` | string, up to 2 characters | Interface language |
| `google_domain` | string, up to 50 characters | Which Google domain to use |
| `safe` | `active` or `off` | Safe search |
| `tbm` | `isch`, `vid`, `nws`, `lcl`, `shop`, `pts` | Search vertical: images, video, news, local, shopping, patents |
| `device` | `desktop`, `tablet`, `mobile` | The device type to search as |
| `start`, `page`, `amount` | integer | Paging controls |
| `include_thumbnails` | `0`, `1`, `true`, `false` | Whether to include thumbnails |
The full list also has `uule`, `cr`, `lr`, `tbs`, `as_qdr`, `kgmid`, `filter`, `nfpr`, `udm` and several other Google-specific parameters. The [Search endpoint page](https://perceptlayer.com/apis/google-search/search) lists every one with its limits. If you're paging through results, the [pagination guide](https://perceptlayer.com/blog/paginate-web-data-api-python) shows a safe loop pattern.
## What are the other six Google Search endpoints for?
The Google Search API has 7 endpoints, and each costs 1 credit per call. Pick by the job: the standard and advanced search endpoints return the results page, one endpoint returns the AI Overview, another returns AI Mode answers, one returns place details, and two lighter endpoints cover search and autocomplete.
| Endpoint | Use it for | Required parameter |
| --- | --- | --- |
| [`/v1/google-search/search`](https://perceptlayer.com/apis/google-search/search) | Standard search results | `query` |
| [`/v1/google-search/search-advanced`](https://perceptlayer.com/apis/google-search/search-advanced) | Search with the same parameter set as `search` | `query` |
| [`/v1/google-search/search-light`](https://perceptlayer.com/apis/google-search/search-light) | Lighter search with `num`, `dateRestrict`, `sort` and `rights` | `query` |
| [`/v1/google-search/search-light-autocomplete`](https://perceptlayer.com/apis/google-search/search-light-autocomplete) | Autocomplete suggestions, with `hl` and `limit` | `query` |
| [`/v1/google-search/search-ai-overview`](https://perceptlayer.com/apis/google-search/search-ai-overview) | The AI Overview for a query | `query` |
| [`/v1/google-search/google-ai-mode-search`](https://perceptlayer.com/apis/google-search/google-ai-mode-search) | Google AI Mode search, with `follow_up_token` for follow-ups | `q` |
| [`/v1/google-search/search-advanced-place`](https://perceptlayer.com/apis/google-search/search-advanced-place) | Place details, via `detail_url` or `svid` | none |
Two details trip people up. AI Mode uses `q`, not `query`. And `search-advanced-place` has no required parameter; you pass a `detail_url` or `svid` instead.
If you're migrating from Custom Search, look at `search-light` first. Its parameters ( `num`, `start`, `dateRestrict`, `sort`, `rights`, `cr`, `lr`, `safe`, `filter`) use names that will look familiar. We haven't recorded a response for it, so check the output in the playground before you map fields. Treat it as a candidate, not a drop-in swap.
## How much does a call cost compared with Custom Search?
A successful call costs 1 credit, so 1,000 calls cost 1,000 credits. Credits come in prepaid packs from 10,000 credits (Starter) up to 5,000,000 (Volume), and the [pricing page](https://perceptlayer.com/pricing) shows what each pack costs. Google's Custom Search charges [$5 per 1,000 queries](https://developers.google.com/custom-search/v1/overview) after 100 free queries a day, capped at 10,000 queries a day.
| Option | Cost of 1,000 calls |
| --- | --- |
| Custom Search JSON API (closed to new customers) | $5 per 1,000 queries |
| Google Search API here | 1,000 calls × 1 credit = 1,000 credits |
The arithmetic for 10,000 queries: 10,000 calls × 1 credit = 10,000 credits, which equals the Starter pack's 10,000. The 100 free credits on signup cover 100 of those calls, once. Custom Search at $5 per 1,000 would be $50 for the same volume, ignoring its free daily queries.
Failed calls cost nothing and return `X-Credits-Used: 0`. Successful responses carry `X-Credits-Used` and `X-Credits-Remaining`, so you can track the balance in code. Purchased credits last 12 months, and there's no subscription. The [credits docs](https://docs.perceptlayer.com/credits) explain how calls are counted.
One trade-off to be plain about: Custom Search is Google's own service. If you already have access and it fits, staying until the January 1, 2027 deadline is reasonable. For anything new, it's no longer an option.
## What happens when a call fails?
Errors return an HTTP status and a JSON body shaped like `{"error": {"code", "message", "request_id"}}`. Common codes are `invalid_api_key` (401), `insufficient_credits` (402), `invalid_parameters` (422), `rate_limited` (429) and `temporarily_unavailable` (503). The [errors docs](https://docs.perceptlayer.com/errors) list them all.
Rate-limited and temporarily unavailable responses include a `Retry-After` header with the seconds to wait. There's no idempotency key, so a request that timed out on your side may have succeeded and been billed. The guide to [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers how to handle that, and the [rate limit docs](https://docs.perceptlayer.com/rate-limits) have the rest.
If you're feeding results to an agent, the same key works over MCP. See [Claude MCP web search](https://perceptlayer.com/blog/claude-agent-live-search-mcp) and the [MCP docs](https://docs.perceptlayer.com/ai-agents).
Next step: [get a free API key](https://perceptlayer.com/signup), then run the Berlin request above and compare `organic_results` with what you get today.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Is the Google Custom Search JSON API still available?
Only to existing customers. Google's documentation says the API is closed to new customers and that existing customers have until January 1, 2027 to move to an alternative. Google lists Vertex AI Search for searching up to 50 domains. For general web results as JSON, you need another source.
### How much does a Google search API call cost here?
Each successful call to a Google Search endpoint costs 1 credit. That works out to 1,000 credits for 1,000 calls. The free tier gives 100 credits after email verification, with no credit card required, and the [pricing page](https://perceptlayer.com/pricing) shows what credits cost.
### Can I get AI Overviews and autocomplete as JSON?
Yes. `GET /v1/google-search/search-ai-overview` takes a `query` and returns the AI Overview, and `GET /v1/google-search/search-light-autocomplete` returns autocomplete suggestions. Both cost 1 credit. We haven't recorded responses for them, so run each in the playground on the API page to see the fields.
### Am I billed when a request fails?
No. Failed calls cost nothing and return `X-Credits-Used: 0`. The one exception to watch is a client timeout: with no idempotency key, a request whose reply you never received may have succeeded and been billed. Check `X-Credits-Remaining` on your next call.
### What if a call returns restricted\_endpoint?
Restricted endpoints cover social, personal and SEO data. They work after you accept the restricted-endpoint terms in the dashboard, and until then they return `restricted_endpoint` (403). If you see that code, accept the terms and retry the same call.
google search serp search api json custom search
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 21 Aug 2026 Updated 6 Nov 2026 Perceptlayer 6 min read
## [DuckDuckGo Search API: Web Results as JSON](https://perceptlayer.com/blog/duckduckgo-search-api-json)
DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 2 Aug 2026 Perceptlayer 8 min read
## [Bing Search API Alternative: Web Results as JSON](https://perceptlayer.com/blog/bing-search-api-alternative-json)
Replace Microsoft's retired Bing Search API with three search endpoints at 1 credit per call. Parameters compared, real responses, and where results differ.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 14 Jul 2026 Perceptlayer 7 min read
## [Google AI Overview API: Get AI Overviews as JSON](https://perceptlayer.com/blog/google-ai-overview-api)
Google has no AI Overview API. GET /v1/google-search/search-ai-overview takes a query, hl and gl, costs 1 credit, and suits daily keyword tracking.
---
title: "AutoScout24 API: Search European Car Listings as JSON"
description: "Search AutoScout24 listings as JSON: make_id and price filters, a recorded BMW response, and what a monthly price sweep costs in credits."
url: https://perceptlayer.com/blog/autoscout24-api-car-listings-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# AutoScout24 API: Search European Car Listings as JSON
4 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
One GET request to `/v1/autoscout24/search` returns AutoScout24 car listings as JSON: price, mileage, first registration, power, fuel, location and seller. You filter by `make_id`, `model_id`, price, mileage and more, and the `taxonomy` endpoint tells you which make and model values are valid. Each call costs 1 credit, and failed calls cost nothing.
## Key takeaways
- `GET /v1/autoscout24/search` takes no required parameters; `market`, `make_id`, `model_id`, `price_min`, `price_max` and `sort` narrow and order the results.
- `GET /v1/autoscout24/taxonomy` supplies the valid makes and models, so you never guess a `make_id` or `model_id`.
- The recorded response nests price, mileage, power and location, and ends with a `pagination` block ( `total`, `total_pages`, `has_more`, `next_page`) you can loop on.
- Every call on this API costs 1 credit. A sweep of 10 pages for each of 50 make and model pairs is 500 credits. The 100 free credits you get on signup cover a test on 10 of the pairs.
## What does the AutoScout24 search endpoint return?
The search endpoint returns a page of listings for a market, each with a `listing_id`, the listing `url`, a `title`, a nested `price`, `mileage` and `first_registration`, `power` in kW and PS, `fuel`, `transmission`, `make`, `model`, `location`, `seller` and `images`. A `pagination` object follows the listings. It is the call to start with when you want many cars filtered by criteria rather than one known listing.
The [AutoScout24 API](https://perceptlayer.com/apis/autoscout24) has six endpoints, all 1 credit per call. Search is the broad one. The others fetch a single [listing](https://perceptlayer.com/apis/autoscout24/listing), a [dealer](https://perceptlayer.com/apis/autoscout24/dealer), a dealer's [inventory](https://perceptlayer.com/apis/autoscout24/dealer-inventory) or its [reviews](https://perceptlayer.com/apis/autoscout24/dealer-reviews), and the [taxonomy](https://perceptlayer.com/apis/autoscout24/taxonomy) of valid filter values.
## How do you make your first search request?
Send a GET to `/v1/autoscout24/search` with your key in the `X-API-Key` header and any filters as query parameters. The call below asks the German market for one make and model priced between 5,000 and 20,000, sorted by price, and takes page 2 at 20 results per page. [Get a free API key](https://perceptlayer.com/signup) first if you don't have one; see [authentication](https://docs.perceptlayer.com/authentication) for the details.
```bash
curl "https://api.perceptlayer.com/v1/autoscout24/search?market=de&make_id=13&model_id=1639&price_min=5000&price_max=20000&sort=price&page=2&limit=20" \
-H "X-API-Key: $API_KEY"
```
You can also run it from the playground on the [AutoScout24 search page](https://perceptlayer.com/apis/autoscout24/search), which fills in the same parameters and runs a real call with your key.
### What does the recorded response look like?
This is an excerpt of the recorded response for the request above, trimmed with `…`. The first listing is a 2013 BMW 316 Touring diesel with 215,000 km, listed by a dealer in Mainz-Kastel.
```json
{
"success": true,
"data": {
"listings": [
{
"listing_id": "f81b29b2-19e3-4418-8801-03578ed51631",
"title": "BMW 316 Touring 316d",
"price": {
"amount": 5700,
"currency": "EUR",
"formatted": "€ 5.700",
"evaluation": 2,
"is_evaluation_enabled": true
},
"mileage": {
"value_km": 215000,
"unit": "km",
"raw": "215.000 km"
},
"first_registration": {
"raw": "06/2013",
"year": 2013,
"month": 6
},
"power": {
"kw": 85,
"ps": 116
},
"fuel": "Diesel",
"transmission": "Schaltgetriebe",
"make": "BMW",
"model": "316",
"model_group": "3er",
"variant": "Touring",
"motor_type": "316d",
"location": {
"country_code": "DE",
"zip": "55252",
"city": "Mainz-Kastel"
},
"seller": {
"id": "32515898",
"type": "Dealer",
"dealer_slug": "rheinkastelautomobile"
},
…
},
…
],
"pagination": {
"page": 2,
"limit": 20,
"total": 193,
"total_pages": 10,
"has_more": true,
"next_page": 3
}
},
"meta": {
"duration_ms": 2183,
"endpoint_family": "search"
}
}
```
A few details matter when you parse it. `price.amount` is a number and `price.formatted` is the display string, so use the number. `mileage.value_km` and `first_registration.year` are numeric too, while `raw` keeps the original text. The `fuel` and `transmission` values come back as text, and in the recorded `de` response the transmission is German ( `Schaltgetriebe`).
The second listing in the same recording has `seller.type` set to `PrivateSeller` and carries no `dealer_slug`, while the dealer listing does. Check that the key exists before you use it, because `dealer_slug` is the required input of the dealer endpoints.
## Which parameters does the search endpoint take?
Search has 25 optional parameters and no required ones. They cover location ( `market`, `zip`, `radius`), the car ( `make_id`, `model_id`, `fuel[]`, `transmission[]`, `body_type[]`, `equipment[]`, `usage_state[]`), numeric ranges, the seller, ordering and paging. Since nothing is required, narrow the search with at least a make or a price range before you page through results.
| Parameter | Type | Allowed values or notes |
| --- | --- | --- |
| `market` | string | `de`, `at`, `be`, `it`, `fr`, `nl`, `es`, `com`, `pl` |
| `make_id`, `model_id` | string | Up to 12 characters; get valid values from taxonomy |
| `price_min`, `price_max` | integer | Price range |
| `mileage_min`, `mileage_max` | integer | Mileage range |
| `registration_year_min`, `registration_year_max` | integer | First registration year range |
| `power_min`, `power_max` | integer | Used with `power_unit` |
| `power_unit` | string | `kw`, `ps` |
| `fuel[]` | list of string | `2`, `3`, `B`, `C`, `D`, `E`, `H`, `L`, `M`, `O` |
| `transmission[]` | list of string | `A`, `M`, `S` |
| `body_type[]` | list of integer | `1`, `2`, `3`, `4`, `5`, `6`, `7`, `12`, `13` |
| `equipment[]` | list of integer | Equipment IDs |
| `seller_type` | string | `dealer`, `private` |
| `offer` | string | `new`, `used`, `annual`, `N`, `U`, `J` |
| `usage_state[]` | list of string | `N`, `U` |
| `zip`, `radius` | string, integer | Search around a postcode; `zip` up to 12 characters |
| `sort` | string | `standard`, `price`, `age`, `mileage`, `year`, `power`, `make`, `distance`, `financerate`, `leasing_rate` |
| `order` | string | `asc`, `desc` |
| `page`, `limit` | integer | Paging |
The fuel, body type and equipment codes are opaque. Ask the taxonomy endpoint for them rather than guessing, which is the next section.
## How do you find a valid make\_id and model\_id?
Call `/v1/autoscout24/taxonomy` with `include[]` set to the lists you want: `makes`, `models`, `equipment`, `body_types`, `fuels`, `transmissions`, `sorting_keys`, `offers`, `radii` or `countries`. `make_id` is also a taxonomy parameter, which is how you ask for the models of one make. Each taxonomy call costs 1 credit.
```bash
curl -g "https://api.perceptlayer.com/v1/autoscout24/taxonomy?market=de&include[]=makes&include[]=fuels" \
-H "X-API-Key: $API_KEY"
```
The `-g` flag stops cURL from treating the square brackets as a glob. We don't have a recorded taxonomy response, so we won't show one here. Run it in the [taxonomy playground](https://perceptlayer.com/apis/autoscout24/taxonomy) to see the exact shape for your market.
The workflow is two steps. Look up the make in taxonomy and take its ID, call taxonomy again with that `make_id` and `include[]=models` to find the model, then pass both IDs to search. The example request above uses `make_id=13` and `model_id=1639`; in the recorded response those IDs resolve to BMW 316 models.
## How do you sweep prices for a whole month?
Loop over your make and model pairs, page through each until `has_more` is false, and write one row per listing with a date. The recorded request had `total: 193` and `total_pages: 10` at 20 per page, so one pair cost 10 calls. The script below does that and stops on any non-success response, so you never page blindly past an error.
```python
import os
import time
import requests
BASE = "https://api.perceptlayer.com/v1/autoscout24/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def sweep(make_id, model_id, market="de", limit=20):
page, rows, credits = 1, [], 0
while page:
resp = requests.get(
BASE,
headers=HEADERS,
params={
"market": market,
"make_id": make_id,
"model_id": model_id,
"sort": "price",
"page": page,
"limit": limit,
},
timeout=30,
)
if resp.status_code == 429:
time.sleep(int(resp.headers.get("Retry-After", 1)))
continue
resp.raise_for_status()
credits += int(resp.headers["X-Credits-Used"])
data = resp.json()["data"]
for item in data["listings"]:
rows.append(
{
"listing_id": item["listing_id"],
"price": item["price"]["amount"],
"km": item["mileage"]["value_km"],
"year": item["first_registration"]["year"],
"city": item["location"]["city"],
}
)
page = data["pagination"]["next_page"] if data["pagination"]["has_more"] else None
return rows, credits
rows, credits = sweep(13, 1639)
print(len(rows), "listings,", credits, "credits")
```
The 429 branch waits for the `Retry-After` header and retries the same page, as described in the [rate limits](https://docs.perceptlayer.com/rate-limits) docs. Free accounts get 1 request a second, so a loop like this is fine as written. Because requests have no idempotency key, a timeout may have succeeded and been billed, so check `X-Credits-Remaining` if you retry after one. The [errors](https://docs.perceptlayer.com/errors) page covers the other failure codes.
### What does the sweep cost in credits?
Every call is 1 credit, so the cost is the number of pages. As an example, suppose you track 50 make and model pairs and each runs to 10 pages: 50 × 10 = 500 calls × 1 credit = 500 credits a month. Add 10 taxonomy calls to refresh the model lists and the month is 510 credits. The 100 free credits that come with a verified email address cover a first test on 10 of the pairs, and a Starter pack of 10,000 credits covers a year of the full sweep (12 × 510 = 6,120 credits).
The pair count and the pages per pair are assumptions for this example. Your real numbers depend on how many results each filter returns, which you see in `pagination.total` after the first call. Failed calls return `X-Credits-Used: 0`, and `X-Credits-Remaining` shows your balance after every call. See [credits](https://docs.perceptlayer.com/credits) for how billing works and [pricing](https://perceptlayer.com/pricing) for what credits cost.
## Which market and filters should you use?
Choose the `market` that matches where you want listings, since `market` takes one of nine values: `de`, `at`, `be`, `it`, `fr`, `nl`, `es`, `com` or `pl`. In the recorded `de` response the listing URLs are on autoscout24.de and the transmission text is German ( `Schaltgetriebe`), so keep the market fixed within one sweep and store it in each row.
Two filters keep sweeps comparable. Fix `sort` and `order` so pages don't reshuffle between runs, and use `registration_year_min` and `registration_year_max` to compare cars of the same age. Use `seller_type` to separate `dealer` from `private` listings, so a dealer average and a private-seller average aren't blended into one number. That's our suggestion, not something the data requires.
If you already know a dealer, `dealer-inventory` takes a `dealer_slug` and pages through that dealer's stock at the same 1 credit per call. In the recorded response, the dealer listing carries a `dealer_slug` in its `seller` object, which you can pass to the dealer endpoints.
## Is the official route a better fit?
If you are a dealer or partner of AutoScout24 and need data about your own stock, ask AutoScout24 directly what it offers through its own sites, such as [AutoScout24 Germany](https://www.autoscout24.de) or [AutoScout24 international](https://www.autoscout24.com); we don't document its programmes here. Perceptlayer's endpoint is for reading public listings across a market, and the data is collected from publicly available sources and returned as found at the time of the call.
For what to do with the fields once you have them, [used car listing data for price analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis) covers which ones matter. The wider [Cars APIs](https://perceptlayer.com/verticals/cars) page lists the other sources in this area, and the [all APIs](https://perceptlayer.com/apis) index has the full catalogue of 480 websites and 2,782 endpoints.
## What should you do next?
Create a free key, open the [search endpoint in the playground](https://perceptlayer.com/apis/autoscout24/search), and run the BMW request above with your own make and market. Then call taxonomy once to swap in your IDs, and wrap the sweep script around your list. Calls on this API cost 1 credit each, so you can check the result against `X-Credits-Remaining` as you go. [Get a free API key](https://perceptlayer.com/signup).
## APIs in this post
- [AutoScout24 **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autoscout24)
## Frequently asked questions
### Is there an official AutoScout24 API?
We don't cover any AutoScout24 programme here, so ask AutoScout24 directly if you need an official feed. The Perceptlayer endpoint returns public listing data as JSON, collected from publicly available sources, and is billed at 1 credit per successful call.
### How much does an AutoScout24 search cost?
A successful call to search costs 1 credit, and so does every other endpoint on this API. Failed calls cost nothing and return `X-Credits-Used: 0`. Ten pages for one make and model is 10 credits. Every account gets 100 free credits after verifying an email address, with no credit card.
### How do I page through all the results?
Read the `pagination` object in each response. Keep requesting `next_page` while `has_more` is true, and stop when it is false. In the recorded response, `total` was 193 and `total_pages` was 10 at a `limit` of 20, so you would make 10 calls, each at 1 credit.
### What happens if I send an invalid parameter?
You get an HTTP 422 with the code `invalid_parameters` and a JSON body of `{"error": {"code", "message", "request_id"}}`. Failed calls aren't billed. Check the parameter against the allowed values in the table above, and take `make_id` and `model_id` from the taxonomy endpoint. The [errors](https://docs.perceptlayer.com/errors) page lists every code.
### Can an AI agent call this endpoint?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. An agent can look up the AutoScout24 search endpoint for free, then call it with an endpoint ID and parameters, spending 1 credit on success only. See [AI agents (MCP)](https://docs.perceptlayer.com/ai-agents) for setup.
cars autoscout24 car listings used cars price data
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 1 Nov 2026 Perceptlayer 8 min read
## [Autotrader Scraper or API: What You Get](https://perceptlayer.com/blog/autotrader-scraper-vs-api)
An Autotrader UK scraper vs a 1-credit search call: a recorded BMW search near SW1A 1AA with 42,916 results, advert\_id, price.amount and year as JSON.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 9 Oct 2026 Perceptlayer 7 min read
## [Cars.com API: Used Car Listings and Price Evaluations](https://perceptlayer.com/blog/cars-com-api-listings-price-evaluation)
Search Cars.com listings with its six required parameters (zip, radius\_miles, stock\_type, sort, page, page\_size), then listing, dealer and price-eval calls.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 13 Aug 2026 Updated 10 Nov 2026 Perceptlayer 6 min read
## [AutoTrader UK API: Get Used Car Listings as JSON](https://perceptlayer.com/blog/autotrader-uk-api-listings-json)
Search UK used car listings by postcode, make and price with one GET call. Real BMW response, 6 endpoints, 1 credit per call, failed calls free.
---
title: "Domain.com.au API: Australian Listings and Suburb Data"
description: "Call /v1/domain-com-au/search for Australian listings, then property, auction results and suburb insights as JSON. Parameters, a real response, 1 credit a call."
url: https://perceptlayer.com/blog/domain-com-au-api-listings
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Domain.com.au API: Australian Listings and Suburb Data
4 Aug 2026 Perceptlayer 7 min read
To get Domain.com.au data as JSON, send a `GET` to `https://api.perceptlayer.com/v1/domain-com-au/search` with a `mode` (buy, rent, sold and others) and a suburb. Each call costs 1 credit and returns listings with address, price text, bedrooms, bathrooms, car spaces and agency. The same API also has property detail, auction results by city and suburb insights. This guide covers all four, and when to call realestate.com.au instead.
## Key takeaways
- `GET /v1/domain-com-au/search` needs only `mode`; add `suburb`, `state`, `postcode` and filters such as `min_bedrooms` or `sold_date_range` to narrow it.
- A recorded search for Pyrmont, NSW returned `total_results` 85 across `total_pages` 9, so a full sweep of that suburb is 9 calls, or 9 credits.
- `auction-results` takes only a `city`, and `suburb-insights` needs `bedrooms` and `property_type` ( `Unit` or `House`).
- Domain.com.au and realestate.com.au return different fields. Call both when you need to cross-check a listing.
- Every call is 1 credit, failed calls cost nothing, and the free tier gives 100 credits on signup with no card.
## What can you get from the Domain.com.au API?
The [Domain.com.au API](https://perceptlayer.com/apis/domain-com-au) has 8 endpoints, all `GET`, all 1 credit per successful call. Four of them are the ones most projects start with: search, property, auction results and suburb insights. The other four cover people and place lookup: agency, agent, agents and locations.
| Endpoint | Returns | Required parameters |
| --- | --- | --- |
| [`/v1/domain-com-au/search`](https://perceptlayer.com/apis/domain-com-au/search) | Listings for a mode and area | `mode` |
| [`/v1/domain-com-au/property`](https://perceptlayer.com/apis/domain-com-au/property) | One property | none ( `listing_id` or `slug`) |
| [`/v1/domain-com-au/auction-results`](https://perceptlayer.com/apis/domain-com-au/auction-results) | Auction results | `city` |
| [`/v1/domain-com-au/suburb-insights`](https://perceptlayer.com/apis/domain-com-au/suburb-insights) | Suburb insights | `bedrooms`, `property_type` |
| [`/v1/domain-com-au/locations`](https://perceptlayer.com/apis/domain-com-au/locations) | Location lookup | `q` |
| [`/v1/domain-com-au/agents`](https://perceptlayer.com/apis/domain-com-au/agents) | Agents, optionally by suburb | none |
| [`/v1/domain-com-au/agent`](https://perceptlayer.com/apis/domain-com-au/agent) | One agent | `slug` |
| [`/v1/domain-com-au/agency`](https://perceptlayer.com/apis/domain-com-au/agency) | One agency | `slug` |
You authenticate with the `X-API-Key` header. If you don't have a key yet, [get a free API key](https://perceptlayer.com/signup); the [authentication docs](https://docs.perceptlayer.com/authentication) cover the header and the `api_key` query fallback.
## How do you search Australian listings?
Call `search` with `mode` set to one of `buy`, `rent`, `sold`, `new-homes`, `commercial` or `rural`, plus the area. A search for properties for sale in Pyrmont, NSW is one request and costs 1 credit.
```bash
curl "https://api.perceptlayer.com/v1/domain-com-au/search?mode=buy&suburb=Pyrmont&state=NSW&page=1" \
-H "X-API-Key: $API_KEY"
```
The recorded response, trimmed to the first listing:
```json
{
"success": true,
"data": {
"mode": "buy",
"listing_type": "Sale",
"total_results": 85,
"total_pages": 9,
"page": 1,
"page_size": 10,
"listings": [
{
"listing_id": 2021264183,
"listing_slug": "48-1-5-harwood-street-pyrmont-nsw-2009-2021264183",
"display_address": "48/1-5 Harwood Street, Pyrmont",
"display_price": "For Sale $795,000 | …",
"bedrooms": 1,
"bathrooms": 1,
"carspaces": 1,
"property_type": "ApartmentUnitFlat",
"agency": {
"name": "Ray White Pyrmont",
"agency_id": 36143,
"logo_url": "…"
}
},
…
],
…
},
"meta": {
"billable": true
}
}
```
Two things to note. `display_price` is text as the portal shows it, so a second listing in the same response reads `Auction Guide: $1,100,000`. Parse it before you treat it as a number. And `property_type` is a portal label ( `ApartmentUnitFlat`), not the `Apartment` value you pass in `property_types[]`.
The response also has a `facets` object. In this recording it says facet counts aren't available, so don't plan on counting by bedroom from the API alone; filter instead.
### Which search parameters are available?
All filters are optional except `mode`. Lists use the `[]` form, repeated for each value.
| Parameter | Type | Notes |
| --- | --- | --- |
| `mode` | string | Required: `buy`, `rent`, `sold`, `new-homes`, `commercial`, `rural` |
| `suburb`, `suburbs[]` | string, list | Up to 80 characters each |
| `region`, `state`, `postcode` | string | `state` up to 40, `postcode` up to 10 characters |
| `page` | integer | Page number |
| `property_types[]` | list | `House`, `Apartment`, `Townhouse`, `Land`, `Rural`, `NewApartments`, `NewHomeDesigns`, `NewHouseLand` |
| `listing_attributes[]` | list | `HasPhotos`, `HasPrice`, `HasMatterport`, `NotUpForAuction`, `MarkedAsNew`, `NotUnderContract` |
| `min_bedrooms`, `max_bedrooms` | integer | Bedroom range |
| `min_bathrooms`, `max_bathrooms` | integer | Bathroom range |
| `min_carspaces`, `max_carspaces` | integer | Car space range |
| `min_price`, `max_price` | integer | Price range |
| `min_land_area`, `max_land_area` | integer | Land area range |
| `sold_date_range` | string | `ALL`, `LAST_WEEK`, `LAST_MONTH`, `LAST_THREE_MONTHS`, `LAST_SIX_MONTHS`, `LAST_YEAR`, `LAST_TWO_YEARS` |
For recent sales, switch the mode and add a date range:
```bash
curl "https://api.perceptlayer.com/v1/domain-com-au/search?mode=sold&suburb=Pyrmont&state=NSW&sold_date_range=LAST_THREE_MONTHS" \
-H "X-API-Key: $API_KEY"
```
If you're unsure how a suburb is spelled or slugged, [`locations`](https://perceptlayer.com/apis/domain-com-au/locations) takes a `q` string and optional `mode` ( `sale` or `rent`) and `channel`, and resolves it first.
## How do you get one property from a listing?
Pass the `listing_id` or the `listing_slug` from a search result to `property`. Both parameters are optional in the schema, but you need one of them, so a typical flow is search first, then one detail call per listing you care about. Each detail call is 1 credit.
```bash
curl "https://api.perceptlayer.com/v1/domain-com-au/property?listing_id=2021264183" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a `property` response for this guide, so we won't list its fields here. The [Property endpoint page](https://perceptlayer.com/apis/domain-com-au/property) has a playground where you can run it with your key and see the real fields before you write a parser.
Budget for this pattern. A search page returns a batch of listings in one credit, then each detail call is another. Pulling detail for every listing on one 10-listing page costs 1 + 10 = 11 credits.
## How do you get auction results and suburb insights?
`auction-results` takes one required parameter, `city`, and `suburb-insights` takes `bedrooms` and `property_type`. Each is a single call at 1 credit, which makes them cheap context to attach to a search.
```bash
curl "https://api.perceptlayer.com/v1/domain-com-au/auction-results?city=Sydney" \
-H "X-API-Key: $API_KEY"
```
For suburb insights, pick a suburb by `slug`, or give a bounding box with `top_left[latitude]`, `top_left[longitude]`, `bottom_right[latitude]` and `bottom_right[longitude]`. `property_type` is `Unit` or `House`, a different vocabulary from the search filter.
```bash
curl -G "https://api.perceptlayer.com/v1/domain-com-au/suburb-insights" \
--data-urlencode "slug=$SUBURB_SLUG" \
--data-urlencode "bedrooms=2" \
--data-urlencode "property_type=Unit" \
-H "X-API-Key: $API_KEY"
```
Set `SUBURB_SLUG` to the suburb's slug, which you can look up with `locations`. A bad parameter returns `invalid_parameters` (422) and costs nothing; see the [errors docs](https://docs.perceptlayer.com/errors).
We haven't recorded responses for these two endpoints either. Run them in the playground on the [Domain.com.au API page](https://perceptlayer.com/apis/domain-com-au) to see which fields come back for your suburb.
## Domain.com.au or realestate.com.au: which should you call?
Call Domain.com.au when you want its listing fields, auction results by city or suburb insights. Call [realestate.com.au](https://perceptlayer.com/apis/realestate-com-au) when you want its listing shape, agency ratings or its sales events. For many projects the answer is both, because the two portals return different fields for a listing.
The difference shows in the recorded responses. Domain's search listing is flat: `display_price`, `bedrooms`, `carspaces` and an `agency` with an `agency_id`. The realestate.com.au search listing is nested: counts sit under `features` (for example `features.bedrooms.value`), the address is split into `address.suburb`, `address.state` and `address.postcode`, and the listing company carries `ratingsReviews` with `avgRating` and `totalReviews`.
| Need | Domain.com.au | realestate.com.au |
| --- | --- | --- |
| Search by area | `search` with `mode`, `suburb`, `state` | [`search`](https://perceptlayer.com/apis/realestate-com-au/search) with `location`, `channel` |
| One property | `property` by `listing_id` or `slug` | [`property`](https://perceptlayer.com/apis/realestate-com-au/property) by `url` |
| Auction data | [`auction-results`](https://perceptlayer.com/apis/domain-com-au/auction-results) by `city` | [`sales-events`](https://perceptlayer.com/apis/realestate-com-au/sales-events) by `state` or `url` |
| Suburb data | `suburb-insights` | `suburb-profile` by `url` |
| Agent and agency | `agent`, `agency` by `slug` | [`agent-profile`](https://perceptlayer.com/apis/realestate-com-au/agent-profile), [`agency-profile`](https://perceptlayer.com/apis/realestate-com-au/agency-profile) by `url` |
Note how the lookups differ. Domain's detail calls take IDs and slugs, while realestate.com.au's take full `url` values, which you copy from a search result's `url` field. Here is the realestate.com.au equivalent of the Pyrmont call, using its own parameter names:
```bash
curl "https://api.perceptlayer.com/v1/realestate-com-au/search?location=Sydney%2C+NSW&channel=buy&page=1" \
-H "X-API-Key: $API_KEY"
```
A trimmed excerpt of its recorded response:
```json
{
"success": true,
"data": {
"channel": "buy",
"location": "Sydney, NSW",
"total_results": 596,
"listings": [
{
"id": "149311860",
"url": "https://www.realestate.com.au/property-apartment-nsw-sydney-149311860",
"property_type": "Apartment",
"address": {
"suburb": "Sydney",
"state": "NSW",
"postcode": "2000"
},
"price": "Contact Agent",
"features": {
"bedrooms": { "value": 2 },
…
},
…
},
…
],
…
}
}
```
Because the portals use different IDs, you can't join listings on an ID. Match on address instead; the article on [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources) covers that.
## What does it cost, and what are the limits?
Every endpoint here is 1 credit per successful call. Failed calls cost nothing and return `X-Credits-Used: 0`. Free accounts get 100 credits after verifying an email, with no credit card, and the [credits docs](https://docs.perceptlayer.com/credits) explain how they're counted.
Worked examples, all at 1 credit a call:
- One suburb sweep, using the recorded Pyrmont result: 9 pages × 1 credit = 9 credits.
- That sweep plus a `property` call for each of its 85 listings: 9 + 85 = 94 credits.
- The same 94-credit job run weekly for 4 weeks: 4 × 94 = 376 credits. The 100 free credits cover the first week; the rest needs a pack, and the 10,000-credit Starter pack covers it.
- 20,000 calls × 1 credit = 20,000 credits, which fits the 50,000-credit Build pack. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
Rate limits are per account: free accounts get 1 request a second (60 a minute). A `429` carries a `Retry-After` header with the seconds to wait, as do `503` responses. Requests have no idempotency key, so a request that timed out on your side may still have been billed. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) show how to read the `RateLimit-*` headers.
## When should you use Domain's official API instead?
If you need something beyond reading public listings, such as managing listings you hold, use Domain's own developer program. Its [developer portal](https://developer.domain.com.au/) lists API packages such as Agents & Listings, Listing Management, Price Estimation and Properties & Locations, with sandbox testing before you go live. Perceptlayer fits the read-only case: one key, JSON from public listing pages, and a free key after you verify an email address. It also puts both Australian portals behind the same key and the same response envelope. Data is collected from publicly available sources and returned as found at the time of the call, so check it against the portal if a decision depends on it.
For the next step, [run a search in the playground](https://perceptlayer.com/apis/domain-com-au/search) with your key, or see the wider [real estate APIs](https://perceptlayer.com/verticals/real-estate). If you're comparing how other markets look, the [Rightmove API guide](https://perceptlayer.com/blog/rightmove-api-property-data) does the same for the UK.
## APIs in this post
- [Domain.com.au **1 credit per call** · 8 endpoints](https://perceptlayer.com/apis/domain-com-au)
- [realestate.com.au **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/realestate-com-au)
## Frequently asked questions
### Is there a Domain.com.au API I can call with a free key?
Yes. With a Perceptlayer key you call `https://api.perceptlayer.com/v1/domain-com-au/...` directly, sending the key in `X-API-Key`. Free accounts get 100 credits after email verification, and each endpoint call is 1 credit. Domain's own developer program is a separate product with its own sign-up.
### How do I get all pages of a suburb search?
Read `total_pages` from the first response and loop `page` from 1 to that number. In the recorded Pyrmont search, `total_results` was 85 and `total_pages` was 9, so a full pull is 9 calls and 9 credits. Stay under your account's request rate, and honour `Retry-After` on a 429.
### How do I search sold properties?
Set `mode=sold` on `search` and add `sold_date_range`, which accepts `ALL`, `LAST_WEEK`, `LAST_MONTH`, `LAST_THREE_MONTHS`, `LAST_SIX_MONTHS`, `LAST_YEAR` or `LAST_TWO_YEARS`. You can combine it with `suburb`, `state`, `property_types[]` and the bedroom filters. The call costs 1 credit like any other.
### What happens if a call fails?
You aren't charged. Errors return an HTTP status and a JSON body with `error.code`, `error.message` and `request_id`, and the response carries `X-Credits-Used: 0`. Codes include `invalid_parameters` (422), `rate_limited` (429) and `source_error` (502); the [errors docs](https://docs.perceptlayer.com/errors) list the rest and what to do for each.
### Can an AI agent call these endpoints?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing; `call_endpoint` spends the endpoint's 1 credit on success only. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents).
real estate australia domain.com.au listings suburb data
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Sept 2026 Perceptlayer 6 min read
## [Realestate.com.au API: Australian Listings as JSON](https://perceptlayer.com/blog/realestate-com-au-api-listings)
Search realestate.com.au by location and channel (buy, rent, sold), then open each listing by URL. Parameters, a recorded Sydney response and the cost.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
---
title: "Bing Search API Alternative: Web Results as JSON"
description: "Replace Microsoft's retired Bing Search API with three search endpoints at 1 credit per call. Parameters compared, real responses, and where results differ."
url: https://perceptlayer.com/blog/bing-search-api-alternative-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Bing Search API Alternative: Web Results as JSON
2 Aug 2026 Perceptlayer 8 min read
Microsoft retired its Bing Search APIs on August 11, 2025, so any code still calling them has to move. One replacement is `GET /v1/bing/search`, which returns Bing web results as JSON for 1 credit per successful call. If you'd rather change engines, `/v1/brave/search` and `/v1/duckduckgo/search` use the same key and the same cost. This guide compares the three by parameters and response shape.
## Key takeaways
- Microsoft retired the Bing Search APIs on August 11, 2025; `GET /v1/bing/search` takes one required parameter, `query`, and returns web results as JSON.
- Brave ( `/v1/brave/search`) and DuckDuckGo ( `/v1/duckduckgo/search`) offer the same key and cost (1 credit per call) but different parameters and fields from Bing's, so each needs its own small mapping.
- Microsoft's `q`, `count`, `offset` and `webPages.value[]` map to `query`, `num`, `page` and `data[]`; the table in the migration section lists each pair.
- Result sets differ by engine, and so do page-size fields. In the one recorded query below, the Bing and Brave top results did not overlap, which is an example and not a benchmark.
- Failed calls cost nothing and return `X-Credits-Used: 0`; the free tier is 100 credits on signup, so the first 100 test queries cost no money.
## Why did the official Bing Search API go away?
Microsoft announced the retirement in May 2025 and set August 11, 2025 as the date existing instances were decommissioned, with the product closed to new sign-ups ( [Microsoft Lifecycle announcement](https://learn.microsoft.com/en-us/lifecycle/announcements/bing-search-api-retirement), 2025). Microsoft pointed customers to Bing grounding in its Azure AI Agents offering instead ( [The Register](https://www.theregister.com/2025/05/15/bing_search_apis_retired/), 2025).
That route fits if your search call already lives inside an Azure agent. It does not help if you want a plain HTTP call that returns a list of links and snippets to your own code, which is what most pipelines using the old API did.
The endpoints below are Perceptlayer's own, not Microsoft's. The path, parameters and response shape are different, so expect to change your client code and not only the URL.
## How do Microsoft's old names map to the new endpoint?
Microsoft's Bing Web Search API v7 used `q`, `count`, `offset`, `safeSearch` and `setLang` as query parameters and returned results under `webPages.value[]` with `name`, `url` and `snippet` ( [Microsoft query parameters](https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/reference/query-parameters) and [response objects](https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/reference/response-objects), 2025). The table pairs each with its closest counterpart on `GET /v1/bing/search`.
| Microsoft v7 (old) | `/v1/bing/search` (new) | What changes |
| --- | --- | --- |
| `q` | `query` | Renamed. Microsoft allowed the `site:` operator inside `q`; here `site` is its own parameter |
| `count` | `num` | Renamed. Microsoft documented a default of 10 and a maximum of 50; this endpoint's `num` limits aren't documented, so test before relying on them |
| `offset` (zero-based count of results to skip) | `page` (integer) | Skip-count paging becomes page-number paging; recompute your loop |
| `safeSearch`: `Off`, `Moderate`, `Strict` | `safe`: `off`, `moderate`, `strict` | Renamed and lower-cased |
| `setLang`, `mkt` | `hl` | One language parameter; its accepted values aren't documented here |
| `Ocp-Apim-Subscription-Key` header | `X-API-Key` header | Different key, see [authentication](https://docs.perceptlayer.com/authentication) |
| `webPages.value[]` | `data[]` | The list moves to the top level |
| `name` | `title` | Renamed |
| `snippet` | `description` | Renamed |
| `url` | `url` | Same name |
| `displayUrl` | `domain` | Not the same thing: `domain` is the host name |
| `webPages.totalEstimatedMatches` | `results_on_page` | Different meaning: a count for this page, not an estimate for the query |
Microsoft's other answer types (images, news, `relatedSearches` and the rest) don't appear in the recorded Bing response below, which holds only `data`, `results_on_page` and `source`. If your code read those answers, check whether you still need them.
## What does the Bing search endpoint take?
`GET /v1/bing/search` has one required parameter, `query` (up to 500 characters), and six optional ones for paging, site and file-type filtering, safe search, language and raw HTML. A successful call costs 1 credit. The documented parameters are in the table, and the [Bing API page](https://perceptlayer.com/apis/bing) has a playground where you can run it with your key.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | yes | Up to 500 characters |
| `page` | integer | no | |
| `num` | integer | no | |
| `site` | string | no | Up to 253 characters |
| `filetype` | string | no | Up to 20 characters |
| `safe` | string | no | One of `off`, `moderate`, `strict` |
| `hl` | string | no | Up to 20 characters |
| `include_html` | boolean | no | |
Only the types and limits above are documented, so this guide doesn't state defaults or page sizes. Check them in the playground before you rely on them.
### Request and response
The request is one GET with your key in the `X-API-Key` header (see [authentication](https://docs.perceptlayer.com/authentication)):
```bash
curl "https://api.perceptlayer.com/v1/bing/search?query=best+web+scraping+api" \
-H "X-API-Key: $API_KEY"
```
This is an excerpt of the recorded response for that exact request:
```json
{
"data": [
{
"position": 1,
"title": "Best",
"description": "Sep 14, 2026 · Надійний інтернет-провайдер Best ⭐️ Головна ⚡️Швидкість від 200 Мбіт/с до 1 Гбіт/с ⭐️ Працює при …",
"url": "https://best.net.ua/",
"domain": "best.net.ua"
},
…
],
"results_on_page": 10,
"source": "bing"
}
```
Each result has `position`, `title`, `description`, `url` and `domain`. The list sits under `data`, and `results_on_page` says how many results this page held. The snippet text is `description`, and the link is `url`.
## Which parameters change when you switch engines?
The three endpoints cover the same job but name their inputs differently: Bing uses `query`, Brave uses `query` or `q`, and DuckDuckGo uses `q` only. Paging also differs, with `page` on Bing and Brave and `start` on DuckDuckGo. Here are the documented parameters side by side, all at 1 credit per call.
| | Bing | Brave | DuckDuckGo |
| --- | --- | --- | --- |
| Path | `/v1/bing/search` | `/v1/brave/search` | `/v1/duckduckgo/search` |
| Required | `query` | `query` | `q` |
| Paging | `page`, `num` | `page` | `start` |
| Language or region | `hl` | `language` | `kl` |
| Safe search | `safe`: `off`, `moderate`, `strict` | not listed | `safe`: boolean |
| Site filter | `site` | not listed | not listed |
| File type | `filetype` | not listed | not listed |
| Date filter | not listed | not listed | `df`: `d`, `w`, `m`, `y` |
| Raw HTML | `include_html` | `include_html` | not listed |
| Credits | 1 | 1 | 1 |
"Not listed" means the parameter isn't in the endpoint's documented list. It doesn't prove the engine can't do it, but you can't pass it through this endpoint. If your old code relied on `site` or `filetype`, Bing is the closest match.
Brave's `language` accepts words ( `english`, `deutsch`, `french` and others), two-letter codes ( `en`, `de`, `fr`) or `all`. The recorded DuckDuckGo request uses `kl=us-en`; `kl` is a string of up to 10 characters.
## How does each response look?
Every engine returns JSON with a ranked list, but the field names and the extras around it differ. Bing returns the leanest body. Brave adds related searches and related questions. DuckDuckGo wraps everything in `success`, `data` and `meta`, and adds pagination and a `knowledge_graph` block.
| | Bing | Brave | DuckDuckGo |
| --- | --- | --- | --- |
| List | `data[]` | `organic_results[]` | `data.organic_results[]` |
| URL field | `url` | `link` | `link` |
| Text field | `description` | `snippet` | `snippet` |
| Extra per-result fields | `domain` | `redirect_link`, `displayed_link`, `source` | `display_url`, `favicon` |
| Beyond the list | `results_on_page` | `related_searches`, `related_questions`, `results_count` | `pagination`, `knowledge_graph`, `meta` |
Here is an excerpt of the recorded Brave response for the same query, `best web scraping api`:
```json
{
"search_information": {
"query_displayed": "best web scraping api"
},
"organic_results": [
{
"position": 1,
"title": "…The Best Web Scraping API",
…
}
],
"related_questions": [
{
"question": "What is the best web scraping API in 2026?",
…
}
],
"results_count": 20,
"source": "brave"
}
```
And the recorded DuckDuckGo response for `q=laravel+taylor+otwell&kl=us-en&start=0`, trimmed to the pagination block:
```json
{
"success": true,
"data": {
"search_parameters": {
"q": "laravel taylor otwell",
"kl": "us-en",
"safe": true,
"start": 0
},
…
"pagination": {
"current": 1,
"has_more": true,
"next_start": 10,
"next": 2
}
},
"meta": {
"duration_ms": 2169,
"endpoint_family": "web_search"
}
}
```
DuckDuckGo gives you `has_more` and `next_start`, so a page loop can follow the response and doesn't need a guessed offset. One detail to handle: the recorded snippet contains the HTML entity `&`, so decode snippets before you show them or feed them to a model.
## How much should you expect results to change?
Expect the result sets to change in both shape and ranking, and measure it on your own queries. The shape differs by the tables above: Bing's recorded body reports `results_on_page: 10`, Brave's reports `results_count: 20`, and DuckDuckGo reports paging through `pagination`. Rankings differ too, but this guide has one recorded query per engine, which isn't enough to say how much.
Three habits keep the migration honest:
1. Replay a sample of your real production queries against the old results you saved, and compare the top URLs, not only the count.
2. Keep `position` in your stored rows so you can compare rankings later.
3. Use the page-size fields in each body and don't hard-code a page size.
Here is the one example we have. For `best web scraping api`, the recorded Bing top two were an internet provider's homepage and a dictionary entry for "best", while the recorded Brave top two were pages about scraping APIs. That is one short, ambiguous query on one day, not a benchmark. For ambiguous queries, add words that pin the topic, or use `site` on the Bing endpoint to restrict results to a domain. Data is returned as found at the time of the call, so rankings can move between runs.
## How do you call all three from one script?
One small normaliser lets the rest of your code ignore which engine answered. This Python script sends the same query to each endpoint, maps each body to `position`, `title`, `url` and `snippet`, and prints the credits the call used from the `X-Credits-Used` header.
```python
import html
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def bing(q):
r = requests.get(f"{BASE}/v1/bing/search", params={"query": q}, headers=HEADERS, timeout=30)
r.raise_for_status()
rows = [(x["position"], x["title"], x["url"], x["description"]) for x in r.json()["data"]]
return r, rows
def brave(q):
r = requests.get(f"{BASE}/v1/brave/search", params={"query": q}, headers=HEADERS, timeout=30)
r.raise_for_status()
rows = [(x["position"], x["title"], x["link"], x["snippet"]) for x in r.json()["organic_results"]]
return r, rows
def duckduckgo(q):
r = requests.get(f"{BASE}/v1/duckduckgo/search", params={"q": q}, headers=HEADERS, timeout=30)
r.raise_for_status()
rows = [
(x["position"], x["title"], x["link"], html.unescape(x["snippet"]))
for x in r.json()["data"]["organic_results"]
]
return r, rows
for name, fn in [("bing", bing), ("brave", brave), ("duckduckgo", duckduckgo)]:
resp, rows = fn("best web scraping api")
print(name, "credits used:", resp.headers.get("X-Credits-Used"))
for position, title, url, snippet in rows[:3]:
print(" ", position, title, url)
```
The script handles errors only with `raise_for_status()`. For retries, rate-limit waits and the error codes, see [errors](https://docs.perceptlayer.com/errors) and the related guide on [handling web data API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python). To fetch more than one page, [paginate safely](https://perceptlayer.com/blog/paginate-web-data-api-python).
## What does a search migration cost in credits?
Each successful call costs 1 credit on all three endpoints, and each page you request is its own call. A job that sends 5,000 queries and reads 3 pages of each makes 15,000 calls, which is 15,000 credits. Failed calls cost nothing and return `X-Credits-Used: 0`, so retries on errors don't add to the bill.
| Workload | Calls | Credits |
| --- | --- | --- |
| Trial: 100 queries, 1 page each | 100 | 100 (the free credits on signup) |
| 20,000 queries, 1 page each | 20,000 | 20,000 |
| 5,000 queries, 3 pages each | 15,000 | 15,000 |
Credits come in prepaid packs. The Starter pack is 10,000 credits, so 20,000 credits needs the Build pack (50,000) or two Starter packs. Purchased credits last 12 months, with no subscription. The [pricing page](https://perceptlayer.com/pricing) has what credits cost; this guide doesn't quote prices because they change.
If you compare against another provider's rate card, count calls the same way: one call per page, not one per query. The [credits docs](https://docs.perceptlayer.com/credits) explain how `X-Credits-Used` and `X-Credits-Remaining` report each call, and [rate limits](https://docs.perceptlayer.com/rate-limits) cover requests per second if you run the migration as a batch.
## How do you start?
Sign up, send the `curl` call from the Bing section with your key, and diff its top URLs against a saved result from your old integration. Free accounts get 100 credits after email verification, with no credit card, so a first comparison across all three engines costs nothing. [Get a free API key](https://perceptlayer.com/signup), then run the same query on the [Bing](https://perceptlayer.com/apis/bing/search), [Brave](https://perceptlayer.com/apis/brave/search) and [DuckDuckGo](https://perceptlayer.com/apis/duckduckgo/search) search endpoints in the playground.
If you're feeding results to an agent, the same endpoints are available as tools through the MCP server; see [AI agents (MCP)](https://docs.perceptlayer.com/ai-agents). For Google results instead, read the [Google Search API guide](https://perceptlayer.com/blog/google-search-api-json). The [search engines hub](https://perceptlayer.com/verticals/search) lists every search source in the catalogue.
## APIs in this post
- [Bing **1 credit per call** · 10 endpoints](https://perceptlayer.com/apis/bing)
- [Brave Search **1 credit per call** · 1 endpoint](https://perceptlayer.com/apis/brave)
- [DuckDuckGo **1 credit per call** · 3 endpoints](https://perceptlayer.com/apis/duckduckgo)
## Frequently asked questions
### Is the Bing Search API still available?
No. Microsoft retired the Bing Search APIs on August 11, 2025, and existing instances were decommissioned ( [Microsoft Lifecycle announcement](https://learn.microsoft.com/en-us/lifecycle/announcements/bing-search-api-retirement), 2025). Microsoft suggested Bing grounding in Azure AI Agents as its replacement. `GET /v1/bing/search` is a separate endpoint with its own parameters and JSON shape.
### What does one search call cost?
One credit for each successful call on the Bing, Brave and DuckDuckGo search endpoints. Failed calls cost nothing and return `X-Credits-Used: 0`. Every account gets 100 free credits after verifying an email address, so a first comparison costs nothing. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
### Which endpoint should I use if I need site or file-type filters?
Use the Bing endpoint. It documents `site` (up to 253 characters) and `filetype` (up to 20 characters), and the Brave and DuckDuckGo endpoints list neither.
### Will I get the same results as the old Bing API?
Not guaranteed. Data is returned as found at the time of the call, and result sets can differ by engine. In the one recorded query, Bing and Brave returned different top results, which is an example and not a benchmark. Replay a sample of your real queries and compare URLs before you cut over.
### How do I get more than one page of results?
Bing and Brave take `page`; DuckDuckGo takes `start`, and its response includes `pagination.has_more` and `next_start` so you can follow it. Each page is a separate call at 1 credit. Stop the loop when `has_more` is false or when your credit budget for the job is spent.
search api bing brave duckduckgo serp json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 21 Aug 2026 Updated 6 Nov 2026 Perceptlayer 6 min read
## [DuckDuckGo Search API: Web Results as JSON](https://perceptlayer.com/blog/duckduckgo-search-api-json)
DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 5 Nov 2026 Perceptlayer 8 min read
## [Bing Scraper or API: Ten Result Types as JSON](https://perceptlayer.com/blog/bing-scraper-vs-api)
A Bing scraper next to 10 Bing endpoints at 1 credit a call: a recorded web search with position, url and domain, and 0.1 credits per ranking tracked.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Aug 2026 Perceptlayer 7 min read
## [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json)
Call GET /v1/google-search/search for organic results as JSON at 1 credit a call. Parameters, a real recorded response and the cost in credits.
---
title: "Estimate a Web Data Pipeline's Monthly Credit Cost"
description: "A 10-step checklist that turns a data requirement into calls a month (entities, refresh rate, pages, fan-out, margin), with worked arithmetic against packs."
url: https://perceptlayer.com/blog/web-data-pipeline-cost-estimate
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Estimate a Web Data Pipeline's Monthly Credit Cost
2 Aug 2026 Perceptlayer 6 min read
To estimate the API cost of a data pipeline, count calls, not records: entities × refreshes a month × calls per refresh, plus the lookups each result fans out to, plus a margin. With credits, that count converts directly, since a successful call costs the credits on its endpoint (1 for nearly all) and a failed call costs nothing. The checklist below walks through the inputs in order and ends with a worked example that lands on a pack size.
## Key takeaways
- Cost is calls × credits per call. Records per call doesn't change the bill, so a page of 20 results costs the same as a page of 1.
- Separate discovery (finding entities) from refresh (re-reading known ones) and from fan-out (detail, reviews, photos per entity). Fan-out usually dominates.
- Failed calls cost 0 credits, so don't add a failure rate. Do add a margin for client timeouts, which may have succeeded and been billed, and for growth.
- Check throughput as well as cost: free accounts get 1 request a second (60 a minute), and packs at least 5.
- The worked example below, 40 areas and about 2,000 listings, comes to 17,000 calls a month plus a 15% margin: 19,550 credits, within the Build pack's 50,000.
## Why estimate in calls rather than records?
Because a call is what's billed. Every successful response carries `X-Credits-Used` with what it cost, and for nearly every endpoint that's 1, whether the page held 1 result or 50. Two pipelines that collect the same 10,000 records can differ in cost by an order of magnitude: one reads search pages that already contain the fields it needs, the other opens a detail page for every record.
So the estimate is a model of your access pattern, not of your dataset. Write it down as a table of steps, each with an entity count, a frequency and calls per run; when the bill differs, the table shows which assumption was wrong. The [credits docs](https://docs.perceptlayer.com/credits) explain how the balance and the headers work.
## The checklist
1. **Count the entities you track.** Areas, keywords, products, companies, routes: the things you query by. Write the number per type, such as 40 postcodes. It multiplies every later step, so take it from the requirement, not from what the API could return.
2. **Set the refresh rate for each step.** Daily, weekly or monthly, converted to runs a month: daily is 30, weekly is about 4.3 (use 4 for a floor, 5 for a ceiling). Prices may need daily, reviews weekly, profiles monthly; a refresh faster than the data changes is pure overspend.
3. **Measure pages per run, don't guess them.** For search steps, calls per run is results ÷ results per page, rounded up. Read both from a real first response rather than assuming a page size; many endpoints report a total and paging fields. Then cap pages per run. The guide to [paginating a web data API](https://perceptlayer.com/blog/paginate-web-data-api-python) covers safe page loops.
4. **List the fan-out lookups.** For each result, which further calls do you make: detail, reviews, photos, agent? Each is one call per entity per run. This step usually dominates: 200 search pages that return 2,000 listings become 2,000 detail calls if you open every one.
5. **Split discovery from refresh.** Open detail pages only for new entities and refresh known ones on a slower schedule. If 5% of listings are new each day, daily detail calls are 5% of the set, not all of it. Store IDs so you can tell new from known; [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources) helps when sources overlap.
6. **Check credits per call for each endpoint.** Nearly all endpoints cost 1 credit, but read the figure on each endpoint's page in the [API catalogue](https://perceptlayer.com/apis) rather than assuming. Multiply each step's calls by its credits.
7. **Don't add a failure rate, but add a timeout margin.** Failed calls return `X-Credits-Used: 0`, so errors and rate-limit responses add nothing. A client-side timeout is different: requests have no idempotency key, so a call whose reply was lost may have succeeded and been billed, and your retry is billed again. The guide to [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) shows how to keep that small.
8. **Subtract what you can cache.** If several jobs ask the same question, one call can serve them all. Identical requests within a short window, such as the same search for two dashboards, are calls you don't need; see [caching API responses](https://perceptlayer.com/blog/cache-web-data-api-responses) for TTLs and the savings.
9. **Add a margin for growth and reruns.** Backfills, reruns, a requirement that adds ten areas. A margin of 10 to 20% on the total is a reasonable planning figure; pick the higher end while the pipeline is new.
10. **Map the total to the free tier or a pack, and check throughput.** Every verified account gets 100 free credits on signup. Packs come in 10,000, 50,000, 200,000, 500,000 and 1,000,000 credits and up, and purchased credits last 12 months, so a pack can cover several months of a small pipeline. Then check the rate: daily calls ÷ the seconds in your run window must stay under your account's requests per second.
## What does a worked estimate look like?
Take a pipeline that tracks property listings in 40 areas: it searches each area daily, opens new listings, and refreshes every listing's detail weekly. Measured from first responses, each area's search needs 5 pages, the set holds about 2,000 listings, and about 100 a day are new. All endpoints involved cost 1 credit per call.
| Step | Entities | Runs a month | Calls per run | Calls a month |
| --- | --- | --- | --- | --- |
| Area search (discovery) | 40 areas | 30 | 5 pages | 40 × 5 × 30 = 6,000 |
| Detail for new listings | 100 a day | 30 | 1 | 100 × 30 = 3,000 |
| Weekly detail refresh | 2,000 listings | 4 | 1 | 2,000 × 4 = 8,000 |
| **Subtotal** | | | | **17,000** |
| Margin, 15% | | | | 2,550 |
| **Estimate** | | | | **19,550 credits** |
At 1 credit per call, that's 19,550 credits a month. It's beyond the 100 free credits and the Starter pack's 10,000, and within the Build pack's 50,000, which covers about two and a half months at this rate (50,000 ÷ 19,550 = 2.6). Because purchased credits last 12 months, a larger pack for several months is also an option; [pricing](https://perceptlayer.com/pricing) has what each pack costs.
The biggest line is the weekly refresh, 8,000 calls; moving it to every two weeks saves 4,000 calls a month. The table shows which assumption to question first.
## How do you check the rate limit as well as the cost?
Divide calls by the time window you run them in. The example's busiest day has 200 search calls and 100 detail calls every day, plus 2,000 refresh calls on the weekly day: 2,300 calls. At a free account's 1 request a second, that's about 38 minutes of calls; at the 5 a second that paying accounts get at least, under 8 minutes. If the window is shorter than that, spread the work or run calls concurrently within your limit.
When you exceed the rate, calls come back as `rate_limited` (429) with a `Retry-After` header, and they cost nothing. The 429 status is HTTP's standard signal that a client has sent too many requests in a given amount of time ( [RFC 6585](https://datatracker.ietf.org/doc/html/rfc6585), 2012). `Retry-After` gives the wait in seconds, the `delay-seconds` form defined in [RFC 9110](https://datatracker.ietf.org/doc/html/rfc9110) (2022). Responses also carry `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`, so a pipeline can slow down before it hits the limit. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) explain the per-account limits, and the tutorial on [concurrent requests under a rate limit](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit) paces a batch to fit. To test your own estimate, [get a free API key](https://perceptlayer.com/signup), run a week at reduced scale, and sum `X-Credits-Used` per step.
## Frequently asked questions
### How do I estimate API cost for a data pipeline?
Count calls a month: entities × runs a month × calls per run for each step, including fan-out lookups such as detail pages, then add a 10 to 20% margin. Multiply by credits per call, 1 for nearly all endpoints. Failed calls cost nothing, so there's no failure rate to add, only a margin for timeouts and growth.
### Does the number of records per call change the cost?
No. A successful call costs the credits shown on its endpoint, whether it returns 1 result or a full page. That's why reading fields from search pages, instead of opening a detail page per record, is usually the biggest saving. Request as much per call as an endpoint allows, within what you need.
### Which pack fits my pipeline?
Divide your monthly estimate into the pack sizes: 10,000, 50,000, 200,000, 500,000 and 1,000,000 credits and up. Purchased credits last 12 months, so a larger pack can cover several months. A one-off test under 100 credits fits the free credits you get on signup; a recurring pipeline needs a pack. The [pricing page](https://perceptlayer.com/pricing) has what each pack costs and the request rate it includes.
### How do I keep a pipeline within its estimate?
Cap pages per run, open details only for new entities, and read `X-Credits-Remaining` on every response so the pipeline can alert at a threshold. Sum `X-Credits-Used` per step daily and compare it with the estimate. The service is prepaid: at zero, calls return `insufficient_credits` (402) and nothing more is debited.
cost estimation data pipelines credits capacity planning web data
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 13 Oct 2026 Updated 25 Oct 2026 Perceptlayer 6 min read
## [Build an ETL Pipeline in Python for Web Data](https://perceptlayer.com/blog/etl-pipeline-python-web-data)
An ETL pipeline in Python for web data: extract Google Shopping prices with retries, transform to typed rows, load into SQLite idempotently, run daily.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 3 Oct 2026 Perceptlayer 6 min read
## [Detect Schema Changes in API JSON Responses](https://perceptlayer.com/blog/web-data-api-json-schema-changes)
Infer a path-and-type schema from a recorded Google Search response (71 paths), diff each new response against it and alert on removed or retyped fields.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 30 Aug 2026 Updated 21 Oct 2026 Perceptlayer 7 min read
## [Web Data Quality Checks for Scraped and API Data](https://perceptlayer.com/blog/web-data-quality-monitoring-checklist)
Seven web data quality checks in Python, with code written against a recorded Zillow search response: schema drift, null rates, duplicate zpids and outliers.
---
title: "Yelp Reviews API: Business Search and Reviews as JSON"
description: "Three Yelp endpoints return search results, business details and reviews as JSON, 1 credit per call. Parameters, a real response and a cost example."
url: https://perceptlayer.com/blog/yelp-reviews-api-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Yelp Reviews API: Business Search and Reviews as JSON
2 Aug 2026 Updated 26 Oct 2026 Perceptlayer 6 min read
You can get Yelp business search results, business details and reviews as JSON from three endpoints: `/v1/yelp/search`, `/v1/yelp/business` and `/v1/yelp/reviews`. Each successful call costs 1 credit, failed calls cost nothing, and one `X-API-Key` header authenticates all three. This guide shows the parameters, a real response for each of the two recorded endpoints and a cost example. It also covers when Yelp's own developer API is the better fit.
## Key takeaways
- The [Yelp API](https://perceptlayer.com/apis/yelp) has 3 endpoints, search, business and reviews, and each costs 1 credit per successful call.
- Search needs `query` and `location`. Business and reviews need `business`, which is the Yelp alias such as `gary-danko-san-francisco`.
- Reviews can be sorted with `sort` (relevance, newest, oldest, highest, lowest, elite) and paged with `after`, using the `next_after` value from the previous response.
- Looking up one business, searching for it and reading one page of its reviews costs 3 credits. The free tier gives 100 credits on signup.
- For a small project that needs only a few review excerpts per business, Yelp's official API may be enough.
## What does the Yelp API return?
The Yelp API returns JSON for three jobs: finding businesses, reading one business's details and reading its reviews. A typical flow is to search by name and location, take the business `alias` from the result, then pass that alias as `business` to the other two endpoints. Every response has a `success` flag, a `data` object and a `meta` object.
| Method | Path | Returns | Credits | Required | Optional |
| --- | --- | --- | --- | --- | --- |
| GET | `/v1/yelp/search` | Search results | 1 | `query`, `location` | `limit`, `page` |
| GET | `/v1/yelp/business` | Business details | 1 | `business` | none |
| GET | `/v1/yelp/reviews` | Reviews | 1 | `business` | `sort`, `rating`, `after` |
Each endpoint has its own page with a playground: [Search](https://perceptlayer.com/apis/yelp/search), [Business](https://perceptlayer.com/apis/yelp/business) and [Reviews](https://perceptlayer.com/apis/yelp/reviews). Yelp sits in the [Reviews APIs](https://perceptlayer.com/verticals/reviews) area of the catalogue.
## How do you search for Yelp businesses?
Call `GET /v1/yelp/search` with a `query` and a `location`. The response lists matching businesses with their position, rating, review count, price level, categories, address and photo, so one call is enough to find a business and get its alias for the next two calls.
```bash
curl "https://api.perceptlayer.com/v1/yelp/search?query=gary+danko&location=San+Francisco%2C+CA" \
-H "X-API-Key: $API_KEY"
```
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | yes | Up to 100 characters |
| `location` | string | yes | Up to 100 characters |
| `limit` | integer | no | Optional |
| `page` | integer | no | Optional; the recorded response returns the next value as `next_page` |
This is an excerpt of the recorded response for that request:
```json
{
"success": true,
"data": {
"query": "gary danko",
"location": "San Francisco, CA",
"page": 1,
"results": [
{
"position": 1,
"encid": "WavvLdfdP6g8aZTtbBQHTw",
"alias": "gary-danko-san-francisco",
"name": "Gary Danko",
"url": "https://www.yelp.com/biz/gary-danko-san-francisco",
"rating": 4.5,
"review_count": 6149,
"price": "$$$$",
"categories": [
{ "alias": "newamerican", "title": "New American" },
{ "alias": "french", "title": "French" }
],
"address": {
"line1": "800 N Point St",
"city": "San Francisco"
},
…
},
…
],
"has_more": true,
"next_page": 2
},
"meta": {
"endpoint_family": "business_search",
"billable": true
}
}
```
The `alias` is the value you pass as `business` later. When `has_more` is `true`, request the next page by sending `page=2`, the value in `next_page`.
## How do you get one business's details?
Call `GET /v1/yelp/business` with the business alias in `business`. It takes no other parameters, and the value can be up to 160 characters. Use it when you already know which business you want and don't need a search first.
```bash
curl "https://api.perceptlayer.com/v1/yelp/business?business=gary-danko-san-francisco" \
-H "X-API-Key: $API_KEY"
```
We don't have a recorded response for this endpoint to quote here, so the [Yelp Business endpoint page](https://perceptlayer.com/apis/yelp/business) is the place to see the fields. Run the call in its playground with your own key and you'll see the live response. The playground runs a real call with your key.
## How do you get Yelp reviews as JSON?
Call `GET /v1/yelp/reviews` with `business`, and optionally `sort`, `rating` and `after`. The response includes the business, its `review_count`, a `reviews` array and paging fields. Each review carries a rating, text, language, timestamp and author details, plus `helpful_count` and `photos` when the review has them.
```bash
curl "https://api.perceptlayer.com/v1/yelp/reviews?business=gary-danko-san-francisco&sort=newest" \
-H "X-API-Key: $API_KEY"
```
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `business` | string | yes | Up to 160 characters |
| `sort` | string | no | One of `relevance`, `newest`, `oldest`, `highest`, `lowest`, `elite` |
| `rating` | integer | no | Optional |
| `after` | string | no | Up to 200 characters; the cursor from `next_after` |
An excerpt of the recorded response, with the author details trimmed:
```json
{
"success": true,
"data": {
"business": {
"encid": "WavvLdfdP6g8aZTtbBQHTw",
"alias": "gary-danko-san-francisco",
"name": "Gary Danko",
"url": "https://www.yelp.com/biz/gary-danko-san-francisco"
},
"review_count": 6149,
"total": 6150,
"reviews": [
{
"id": "4qYbbI9JbtCDUOtQRcJfDA",
"url": "https://www.yelp.com/biz/gary-danko-san-francisco?hrid=4qYbbI9JbtCDUOtQRcJfDA",
"rating": 5,
"text": "The staff is top notch.\nI really like the way their menu works, …",
"language": "en",
"created_at": "2026-10-22T21:21:22Z",
"author": { … }
},
…
],
"has_more": true,
"next_after": "eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoib2Zmc2V0Iiwib2Zmc2V0Ijo5fQ"
},
"meta": {
"endpoint_family": "business_reviews",
"billable": true
}
}
```
Review `text` in this sample is cut off with an ellipsis, so treat it as the text as returned by the call, not a guaranteed full review. Reviews are public content written by Yelp users. If you store them, decide what personal data you actually need; the author fields are rarely required for analysis.
## How do you page through all the reviews?
Pass the `next_after` value from one response as `after` in the next request, and stop when `has_more` is `false`. Each page is a separate call at 1 credit, so reading a business with thousands of reviews takes many calls. Work out the page count before you start a loop.
```python
import os
import requests
url = "https://api.perceptlayer.com/v1/yelp/reviews"
headers = {"X-API-Key": os.environ["API_KEY"]}
params = {"business": "gary-danko-san-francisco", "sort": "newest"}
reviews = []
for _ in range(5): # cap the pages, each one costs a credit
r = requests.get(url, headers=headers, params=params, timeout=30)
r.raise_for_status()
data = r.json()["data"]
reviews.extend(data["reviews"])
if not data["has_more"]:
break
params["after"] = data["next_after"]
print(len(reviews))
```
The cap of 5 pages keeps a bug from spending your balance. For safe loop patterns, including what to do after a timeout, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python) and [retrying calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice). A request whose reply was lost may have been billed, because requests have no idempotency key.
## What does it cost?
Every call to the three endpoints costs 1 credit when it succeeds, and nothing when it fails. A failed call returns `X-Credits-Used: 0`, and successful responses carry `X-Credits-Used` and `X-Credits-Remaining` headers so you can track the balance. The [credits docs](https://docs.perceptlayer.com/credits) explain the accounting.
A worked example for a monitoring job that checks the newest reviews of 500 restaurants:
- Find each business once: 500 searches × 1 credit = 500 credits.
- Read the newest reviews page for each, once a week: 500 calls × 1 credit = 500 credits a run.
- Four weekly runs: 4 × 500 = 2,000 credits, plus the 500 for the initial searches.
That is 2,500 credits for the first month. The free tier gives 100 credits after you verify an email address, no credit card, so this job needs a prepaid pack. Packs start at 10,000 credits and last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. If you already store the aliases, skip the searches and the first month is 2,000 credits.
Rate limits are per account and counted per minute. Free accounts get 1 request a second, and a 429 response carries a `Retry-After` header. Details are in the [rate limits docs](https://docs.perceptlayer.com/rate-limits) and [error codes](https://docs.perceptlayer.com/errors).
## When is Yelp's official API the better fit?
Yelp has its own developer API, and for a small project it can be the simpler choice. Its documentation describes a reviews endpoint that returns up to three review excerpts for a business ( [Yelp Places API docs](https://docs.developer.yelp.com/docs/fusion-intro), 2026). If all you need is a few excerpts per business, that limit may not matter for your project.
Choose the Perceptlayer endpoints when you need more than a few excerpts: sorting reviews by `newest` or `lowest`, filtering by `rating`, or paging through the review history of many businesses. They also fit when you want Yelp next to other sources under one key. For the other review sources in the catalogue, see the guides for [Trustpilot reviews](https://perceptlayer.com/blog/trustpilot-reviews-api), [Google Maps reviews](https://perceptlayer.com/blog/google-maps-reviews-api-parameters) and [Google Play reviews](https://perceptlayer.com/blog/google-play-store-api). Check Yelp's current developer terms at [docs.developer.yelp.com](https://docs.developer.yelp.com/) before you decide.
Data in this API is collected from publicly available sources and returned as found at the time of the call.
## Where do you start?
[Get a free API key](https://perceptlayer.com/signup), then run the search call from this guide in the playground on the [Yelp API page](https://perceptlayer.com/apis/yelp) or paste the cURL into a terminal. The key goes in the `X-API-Key` header, as the [authentication docs](https://docs.perceptlayer.com/authentication) describe. If you're wiring this into an agent instead, the [AI agents docs](https://docs.perceptlayer.com/ai-agents) cover the MCP server.
## APIs in this post
- [Yelp **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/yelp)
## Frequently asked questions
### Is there an official Yelp reviews API?
Yes. Yelp publishes a developer API with a reviews endpoint. Its documentation says the endpoint returns up to three review excerpts for a business ( [Yelp Places API docs](https://docs.developer.yelp.com/docs/fusion-intro), 2026). That suits small projects. If you need sorting, rating filters and paging through many reviews, the `/v1/yelp/reviews` endpoint here takes `sort`, `rating` and `after`.
### How much does a Yelp reviews call cost?
A successful call to `/v1/yelp/reviews`, `/v1/yelp/business` or `/v1/yelp/search` costs 1 credit. Failed calls cost nothing and return `X-Credits-Used: 0`. Reading 10 pages of one business's reviews is 10 calls × 1 credit = 10 credits. The free tier includes 100 credits on signup, and [pricing](https://perceptlayer.com/pricing) shows what credit packs cost.
### How do I find the business value for Yelp reviews?
Run a search with `query` and `location`, then copy the `alias` from a result, for example `gary-danko-san-francisco`. Pass it as `business` to `/v1/yelp/business` or `/v1/yelp/reviews`. The value can be up to 160 characters, and the search response also includes the business URL and `encid`.
### What happens when there are more reviews than one page?
The response sets `has_more` to `true` and gives a `next_after` cursor. Send that value as the `after` parameter in your next request to the same endpoint, and repeat until `has_more` is `false`. Each page is one successful call, so it costs 1 credit. Cap your loop so a bug can't spend your balance.
### Can I use this data in an AI agent?
Yes. The same key works over MCP at `https://perceptlayer.com/mcp`, where `search_endpoints` and `get_endpoint` look up the catalogue for free and `call_endpoint` runs an endpoint for its credits on success only. See the [AI agents docs](https://docs.perceptlayer.com/ai-agents) for setup.
### Should I build a Yelp scraper instead?
A Yelp scraper is code you maintain against changing pages, with blocks to handle and Yelp's terms to follow. The search, business and reviews endpoints return named JSON fields for 1 credit per successful call, and failed calls cost nothing. Yelp also runs its own developer API; compare its terms and limits with these endpoints before writing a scraper.
yelp reviews local business search json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 8 min read
## [Yelp Scraper or API: Reviews Without the Upkeep](https://perceptlayer.com/blog/yelp-scraper-vs-api)
A Yelp scraper vs three 1-credit endpoints: a recorded Gary Danko search whose alias feeds the reviews call, with rating, text, created\_at and next\_after.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 28 Sept 2026 Updated 22 Oct 2026 Perceptlayer 7 min read
## [Google News API: Search News Articles as JSON](https://perceptlayer.com/blog/google-news-api)
One GET call to /v1/google-news/news returns articles with title, link, source and ISO date as JSON for 1 credit. Parameters, a real response, cost.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Sept 2026 Perceptlayer 6 min read
## [Google Patents API: Search Patents and Get Details](https://perceptlayer.com/blog/google-patents-api-search-details)
Search Google Patents by keyword, inventor or assignee with one GET call, then fetch full details by patent\_id. Both endpoints cost 1 credit per call.
---
title: "Add Web Search to an OpenAI Agent: Python Tool Calls"
description: "Add web search to an OpenAI agent in Python: one web_search tool over live Google results, a tool-call loop and a cap of 1 credit per search."
url: https://perceptlayer.com/blog/openai-agent-web-search-tool-call
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Add Web Search to an OpenAI Agent: Python Tool Calls
31 Jul 2026 Perceptlayer 9 min read
To give an OpenAI agent live web search, declare a `web_search` function in the `tools` list, run the model, and when it returns a tool call, forward the arguments to `GET /v1/google-search/search`. Send the trimmed results back as a `tool` message and call the model again. The loop below does that in about 100 lines of Python, caps the spend at 5 credits per question, and costs nothing when a search fails.
## Key takeaways
- One function tool, `web_search`, maps to one endpoint: `GET /v1/google-search/search` with `query`, `hl` and `gl`. Each successful search costs 1 credit.
- Trim the response before the model sees it. Keep `position`, `title`, `link`, `snippet` and `source` from `organic_results`, and drop the long `redirect_link` strings.
- Cap the loop twice: a maximum number of model rounds and a maximum number of searches. With a cap of 5 searches, one question costs at most 5 credits.
- Return API errors to the model as tool output. Failed calls return `X-Credits-Used: 0`, so a bad query costs nothing and the model can correct itself.
- The 100 free credits you get on signup cover 20 questions at the 5-search cap, or more when the model searches less.
## How does function calling add web search to an OpenAI agent?
A model can't browse by itself. With function calling, you describe a function in JSON Schema, the model replies with the function name and arguments instead of text, your code runs it, and you return the result so the model can write the answer ( [OpenAI function calling guide](https://platform.openai.com/docs/guides/function-calling)). Web search is one such function: the model decides when it needs fresh facts and what to query.
The model never touches the network. Your code makes the HTTP request, so you control the key, the timeout, the result size and the budget. That control is the reason to write the loop yourself rather than rely on a hosted search tool.
The shape of the loop is always the same:
1. Send the messages and the tool definitions to the model.
2. If the reply has no tool calls, you have the answer.
3. If it has tool calls, run each one and append the output as a `tool` message.
4. Go back to step 1.
Steps 3 and 4 are where cost goes wrong, because a model can keep searching. The code below puts hard limits on that part. For the wider question of when to use a tool call and when to use a protocol, see [MCP vs function calling for live web data](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data).
## What do you need before you start?
You need Python 3, the [OpenAI Python SDK](https://github.com/openai/openai-python), `requests`, an OpenAI key, and a Perceptlayer API key. The Perceptlayer key starts with `sk_live_` and goes in the `X-API-Key` header; [get a free API key](https://perceptlayer.com/signup) and read [authentication](https://docs.perceptlayer.com/authentication) if you haven't called the API before.
Install the two packages and set three environment variables:
```bash
pip install openai requests
export OPENAI_API_KEY="sk-..."
export OPENAI_MODEL=""
export API_KEY="sk_live_..."
```
The model name is read from `OPENAI_MODEL` so the script doesn't go stale when model names change. Any chat model with tool-call support works with the code below.
Every account gets 100 free credits after verifying an email address, with no credit card. A successful search costs 1 credit, so you can run the whole tutorial many times for free. [Pricing](https://perceptlayer.com/pricing) has what credits cost once you outgrow that.
## Which endpoint should the tool call?
Use `GET /v1/google-search/search`. It returns Google results as JSON, costs 1 credit, and takes one required parameter, `query`. The [Search endpoint page](https://perceptlayer.com/apis/google-search/search) lists every optional parameter, and the [Google Search API](https://perceptlayer.com/apis/google-search) has six other endpoints, including AI Overviews and autocomplete.
Here is the request the tool will make, with the parameters the model is allowed to set:
```bash
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
-H "X-API-Key: $API_KEY"
```
| Tool argument | Endpoint parameter | Type | Notes |
| --- | --- | --- | --- |
| `query` | `query` | string | Required. |
| `hl` | `hl` | string | Optional. Interface language, up to 2 characters. |
| `gl` | `gl` | string | Optional. Country, up to 2 characters. |
The endpoint accepts many more parameters ( `tbs`, `location`, `page` and others). Leave them out of the tool schema. Every parameter you expose is another thing the model can set wrongly, and a short schema makes tool calls more reliable. If you later want the agent to page through results, add `page` yourself and see [paginating a web data API](https://perceptlayer.com/blog/paginate-web-data-api-python).
For a closer look at this endpoint outside an agent, see [Google Search API: get search results as JSON](https://perceptlayer.com/blog/google-search-api-json).
## What does the response look like, and what should the model see?
The search endpoint returns a large JSON object. The recorded response for `best restaurants in Berlin` has `organic_results`, `related_searches`, `people_also_search_for`, `related_questions`, `local_results` and more. The model needs very little of that, and every extra field is tokens you pay for on every later round of the loop.
The useful part is `organic_results`. This excerpt is from the recorded response:
```json
{
"search_information": {
"query_displayed": "best restaurants in Berlin",
"organic_results_count": 6
},
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"redirect_link": "https://www.google.com/goto?url=CAESegHrOzAV7vOTOiRYGN3Rq_LJMgUCSUtmes2rLIk-rn2vHS6tGU7IIN38aZ1xjQeD3kZuDFfbW6QvUSum1Woyp6Hmrl5u9WEXLlEP2Ek60dzztg2yT13pxwC2ptSy…",
"displayed_link": "https://andershusa.com › best-restaurants-berlin-german...",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. It holds two Michelin stars, has been frequently ranked on The World's 50 ...",
"source": "Anders & Kaitlin",
"rank_group": 1,
"rank_absolute": 4
},
…
],
…
}
```
Each result has a `redirect_link` that is a long opaque string, plus `displayed_link`, `rank_group` and `rank_absolute`. None of those help a model write an answer. The tool function keeps five fields per result and caps the count at five results:
| Field kept | Why the model needs it |
| --- | --- |
| `position` | Lets the model say which result it used. |
| `title` | Tells it what the page is. |
| `link` | The URL it can cite to the user. |
| `snippet` | The text it answers from. |
| `source` | The site name, for attribution. |
The snippet is all the model gets. It is Google's excerpt, not the page, which keeps rounds cheap but means the agent can't quote a page body. If you need full pages, that's a different tool (see [RAG with live web data](https://perceptlayer.com/blog/rag-with-live-web-data)).
## How do you write the web\_search tool function?
The function sends the request, reads the credit headers, and returns a small dictionary that is always JSON-serialisable, including on failure. Returning errors instead of raising means a bad call becomes information for the model, not a crash in your loop.
Save this as `agent.py`. It is complete; the next section adds the loop.
```python
import json
import os
import time
import requests
from openai import OpenAI
client = OpenAI()
MODEL = os.environ["OPENAI_MODEL"]
BASE_URL = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
MAX_ROUNDS = 6 # model calls per question
MAX_SEARCHES = 5 # credits per question, at 1 credit per search
MAX_RESULTS = 5 # results returned to the model
TOOLS = [
{
"type": "function",
"function": {
"name": "web_search",
"description": (
"Search Google and return the top results with title, URL and "
"snippet. Use it for facts that may have changed recently or "
"that you are not sure about. Each call costs one credit."
),
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query, as you would type it into Google.",
},
"hl": {
"type": "string",
"description": "Two-letter interface language, for example en.",
},
"gl": {
"type": "string",
"description": "Two-letter country code, for example de.",
},
},
"required": ["query"],
},
},
}
]
spend = {"searches": 0, "credits_used": 0, "credits_remaining": None}
def web_search(query, hl="en", gl=None):
if not query:
return {"error": "query is required"}
params = {"query": query, "hl": hl}
if gl:
params["gl"] = gl
response = None
for attempt in range(2):
try:
response = requests.get(
f"{BASE_URL}/v1/google-search/search",
params=params,
headers=HEADERS,
timeout=30,
)
except requests.Timeout:
# The reply may have been lost after the call succeeded, so do not retry.
return {"error": "search timed out; try a different query or answer without it"}
if response.status_code in (429, 503) and attempt == 0:
time.sleep(int(response.headers.get("Retry-After", "1")))
continue
break
spend["searches"] += 1
spend["credits_used"] += int(response.headers.get("X-Credits-Used", 0))
spend["credits_remaining"] = response.headers.get("X-Credits-Remaining")
if response.status_code != 200:
try:
error = response.json()["error"]
except (ValueError, KeyError):
error = {"code": "unknown", "message": f"HTTP {response.status_code}"}
return {"error": error.get("code"), "message": error.get("message")}
results = response.json().get("organic_results", [])[:MAX_RESULTS]
return {
"results": [
{
"position": r.get("position"),
"title": r.get("title"),
"link": r.get("link"),
"snippet": r.get("snippet"),
"source": r.get("source"),
}
for r in results
]
}
```
Four details matter here.
**The retry is narrow.** A `429` or `503` carries a `Retry-After` header with the seconds to wait, so the function waits once and tries again. It does not retry a timeout. Requests have no idempotency key, so a request whose reply was lost may have succeeded and been billed. A second attempt could charge twice. The full pattern is in [retrying web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice).
**Credits come from headers.** Every successful response carries `X-Credits-Used` and `X-Credits-Remaining`, and errors carry `X-Credits-Remaining` too. Summing `X-Credits-Used` gives the real spend rather than an estimate. See [credits](https://docs.perceptlayer.com/credits) for how billing works.
**Errors go to the model.** An `invalid_parameters` (422) tells the model its arguments were wrong. A `rate_limited` (429) that survives the retry tells it to stop searching. Both are in the [error reference](https://docs.perceptlayer.com/errors).
**The description tells the model the cost.** Saying "each call costs one credit" in the tool description nudges the model to search once with a good query rather than five times with bad ones. It is a nudge, not a guarantee, which is why the loop has hard limits too.
## How do you write the tool-call loop?
The loop sends the conversation to the model, executes any tool calls it returns, appends each result as a `tool` message keyed by `tool_call_id`, and repeats until the model answers in plain text. Two counters, `MAX_ROUNDS` and `MAX_SEARCHES`, guarantee it ends and bound the spend.
Append this to `agent.py`:
```python
SYSTEM = (
"You answer questions using web search when the answer may be recent or you "
"are unsure. Search with specific queries. Cite the URLs you used. If search "
"results are missing or an error is returned, say so instead of guessing."
)
def run_tool(call):
if call.function.name != "web_search":
return {"error": f"unknown tool {call.function.name}"}
try:
args = json.loads(call.function.arguments or "{}")
except json.JSONDecodeError:
return {"error": "arguments were not valid JSON"}
if spend["searches"] >= MAX_SEARCHES:
return {"error": "search limit reached; answer with the results you already have"}
return web_search(
query=args.get("query", ""),
hl=args.get("hl") or "en",
gl=args.get("gl"),
)
def ask(question):
spend.update(searches=0, credits_used=0, credits_remaining=None)
messages = [
{"role": "system", "content": SYSTEM},
{"role": "user", "content": question},
]
for _ in range(MAX_ROUNDS):
completion = client.chat.completions.create(
model=MODEL, messages=messages, tools=TOOLS
)
message = completion.choices[0].message
messages.append(message)
if not message.tool_calls:
return message.content
for call in message.tool_calls:
result = run_tool(call)
messages.append(
{
"role": "tool",
"tool_call_id": call.id,
"content": json.dumps(result),
}
)
return "Stopped: round limit reached before the model gave an answer."
if __name__ == "__main__":
question = input("Question: ")
print(ask(question))
print(
f"\nSearches: {spend['searches']}, "
f"credits used: {spend['credits_used']}, "
f"credits remaining: {spend['credits_remaining']}"
)
```
Run it with `python agent.py` and ask something the model can't know from training, such as the current top results for a topic. The last line prints the searches made and the credits those cost, read from the response headers.
A model can return several tool calls in one reply. The loop runs them one after another, which suits the free tier's rate of 1 request a second. When the search limit is hit mid-reply, the remaining calls get an error result instead of a request, so every `tool_call_id` still gets an answer. An unanswered ID makes the next model call fail.
## What does one question cost?
Each successful search costs 1 credit, and `MAX_SEARCHES` is the ceiling, so one question costs at most 5 credits with the settings above. A question that needs one search costs 1 credit. A search that fails costs 0 and still counts toward the limit, which keeps the cap conservative.
Credits are the only Perceptlayer cost. OpenAI bills tokens separately, and that bill grows with every round because each round re-sends the whole conversation, including earlier search results. Trimming results to five short entries is what keeps that second bill small.
| Setup | Searches per question | Credits per question |
| --- | --- | --- |
| Model searches once | 1 | 1 |
| Model searches three times | 3 | 3 |
| Model hits the cap | 5 | 5 |
Worked example: the 100 free credits ÷ 5 credits at the cap = 20 questions, once, and more when the model searches less. At 10,000 questions averaging 2 searches, the arithmetic is 10,000 × 2 × 1 credit = 20,000 credits. Check [pricing](https://perceptlayer.com/pricing) for what a pack of credits costs. Purchased credits last 12 months, and the service is prepaid: when the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited.
If you need a budget across many questions, not just one, keep a counter outside `ask`. [AI agent API cost control](https://perceptlayer.com/blog/ai-agent-web-data-costs) covers per-session and per-day caps, and [caching API responses](https://perceptlayer.com/blog/cache-web-data-api-responses) covers skipping repeat searches entirely.
## When should you use MCP instead?
Use a hand-written tool when you want control over the schema, the trimming and the budget, as in this tutorial. Use the MCP server when you want an agent to discover endpoints itself, or when the client already speaks MCP. The server is at `https://perceptlayer.com/mcp` and exposes `search_endpoints`, `get_endpoint` and `call_endpoint`.
The trade-off is tokens and predictability. A single `web_search` tool is one small schema and one known endpoint. MCP exposes the whole catalogue, which is more flexible but gives the model more ways to spend credits. Lookups with `search_endpoints` and `get_endpoint` cost nothing, but `call_endpoint` spends the endpoint's credits on success.
If your agent only ever searches Google, the function above is simpler. If it needs reviews, listings and prices from different websites, adding tools one by one gets tedious, and the [AI agents docs](https://docs.perceptlayer.com/ai-agents) and [MCP server for web scraping](https://perceptlayer.com/blog/mcp-server-for-web-scraping) are the better start. For the same idea on a different model, see [Claude MCP web search](https://perceptlayer.com/blog/claude-agent-live-search-mcp), and for a LangChain version of this tool, [a LangChain custom tool for live web data](https://perceptlayer.com/blog/langchain-custom-tool-web-data).
To try the endpoint before wiring it up, run a call in the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search), then paste your `sk_live_` key into the script above.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Can I add this web search tool to an OpenAI Agents SDK agent?
This tutorial uses Chat Completions function calling, so the loop is plain Python with no agent framework. For the OpenAI Agents SDK, [OpenAI Agents SDK with a Remote MCP Server for Web Data](https://perceptlayer.com/blog/openai-agents-sdk-mcp-server) connects an agent to the MCP server instead, and its `call_endpoint` tool runs the same Google search for 1 credit a call.
### Does the OpenAI model search the web by itself with function calling?
No. The model only returns a function name and arguments. Your code makes the HTTP request and returns the result. That's why the loop above holds the API key, the timeout, the result trimming and the search cap, and the model never sees your credentials.
### What happens if a search fails?
The function returns the error code and message as the tool output, and the model can rephrase or answer without the search. Failed calls cost nothing and return `X-Credits-Used: 0`. Rate-limited (429) and temporarily unavailable (503) responses include a `Retry-After` header, which the function honours once.
### How many requests a second can the loop make?
Limits are per account and counted per minute. Free accounts get 1 request a second (60 a minute); paying accounts run at the rate of the credits they are using, and at least 5 a second. The loop runs tool calls one at a time, so a single user stays within the free rate. See [rate limits](https://docs.perceptlayer.com/rate-limits).
### Can the agent get the full text of a page?
Not with this tool. The search endpoint returns Google's `snippet` for each result, not the page body. The agent can cite the `link`, and you can add a second tool for fetching a page if your use case needs one. Data is returned as found at the time of the call.
### Why cap searches when the model usually stops on its own?
Usually is not always. A model can repeat near-identical queries when results look thin, and each one is a credit and another round of tokens. The `MAX_ROUNDS` and `MAX_SEARCHES` limits make the worst case a known number, 5 credits per question here, instead of an open-ended loop.
openai function calling web search python ai agents
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 7 Sept 2026 Perceptlayer 8 min read
## [OpenAI Agents SDK with a Remote MCP Server for Web Data](https://perceptlayer.com/blog/openai-agents-sdk-mcp-server)
Connect the OpenAI Agents SDK to a Streamable HTTP MCP server with a Bearer header, cap call\_endpoint at 3 calls a question, and count credits per run.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 28 Oct 2026 Perceptlayer 7 min read
## [Web Search API for AI Agents: Four Engines Compared](https://perceptlayer.com/blog/web-search-api-for-ai-agents)
Google, Brave, Bing and DuckDuckGo search endpoints compared by their recorded JSON, with one Python normaliser for agents. 1 credit per search.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 9 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [CrewAI Tools: Build a Custom Tool for Live Web Data](https://perceptlayer.com/blog/crewai-custom-tool-web-data)
Build a CrewAI custom tool (a BaseTool subclass) that searches Google for live results, cap it at 5 calls a run, or load MCP tools instead. Tested code.
---
title: "Paginate a Web Data API in Python: Safe Page Loops"
description: "Page through the eBay search endpoint in Python with has_more, dedupe by product_id and a credit ceiling. Each page costs 1 credit."
url: https://perceptlayer.com/blog/paginate-web-data-api-python
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Paginate a Web Data API in Python: Safe Page Loops
31 Jul 2026 Perceptlayer 8 min read
To paginate a web data API in Python, request `page=1`, read the `has_more` flag in the response, and keep going until it turns false. Add three guards: a page cap, a deduplication set and a credit ceiling. This guide does it against the search endpoint of the [eBay API](https://perceptlayer.com/apis/ebay), where every page is one call and one credit, so a full pull has a cost you can calculate before you run it.
## Key takeaways
- `GET /v1/ebay/search` pages with `page` and `per_page` (60, 120 or 240), and each response reports `has_more` and `total_results`.
- Stop on the first of five conditions: `has_more` is false, a page comes back empty, a page adds no new items, your page cap is reached, or your credit ceiling is reached.
- Deduplicate on `product_id`. The docs don't promise a stable result set between calls, so guard against repeats instead of assuming none.
- Each successful page costs 1 credit and failed calls cost 0, so retrying a 429, 502 or 503 costs nothing extra. A request that timed out client-side may still have been billed, because there's no idempotency key.
- Choosing `per_page=240` over 60 cuts the number of calls, and therefore the credits, for the same result set.
## How does pagination work on the eBay search endpoint?
The search endpoint is page-based. You send `q` with `page` and `per_page`, and the response tells you where you are ( `page`, `per_page`), whether another page exists ( `has_more`) and how many results match overall ( `total_results`). The endpoint's parameter list has no cursor and the recorded response returns none, so there's nothing to carry between calls. You increment `page` yourself and let `has_more` say when to stop.
Here's the first page as a cURL call:
```bash
curl "https://api.perceptlayer.com/v1/ebay/search?q=coffee+maker&page=1&per_page=60" \
-H "X-API-Key: $API_KEY"
```
Page-number paging is simple, but it leaves the safety to you. Nothing in the protocol stops a loop that runs until your balance is gone, which is why the rest of this article is about stop conditions. The full parameter list for the endpoint is on the [eBay Search API page](https://perceptlayer.com/apis/ebay/search), and the key setup is in the [authentication docs](https://docs.perceptlayer.com/authentication).
## Which parameters control paging?
Two parameters control paging: `page` selects which page you get and `per_page` sets how many results each page holds, from three allowed values. Everything else on the endpoint (filters and sorting) narrows or reorders the result set, and you should keep those identical across every page of one pull. Changing a filter mid-pull gives you pages from two different result sets.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `q` | string | yes | Up to 255 characters |
| `page` | integer | no | The page to return |
| `per_page` | integer | no | One of `60`, `120`, `240` |
| `sort` | integer | no | One of `1`, `7`, `10`, `12`, `15`, `16` |
| `category` | integer | no | Narrows the result set |
| `price_min`, `price_max` | number | no | Price filters |
| `buy_it_now`, `auction`, `free_shipping` | boolean | no | Listing filters |
| `condition[]` | list of integer | no | Condition filter |
| `preferred_location`, `location_postal` | integer, string | no | Location filters; `location_postal` up to 20 characters |
The docs don't state a default page size or a maximum page depth, so don't assume either. Pass `per_page` explicitly and let the stop conditions find the end. The [eBay search results guide](https://perceptlayer.com/blog/ebay-item-search-data-json) covers the filters in more detail.
## What does a result page look like?
A page is a JSON object with `success`, and a `data` object holding the paging fields next to a `results` array. Each result carries a `product_id`, a `title`, a `link`, a `price` object and a few optional fields. The recorded response for `q=coffee maker`, `page=1`, `per_page=60` looks like this, trimmed:
```json
{
"success": true,
"data": {
"query": "coffee maker",
"page": 1,
"per_page": 60,
"has_more": true,
"results": [
{
"product_id": "366702966104",
"title": "Mr. Coffee 4-in-1 Single-Serve Latte, Iced, and Hot Coffee",
"link": "https://www.ebay.com/itm/366702966104",
"price": {
"raw": "$60.00",
"extracted": 60,
"currency": "USD"
},
"sponsored": true,
"location": "United States"
},
…
],
"total_results": 110000,
"related_searches": […],
"categories": […]
}
}
```
Three fields matter for pagination. `has_more` is your primary stop signal. `total_results` (110000 for this query) lets you estimate the number of pages before you start. `product_id` is used here as the dedupe key. Fields such as `subtitle`, `thumbnail`, `sponsored` and `location` are optional extras, so read them with `.get()` rather than indexing.
## How do you fetch every page safely?
Write the loop around its exit conditions rather than around the happy path. A safe pagination loop stops on the first of five conditions: `has_more` is false, a page returns no results, a page contributes no new items, the page cap is reached, or the credits spent reach a ceiling. It also stops if `X-Credits-Remaining` shows the balance can't pay for another page, and it returns the reason it stopped, so a partial pull is never mistaken for a complete one.
Free accounts get 1 request a second, so a tight loop with no pause can hit a 429. The code below sleeps briefly between pages and honours `Retry-After` when a 429 or 503 carries it. Retries and billing are covered in [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice).
```python
import os
import time
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
RETRYABLE = {429, 502, 503}
def get_page(params, max_attempts=4):
"""GET one page, or None if the network kept failing.
A 429, 502 or 503 is a failed call and isn't billed, so retrying it is free.
A timeout is different: there's no idempotency key, so the request may have
succeeded and been billed even though no reply arrived. Retrying one can
cost a second credit.
"""
r = None
for attempt in range(max_attempts):
try:
r = requests.get(
f"{BASE}/v1/ebay/search", params=params, headers=HEADERS, timeout=30
)
except requests.RequestException:
r = None # timeout or connection error: retry after a pause
if (r is None or r.status_code in RETRYABLE) and attempt < max_attempts - 1:
delay = 2**attempt
if r is not None:
try: # 429 and 503 carry Retry-After in seconds
delay = max(delay, float(r.headers["Retry-After"]))
except (KeyError, ValueError):
pass
time.sleep(delay)
continue
return r
return r
def collect(q, per_page=240, max_pages=50, credit_ceiling=25):
seen = {} # product_id -> result
spent = 0
reason = "page cap reached"
for page in range(1, max_pages + 1):
if spent >= credit_ceiling:
reason = "credit ceiling reached"
break
r = get_page({"q": q, "page": page, "per_page": per_page})
if r is None:
reason = f"network error on page {page}"
break
if r.status_code != 200:
try:
code = r.json().get("error", {}).get("code", "unknown")
except ValueError: # non-JSON body, e.g. from a 502 or 503
code = "unknown"
reason = f"error {r.status_code} {code} on page {page}"
break
cost = int(r.headers.get("X-Credits-Used", 0))
spent += cost
remaining = int(r.headers.get("X-Credits-Remaining", -1))
data = r.json()["data"]
results = data["results"]
new = 0
for item in results:
if item["product_id"] not in seen:
seen[item["product_id"]] = item
new += 1
if not data["has_more"]:
reason = "has_more is false"
break
if not results:
reason = "empty page"
break
if new == 0:
reason = "page added no new items"
break
if 0 <= remaining < cost:
reason = "balance below the next page's cost"
break
time.sleep(1) # free accounts get 1 request a second
return list(seen.values()), spent, reason
items, spent, reason = collect("coffee maker")
print(f"{len(items)} unique items, {spent} credits, stopped: {reason}")
```
The loop checks `credit_ceiling` before each call, so it never starts a page it has already decided not to pay for. It reads `X-Credits-Used` from the response instead of assuming 1 credit, so if an endpoint's price ever changes, the ceiling still holds. It also reads `X-Credits-Remaining` and stops when the balance is below what the last page cost, assuming the next page costs the same. For more on credits, see the [credits docs](https://docs.perceptlayer.com/credits).
## How do you deduplicate results across pages?
Key every result on `product_id` and keep the first copy you see. The docs don't say whether the result set stays fixed while you page through it, so don't assume it does. If it shifts between your calls, an item near a page boundary could show up twice. A dictionary keyed on `product_id` makes that harmless, and it gives you the "page added no new items" stop signal for free.
```python
new = 0
for item in results:
if item["product_id"] not in seen:
seen[item["product_id"]] = item
new += 1
```
Two details are worth keeping. First, keep the first copy, not the last, so a result's position reflects the order you first received it. Second, treat the `new == 0` exit as a safety net. It catches a loop that keeps getting the same page, for example because a parameter was dropped from the request, so the loop ends instead of running to its page cap.
Sponsored results carry `"sponsored": true`. If you only want organic listings, filter on that field after deduplication, not before, so your stop logic still sees every item.
## What does a full pull cost?
Every successful page costs 1 credit, so a pull of N pages costs N credits. Failed calls cost nothing and return `X-Credits-Used: 0`. Larger pages mean fewer calls for the same number of results, so `per_page=240` is the cheapest setting per result. The table states each pull in credits; see [pricing](https://perceptlayer.com/pricing) for what credits cost.
| Pull | Pages | Calculation | Credits |
| --- | --- | --- | --- |
| 10 pages | 10 | 10 calls × 1 credit | 10 |
| 50 pages (the default cap above) | 50 | 50 calls × 1 credit | 50 |
| Calculation: `total_results` of 110,000 at `per_page=240` | 459 | 459 calls × 1 credit | 459 |
| Calculation: `total_results` of 110,000 at `per_page=60` | 1,834 | 1,834 calls × 1 credit | 1,834 |
The last two rows are a calculation on the `total_results` value in the recorded response, not a recorded pull. They also assume every page is full, at 240 and 60 results; only a 60-result page is recorded, so the real page count may differ. The arithmetic: 110,000 ÷ 240 = 458.3, so 459 pages × 1 credit = 459 credits. At 60 per page, 110,000 ÷ 60 = 1,833.3, so 1,834 pages × 1 credit = 1,834 credits. Either pull fits within the smallest pack's 10,000 credits.
The default `collect("coffee maker")` call stops at its 50-page cap, so to attempt the 459-page calculation, raise both guards just above the figure:
```python
items, spent, reason = collect(
"coffee maker", per_page=240, max_pages=500, credit_ceiling=500
)
```
Treat the 110,000 rows as a ceiling, not a promise: a full 459-page pull may not be possible. `total_results` is the figure from the recorded `coffee maker` response, and the docs don't say how deep you can page. Your `has_more` check finds the real end. The free tier's 100 credits, granted once on signup, cover 100 of those 459 pages; a full pull needs a pack. For a wider view of budgeting, see [capping web data spend](https://perceptlayer.com/blog/ai-agent-web-data-costs). More pipeline guides are in the [data engineering category](https://perceptlayer.com/blog/category/data-engineering).
## How do you handle errors and retries mid-pull?
Retry the transient errors, stop on the permanent ones, and keep what you've already collected. Errors come back as an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. A 429, 502 or 503 is a failed call and isn't billed, so retrying it costs nothing extra beyond the wait. A client timeout is the exception: there's no idempotency key, so a request whose reply was lost may have succeeded and been billed, and retrying it can cost a second credit. The [retry guide](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) goes deeper.
| Status | Code | What to do |
| --- | --- | --- |
| 429 | `rate_limited` | Wait the `Retry-After` seconds, then retry the same page |
| 502 | `source_error` | Retry with backoff |
| 503 | `temporarily_unavailable` | Wait the `Retry-After` seconds, then retry |
| 402 | `insufficient_credits` | Stop. Nothing more is debited and there's no automatic top-up |
| 401 | `invalid_api_key` | Stop. Fix the key |
| 422 | `invalid_parameters` | Stop. Fix the request, for example a malformed or missing parameter |
The `get_page` function above retries the first three, and on network errors too. It backs off 1, 2, then 4 seconds, or waits longer when a `Retry-After` header asks for it, the standard response to [429 Too Many Requests](https://www.rfc-editor.org/rfc/rfc6585#section-4). Everything else falls through to `collect`, which records the reason and returns the items it already has.
For long pulls, save `seen` to disk every few pages, and cache pages you've already fetched so a rerun doesn't pay for them again (see [caching API responses](https://perceptlayer.com/blog/cache-web-data-api-responses)). Then a 402 or a crashed process costs you the remaining pages, not the whole run. Resume by starting from the last saved page number and loading the saved `product_id` values back into `seen`. For more, see the [errors docs](https://docs.perceptlayer.com/errors) and the [rate limit docs](https://docs.perceptlayer.com/rate-limits).
If you're calling the API through the `requests` library as above, the [Requests documentation](https://requests.readthedocs.io/en/latest/) covers sessions, which reuse connections across a pull of hundreds of pages.
Get a free API key at [/signup](https://perceptlayer.com/signup), set `API_KEY`, and run `collect` with a `credit_ceiling` of 20 to see the whole loop end to end for 20 credits or fewer.
## APIs in this post
- [eBay **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/ebay)
## Frequently asked questions
### How many pages should I fetch per query?
Fetch until `has_more` is false or your cap is hit, whichever comes first. The docs don't state a maximum page depth, so don't hardcode one. Set `max_pages` and `credit_ceiling` from what you're willing to spend, then let the loop stop itself. Each page is 1 credit.
### Does a retried page get billed twice?
Not for a 429, 502 or 503. Only a successful response debits credits, and a failed call returns `X-Credits-Used: 0`. A client timeout is different: there's no idempotency key, so a request whose reply was lost may have succeeded and been billed, and the retry then costs another credit. If you re-request a page you already have, that's a new successful call and costs 1 credit; [caching responses](https://perceptlayer.com/blog/cache-web-data-api-responses) avoids that.
### Should I use per\_page 60, 120 or 240?
Use 240 when you want the most results per credit, because the endpoint costs 1 credit per successful call, so fewer, larger pages mean fewer calls. Use 60 when you only need the top results and want smaller responses. The docs list only those three values, so stick to them.
### What happens when my credits run out mid-pull?
The next call returns `insufficient_credits` (402) and nothing more is debited. The service is prepaid with no automatic top-up. Your loop should stop on that code and keep the results it has. The `X-Credits-Remaining` header on each success shows the balance after that call, so you can stop early, as the loop above does.
### Can I paginate through an AI agent instead of a script?
Yes. The MCP server exposes `call_endpoint`, which spends the endpoint's credits on success only and reports credits used and remaining. An agent can request one page at a time and stop on `has_more`. Set a page cap in its instructions. See the [MCP docs](https://docs.perceptlayer.com/ai-agents).
pagination python ebay credits data engineering
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 24 Sept 2026 Perceptlayer 7 min read
## [Fetch Incremental Data From an API: Only New Records](https://perceptlayer.com/blog/incremental-api-data-pulls)
Fetch incremental data from an API: sort newest first, keep a high-water mark or seen-ID set per query, and stop paging early. Python, Craigslist and eBay.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
---
title: "CarGurus API: Search Used Car Listings and Dealers"
description: "Get CarGurus used car listings as JSON: look up make and model IDs, run search at 1 credit a call, then pull a dealer by service_provider_id."
url: https://perceptlayer.com/blog/cargurus-api-used-car-search
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# CarGurus API: Search Used Car Listings and Dealers
29 Jul 2026 Perceptlayer 8 min read
The CarGurus API on Perceptlayer has four endpoints: `makes`, `models`, `search` and `dealer`. Each is a GET request with an `X-API-Key` header, each costs 1 credit on success, and each returns JSON. You look up a make ID, then a model ID, pass them to `search` to get listings, and use the `service_provider_id` from any listing to fetch its dealer.
## Key takeaways
- Four endpoints cover the flow: `/v1/cargurus/makes`, `/v1/cargurus/models`, `/v1/cargurus/search` and `/v1/cargurus/dealer`, at 1 credit per successful call.
- `search` filters by `make_model_trim_paths`, such as `m26/d126` for the GMC Suburban in the recorded response, so fetch those IDs from `makes` and `models` first.
- Each listing carries `price`, `mileage`, `vin`, `days_on_market` and a `seller` object whose `service_provider_id` feeds the `dealer` endpoint.
- Budget a regional pull as lookups plus (models × pages) search calls; failed calls cost 0 credits.
## What does the CarGurus API return?
The CarGurus data on Perceptlayer is structured used and new car inventory: one listing per vehicle, with the year, make, model, trim, price, mileage, VIN, seller and a link back to the listing page. The [CarGurus API page](https://perceptlayer.com/apis/cargurus) lists all four endpoints, and the playground there lets you run a real call with your key before you write any code.
This guide follows the order you'd use in practice. Makes and models give you valid inputs, search gives you listings, and dealer gives you the seller behind a listing. The recorded response below comes from a real search call, so every field name you see is one the API returned.
The endpoints sit in the [Cars area](https://perceptlayer.com/verticals/cars) of the catalogue. If you want to know which listing fields suit price analysis, [used car listing data: fields for price analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis) covers that question separately.
## Which endpoints does the CarGurus API have?
The CarGurus API has four endpoints: `makes`, `models`, `search` and `dealer`. All are `GET` requests and each costs 1 credit on success. Only `makes` and `search` take no required parameter; `models` needs a `make_id` and `dealer` needs a `service_provider_id`.
| Endpoint | Returns | Credits | Required | Optional |
| --- | --- | --- | --- | --- |
| [`/v1/cargurus/makes`](https://perceptlayer.com/apis/cargurus/makes) | Makes | 1 | none | `locale`, `country_code`, `origin`, `device_platform` |
| [`/v1/cargurus/models`](https://perceptlayer.com/apis/cargurus/models) | Models | 1 | `make_id` | `locale`, `country_code`, `origin`, `device_platform` |
| [`/v1/cargurus/search`](https://perceptlayer.com/apis/cargurus/search) | Search | 1 | none | `make_model_trim_paths`, `price_min`, `price_max`, `distance`, `sort`, `sort_direction`, `page` |
| [`/v1/cargurus/dealer`](https://perceptlayer.com/apis/cargurus/dealer) | Dealer | 1 | `service_provider_id` | none |
Authentication is the `X-API-Key` header with a key that starts with `sk_live_`. Where a header isn't possible, the `api_key` query parameter works instead. The [authentication docs](https://docs.perceptlayer.com/authentication) cover both.
## How do you get valid make and model IDs?
Call `makes` first, then `models` with a `make_id` taken from the makes response. Search filters on IDs, not names, so this lookup is how you avoid guessing. In the recorded search response, the GMC Suburban appears as `make_id` `m26` and `model_id` `d126`.
```bash
curl "https://api.perceptlayer.com/v1/cargurus/makes" \
-H "X-API-Key: $API_KEY"
```
Then pass one of the returned make IDs to `models`:
```bash
curl "https://api.perceptlayer.com/v1/cargurus/models?make_id=m26" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a makes or models response for this guide, so we won't show one. Run both calls in the playground on the [Makes](https://perceptlayer.com/apis/cargurus/makes) and [Models](https://perceptlayer.com/apis/cargurus/models) pages to see the exact fields your key returns.
Both lookups also accept `locale`, `country_code`, `origin` and `device_platform`. They're optional strings, up to 20 characters for `locale` and 40 for the others. Nothing more is documented about them, so leave them out unless you've tested a value in the playground.
The IDs are inputs you reuse on every search, so cache them instead of repeating the lookups. [Cache API responses in Python](https://perceptlayer.com/blog/cache-web-data-api-responses) shows a TTL approach that fits.
## How do you search used car listings?
To search used car listings, call `/v1/cargurus/search` with `make_model_trim_paths` set to the make ID and model ID joined by a slash, URL-encoded as `%2F`. Add `distance`, price bounds and a sort order to narrow the results. Each successful call costs 1 credit and returns one page of listings. This is the request we recorded:
```bash
curl "https://api.perceptlayer.com/v1/cargurus/search?make_model_trim_paths=m26%2Fd126&distance=50000&sort=best_match" \
-H "X-API-Key: $API_KEY"
```
The same request in Python:
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/cargurus/search",
headers={"X-API-Key": os.environ["API_KEY"]},
params={
"make_model_trim_paths": "m26/d126",
"distance": 50000,
"sort": "best_match",
},
timeout=30,
)
resp.raise_for_status()
data = resp.json()["data"]
for listing in data["listings"]:
print(listing["listing_title"], listing["price"]["amount"], listing["mileage"]["value"])
```
`requests` encodes the slash for you. The response has `data.listings`, `data.pagination` and a `meta` object.
### Which parameters does search take?
All seven are optional. Nothing about defaults or page sizes is documented, so the table lists only types and allowed values.
| Parameter | Type | Notes |
| --- | --- | --- |
| `make_model_trim_paths` | string | Up to 200 characters. Example: `m26/d126` |
| `price_min` | integer | Lower price bound |
| `price_max` | integer | Upper price bound |
| `distance` | integer | Search radius |
| `sort` | string | One of `best_match`, `deal_score`, `price`, `mileage`, `distance`, `date` |
| `sort_direction` | string | One of `asc`, `desc` |
| `page` | integer | Page number |
## What does a search response look like?
A search response has `data.listings`, `data.pagination` and a `meta` object, and each entry in `data.listings` is one vehicle with its price, mileage, VIN and seller. The excerpt below is trimmed from the recorded response for the request above, with `…` marking the cut parts.
```json
{
"success": true,
"data": {
"listings": [
{
"listing_id": 461194930,
"listing_title": "1996 GMC Suburban",
"listing_url": "https://www.cargurus.com/details/461194930",
"vin": "3GKFK16R5TG503480",
"year": 1996,
"make": "GMC",
"make_id": "m26",
"model": "Suburban",
"model_id": "d126",
"trim": "K1500 4WD",
"price": {
"amount": 7995,
"currency": "USD",
"localized": "$7,995",
"rating": "NA",
"fees_compliant": true
},
"mileage": {
"value": 175456,
"unit": "MILES",
"localized": "175,456"
},
"drivetrain": "Four-Wheel Drive",
"fuel_type": "Gasoline",
"days_on_market": 14,
"distance": 537.75244,
"seller": {
"service_provider_id": "349337",
"name": "Little Rock Auto Sales",
"city": "Charlotte",
"region": "NC",
"location": "Charlotte, NC",
…
},
"is_new": false,
"is_cpo": false,
"seller_type": "DEALER"
},
…
],
"pagination": {
"page": 1,
"page_size": 21,
"page_count": 1,
"total": 21,
"has_more": false
}
},
"meta": {
"duration_ms": 1556,
"endpoint_family": "search",
"market": "US"
}
}
```
A few fields worth knowing, all from the recording:
- `price.amount` is a number and `price.localized` is the display string. Use the number for analysis.
- `mileage.value` pairs with `mileage.unit`, which was `MILES` here.
- `vin` identifies the vehicle, and `listing_id` identifies the listing. Pick the key that matches your question: vehicle or advert.
- Some fields appear on one listing and not another. The second listing in the recording has `exterior_color`, `interior_color` and an image `count`, while the first doesn't. Treat optional fields as optional in your code.
- `pagination.has_more` tells you whether to request the next `page`.
## How do you look up a dealer?
To look up a dealer, take `seller.service_provider_id` from a listing and pass it to `/v1/cargurus/dealer`, which costs 1 credit on success. The dealer ID in the recorded response is `349337`, for the Charlotte, NC seller above. The parameter is a string of up to 20 characters.
```bash
curl "https://api.perceptlayer.com/v1/cargurus/dealer?service_provider_id=349337" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a dealer response, so the fields it returns aren't shown here. The [Dealer endpoint page](https://perceptlayer.com/apis/cargurus/dealer) lists it and its playground runs the call.
The listing already includes the seller's `name`, `city`, `region` and `postal_code`, so you only need the dealer call when you want the dealer record itself. Collect the distinct `service_provider_id` values from your search results first and call `dealer` once per ID, not once per listing.
## What does a regional inventory pull cost?
A regional inventory pull costs one credit per successful call, so the cost is the call count: the lookups, plus one search call per page per model, plus one dealer call per distinct dealer. Failed calls aren't billed. The numbers below are an illustration for planning, not a measurement.
Say you track 40 models. The lookups are one `makes` call, plus one `models` call for each make involved. Take 10 makes: 1 + 10 = 11 credits, and you cache them.
Then search each model. If each model's results fit on 3 pages, that's 40 models × 3 pages = 120 credits per full pass. Add 25 distinct dealers at 1 credit each: 25 credits. One refresh is 120 + 25 = 145 credits.
Run that daily for 30 days: 30 × 145 = 4,350 credits. The 100 free credits on signup are less than one 145-credit refresh, so use them to test a few models first. Credits are prepaid in packs starting at 10,000 (Starter), which covers the daily job for two months (10,000 ÷ 4,350 = 2.3), and purchased credits last 12 months. The [pricing page](https://perceptlayer.com/pricing) has what credits cost, and the [credits docs](https://docs.perceptlayer.com/credits) explain how a call is debited.
Your own page count will differ. In the recorded response, the whole result fit on one page, with `page_count` 1 and `total` 21. Run a model once and read `pagination.page_count` before you multiply.
Failed calls cost nothing and return `X-Credits-Used: 0`. Successful responses carry `X-Credits-Used` and `X-Credits-Remaining`, so you can log the balance as a job runs.
## How do you page through results safely?
To page through results safely, request `page` 1, read `pagination.has_more`, and keep going until it's false. Back off when you get a 429, using the `Retry-After` header, and don't retry blindly after a client timeout. Cap the number of pages per run so a bug can't spend credits without limit.
```python
import os
import time
import requests
URL = "https://api.perceptlayer.com/v1/cargurus/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def fetch_all(path, max_pages=20):
listings = []
for page in range(1, max_pages + 1):
while True:
r = requests.get(
URL,
headers=HEADERS,
params={"make_model_trim_paths": path, "page": page},
timeout=30,
)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
break
r.raise_for_status()
data = r.json()["data"]
listings.extend(data["listings"])
if not data["pagination"]["has_more"]:
break
return listings
cars = fetch_all("m26/d126")
print(len(cars))
```
`max_pages` caps the spend of one run. Requests have no idempotency key, so a call whose reply was lost may have succeeded and been billed. [Retry web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers that, and [paginate a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python) goes deeper on loops.
Rate limits are per account and counted per minute. Free accounts get 1 request a second, and paid packs include faster rates. See the [rate limits docs](https://docs.perceptlayer.com/rate-limits) and [error codes](https://docs.perceptlayer.com/errors) for the full list.
## What should you know before you build on it?
Data is collected from publicly available sources and returned as found at the time of the call. A listing can be sold or repriced after you fetch it, so treat a response as a snapshot and store the time you fetched it.
CarGurus is a marketplace for dealer inventory, and this API reads its listings. If you need a different region, [AutoScout24 covers European listings](https://perceptlayer.com/blog/autoscout24-api-car-listings-json). For your own inventory, your dealer management system is the system of record, so use it there rather than reading your own cars back from public listings.
For agents, the same endpoints are available as MCP tools. `search_endpoints` and `get_endpoint` only look up the catalogue and cost nothing; `call_endpoint` runs the call and spends 1 credit on success. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) show the setup.
Ready to run it? [Get a free API key](https://perceptlayer.com/signup), send the `makes` call above, and follow the IDs through to `search`. You can browse the [CarGurus endpoints](https://perceptlayer.com/apis/cargurus) or the other [API guides](https://perceptlayer.com/blog/category/api-guides) from there. For background on the source, see [CarGurus](https://www.cargurus.com/), and for the header behind the backoff above, see the [`Retry-After` definition in RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#field.retry-after).
## APIs in this post
- [CarGurus **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/cargurus)
## Frequently asked questions
### How much does the CarGurus API cost per call?
Each successful call to `makes`, `models`, `search` or `dealer` costs 1 credit. Failed calls cost nothing and return `X-Credits-Used: 0`. Every account gets 100 free credits after verifying an email, with no credit card. The [pricing page](https://perceptlayer.com/pricing) shows what credits cost.
### Can I search by price range?
Yes. `search` takes `price_min` and `price_max` as integers, and you can combine them with `distance`, `sort` and `sort_direction`. The `sort` parameter accepts `best_match`, `deal_score`, `price`, `mileage`, `distance` or `date`, and `sort_direction` accepts `asc` or `desc`.
### Where do I get the service\_provider\_id for the dealer endpoint?
Read it from `seller.service_provider_id` in any search listing. In the recorded response, one listing's seller has `service_provider_id` `349337`. Pass that string, up to 20 characters, to `/v1/cargurus/dealer`. Deduplicate IDs first so you pay for each dealer once.
### What happens if I hit the rate limit?
You get a 429 `rate_limited` response with a `Retry-After` header giving the seconds to wait, and the call isn't billed. Limits are per account, counted per minute. Free accounts get 1 request a second. Read `RateLimit-Remaining` to pace a loop before you hit the limit.
### Do I need a CarGurus account or key?
No. You need a Perceptlayer API key, sent in the `X-API-Key` header. Sign up for one free, and your 100 free credits, granted once when you verify your email, cover 100 calls at 1 credit each. The [quick start](https://docs.perceptlayer.com/quickstart) walks through the first request.
cars cargurus used cars listings dealers
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 4 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [AutoScout24 API: Search European Car Listings as JSON](https://perceptlayer.com/blog/autoscout24-api-car-listings-json)
Search AutoScout24 listings as JSON: make\_id and price filters, a recorded BMW response, and what a monthly price sweep costs in credits.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
---
title: "Flatten Nested JSON to CSV in Python: Two Ways Compared"
description: "Flatten a recorded Zillow response to CSV with pandas json_normalize (60 columns) and plain Python (63), split photo lists into a child table, fix integers."
url: https://perceptlayer.com/blog/web-data-to-csv-python
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Flatten Nested JSON to CSV in Python: Two Ways Compared
29 Jul 2026 Perceptlayer 6 min read
To flatten nested JSON to CSV in Python, turn every nested object into dotted column names, decide what to do with lists, and write the rows with `csv` or pandas. `pandas.json_normalize` does the objects in one call but leaves lists as Python lists inside cells. On a recorded Zillow search response it produced 60 columns with 4 holding lists; a plain-Python flattener produced 63 by turning lists into counts and joined strings. This tutorial runs both, then builds the CSV you'd actually use.
## Key takeaways
- `pd.json_normalize(listings)` flattened the 3 recorded Zillow listings into 60 columns, such as `address.zipcode` and `price.value`. Four columns still held lists.
- A 20-line recursive function gave 63 columns: each list became a `.count` column, plus a `|`\-joined column when its items are plain values.
- Lists of things, such as photos, belong in a child table keyed on the parent ID. Exploding 3 photos each for 3 listings gives 9 rows.
- Six of the 60 columns are missing on some listings. `estimates.zestimate` exists on 1 of 3, so pandas turned it into a float column until we cast it to `Int64`.
- Selecting and renaming 13 fields, plus a photo count, gives a 14-column CSV that's easier to load and check than either full flattening.
## Step 1: What does the nested JSON look like?
The input is a Zillow search response: a `data.listings` array where each listing nests objects several levels deep and carries lists of photo URLs. Get it with one call to `/v1/zillow/search`, 1 credit on success. This is the request behind our recorded response:
```bash
curl "https://api.perceptlayer.com/v1/zillow/search?latitude=47.6062&longitude=-122.3321&radius_mi=5&listing_category=category1&page_size=20" \
-H "X-API-Key: $API_KEY" -o zillow.json
```
The recording is trimmed to 3 listings, which keeps the counts below easy to check. One listing, cut down with `…`:
```json
{
"zpid": 2068074790,
"location": { "latitude": 47.592564, "longitude": -122.386925 },
"address": { "streetAddress": "1124 Sunset Avenue SW", "zipcode": "98116", "city": "Seattle", "state": "WA" },
"media": {
"propertyPhotoLinks": { "mediumSizeLink": "…", "highResolutionLink": "…" },
"allPropertyPhotos": {
"medium": ["https://photos.zillowstatic.com/fp/4218b6d4de5511b0d968347ddf298954-p_c.jpg", "…", "…"],
"highResolution": ["https://photos.zillowstatic.com/fp/4218b6d4de5511b0d968347ddf298954-p_f.jpg", "…", "…"]
},
…
},
"bathrooms": 6,
"bedrooms": 4,
"livingArea": 7870,
"yearBuilt": 2015,
"propertyType": "singleFamily",
"price": { "value": 14000000, "pricePerSquareFoot": 1779 },
"estimates": { "zestimate": 13068300 },
"listing": { "listingStatus": "forSale", "marketingStatus": "active", … },
…
}
```
Three shapes need handling: nested objects ( `address`, `price`), lists of strings (the photo URLs), and objects that appear on some listings and not others ( `estimates`). The search response has no price history; Zillow's `property` endpoint takes `zpid[]` for detail, so treat any list it returns the way Step 4 treats photos. [Get a free API key](https://perceptlayer.com/signup) to record your own, and see the [Zillow API page](https://perceptlayer.com/apis/zillow) for the search parameters.
## Step 2: How does pandas json\_normalize flatten it?
`pd.json_normalize` takes a list of dicts and turns nested keys into column names joined by `sep`, a dot by default. With no `record_path` it treats the input as an array of records, and `max_level` caps how many levels it flattens ( [pandas documentation](https://pandas.pydata.org/docs/reference/api/pandas.json_normalize.html), 2026). One call handles every nested object in the listings.
```python
import json
import pandas as pd
listings = json.load(open("zillow.json"))["data"]["listings"]
df = pd.json_normalize(listings)
list_cols = [c for c in df.columns if df[c].map(lambda v: isinstance(v, list)).any()]
print(len(df), "rows x", len(df.columns), "columns;", len(list_cols), "hold lists:", list_cols)
```
On the recorded response this prints:
```text
3 rows x 60 columns; 4 hold lists: ['richMedia', 'media.allPropertyPhotos.medium', 'media.allPropertyPhotos.highResolution', 'listCardRecommendation.flexFieldRecommendations']
```
Every object became columns, and every list stayed a list. Write `df.to_csv()` now and those four columns hold Python reprs such as `['https://…', '…']`, which a spreadsheet shows as text and a database can't query. `json_normalize` can expand one list into rows with `record_path`, but only one at a time, and each listing here has several.
## Step 3: How do you flatten it with plain Python?
Recurse through each object, build dotted names, and choose a rule for lists. The rule below writes a `.count` column for every list, and also a `|`\-joined column when the list holds plain values such as URLs. Lists of objects get only the count, since joining them would produce unreadable text.
```python
import csv
def flatten(obj, prefix="", out=None):
out = {} if out is None else out
for key, value in obj.items():
name = f"{prefix}{key}"
if isinstance(value, dict):
flatten(value, f"{name}.", out)
elif isinstance(value, list):
out[f"{name}.count"] = len(value)
if value and all(isinstance(v, (str, int, float)) for v in value):
out[name] = "|".join(str(v) for v in value)
else:
out[name] = value
return out
rows = [flatten(item) for item in listings]
columns = sorted({k for r in rows for k in r})
with open("listings_flat.csv", "w", newline="") as f:
writer = csv.DictWriter(f, fieldnames=columns)
writer.writeheader()
writer.writerows(rows)
print(len(rows), "rows x", len(columns), "columns")
```
It prints `3 rows x 63 columns`. The three extra columns over pandas are the counts: four lists, each with a `.count` column, while `richMedia`, a list of objects, gets only its count. Columns come from the union of all rows' keys, so a field that exists on one listing still gets a column, and `DictWriter` leaves the other rows' cells empty.
| Approach | Columns | Lists | Missing fields |
| --- | --- | --- | --- |
| `pd.json_normalize` | 60 | 4 columns hold Python lists | `NaN`, and integer columns become floats |
| Plain Python `flatten` | 63 | `.count` plus a \` | \`-joined column |
| Selected columns (Step 5) | 14 | Photo count only | `` with nullable types |
## Step 4: Where should the lists go?
Into their own table, one row per item, with the parent's ID. A listing's photos are a one-to-many relationship, and a CSV cell is the wrong place for one. pandas does it with `explode`, which turns each list element into its own row and repeats the other columns.
```python
photos = (df[["zpid", "media.allPropertyPhotos.highResolution"]]
.explode("media.allPropertyPhotos.highResolution")
.rename(columns={"media.allPropertyPhotos.highResolution": "photo_url"})
.dropna())
photos.to_csv("listing_photos.csv", index=False)
print(len(photos), "photo rows")
```
The recording has 3 high-resolution photos per listing, so this writes 9 rows, each `zpid` and one URL. Load both files into a database and join on `zpid` when you need photos with listings. Do the same for any other list you need, such as a property's price history from a detail endpoint.
## Step 5: How do you build the CSV you'll actually use?
Pick the fields your analysis reads, give them short names, and set types that survive missing values. Full flattening is a good way to see what's there; a fixed column list is what you should load, because it doesn't change when the response gains a field. It also exposes a pandas trap: `estimates.zestimate` exists on only 1 of the 3 listings.
```python
KEEP = {"zpid": "zpid", "address.streetAddress": "street", "address.zipcode": "zip",
"price.value": "price", "price.pricePerSquareFoot": "price_per_sqft",
"bedrooms": "beds", "bathrooms": "baths", "livingArea": "sqft",
"yearBuilt": "year_built", "propertyType": "type",
"estimates.zestimate": "zestimate", "location.latitude": "lat", "location.longitude": "lon"}
slim = df[[c for c in KEEP if c in df.columns]].rename(columns=KEEP)
slim["zestimate"] = slim["zestimate"].astype("Int64")
slim["photo_count"] = df["media.allPropertyPhotos.highResolution"].map(
lambda v: len(v) if isinstance(v, list) else 0)
slim.to_csv("listings_slim.csv", index=False)
print(slim[["zpid", "zip", "price", "beds", "sqft", "zestimate", "photo_count"]].to_string(index=False))
```
```text
zpid zip price beds sqft zestimate photo_count
2068074790 98116 14000000 4 7870 13068300 3
49046647 98122 1050000 4 2100 3
49147344 98112 585000 1 760 3
```
Without the `astype("Int64")` line, the zestimate column prints as `13068300.0`, `NaN`, `NaN`. pandas' docs explain why: NaN is a float, so an integer column with any missing value becomes floating point unless you ask for the nullable integer type ( [pandas user guide](https://pandas.pydata.org/docs/user_guide/integer_na.html), 2026). That matters most for IDs, where a float can silently change the value.
## How do you append each day's pull to one CSV?
Write against a fixed column list, not the columns of the day. A plain `flatten` builds its header from whatever keys that day's listings have, so two days' files can have different columns in a different order, and appending one to the other misaligns every row. Use the selected `KEEP` names as the header, add a date column, and write the header only when the file is new.
```python
import datetime as dt
import os
def append_day(slim, path="listings_daily.csv"):
out = slim.assign(pulled_on=dt.date.today().isoformat())
cols = ["pulled_on", *KEEP.values(), "photo_count"]
out.reindex(columns=cols).to_csv(path, mode="a", index=False,
header=not os.path.exists(path))
```
`reindex` adds any missing column as empty and drops unexpected ones, so the file keeps one shape even when a day's response doesn't. Keep the full flattened file alongside it if you want a record of everything the response contained.
## What should you check in the result?
Three things. Column count: compare it with the last run, since a new column means the response changed shape. The guide to [detecting schema changes in API JSON](https://perceptlayer.com/blog/web-data-api-json-schema-changes) automates that. Sparse columns: in this recording, 6 of the 60 `json_normalize` columns are missing on some listings, including `title`, `estimates.zestimate` and both `taxAssessment` fields. Sparse doesn't mean broken, but know which columns your analysis can rely on.
Third, types after the round trip. CSV stores text, so zip codes such as `98116` should stay strings when you read the file back ( `dtype={"zip": str}` in `pd.read_csv`), and booleans come back as `True`/ `False` text. If the data is going into a database rather than a spreadsheet, skip CSV and load the JSON directly; the tutorial on [loading API JSON into Postgres](https://perceptlayer.com/blog/load-web-data-json-into-postgres) keeps the raw response next to typed columns.
## What does it cost?
Flattening is local, so the only cost is the API calls that fetch the JSON: 1 credit per successful Zillow search, and nothing for failed calls. A daily pull of 5 search pages for one area is 5 × 30 = 150 credits a month. The 100 free credits on signup cover the first 20 days, and a 10,000-credit Starter pack covers it for the 12 months purchased credits last. The [credits docs](https://docs.perceptlayer.com/credits) explain the balance, and [pricing](https://perceptlayer.com/pricing) has what packs cost. To get your own response to flatten, run a search in the playground on the [Zillow search endpoint page](https://perceptlayer.com/apis/zillow/search) and save the JSON.
## APIs in this post
- [Zillow **1 credit per call** · 20 endpoints](https://perceptlayer.com/apis/zillow)
## Frequently asked questions
### Should I use json\_normalize or write my own flattener?
Use `json_normalize` to explore and when you're already in pandas: it flattens every nested object in one call. Write your own when you need a rule for lists, such as counts or joined strings, or want no pandas dependency. For loading, prefer a fixed list of selected columns over either full flattening.
### How do I flatten a list of objects into rows?
Use `explode` on the list column to get one row per item, then `pd.json_normalize` on the exploded items if they're objects, keeping the parent ID on every row. Or use `json_normalize` with `record_path` pointing at the list and `meta` naming the parent fields to carry along. Either way, write the result as a separate table.
### Why did my integer column turn into floats?
Because some rows are missing the value, and pandas represents missing values in a default integer column as NaN, which is a float. Cast the column with `astype("Int64")`, or call `convert_dtypes()` on the frame, to get nullable integers that print `` for missing values.
### How do I keep zip codes from losing leading zeros?
Treat them as strings end to end. The Zillow response already returns `zipcode` as a string, such as `"98116"`, so the problem appears when reading the CSV back. Pass `dtype={"zip": str}` to `pd.read_csv`, or set the column type to text in your spreadsheet before importing.
### Does flattening cost credits?
No. Flattening runs on a response you've already fetched. Only the API call costs credits, 1 per successful Zillow search, and failed calls cost nothing. Store the raw JSON so you can re-flatten it with new rules later without calling the API again.
python json csv pandas data engineering
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 16 Sept 2026 Updated 24 Oct 2026 Perceptlayer 7 min read
## [Save API JSON to Parquet in Python](https://perceptlayer.com/blog/save-api-json-to-parquet-python)
Write API JSON to date-partitioned Parquet with pyarrow and a fixed schema, so a price that arrives as 441 one day and 393.73 the next doesn't break it.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
---
title: "Indeed Jobs API: Get Job Postings as JSON | Perceptlayer"
description: "One GET to /v1/indeed/jobs returns job postings with company, location and apply URL as JSON for 1 credit. Parameters, a real response and monthly cost."
url: https://perceptlayer.com/blog/indeed-jobs-api-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Indeed Jobs API: Get Job Postings as JSON
29 Jul 2026 Updated 6 Nov 2026 Perceptlayer 8 min read
You can get Indeed job postings as JSON with a single `GET /v1/indeed/jobs` call. Pass a `query`, optionally narrow it with `location`, `country` and `job_type`, and send your key in the `X-API-Key` header. Each successful call costs 1 credit, and failed calls cost nothing. There's no partner application: a free key is all you need.
## Key takeaways
- `GET /v1/indeed/jobs` is the job search endpoint this post covers; the Indeed API has 9 endpoints in all, including job details, company profiles, reviews and salaries. Only `query` is required.
- Each job has an `id`, `title`, `company`, a `location` object with coordinates and `is_remote`, `description_html`, `attributes`, `date_published` and `apply_url`.
- A successful call costs 1 credit, so 1,000 calls cost 1,000 credits. Failed calls return `X-Credits-Used: 0`.
- The free tier gives 100 credits once, after you verify an email address, with no credit card.
- Tracking one role with a daily call for a month uses 30 credits.
## Is there still an official Indeed jobs API?
Indeed's partner documentation describes its Job Sync API as a way to "create and manage job postings on Indeed and Indeed PLUS", and says Indeed creates an app for your integration once you become a partner ( [Indeed partner docs](https://docs.indeed.com/job-sync-api/integrate-with-job-sync-api), 2026). That is access for posting jobs, and it goes through a partner agreement.
If you're an employer or ATS vendor, that is the route to check first. If you want to read postings for a role in a city, for market research, alerts or an agent's tool, the Perceptlayer [Indeed API](https://perceptlayer.com/apis/indeed) returns postings as JSON from its `jobs` endpoint, with a free key and no partner application.
## How do you make your first Indeed jobs request?
Get a free key at [/signup](https://perceptlayer.com/signup), then send one GET request. The base URL is `https://api.perceptlayer.com`, the path is `/v1/indeed/jobs`, and the key goes in the `X-API-Key` header. Keys start with `sk_live_`. The call below searches for full-time software engineer roles in Berlin and asks for 20 results.
```bash
curl "https://api.perceptlayer.com/v1/indeed/jobs?query=software+engineer&location=Berlin&country=DE&job_type=full_time&limit=20" \
-H "X-API-Key: $API_KEY"
```
Values in the query string need URL encoding, so a space becomes `%20` ( [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986)), or `+` in form-style query strings like the one above. If you can't set headers, the key also works as an `api_key` query parameter, but a header keeps it out of logs and URLs. The [authentication docs](https://docs.perceptlayer.com/authentication) cover both.
You can also run the call without writing code. Open the [Indeed API: Jobs page](https://perceptlayer.com/apis/indeed/jobs), fill in the parameters and run it in the playground with your key.
## Which parameters does the Indeed jobs endpoint take?
The endpoint takes one required parameter, `query`, and ten optional ones that narrow by place, job type, order and page. Everything below is documented. Nothing else about defaults or page sizes is, so set `limit` explicitly if you care about how many results you get per call.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | yes | Search text, up to 500 characters |
| `location` | string | no | City or region text, up to 200 characters |
| `country` | string | no | Up to 2 characters, for example `DE` |
| `radius` | integer | no | Search distance around `location` |
| `radius_unit` | string | no | `MILES` or `KILOMETERS` |
| `job_type` | string | no | `full_time`, `part_time`, `contract`, `internship` or `remote` |
| `sort` | string | no | `relevance` or `date` |
| `limit` | integer | no | Number of results to ask for |
| `cursor` | string | no | Pass `data.pagination.next_cursor` from the previous response |
| `hl` | string | no | Up to 2 characters; not documented further |
| `gl` | string | no | Up to 2 characters; not documented further |
Two combinations cover most tracking work. Use `sort=date` to order postings by date rather than by `relevance`. Use `radius` with `radius_unit` to widen a city search to the surrounding area. The full list of calls is on the [Indeed API page](https://perceptlayer.com/apis/indeed), and the [requests docs](https://docs.perceptlayer.com/requests) explain parameter handling across the API.
## What does the response look like?
A successful call returns `success: true`, a `data.jobs` array, a `data.pagination` object with `next_cursor` and `has_more`, and `data.metadata` with `total_results` and a `timestamp`. Each job is a flat object with nested `company` and `location` objects, so you can read the fields without parsing HTML around them. The excerpt below is trimmed from a recorded response to the Berlin request above, with `…` marking where we cut.
```json
{
"success": true,
"data": {
"jobs": [
{
"id": "61ac648a11df5cc6",
"title": "Product Designer",
"company": {
"name": "Telli",
"profile_url": "/cmp/Telli"
},
"location": {
"city": "Berlin",
"state": "BE",
"country": "DE",
"country_name": "Deutschland",
"formatted": "Berlin",
"latitude": 52.52437,
"longitude": 13.41053,
"is_remote": false
},
"description_html": "about us
\nEvery 10 minutes, 18 million conversations happen between businesses and consumers around the worl…",
"attributes": [
"Full-time",
"UI design"
],
"date_published": "2025-07-21 05:00:00",
"apply_url": "https://jobs.ashbyhq.com/telli/156032e9-0e1d-4f7f-9ac7-c828ba49964d?utm_source=l6jqqRwnQ5"
},
…
],
"pagination": {
"next_cursor": "ABQAAYEAFAAAAAAAAAAAAAAAAmYRNdcAMgEBAQcpfSGrk7wi9QBuLZ6BEihQwmDA0xA2nDAGrqtuJIdLnPZKyLE0IcnT2+IETfyRAAA=",
"has_more": true
},
"metadata": {
"total_results": 20,
"timestamp": "2026-10-21T13:25:37.233649Z"
}
}
}
```
Notice that the query asked for software engineers and the first posting is a product designer. Search relevance is not a filter, so check `title` on your side if you need an exact match.
### What do the fields mean for your pipeline?
| Field | Use it for |
| --- | --- |
| `id` | Identifying each posting, for example as a key in your own store |
| `title` | Matching roles and grouping by seniority |
| `company.name` | Counting who is hiring |
| `location.latitude`, `location.longitude` | Mapping postings |
| `location.is_remote` | Splitting remote from on-site roles |
| `attributes` | Skills and employment type tags, such as `Full-time` |
| `date_published` | Telling new postings from old ones |
| `apply_url` | Linking to the application page |
| `data.pagination.has_more` | Deciding whether another page exists |
| `data.pagination.next_cursor` | Passing as `cursor` to request the next page |
| `data.metadata.total_results` | Seeing how many postings this response holds (20 in the recording) |
`description_html` is HTML, so strip tags or render it safely before you store it as text. In the recorded sample, `date_published` for one posting is from 2025 and others are from 2026, so an old posting can still appear in results. Filter on that field if you only want recent ones. Data is returned as found at the time of the call.
## How do you track a role in Python?
To track a role, call the endpoint on a schedule, sort by date and store the `id` values you've seen. This script is a sketch built from the documented parameters and the recorded response shape. It reads your key from `API_KEY`, requests the newest 20 full-time postings and prints the ones whose `id` isn't in your local file. If `data.pagination.has_more` is true, it can optionally fetch a second page by passing `next_cursor` as `cursor`, which costs one more credit. The script uses `id` as the posting's key, the same field shown in the recorded response.
```python
import json
import os
import requests
URL = "https://api.perceptlayer.com/v1/indeed/jobs"
SEEN_FILE = "seen_ids.json"
params = {
"query": "software engineer",
"location": "Berlin",
"country": "DE",
"job_type": "full_time",
"sort": "date",
"limit": 20,
}
FETCH_SECOND_PAGE = False # each extra page costs 1 more credit
headers = {"X-API-Key": os.environ["API_KEY"]}
resp = requests.get(URL, params=params, headers=headers, timeout=30)
resp.raise_for_status()
seen = set(json.load(open(SEEN_FILE))) if os.path.exists(SEEN_FILE) else set()
data = resp.json()["data"]
jobs = data["jobs"]
if FETCH_SECOND_PAGE and data["pagination"]["has_more"]:
page2 = requests.get(
URL,
params={**params, "cursor": data["pagination"]["next_cursor"]},
headers=headers,
timeout=30,
)
page2.raise_for_status()
jobs += page2.json()["data"]["jobs"]
for job in jobs:
if job["id"] not in seen:
print(job["date_published"], job["title"], "-", job["company"]["name"], job["apply_url"])
json.dump(sorted(seen | {j["id"] for j in jobs}), open(SEEN_FILE, "w"))
print("credits used:", resp.headers.get("X-Credits-Used"), "remaining:", resp.headers.get("X-Credits-Remaining"))
```
Every successful response carries `X-Credits-Used` and `X-Credits-Remaining`, so you can stop when the balance gets low. For paging, the response carries `data.pagination.has_more` and `data.pagination.next_cursor`. While `has_more` is true, send `next_cursor` back as the `cursor` parameter to get the next page. Each extra page is another call and another credit. For safe page loops, see [Paginate a Web Data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
## What does it cost to track a role for a month?
Each successful call costs 1 credit, so cost is a call count. One daily call for a month is 30 calls × 1 credit = 30 credits, so the free tier's 100 credits, granted once, cover the first 3 months. Ten roles checked daily is 300 credits a month; the free credits cover its first 10 days. Checking those same ten roles every hour is 10 roles × 24 calls × 30 days = 7,200 credits.
| Plan | Calls | Credits | Cost |
| --- | --- | --- | --- |
| One role, daily | 30 | 30 | Free credits cover the first 3 months |
| Ten roles, daily | 300 | 300 | Free credits cover 10 days, then a pack |
| Ten roles, hourly | 7,200 | 7,200 | Within the Starter pack's 10,000 credits |
Credits come in prepaid packs of 10,000, 50,000, 200,000, 500,000, 1,000,000 and 5,000,000 credits. Purchased credits last 12 months, with no subscription and no seats. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits) for how they're spent.
The service is prepaid. When the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited, and there is no automatic top-up. That makes a runaway loop cost a bounded amount. For agents that call tools on their own, [AI Agent API Cost Control](https://perceptlayer.com/blog/ai-agent-web-data-costs) covers caps in more detail.
## How do you handle errors and rate limits?
Errors come back as an HTTP status with a JSON body of the form `{"error": {"code", "message", "request_id"}}`. A failed call returns `X-Credits-Used: 0`, so retrying an error response costs nothing for the failure itself. One caveat: requests have no idempotency key, so a request whose reply was lost (a client timeout) may have succeeded and been billed. Retrying that one can cost a second credit; [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers how to handle it. Branch on `error.code` rather than the message text, and log `request_id` so you can quote it if you need help.
| Code | Status | What to do |
| --- | --- | --- |
| `invalid_api_key` | 401 | Check the key and the `X-API-Key` header |
| `insufficient_credits` | 402 | Add credits, then retry |
| `invalid_parameters` | 422 | Check lengths and allowed values, such as `job_type` |
| `rate_limited` | 429 | Wait the seconds in the `Retry-After` header, then retry |
| `source_error` | 502 | Retry after a short delay |
| `temporarily_unavailable` | 503 | Wait the seconds in the `Retry-After` header, then retry |
The [errors docs](https://docs.perceptlayer.com/errors) list every code, and the [rate limits docs](https://docs.perceptlayer.com/rate-limits) describe the limits. Keep retries to a small, bounded number with a growing delay.
## Can an AI agent search jobs through MCP?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing. `call_endpoint` spends the endpoint's credits on success only, and its result reports the credits used and remaining.
In Claude Code, add the server with one command, then ask for jobs in plain language.
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp --header "Authorization: Bearer $API_KEY"
```
The agent finds `/v1/indeed/jobs` through `search_endpoints`, reads its parameters with `get_endpoint` and runs it with `call_endpoint`. For a full walkthrough, see [Claude MCP Web Search](https://perceptlayer.com/blog/claude-agent-live-search-mcp) and the [MCP docs](https://docs.perceptlayer.com/ai-agents).
## Where does this fit, and what's next?
Use the endpoint when you want postings for a role and place as JSON, with a cost you can calculate in advance. It returns one source's listings, so it won't replace a hiring pipeline or a candidate database. Browse other job sources in the [Jobs APIs](https://perceptlayer.com/verticals/jobs), or see how a similar single-endpoint guide works in [Zillow Listings API](https://perceptlayer.com/blog/zillow-listings-api-json) and the rest of the [API guides](https://perceptlayer.com/blog/category/api-guides).
Your next step: [get a free API key](https://perceptlayer.com/signup) and run the cURL call above with your own `query` and `location`.
## APIs in this post
- [Indeed **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/indeed)
## Frequently asked questions
### Does Indeed still have a public jobs API?
Indeed's partner documentation describes an API for creating and managing job postings, available to partners who sign a developer agreement ( [Indeed partner docs](https://docs.indeed.com/job-sync-api/integrate-with-job-sync-api), 2026). That page covers posting jobs, not reading search results. If you just need to read job postings for a role and location, the Perceptlayer Indeed endpoint returns them as JSON with a free key and no partner application.
### How much does each Indeed jobs call cost?
A successful call to `/v1/indeed/jobs` costs 1 credit. Failed calls cost nothing and return `X-Credits-Used: 0`. The free tier gives 100 credits once, after email verification, with no credit card. Paid packs start at 10,000 credits, which is 10,000 calls at 1 credit each; see [pricing](https://perceptlayer.com/pricing) for what credits cost.
### Which fields does each job posting include?
Each job has `id`, `title`, `company` (with `name` and `profile_url`), a `location` object with `city`, `country`, coordinates and `is_remote`, `description_html`, `attributes`, `date_published` and `apply_url`. The recorded response in this article shows the exact shape.
### Can I filter for remote or contract roles?
Yes. Set `job_type` to `remote`, `contract`, `full_time`, `part_time` or `internship`. Each job's `location.is_remote` field also tells you whether a posting is remote, so you can filter again on your side. An invalid value returns `invalid_parameters` (422) and costs nothing.
### Is the data complete and up to date?
Data is collected from publicly available sources and returned as found at the time of the call. That means a result reflects what was available when you made the request. Postings can be old, as the `date_published` values in the sample show, so filter on that field if recency matters.
### Should I build an Indeed scraper instead?
An Indeed scraper means maintaining parsers for search and job pages, handling blocks and following Indeed's terms. The jobs endpoint returns company, location and apply URL as named JSON fields for 1 credit per successful call. A scraper only makes sense for data the endpoint doesn't return, so compare in the playground on the Indeed API page first.
jobs indeed job postings api
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Nov 2026 Perceptlayer 9 min read
## [Indeed Scraper or API: Postings, Companies, Salaries](https://perceptlayer.com/blog/indeed-scraper-vs-api)
An Indeed scraper parses five kinds of page; 9 Indeed endpoints return them as JSON at 1 credit a call. A recorded Berlin search is 0.05 credits a posting.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 1 Nov 2026 Perceptlayer 8 min read
## [LinkedIn Scraper or API: What You Can Get](https://perceptlayer.com/blog/linkedin-scraper-vs-api)
Compare a DIY LinkedIn scraper with company, job and public post endpoints at 1 credit a call: setup, upkeep, terms and a verdict per use case.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 1 Oct 2026 Perceptlayer 8 min read
## [Job Posting Data for Labour-Market Research](https://perceptlayer.com/blog/job-posting-data-labour-market-research)
Which Indeed posting fields support trend analysis, where postings mislead versus hires, and a weekly collection plan that costs 3,000 credits a month.
---
title: "Retry Web API Calls Without Paying Twice | Perceptlayer"
description: "Retry only 429, 502 and 503. Failed responses return X-Credits-Used: 0, but a timeout is the gap. The credit arithmetic, a Python loop and a balance check."
url: https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Retry Web API Calls Without Paying Twice
27 Jul 2026 Perceptlayer 10 min read
Retry only the statuses that can succeed on a second try: `429`, `502` and `503`. Wait a random time below a doubling cap, give up after a handful of attempts, and fail fast on everything else. On Perceptlayer a failed response costs nothing and returns `X-Credits-Used: 0`, so a retry after an error you received adds nothing to your bill. A timeout is different: you never saw the response, and Perceptlayer requests have no idempotency key, so a retry after a timeout can be a second paid call.
## Key takeaways
- Retry `rate_limited` (429), `source_error` (502) and `temporarily_unavailable` (503). Do not retry `invalid_api_key` (401), `restricted_endpoint` (403), `not_found` (404) or `invalid_parameters` (422): the same request fails the same way.
- Treat `insufficient_credits` (402) as a stop signal for the whole job, not a request to retry. The balance only changes when you top up.
- Add jitter to the wait, a random delay below a doubling cap, so rejected clients don't all retry at the same moment.
- Every failed response you receive returns `X-Credits-Used: 0`. Ten failed responses followed by one success cost 1 credit, the same as a first-try success. A timeout is the exception to plan for: check `X-Credits-Remaining` between successes.
- Cap attempts and total wait. A retry loop with no ceiling turns an outage into a hung job.
## Which errors are worth retrying?
Retry an error only if the next attempt could plausibly return a different answer. A rate limit is about request pace, and the `502` and `503` codes signal trouble on the service side, so waiting and trying again is a reasonable bet. That is our recommendation, not a guarantee, which is why the loop caps attempts. A malformed parameter or a revoked key will fail identically every time, so retrying it only wastes time.
Perceptlayer errors come back as an HTTP status plus a JSON body, `{"error": {"code", "message", "request_id"}}`. Branch on the status or the `code`, and keep the `request_id` for any support conversation. The full list is in the [errors docs](https://docs.perceptlayer.com/errors).
| Status | Code | Retry? | Why |
| --- | --- | --- | --- |
| 401 | `invalid_api_key` | No | The key is wrong or revoked. Fix the key. |
| 402 | `insufficient_credits` | No, stop the job | The prepaid balance is empty and nothing more is debited. |
| 403 | `restricted_endpoint` | No | Accept the restricted-endpoint terms in the dashboard first. |
| 404 | `not_found` | No | The path or resource doesn't exist. |
| 422 | `invalid_parameters` | No | Correct the parameters, then send a new request. |
| 429 | `rate_limited` | Yes, with backoff | Slow down and try again. See [rate limits](https://docs.perceptlayer.com/rate-limits). |
| 502 | `source_error` | Yes, with backoff | Our recommendation: a later attempt may get a different answer. Cap the attempts. |
| 503 | `temporarily_unavailable` | Yes, with backoff | The name says the condition is temporary, so a later attempt may succeed. |
Network errors and client timeouts belong in the retry set too, with one caveat covered below: when you never saw a response, the zero-cost rule doesn't tell you what happened.
## Why does a retry not cost you twice here?
A call is debited only when it succeeds. Failed calls cost nothing and return `X-Credits-Used: 0`, and a successful response carries `X-Credits-Used` (what the call cost) and `X-Credits-Remaining` (the balance after it). So when you receive an error response and retry, the cost of the request is the cost of its one success: 1 credit for nearly every endpoint, however many error responses came first. The rule covers responses you actually received. It says nothing about an attempt that timed out.
That changes how you design the loop. On an API that bills per attempt, you'd weigh each retry against its price and keep the retry count low. Here the price of an extra attempt that returns an error is zero credits, so the limits you set are about time, load and your own deadline, not money. The [credits docs](https://docs.perceptlayer.com/credits) describe the rule in full.
### The arithmetic
Say a job fetches 10,000 items at 1 credit each.
- Credits spent: 10,000 calls × 1 credit = 10,000 credits, the size of one Starter pack. The [pricing page](https://perceptlayer.com/pricing) shows what credits cost.
- If 800 of those calls hit a `503` first and succeed on the second attempt, you made 10,800 requests and still spent 10,000 credits.
What retries do cost is time and traffic, and time is the budget you tune. With the loop below, the worst case for one call is five attempts. Without a `Retry-After` header that is at most 7.5 seconds of sleeping; when the server sends one, the loop honours it up to the 30-second cap per wait, so four sleeps can reach 120 seconds. Add up to 30 seconds per attempt if each one runs into the client timeout. In the example above, the 800 retried calls add 800 round trips and their waits, not a single credit. Credits stay flat while time grows with the retry count, so you set `max_attempts` and `cap` against your deadline, not your balance.
## How do you retry with exponential backoff and jitter?
Wait longer after each failure and randomise the wait. The ceiling doubles per attempt (0.5 s, 1 s, 2 s, 4 s) and the actual sleep is a random value below it, so clients rejected together don't return together. The pattern is described in AWS's [Exponential Backoff and Jitter](https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/) (2015). The loop below implements it; if you run several workers against one key it matters, and a single sequential script benefits less.
Pacing beats retrying. Request limits are per account, shared by all its keys, and counted per minute: free accounts get 1 request a second (60 a minute). Every response carries `RateLimit-Remaining` (requests left this minute) and `RateLimit-Reset` (seconds until the minute resets), so a worker can slow down or sleep until the reset before it draws a `429`. See [rate limits](https://docs.perceptlayer.com/rate-limits) for paid rates.
### The request
This article doesn't pick an endpoint for you, because the loop works the same on any of them. Open an API from the [API list](https://perceptlayer.com/apis), choose an endpoint in its playground, fill in its parameters and run a real call with your key in the playground, then copy the endpoint URL for `ENDPOINT_URL`. Send your key in the `X-API-Key` header (see [authentication](https://docs.perceptlayer.com/authentication)):
```bash
curl -i "$ENDPOINT_URL" -H "X-API-Key: $API_KEY"
```
The `-i` flag prints the response headers, so you can see `X-Credits-Used` and `X-Credits-Remaining`. On a failed call you'll see `X-Credits-Used: 0`.
If a one-off shell script is all you need, curl can retry for you:
```bash
curl --retry 5 --retry-max-time 60 -i "$ENDPOINT_URL" -H "X-API-Key: $API_KEY"
```
The [curl manual](https://curl.se/docs/manpage.html#--retry) documents `--retry` and `--retry-max-time`; check it for which failures curl retries. It has no notion of your credit balance, so it won't stop a whole job on a `402`. For anything that runs unattended, write the loop yourself.
### The loop
This Python function retries only the retryable statuses, applies full jitter, and raises immediately on everything else. It also waits for the `Retry-After` header, which Perceptlayer sends with `429` and `503` responses (see the [errors docs](https://docs.perceptlayer.com/errors)). It needs `pip install requests`.
```python
import os
import random
import time
import requests
RETRYABLE = {429, 502, 503}
class ApiError(Exception):
def __init__(self, status, code, request_id):
super().__init__(f"{status} {code} (request_id={request_id})")
self.status = status
self.code = code
self.request_id = request_id
def call_with_retry(url, params=None, method="GET",
max_attempts=5, base=0.5, cap=30.0, timeout=30):
headers = {"X-API-Key": os.environ["API_KEY"]}
last = None
for attempt in range(max_attempts):
resp = None
try:
resp = requests.request(method, url, params=params,
headers=headers, timeout=timeout)
except (requests.ConnectionError, requests.Timeout):
last = ApiError(0, "network_error", None)
if resp is not None:
if resp.ok:
return resp
try:
err = resp.json().get("error", {})
except ValueError:
err = {}
last = ApiError(resp.status_code, err.get("code"), err.get("request_id"))
if resp.status_code not in RETRYABLE:
raise last # 401, 402, 403, 404, 422: retrying cannot help
if attempt == max_attempts - 1:
break
wait = random.uniform(0, min(cap, base * 2 ** attempt))
retry_after = resp.headers.get("Retry-After") if resp is not None else None
if retry_after and retry_after.isdigit():
wait = max(wait, min(cap, int(retry_after)))
time.sleep(wait)
raise last
```
Three details are worth a second look. The loop raises on a non-retryable status before it sleeps, so a bad key fails in one round trip. The `Retry-After` branch uses the wait Perceptlayer sends with a `429` or `503`, and falls back to jittered backoff when a response has none. This code reads only a plain number of seconds and ignores any other form of the header. And the final `raise last` surfaces the last real error, with its `request_id`, rather than a generic "retries exhausted".
### The parameters
| Parameter | Default | What it controls |
| --- | --- | --- |
| `max_attempts` | `5` | Total tries, including the first. The loop sleeps at most 4 times. |
| `base` | `0.5` | Seconds for the first delay ceiling. Doubles per attempt. |
| `cap` | `30.0` | Upper bound on any single wait, in seconds. |
| `timeout` | `30` | Seconds before a request counts as a network failure. |
| `method` | `"GET"` | Pass the method your endpoint expects. |
With these defaults the delay ceilings are 0.5, 1, 2 and 4 seconds, so a call that never recovers and gets no `Retry-After` header gives up after at most 7.5 seconds of waiting plus the time of the five attempts themselves. If the server sends `Retry-After`, each wait can rise to the 30-second `cap`, which makes the worst case 120 seconds of sleeping.
## What should you do when a call times out?
A timeout means you never saw the response, so you don't know how that attempt ended. The zero-cost rule applies to failed responses you receive. If the request succeeded on the server and the reply was lost, it may have been debited, and Perceptlayer requests have no idempotency key that would stop the retry from being debited again. Retry anyway, with the same cap on attempts, but check the balance rather than assume.
The check uses `X-Credits-Remaining`. Between two consecutive successes from a single sequential worker, the balance should drop by exactly the second call's `X-Credits-Used`. A bigger drop means a debit you didn't see, most likely a timed-out attempt that went through. To cover the first call too, read a starting balance before the loop: error responses carry `X-Credits-Remaining` as well, so a request with no parameters, which the endpoint should reject, gives you the baseline for free.
```python
import os
url = os.environ["ENDPOINT_URL"]
baseline = requests.get(url, headers={"X-API-Key": os.environ["API_KEY"]}, timeout=30)
previous = int(baseline.headers["X-Credits-Remaining"])
spent = 0
for item in items:
resp = call_with_retry(url, params={"q": item})
used = int(resp.headers["X-Credits-Used"])
remaining = int(resp.headers["X-Credits-Remaining"])
spent += used
if previous - remaining != used:
print(f"unexpected debit: balance fell {previous - remaining}, call cost {used}")
previous = remaining
print(f"spent {spent} credits on confirmed calls, {previous} remaining")
```
This snippet continues from the loop above and reuses its `requests` import. If the endpoint accepts an empty request, the baseline call succeeds and is billed like any other, so pick an endpoint with a required parameter.
Two limits on this check. It only works when nothing else spends from the same key at the same time, so don't run it alongside a second worker or the playground. And it detects extra debits after the fact; it doesn't prevent them. The `params` here are placeholders: use the parameter names the playground shows for your endpoint. Read `X-Credits-Used` from the response, not from a constant, so the check stays right on an endpoint that costs more than 1 credit.
## How do you stop a retry loop from running away?
Bound it three ways: attempts per call, wait per attempt, and failures across the whole job. The first two are the `max_attempts` and `cap` parameters. The third is a circuit breaker. If every call in a window fails with `503`, more retries won't help, and stopping early and resuming later is cheaper than hammering a service that is already down.
A simple version counts consecutive exhausted calls. After a few in a row, pause the job for a minute or two, or exit and let your scheduler start it again. For `402`, don't pause at all: the balance is empty, there is no automatic top-up, and every further call will fail until you add credits. Raise an alert and stop. If the same calls repeat across a job, [caching responses](https://perceptlayer.com/blog/cache-web-data-api-responses) removes some of them before they can fail, and [safe page loops](https://perceptlayer.com/blog/paginate-web-data-api-python) cover the other common long-running pattern. More like this is in the [data engineering category](https://perceptlayer.com/blog/category/data-engineering).
## Can you retry through an AI agent or MCP tool?
Yes, and the cost rule is the same. The `call_endpoint` tool on the MCP server spends the endpoint's credits on success only, and its result reports the credits used and remaining. `search_endpoints` and `get_endpoint` look up the catalogue and cost nothing. An agent that retries a failed `call_endpoint` therefore pays once, on the attempt that works.
Put the retry policy in the tool wrapper or the agent's instructions, not in the model's judgment. Tell it which errors to retry, how many times, and to stop on `insufficient_credits`. A model left to improvise will sometimes retry a `422` with the same parameters. The [MCP docs](https://docs.perceptlayer.com/ai-agents) show how to connect the server.
## Next step
Get a [free API key](https://perceptlayer.com/signup): 100 free credits after you verify an email address, no credit card. Pick an endpoint in the playground on any [API page](https://perceptlayer.com/apis), paste its URL into the loop above and run it. Check the headers on the first response, then send a request with a deliberately bad parameter and confirm it fails once with `X-Credits-Used: 0` and no retries. What credits cost is on the [pricing page](https://perceptlayer.com/pricing).
## Frequently asked questions
### Does a retried request cost extra credits?
Not after an error response you received. A failed call costs nothing and returns `X-Credits-Used: 0`, and only a successful response debits credits. If a request returns three errors and then succeeds, you pay the endpoint's price once. The exception is a timeout: you never saw the response, and Perceptlayer requests have no idempotency key, so a retry can be a second paid call. Compare `X-Credits-Remaining` between successes to catch it.
### Should I retry a 402 insufficient\_credits response?
No. The service is prepaid, and when the balance runs out calls return `insufficient_credits` (402) with nothing further debited. There is no automatic top-up, so a retry will return the same error until you add credits. Stop the job, raise an alert, and resume after you add credits.
### How many retries are reasonable?
Five attempts with a 30-second cap on any single wait is a sound default for most jobs. Retries that return errors cost no credits, so the limit is about your own deadline and load, though timeouts are worth keeping few. If the same call fails after five tries, the problem is probably not transient, so surface the error with its `request_id` rather than looping longer.
### What should I log when a call fails?
Log the HTTP status, the error `code` and the `request_id` from the JSON error body, plus the attempt number. The `request_id` is what you quote in a support conversation. Leave the response body and your key out of the logs.
### How can I test the loop without spending credits?
Send a request with a deliberately invalid parameter. It returns `invalid_parameters` (422) with `X-Credits-Used: 0`, and the loop should raise on the first attempt without retrying. That confirms the fail-fast path and that a failed call is not debited.
retries backoff rate limits credits error handling
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 9 Sept 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [Handle Web Data API Errors in Python: 4xx, 5xx and Timeouts](https://perceptlayer.com/blog/handle-web-data-api-errors-python)
Map the API's error codes to retry, fix or stop in Python: 429 and 503 honour Retry-After, 4xx stops, and failed calls cost 0 credits.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 15 Oct 2026 Perceptlayer 7 min read
## [HTTP 429 Too Many Requests: What It Means and How to Fix It](https://perceptlayer.com/blog/http-429-too-many-requests)
A 429 Too Many Requests response means you hit a rate limit. Read Retry-After, wait that long, then retry; a tested Python loop and the headers to watch.
---
title: "Summarise Restaurant Reviews with an AI Agent | Perceptlayer"
description: "An AI review summarizer for Google Maps and Yelp: themes tied to review IDs, quotes checked against the text, and a flag for claims the reviews don't support."
url: https://perceptlayer.com/blog/ai-restaurant-review-summary-agent
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Summarise Restaurant Reviews with an AI Agent
27 Jul 2026 Perceptlayer 7 min read
An AI review summarizer is only useful if you can check it. This tutorial builds one in Python for a restaurant: it pulls the place's Google Maps and Yelp reviews, normalises them into one list with source-prefixed IDs, asks Claude for themes in a fixed JSON schema where every theme names its review IDs and quotes them word for word, then checks each quote against the cited reviews in code. A summary costs 3 credits per place.
## Key takeaways
- Two endpoints feed the agent: `GET /v1/google-maps/reviews` by `business_id` and `GET /v1/yelp/reviews` by `business` alias, at 1 credit per call.
- Every review gets an ID like `g:…` or `y:…`, and the model must cite those IDs and copy at least one quote per theme; a plain substring check catches quotes that aren't in the cited reviews.
- All six recorded review texts end in an ellipsis and all six are 5-star, so summarise excerpts honestly and balance the sample with Yelp's `sort=lowest`.
- Reviewer names and profile links are dropped before anything reaches the model.
- The normalisation and the citation check were run on recorded responses; the Claude call wasn't run for this article.
## What does the agent do?
It turns a pile of reviews into a short list of themes you can audit. Code does the parts that need to be exact: fetching, normalising, giving each review an ID, and checking the output. The model does the part that needs judgment: grouping reviews into themes and choosing quotes. That split is what makes the summary checkable.
1. Fetch Google Maps reviews for the place's `business_id` and Yelp reviews for its `business` alias.
2. Normalise both into `{id, source, rating, date, language, text}`, with no author fields.
3. Send the list to Claude with a JSON schema: themes, sentiment, review IDs and verbatim quotes.
4. Check every theme: do its IDs exist, and does each quote appear in the reviews it cites?
5. Print the themes and flag any that fail the check as unsupported.
You need Python 3.10 or later, a Perceptlayer API key and an Anthropic API key. [Get a free API key](https://perceptlayer.com/signup); verified accounts get 100 free credits on signup. Install `pip install anthropic requests` and export `PERCEPTLAYER_API_KEY` and `ANTHROPIC_API_KEY`.
## Why not use the official review APIs?
Because they return only a handful of reviews per place, which is too few to find themes. Google's Places API returns at most five reviews for a place, sorted by relevance ( [Google Places API](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places), 2026). Yelp's Places API returns up to three review excerpts on its Enhanced plan and up to seven on Premium ( [Yelp Places API plans](https://docs.developer.yelp.com/docs/plans), 2026).
If you're showing a couple of reviews next to a map pin, those APIs are the right fit: they're first-party and their display terms are clear. For a summary across dozens of reviews, you need more of them. The [Google Maps reviews endpoint](https://perceptlayer.com/apis/google-maps/reviews) takes `page`, `pages`, `limit`, `sort` and `search`, and the [Yelp reviews endpoint](https://perceptlayer.com/apis/yelp/reviews) takes `sort` ( `relevance`, `newest`, `oldest`, `highest`, `lowest`, `elite`), `rating` and an `after` cursor. Data is collected from publicly available sources and returned as found at the time of the call.
## How do you fetch and normalise the reviews?
Call each endpoint once and map its fields onto one shape. These are the exact requests behind the recordings used here; the Google `business_id` comes from a Google Maps search, and the Yelp alias is the last part of a Yelp business URL:
```bash
curl "https://api.perceptlayer.com/v1/google-maps/reviews?business_id=0x60188b88b7d8f7ab%3A0x2133080e9923eaac" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/yelp/reviews?business=gary-danko-san-francisco&sort=newest" \
-H "X-API-Key: $API_KEY"
```
The two recordings are for two different places, a Tokyo café on Google Maps and a San Francisco restaurant on Yelp, so they show each source's shape rather than one place's reviews. Here's one Yelp review, trimmed with `…`, with the `author` object cut:
```json
{
"success": true,
"data": {
"business": { "alias": "gary-danko-san-francisco", "name": "Gary Danko", … },
"review_count": 6149,
"reviews": [
{
"id": "4qYbbI9JbtCDUOtQRcJfDA",
"rating": 5,
"text": "The staff is top notch.\nI really like the way their menu works, where you can pick any 3, 4, or 5 courses, fixed price. The cheese cart is ah-mazing, and really, only one person at the table needs to order it, for sharing. (depending on yo…",
"language": "en",
"created_at": "2026-10-22T21:21:22Z",
…
},
…
],
"has_more": true,
"next_after": "eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoib2Zmc2V0Iiwib2Zmc2V0Ijo5fQ"
}
}
```
Google Maps reviews come in `items`, with `review_id`, `rating`, a millisecond `timestamp`, and `review_text` and `review_language` as lists. Both sources also carry author names, profile links and photos; the normaliser keeps none of them.
```python
"""Summarise one place's Google Maps and Yelp reviews, with every theme tied to review IDs."""
import datetime
import json
import os
import sys
import anthropic
import requests
API = "https://api.perceptlayer.com/v1"
HEADERS = {"X-API-Key": os.environ["PERCEPTLAYER_API_KEY"]}
MODEL = os.environ.get("CLAUDE_MODEL", "claude-opus-5-5")
def get(path, **params):
r = requests.get(f"{API}/{path}", headers=HEADERS, params=params, timeout=90)
r.raise_for_status()
return r.json()
def google_reviews(business_id):
body = get("google-maps/reviews", business_id=business_id)
for r in body.get("items", []):
yield {
"id": "g:" + r["review_id"],
"source": "google",
"rating": r["rating"],
"date": datetime.datetime.fromtimestamp(r["timestamp"] / 1000, datetime.timezone.utc).date().isoformat(),
"language": (r.get("review_language") or [None])[0],
"text": " ".join(r.get("review_text") or []),
}
def yelp_reviews(business):
body = get("yelp/reviews", business=business, sort="newest")
for r in body["data"].get("reviews", []):
yield {
"id": "y:" + r["id"],
"source": "yelp",
"rating": r["rating"],
"date": r["created_at"][:10],
"language": r.get("language"),
"text": r.get("text", ""),
}
```
Run on the two recordings, with `requests.get` mocked, these produced six normalised reviews, three per source, 2,307 characters of JSON in all. Every one was rated 5, and every text ended in `…`.
## Why do the excerpts and the ratings matter?
Because they decide what a summary can honestly say. The texts in both recordings are cut short with an ellipsis, so a theme like "the cheese cart is popular" can be supported, but anything about how a review ends can't. The system prompt below tells the model so. If you need full texts, check whether the single-review endpoint, [`/v1/google-maps/review`](https://perceptlayer.com/apis/google-maps/review), returns more; we haven't recorded it.
The ratings matter more. Six 5-star reviews will produce a glowing summary, but that reflects the sample: recent reviews on a well-rated place. Balance it on purpose. Yelp's `sort=lowest` fetches the critical end, and a second call costs 1 more credit. Report the rating mix next to the themes, so a reader knows what the summary is based on. Our guide to [review data for sentiment analysis](https://perceptlayer.com/blog/product-review-data-sentiment-analysis) goes further into sampling.
## How do you make the model cite its sources?
Give it IDs and require them in a schema. Structured outputs ( `output_config` with a JSON schema) make the response valid JSON in a fixed shape ( [Anthropic, structured outputs](https://docs.anthropic.com/en/docs/build-with-claude/structured-outputs), 2026). Each theme has a sentiment, the IDs of the reviews behind it, and quotes copied from those reviews. The prompt forbids guessing beyond the excerpts.
```python
SCHEMA = {
"type": "object",
"properties": {
"themes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"theme": {"type": "string"},
"sentiment": {"type": "string", "enum": ["positive", "negative", "mixed"]},
"review_ids": {"type": "array", "items": {"type": "string"}},
"quotes": {"type": "array", "items": {"type": "string"}},
},
"required": ["theme", "sentiment", "review_ids", "quotes"],
"additionalProperties": False,
},
}
},
"required": ["themes"],
"additionalProperties": False,
}
SYSTEM = """You summarise customer reviews of one place into themes.
Every theme must list the IDs of the reviews that support it, and at least one
quote copied word for word from one of those reviews. Use only the reviews given.
Review texts may be cut short with an ellipsis; don't guess how they end."""
def summarise(reviews):
client = anthropic.Anthropic()
response = client.messages.create(
model=MODEL,
max_tokens=16000,
system=SYSTEM,
messages=[{"role": "user", "content": json.dumps(reviews, ensure_ascii=False)}],
output_config={"format": {"type": "json_schema", "schema": SCHEMA}},
)
if response.stop_reason == "refusal":
raise RuntimeError("the model declined")
return json.loads(next(b.text for b in response.content if b.type == "text"))
```
## How do you flag claims the reviews don't support?
Check every theme in code. A theme fails if it cites an ID that isn't in the input, if it cites none, or if a quote doesn't appear in the text of the reviews it cites. The check is a plain substring match after trimming quote marks and ellipses: crude, but it catches the two failures that matter, invented quotes and quotes attributed to the wrong review.
```python
def check(summary, reviews):
"""Flag themes whose IDs don't exist or whose quotes aren't in the cited reviews."""
by_id = {r["id"]: r for r in reviews}
problems = []
for t in summary["themes"]:
missing = [i for i in t["review_ids"] if i not in by_id]
if missing:
problems.append((t["theme"], f"unknown review IDs {missing}"))
cited = " ".join(by_id[i]["text"] for i in t["review_ids"] if i in by_id)
for q in t["quotes"]:
if q.strip(" .…\"'") not in cited:
problems.append((t["theme"], f"quote not found in cited reviews: {q!r}"))
if not t["review_ids"]:
problems.append((t["theme"], "no supporting reviews"))
return problems
if __name__ == "__main__":
google_id, yelp_alias = sys.argv[1], sys.argv[2]
reviews = list(google_reviews(google_id)) + list(yelp_reviews(yelp_alias))
summary = summarise(reviews)
for t in summary["themes"]:
print(f'- {t["theme"]} ({t["sentiment"]}, {len(t["review_ids"])} reviews): "{t["quotes"][0]}"')
for theme, problem in check(summary, reviews):
print(f"UNSUPPORTED {theme}: {problem}")
```
We tested `check` on the six recorded reviews with three themes we wrote as test input, not model output. A theme quoting "The cheese cart is ah-mazing" and citing the Yelp review it came from passed. The same quote cited against a Google review failed with "quote not found in cited reviews". A theme citing `y:doesnotexist` failed twice: unknown ID, and its quote not found. Run it with a Google `business_id` and a Yelp alias for the same restaurant: `python summarise.py `.
## What does a summary cost?
Each call costs 1 credit on success, and failed calls cost nothing. One Google Maps reviews call and two Yelp calls, `newest` and `lowest`, make 3 credits a place; add 1 credit per extra page. The Claude call is billed separately by Anthropic. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
| Job | Calls | Credits |
| --- | --- | --- |
| One place, 3 calls | 3 | 3 |
| One place, plus 2 more pages from each source | 7 | 7 |
| 100 places, 3 calls each | 300 | 300 |
| 100 places, re-summarised monthly for a year | 3,600 | 3,600 |
Worked example: summarising 100 restaurants monthly at 3 calls each is 300 credits a month. The 100 free credits on signup cover a first run of 33 restaurants, and the monthly job needs a pack. A year of it, 3,600 credits, fits in a Starter pack of 10,000 credits, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. For paging and rate limits, see the [Yelp reviews API guide](https://perceptlayer.com/blog/yelp-reviews-api-json), the [Google Maps reviews guide](https://perceptlayer.com/blog/google-maps-reviews-api-parameters) and the [rate limits docs](https://docs.perceptlayer.com/rate-limits).
## What should you watch for in production?
Three things, all about the reviews rather than the model. First, attribution: if you display review text, the source's terms apply; Google, for example, asks developers to show the author's name next to Google reviews they display through its API. This agent displays themes and short quotes without names, so decide what your use needs. Second, language: Google returns `review_language`, so filter or translate before summarising a mixed set. Third, recency: store each review's date and summarise a fixed window.
To run it, [get a free API key](https://perceptlayer.com/signup) and look up a restaurant in the playground on the [Google Maps API page](https://perceptlayer.com/apis/google-maps) and the [Yelp API page](https://perceptlayer.com/apis/yelp). The [AI agents docs](https://docs.perceptlayer.com/ai-agents) cover the same endpoints over MCP, and the [errors docs](https://docs.perceptlayer.com/errors) list the codes a fetch can return.
## APIs in this post
- [Google Maps **1 credit per call** · 12 endpoints](https://perceptlayer.com/apis/google-maps)
- [Yelp **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/yelp)
## Frequently asked questions
### What is an AI review summarizer?
A program that collects reviews of a place or product and has a language model group them into themes, such as service, value or a signature dish. This one pulls Google Maps and Yelp reviews as JSON, requires the model to cite review IDs and quote them, and checks every quote against the cited reviews before printing the result.
### How do I stop the summary from making things up?
Give each review an ID, require IDs and verbatim quotes for every theme with a JSON schema, and check the quotes in code. A substring check catches quotes that don't exist and quotes attributed to the wrong review. Anything that fails is printed as unsupported rather than silently shown.
### Why are all the reviews positive?
Because of the sample, not the place. Recent reviews of a well-rated restaurant skew high: all six recorded reviews used here are 5-star. Pull Yelp's `sort=lowest` as well, report the rating mix next to the themes, and summarise positive and negative reviews separately if you need both sides.
### How much does it cost to summarise a restaurant's reviews?
3 credits per place: one Google Maps reviews call and two Yelp reviews calls, at 1 credit per successful call. Extra pages cost 1 credit each, and failed calls cost nothing. Every account gets 100 free credits after verifying an email address. Model tokens are billed separately by your model provider.
### Does the agent store reviewers' names?
No. The normaliser keeps each review's ID, source, rating, date, language and text, and drops author names, profile links and photos before anything reaches the model. If you later display reviews to users, check each source's attribution terms, which may require showing the author's name.
review summarization ai agents google maps yelp restaurants python
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 9 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [CrewAI Tools: Build a Custom Tool for Live Web Data](https://perceptlayer.com/blog/crewai-custom-tool-web-data)
Build a CrewAI custom tool (a BaseTool subclass) that searches Google for live results, cap it at 5 calls a run, or load MCP tools instead. Tested code.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Oct 2026 Perceptlayer 8 min read
## [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends)
Wire Google Search, Trends and News into one Python agent, cap it at 8 credits per question, and see a recorded Trends response.
---
title: "Scheduled AI Agent Runs: Budgeting Credits per Run"
description: "Cap an agent at N calls per run with a Python ledger that reads X-Credits-Used, plus the math for hourly and daily runs on 100 credits on signup."
url: https://perceptlayer.com/blog/scheduled-agent-credit-budget
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Scheduled AI Agent Runs: Budgeting Credits per Run
24 Jul 2026 Perceptlayer 7 min read
Budget a scheduled agent by dividing your monthly credits by the number of runs, then enforcing the result as a hard call cap inside each run. On 100 credits on signup, a 10,000-credit Starter pack spread over 10 months, an hourly agent gets 1 call per run and a daily agent gets 32. A small Python ledger that reads the `X-Credits-Used` header keeps every run inside that cap.
## Key takeaways
- Per-run cap = monthly credits ÷ runs per month, rounded down. A 31-day month has 744 hourly runs or 31 daily runs.
- 100 credits on signup cover 744 hourly runs at 1 call each, or 31 daily runs at up to 32 calls each. The 100 free credits on signup are granted once, so they cover a test, not a schedule.
- Count every attempt against the cap, and treat a timed-out call as spent, because a request whose reply was lost may have been billed.
- Read `X-Credits-Used` and `X-Credits-Remaining` on each response so the ledger follows the real balance, not your estimate.
- The service is prepaid. At a zero balance calls return `insufficient_credits` (402), so the balance is the absolute ceiling on spend.
## How do you set a credit budget for each agent run?
Start from the monthly credits you are willing to spend and divide by the number of scheduled runs in the month. Round down, and that is the most calls one run may make. A successful call costs the credits shown on its endpoint, which is 1 credit for every [Google Search API](https://perceptlayer.com/apis/google-search) endpoint, so the call cap and the credit cap are the same number.
```text
runs per month = runs per day × days in the month
calls per run = floor(monthly credits ÷ runs per month)
monthly spend = runs per month × calls per run
```
Failed calls cost nothing, so a cap based on attempts is slightly conservative. That is the right direction to be wrong in. If you want the broader picture of spend limits for agents, [AI agent API cost control](https://perceptlayer.com/blog/ai-agent-web-data-costs) covers it; this article is the per-run, scheduled case.
## What does an hourly or daily schedule cost against a monthly budget?
Every account gets 100 free credits once, after verifying an email address, with no credit card. They don't renew, so use them to test a schedule: 100 credits cover 3 daily runs at 32 calls (96 credits) or 100 hourly runs at 1 call. A running schedule draws on a prepaid pack. A budget of 100 credits on signup, which is a 10,000-credit Starter pack spread over 10 months, is enough for one call on each of 744 hourly runs in a 31-day month, or 32 calls on each of 31 daily runs. The table shows the arithmetic for other schedules and budgets.
| Schedule | Runs in a 31-day month | Credits available | Calls per run | Credits used |
| --- | --- | --- | --- | --- |
| Daily | 31 | 1,000 (Starter over 10 months) | 32 | 31 × 32 = 992 |
| Every 6 hours | 124 | 1,000 (Starter over 10 months) | 8 | 124 × 8 = 992 |
| Hourly | 744 | 1,000 (Starter over 10 months) | 1 | 744 × 1 = 744 |
| Every 15 minutes | 2,976 | 1,000 (Starter over 10 months) | 0 | Not possible on 1,000 a month |
| Daily | 31 | 10,000 (Starter pack) | 322 | 31 × 322 = 9,982 |
| Hourly | 744 | 10,000 (Starter pack) | 13 | 744 × 13 = 9,672 |
| Hourly | 744 | 50,000 (Build pack) | 67 | 744 × 67 = 49,848 |
Two things stand out. Frequency matters far more than depth: hourly runs are 24 times as frequent as daily ones, so the per-run allowance falls from 32 calls to 1 on 100 credits on signup, and from 322 to 13 on a whole Starter pack in one month. And a 15-minute schedule needs at least 2,976 credits a month before it can make a single call per run. [Pricing](https://perceptlayer.com/pricing) has what credits cost; purchased credits last 12 months, so an unspent month doesn't vanish.
## Which request will the agent spend its credits on?
For a research agent, the workhorse is `GET /v1/google-search/search`, which returns organic results, related searches, local results and more as JSON for 1 credit. The parameters below are the ones an agent usually sets. The full list is on the [Search endpoint page](https://perceptlayer.com/apis/google-search/search).
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | yes | The search text. |
| `hl` | string | no | Interface language, up to 2 characters. |
| `gl` | string | no | Country, up to 2 characters. |
| `safe` | string | no | One of `active`, `off`. |
| `page` | integer | no | Result page. |
| `amount` | integer | no | Integer parameter, see the endpoint page. |
A single call looks like this:
```bash
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
-H "X-API-Key: $API_KEY"
```
The response is a JSON object with named fields. A recorded response, trimmed:
```json
{
"search_information": {
"query_displayed": "best restaurants in Berlin",
"organic_results_count": 6
},
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. …",
"source": "Anders & Kaitlin"
},
…
],
"related_searches": […],
…
}
```
The cost is on the response headers, not in the body: `X-Credits-Used` is what this call cost and `X-Credits-Remaining` is the balance afterwards. Those two headers are all the ledger below needs. The [credits documentation](https://docs.perceptlayer.com/credits) describes them.
## How do you enforce a per-run call cap in Python?
Wrap every request in one function that checks the cap before the call and records the cost after it. Three limits do the work: a maximum number of attempts per run, a monthly credit limit read from a local ledger, and a reserve you never touch. When any of them trips, the function raises an exception instead of making the request.
```python
import os
import sqlite3
import uuid
import requests
BASE = "https://api.perceptlayer.com"
KEY = os.environ["API_KEY"]
class BudgetExceeded(Exception):
pass
class Ledger:
def __init__(self, path="credits.db"):
self.db = sqlite3.connect(path)
self.db.execute(
"""CREATE TABLE IF NOT EXISTS calls (
ts TEXT, run_id TEXT, path TEXT,
status INTEGER, credits INTEGER, remaining INTEGER)"""
)
def add(self, run_id, path, status, credits, remaining):
self.db.execute(
"INSERT INTO calls VALUES (datetime('now'), ?, ?, ?, ?, ?)",
(run_id, path, status, credits, remaining),
)
self.db.commit()
def month_spent(self):
row = self.db.execute(
"SELECT COALESCE(SUM(credits), 0) FROM calls "
"WHERE ts >= date('now', 'start of month')"
).fetchone()
return row[0]
class RunBudget:
def __init__(self, ledger, max_calls, month_limit, reserve=0):
self.ledger = ledger
self.max_calls = max_calls
self.month_limit = month_limit
self.reserve = reserve
self.run_id = uuid.uuid4().hex[:8]
self.calls = 0
self.remaining = None # last balance seen in a response header
def get(self, path, **params):
if self.calls >= self.max_calls:
raise BudgetExceeded(f"call cap of {self.max_calls} reached")
if self.ledger.month_spent() + 1 > self.month_limit:
raise BudgetExceeded("monthly credit limit reached")
if self.remaining is not None and self.remaining <= self.reserve:
raise BudgetExceeded("balance is at the reserve")
self.calls += 1
try:
r = requests.get(
BASE + path,
params=params,
headers={"X-API-Key": KEY},
timeout=30,
)
except requests.Timeout:
# The reply was lost; the call may have succeeded and been billed.
self.ledger.add(self.run_id, path, 0, 1, None)
raise
used = int(r.headers.get("X-Credits-Used", 0))
left = r.headers.get("X-Credits-Remaining")
if left is not None:
self.remaining = int(left)
self.ledger.add(self.run_id, path, r.status_code, used, self.remaining)
if r.status_code == 402:
raise BudgetExceeded("insufficient_credits")
r.raise_for_status()
return r.json()
```
The timeout branch is the part most budget code gets wrong. Requests have no idempotency key, so a client timeout can hide a call that went through. The ledger records it at the endpoint's 1 credit, the worst case, and the next successful response's `X-Credits-Remaining` corrects the picture. The `timeout=30` argument bounds how long `requests` waits for the server ( [Requests timeouts](https://requests.readthedocs.io/en/latest/user/advanced/#timeouts)). [Retry web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) goes deeper on that.
The ledger's "start of month" is the calendar month. Treat the ledger as a local guard rail and `X-Credits-Remaining` as the source of truth. SQLite's date functions are documented in the [SQLite date and time functions reference](https://www.sqlite.org/lang_datefunc.html) if you want to move the window.
## How do you hand the capped function to an agent?
Expose one tool to the model, backed by `RunBudget.get`, and make the cap visible in the tool's result. When the budget is spent, return a plain message instead of raising, so the model finishes with what it has instead of looping.
```python
def make_search_tool(budget):
def search_web(query: str) -> str:
try:
data = budget.get(
"/v1/google-search/search", query=query, hl="en"
)
except BudgetExceeded as e:
return f"No more searches this run ({e}). Answer from what you have."
except requests.RequestException as e:
return f"Search failed ({type(e).__name__}). Answer from what you have."
rows = data.get("organic_results", [])[:5]
return "\n".join(
f"{r['position']}. {r['title']} - {r['link']}\n {r.get('snippet', '')}"
for r in rows
)
return search_web
ledger = Ledger()
budget = RunBudget(ledger, max_calls=32, month_limit=992, reserve=8)
search_web = make_search_tool(budget)
```
Passing only five rows with four fields also keeps the model's context small, which is a separate saving covered in [trimming API responses for LLM context](https://perceptlayer.com/blog/trim-api-responses-llm-context). For the tool definition itself, see the [tool schema checklist](https://perceptlayer.com/blog/agent-tool-schema-design-web-apis).
If you connect the agent through the [MCP server](https://docs.perceptlayer.com/ai-agents) instead, the same rule applies. `search_endpoints` and `get_endpoint` only look up the catalogue and cost nothing; `call_endpoint` spends credits on success and reports the credits used and remaining, so your harness can tally those numbers into the same ledger and stop the loop at the cap. The [MCP vs function calling comparison](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) helps you choose between the two.
## What should happen when a run hits a limit?
End the run, log why, and let the next scheduled run start fresh. Don't retry inside the same run to "finish the job", because that is how a capped run turns into an uncapped one. Each limit maps to a different response, and the [error reference](https://docs.perceptlayer.com/errors) lists the codes.
| Signal | Meaning | What the run does |
| --- | --- | --- |
| `BudgetExceeded` from the call cap | The run used its allowance | Return a partial answer and exit |
| 402 `insufficient_credits` | Balance is empty; nothing more is debited | Stop, alert a human, no retry |
| 429 `rate_limited` | Too many requests this minute | End the run and let the next one start fresh |
| 503 `temporarily_unavailable` | The service is briefly unavailable | End the run and let the next one start fresh |
| Timeout | Reply lost, may have been billed | Log at 1 credit, do not repeat blindly |
The 429 and 503 responses carry a `Retry-After` header with the seconds to wait. Free accounts get 1 request a second (60 a minute); [rate limits](https://docs.perceptlayer.com/rate-limits) explains how the per-minute counting works, and [concurrent requests in Python](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit) covers the parallel case. For Python error handling in general, see [handling API errors](https://perceptlayer.com/blog/handle-web-data-api-errors-python).
## How do you stretch a budget without lowering the cap?
Reduce repeated work rather than the number of runs. If an hourly agent asks the same query every time and the answer is unlikely to change within the hour, a local cache with a sensible TTL answers repeats without making a call, so they spend no credits; [caching API responses in Python](https://perceptlayer.com/blog/cache-web-data-api-responses) shows the TTL choices. Next, spend the allowance where it matters: let the agent plan its queries first, run the one or two that answer the question, and skip the rest.
Last, match frequency to how fast the data changes. Search results for a stable topic don't need an hourly check. Moving from hourly to every 6 hours on 100 credits on signup takes the allowance from 1 call to 8 per run. For a worked example of an agent that combines several searches, read the [market research agent](https://perceptlayer.com/blog/market-research-agent-search-trends).
To try the numbers on your own schedule, [get a free API key](https://perceptlayer.com/signup), paste in the ledger above and set `max_calls` from the table.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### How many credits does a scheduled agent use per month?
Runs per month multiplied by calls per run, times the credits per call. Hourly runs in a 31-day month are 744; at 3 calls of 1 credit each, that is 744 × 3 = 2,232 credits, which is above a 1,000-credit monthly budget. The same agent on a daily schedule uses 31 × 3 = 93 credits.
### Do failed calls count against the agent's budget?
Not in credits. A failed call costs nothing and returns `X-Credits-Used: 0`. The ledger above still counts every attempt against the per-run call cap, which keeps a run from looping on errors. The one exception worth recording is a client timeout, which may have been billed even though you saw no reply.
### What happens when the agent runs out of credits?
The service is prepaid with no automatic top-up. When the balance reaches zero, calls return `insufficient_credits` with HTTP 402 and nothing more is debited. Your agent should treat that as a stop signal, not a retry case. Buy a pack, then let the next run proceed.
### Can I read the remaining balance without making a billable call?
Every response carries `X-Credits-Remaining`, including errors, so the balance arrives with the calls you already make. The `search_endpoints` and `get_endpoint` MCP tools only look up the catalogue and cost nothing. For your balance, rely on the header from your last call.
ai agents credits budgeting scheduling python google search
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 18 Jul 2026 Updated 10 Nov 2026 Perceptlayer 11 min read
## [LangChain Custom Tool for Live Web Data: Python Tutorial](https://perceptlayer.com/blog/langchain-custom-tool-web-data)
Build a LangChain tool in Python for Google Search and News: typed arguments, retries on 429, 502 and 503 only, and a per-run credit cap.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 12 Jul 2026 Perceptlayer 7 min read
## [AI Agent API Cost Control: Cap Web Data Spend](https://perceptlayer.com/blog/ai-agent-web-data-costs)
Cap an agent's web data spend per run: credit arithmetic for 8 and 20 calls per task, a Python budget wrapper, and why failed calls cost 0 credits.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 9 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [CrewAI Tools: Build a Custom Tool for Live Web Data](https://perceptlayer.com/blog/crewai-custom-tool-web-data)
Build a CrewAI custom tool (a BaseTool subclass) that searches Google for live results, cap it at 5 calls a run, or load MCP tools instead. Tested code.
---
title: "Trivago Hotel Prices API: Deals and Search as JSON"
description: "Call trivago suggest, search and deals as JSON: 1 credit per call, a recorded Paris search response, and the provider_count field in a metasearch result."
url: https://perceptlayer.com/blog/trivago-api-hotel-prices
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Trivago Hotel Prices API: Deals and Search as JSON
24 Jul 2026 Perceptlayer 8 min read
The Perceptlayer Trivago API returns data from trivago, the hotel metasearch site, as JSON through 6 endpoints. With the [Trivago API](https://perceptlayer.com/apis/trivago), `suggest` turns a place name into a destination, `search` lists hotels for your dates, and `deals` returns offers for one hotel. Each call is a GET with the `X-API-Key` header and costs 1 credit. A failed call costs nothing. This guide shows a recorded Paris `search` response. We recorded only that one, so `suggest` and `deals` are described from their parameters, not shown as output. The recorded `search` has no per-night offer price for each hotel: it returns `forecast_price`, `price_range` and `price_histogram`, and offers come from `deals`.
## Key takeaways
- The Trivago API has 6 endpoints ( `suggest`, `search`, `deals`, `hotel`, `reviews`, `filters`), and every one costs 1 credit per successful call.
- `search` needs `destination_id`, `check_in` and `check_out`; a recorded Paris call reported `total: 2500` hotels and `has_more: true`.
- Each hotel in a search result carries a `provider_count` (7 and 16 in the recorded excerpt) but no per-provider price breakdown.
- Page with `offset`: the response returns `next_offset` and `has_more` so a loop knows when to stop.
- Your free tier is 100 credits, once, on signup, enough for 100 calls with no card on file.
## What does the Trivago API return?
The Perceptlayer Trivago API (trivago, the hotel metasearch site, 6 endpoints) returns hotel search results, single-hotel details, reviews, price deals for specific dates and the filters available for a destination, all as JSON with named fields. The endpoints sit under `/v1/trivago/`, all GET requests, all at 1 credit. The [Trivago API page](https://perceptlayer.com/apis/trivago) has a playground for running any of them with your key.
| Endpoint | Returns | Required parameters |
| --- | --- | --- |
| `/v1/trivago/suggest` | Suggest | `query` |
| `/v1/trivago/search` | Search | `destination_id`, `check_in`, `check_out` |
| `/v1/trivago/deals` | Deals | `hotel_id`, `check_in`, `check_out` |
| `/v1/trivago/hotel` | Hotel | `hotel_id` |
| `/v1/trivago/reviews` | Reviews | `hotel_id` |
| `/v1/trivago/filters` | Filters | `destination_id` |
Most flows chain them: a name goes into `suggest`, the destination goes into `search`, and a hotel you care about goes into `deals`, [`hotel`](https://perceptlayer.com/apis/trivago/hotel) or [`reviews`](https://perceptlayer.com/apis/trivago/reviews). Trivago is one of the sites in the [Travel APIs](https://perceptlayer.com/verticals/travel) area of the catalogue.
### What price data does search return?
The Perceptlayer Trivago API `search` endpoint returns price summaries, not per-night offers. In the recorded call, each hotel has a `forecast_price` (a month, a `price_per_night` and a `currency`), and the result set has a `price_range` and a `price_histogram`. It has no per-provider price for a stay. Per-hotel offers for your dates are what `deals` is for.
| Endpoint | What it returns | Price data | Recorded here |
| --- | --- | --- | --- |
| `search` | A page of hotels for a destination and dates | `forecast_price` per hotel, `price_range` and `price_histogram` for the result set | Yes, Paris |
| `deals` | Offers for one `hotel_id` and one stay | Per-hotel offers for your dates | No |
| `hotel` | Details for one `hotel_id` | Not a price endpoint | No |
One caveat covers the rest of this article: the endpoint documentation lists parameters and types only, so we describe response fields only as they appear in the recorded Paris call.
## How do you find a destination ID?
The Trivago API `suggest` endpoint turns a place name into the ID that other calls need. `GET /v1/trivago/suggest` takes one required parameter, `query` (up to 100 characters), and an optional `market`. It's the lookup step that feeds every other call, because `search` and `filters` want a numeric `destination_id` rather than a city name.
```bash
curl "https://api.perceptlayer.com/v1/trivago/suggest?query=Berlin" \
-H "X-API-Key: $API_KEY"
```
`market` accepts one of `us`, `de`, `uk`, `fr`, `es`, `it` or `nl`. We haven't recorded a Suggest response, so none is shown; the [Suggest playground](https://perceptlayer.com/apis/trivago/suggest) runs the call with your key. The recorded search below uses `destination_id=22235`, which came back with a city centre named Paris.
Don't have a key yet? [Get a free API key](https://perceptlayer.com/signup) and the call above works as written.
## How do you search hotels for your dates?
The Perceptlayer Trivago `search` endpoint, `GET /v1/trivago/search`, takes a `destination_id`, a `check_in` date and a `check_out` date and returns a page of hotels. The recorded request below used only those three required parameters. Dates in the recorded call are written as `YYYY-MM-DD`, the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) calendar-date form.
```bash
curl "https://api.perceptlayer.com/v1/trivago/search?destination_id=22235&check_in=2026-11-20&check_out=2026-11-23" \
-H "X-API-Key: $API_KEY"
```
The optional parameters narrow and order the list:
| Parameter | Type | Notes |
| --- | --- | --- |
| `adults`, `rooms` | integer | Party size and room count |
| `children_ages[]` | list of integer | One entry per child |
| `currency` | string | Price currency; the recorded call came back as `USD` |
| `market` | string | One of `us`, `de`, `uk`, `fr`, `es`, `it`, `nl` |
| `limit`, `offset` | integer | Page size and start position |
| `sort` | string | `relevance`, `price_asc`, `rating` or `price_desc` |
| `min_price`, `max_price` | integer | Price bounds |
| `stars[]` | list of integer | Any of 1, 2, 3, 4, 5 |
| `min_rating` | string | One of `7.0`, `7.5`, `8.0`, `8.5` |
| `property_type[]`, `amenities[]` | list of integer | Property and amenity filters |
Defaults and maximum page sizes aren't documented, so we don't state them. The [Search endpoint page](https://perceptlayer.com/apis/trivago/search) lists them as the catalogue does.
### What does the search response look like?
The Trivago API search response wraps the result in `success`, `data` and `meta`. The top of `data` echoes your search and reports the size of the result set: `total` was 2500, `limit` was 35, `has_more` was `true` and `next_offset` was 35. Here is that header, trimmed:
```json
{
"success": true,
"data": {
"destination_id": 22235,
"check_in": "2026-11-20",
"check_out": "2026-11-23",
"market": "us",
"currency": "USD",
"sort": "relevance",
"total": 2500,
"limit": 35,
"offset": 0,
"has_more": true,
"next_offset": 35,
"city_center": {
"name": "Paris",
"coordinates": { "latitude": 48.856445, "longitude": 2.352231 }
},
"price_range": { "min": 2, "max": 600 },
…
```
`price_range` and `price_histogram` summarise the whole result set, so you can see the spread before you fetch a single hotel. In the recorded excerpt the range ran from 2 to 600 in `USD`. The histogram buckets each carry `from`, `to` and `count`.
Each entry in `hotels` is one property. Here is the first one, trimmed:
```json
{
"id": 49992,
"position": 1,
"name": "Residence Hoteliere Champ de Mars",
"type": "Hotel",
"stars": 3,
"rating": 8.3,
"review_count": 1284,
"location": "Paris, France",
"distance": "0.5 miles to Eiffel tower",
"free_wifi": true,
"provider_count": 7,
"sponsored": false,
"forecast_price": {
"month": "2027-01",
"price_per_night": 91,
"currency": "USD"
}
…
}
```
These are the hotel fields in the recorded excerpt:
| Field | Recorded value (first hotel) | Meaning |
| --- | --- | --- |
| `id` | `49992` | Integer ID of the property |
| `position` | `1` | Entry number in the list (2 for the second hotel) |
| `name`, `type` | `Residence Hoteliere Champ de Mars`, `Hotel` | Property name and type |
| `stars`, `rating`, `review_count` | `3`, `8.3`, `1284` | Star class, rating, number of reviews |
| `location`, `distance` | `Paris, France`, `0.5 miles to Eiffel tower` | Place and distance to a landmark |
| `free_wifi` | `true` | Wi-Fi flag |
| `provider_count` | `7` | Per-hotel number, undefined in the docs; the second hotel shows `16` |
| `sponsored` | `false` | Sponsored flag |
| `forecast_price` | `price_per_night` 91 USD for `2027-01` | A forecast month and nightly price, not an offer for your dates |
The first hotel's `id` is the value this article passes as `hotel_id` to `deals` below.
## How is a metasearch result different from a single-site price?
In a recorded Perceptlayer Trivago API search for Paris, each of the two hotels shown carries a `provider_count` field (7 and 16). It counts how many sources trivago compares for that hotel. The response gives `price_range` and a `price_histogram` for the whole result set but no per-provider price. Per-hotel offers for your dates come from `GET /v1/trivago/deals`, which costs 1 credit per successful call.
That changes the question you can ask. A single-site guide such as the ones linked below answers "what does this site charge?", which suits rate monitoring against one channel. A Perceptlayer Trivago API result adds `provider_count`, a way to see how many sources sit behind each hotel before you spend a `deals` call on it.
If you want one site's own prices instead, compare with the [Booking.com hotel prices guide](https://perceptlayer.com/blog/booking-com-hotel-prices-api), the [Expedia hotels guide](https://perceptlayer.com/blog/expedia-hotels-api-search-json) and the [Google Hotels guide](https://perceptlayer.com/blog/google-hotels-api).
## What does the Deals endpoint add?
The Trivago API `deals` endpoint, `GET /v1/trivago/deals`, returns the deals for one hotel and one stay. It requires `hotel_id`, `check_in` and `check_out`, and accepts `adults`, `rooms`, `children_ages[]`, `currency` and `market`. Reuse the same dates as your search so the two calls describe the same stay. The example below uses the first recorded hotel's `id` as `hotel_id`.
```bash
curl "https://api.perceptlayer.com/v1/trivago/deals?hotel_id=49992&check_in=2026-11-20&check_out=2026-11-23&adults=2" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a Deals response, so none is shown here. The [Deals endpoint page](https://perceptlayer.com/apis/trivago/deals) links to the playground, which runs the call with your key.
## What does the Filters endpoint take?
`GET /v1/trivago/filters` takes a required `destination_id` and an optional `market` (us, de, uk, fr, es, it or nl) and costs 1 credit per successful call. The recorded Paris `search` response also includes an `available_filters` list. Each entry has a `concept` code and a `hotels` count (the recorded entry is `"concept": "416-6"` with `"hotels": 0`), so the filter values you pass to `search` as `property_type[]` and `amenities[]` can be traced back to hotel counts. The `search` parameters are lists of integers. We have no recorded Filters response, so the [Filters playground](https://perceptlayer.com/apis/trivago/filters) is where to run it.
## How do you page through all results?
The Trivago search endpoint pages with `offset`: a recorded Paris call returned `limit` 35 of `total` 2,500 hotels, with `has_more` true and `next_offset` 35. Loop until `has_more` is false and cap the page count in code, since each page is one call at 1 credit.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/trivago/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
params = {
"destination_id": 22235,
"check_in": "2026-11-20",
"check_out": "2026-11-23",
"sort": "price_asc",
}
hotels, offset, pages = [], 0, 0
MAX_PAGES = 3
while pages < MAX_PAGES:
r = requests.get(URL, headers=HEADERS, params={**params, "offset": offset}, timeout=30)
r.raise_for_status()
data = r.json()["data"]
hotels.extend(data["hotels"])
pages += 1
if not data["has_more"]:
break
offset = data["next_offset"]
print(len(hotels), "hotels in", pages, "calls")
```
Each page is one call, so the loop above spends at most 3 credits. For a longer treatment of safe loops, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python), and for the error side, the [Errors docs](https://docs.perceptlayer.com/errors). Rate-limited (429) responses carry a `Retry-After` header with the seconds to wait; the [rate limits](https://docs.perceptlayer.com/rate-limits) page has the per-account numbers.
## What does the Trivago API cost?
All six Trivago API endpoints cost 1 credit per successful call; failed calls cost nothing and return `X-Credits-Used: 0`. A suggest call, one search and deals for 10 hotels is 1 + 1 + 10 = 12 credits. The free tier of 100 credits on signup covers that 8 times, with no card needed. You verify an email address to get the free credits. Purchased credits come in prepaid packs and last 12 months. [Pricing](https://perceptlayer.com/pricing) shows what credits cost.
Checking deals for 50 hotels once a day for 30 days is 50 × 30 = 1,500 credits. The free credits cover the first 2 days of that, and the Starter pack of 10,000 credits covers it with room to spare. The [Credits docs](https://docs.perceptlayer.com/credits) explain the `X-Credits-Used` and `X-Credits-Remaining` headers.
If you hold direct access through a partner arrangement with the site, use that for production booking flows. This API suits research, monitoring and prototypes where you want hotel data without maintaining a scraper. For the wider picture, read [hotel price data for rate monitoring](https://perceptlayer.com/blog/hotel-price-data-rate-monitoring).
Next step: [get a free API key](https://perceptlayer.com/signup), then run the Berlin `suggest` call above and follow its destination into `search`. [Authentication](https://docs.perceptlayer.com/authentication) covers the header and the `api_key` query parameter.
## APIs in this post
- [Trivago **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/trivago)
## Frequently asked questions
### Does the Trivago API return a price per night for each hotel?
Not in `search`: the recorded Paris search gives each hotel a `forecast_price` (a month and a `price_per_night`), and offers for your dates come from `deals`.
### Which markets does the Trivago API support?
The optional `market` parameter takes one of seven values: `us`, `de`, `uk`, `fr`, `es`, `it` or `nl`. The recorded Paris search used `us` and returned prices in USD. Pass the market your users book from, and use the same one for `search` and `deals` so the two calls compare like with like.
### How many calls does a hotel price check take?
A search plus `deals` for 10 hotels is 11 calls and 11 credits, or 12 with a `suggest` call first.
### Can an AI agent call the Trivago API?
Yes: the MCP server at `https://perceptlayer.com/mcp` has a `call_endpoint` tool that spends 1 credit on a successful Trivago call, and its lookup tools cost nothing (see the [AI agents docs](https://docs.perceptlayer.com/ai-agents)).
### What happens when a Trivago API call fails?
A failed call is not billed and returns `X-Credits-Used: 0`, with an HTTP status and a JSON `error` body; the [Errors docs](https://docs.perceptlayer.com/errors) list the codes.
### Does this replace a direct trivago partner feed?
No. The Perceptlayer Trivago API returns data collected from publicly available sources, as found at the time of the call, so use a direct partner arrangement for production booking flows.
trivago hotels travel hotel prices metasearch
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Aug 2026 Updated 23 Oct 2026 Perceptlayer 8 min read
## [Booking.com Hotel Prices API: Search, Rooms and Reviews](https://perceptlayer.com/blog/booking-com-hotel-prices-api)
Eleven Booking.com endpoints as JSON: search, prices, rooms and reviews, with parameters and a 1,000-hotel price check costed in credits.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [Google Hotels API: Hotel Prices for Your Dates as JSON](https://perceptlayer.com/blog/google-hotels-api)
One GET to /v1/google-hotels/search returns Paris hotels with nightly rate, total rate and rating for your dates as JSON. Parameters, a response and cost.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 5 Jul 2026 Perceptlayer 7 min read
## [Expedia Hotels API: Search Hotels and Rooms as JSON](https://perceptlayer.com/blog/expedia-hotels-api-search-json)
Search Expedia hotels by region and dates, then list rooms and rate plans as JSON. Real parameters, a recorded response and 1 credit per call.
---
title: "UK Sold House Price Data: What Listing Sites Add"
description: "Land Registry's Price Paid Data is the free record of sold prices. What Zoopla and Rightmove add (asking prices, agents, valuation history) and fields to keep."
url: https://perceptlayer.com/blog/uk-house-price-data-sold-prices
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# UK Sold House Price Data: What Listing Sites Add
24 Jul 2026 Updated 31 Oct 2026 Perceptlayer 7 min read
For UK sold house prices, start with HM Land Registry's Price Paid Data: it is free, covers residential sales in England and Wales, and is the authoritative record of what was paid. Listing sites add what the register leaves out: the asking price and how it changed, the agent, rooms and size, and valuation history. The useful dataset joins the two, and since August 2026 Land Registry publishes a UPRN for new sales, which makes that join exact.
## Key takeaways
- Price Paid Data gives the price, completion date, postcode, address, property type ( `D`, `S`, `T`, `F`, `O`), new-build flag and tenure for each sale, under the Open Government Licence.
- It has no asking price, agent, bedrooms or floor area, and the latest two months are incomplete because registration lags the sale.
- A recorded Rightmove search gives the asking side: `price.amount`, `bedrooms`, `tenure.tenureType`, `displaySize`, `customer.branchDisplayName` and `listingUpdate`, but its `displayAddress` is often only street and outcode.
- Land Registry's new transaction-to-UPRN lookup lets you join a sale to Zoopla's UPRN endpoints, such as `/v1/zoopla/property-valuation-history`, at 1 credit per call.
- Comparing median asking and sold prices by outcode and property type is a fair first measure of the asking-to-sold gap; a property-level gap needs an exact address or UPRN match.
## Where should UK sold prices come from?
From HM Land Registry, for England and Wales. Its Price Paid Data covers residential property sold for value and lodged for registration, is free to use for commercial and non-commercial purposes under the Open Government Licence, and is updated monthly ( [HM Land Registry](https://www.gov.uk/guidance/about-the-price-paid-data), 2026). It is the register, so it is the figure to use for "what did this sell for".
Each row has a transaction ID, the price from the transfer deed, the completion date, the postcode and address parts, a property type code ( `D` detached, `S` semi-detached, `T` terraced, `F` flat, `O` other), an `Old/New` flag ( `Y` for a new build), a duration ( `F` freehold or `L` leasehold) and a PPD category ( `A` for standard sales, `B` for additional types such as repossessions and buy-to-lets). The files have no header row; the columns come in that documented order.
It has limits worth knowing before you build on it. The two most recent months are incomplete, because the gap between a sale and its registration typically runs from two weeks to two months. Prices are transaction prices, not market values: a transfer within a family can be fixed far from market value. And it covers England and Wales only, so Scotland and Northern Ireland need other sources.
## What do listing sites add to sold prices?
The context around the sale. Land Registry records the end of the process, the price paid. A listing site records the process itself: what the seller asked, when the property was listed, whether the price was cut, who the agent was, and the rooms and size buyers saw. Zoopla also exposes valuation history and nearby sales for a property by its UPRN. The table maps each question to the source that answers it.
| Question | Best source | Endpoint or field |
| --- | --- | --- |
| What did it sell for, and when? | HM Land Registry | Price, Date of Transfer |
| What was the asking price? | Rightmove, Zoopla listings | `price.amount` on [Rightmove search](https://perceptlayer.com/apis/rightmove); [`/v1/zoopla/listing`](https://perceptlayer.com/apis/zoopla/listing) |
| Was the price reduced? | Rightmove | `addedOrReduced`, `listingUpdate.listingUpdateReason` |
| Which agent handled it? | Rightmove, Zoopla | `customer.branchDisplayName`; `/v1/zoopla/property-agents` |
| Bedrooms, size, tenure | Rightmove | `bedrooms`, `displaySize`, `tenure.tenureType` |
| How has its estimated value moved? | Zoopla | `/v1/zoopla/property-valuation-history` by `uprn` |
| What sold nearby? | Zoopla, Rightmove | `/v1/zoopla/property-nearby-sold`; `/v1/rightmove/sold-properties` |
Rightmove's `sold-properties` endpoint filters by `postcode`, `property_type` ( `DETACHED`, `FLAT`, `TERRACED`, `SEMI_DETACHED`), `tenure` and `sold_in` (3, 6, 12, 24 or 120 months). Zoopla's `sold` endpoint takes a `location` and sale-date bounds. Both are listing-site views of completed sales, useful for joining to listings; for the price itself, the register wins.
## Which listing fields are worth keeping?
Keep the fields that explain a price, and the ones you need to match records. Our recorded Rightmove search for `location=London&channel=BUY` shows the asking side. This excerpt is its first listing, trimmed with `…`:
```json
{
"id": 90486465,
"bedrooms": 3,
"bathrooms": 2,
"displayAddress": "Cavaye Place, Chelsea, London, SW10",
"location": { "latitude": 51.486678, "longitude": -0.180225 },
"propertySubType": "Apartment",
"tenure": { "tenureType": "LEASEHOLD" },
"listingUpdate": { "listingUpdateReason": "new", "listingUpdateDate": "2026-07-03T22:30:31Z" },
"price": { "amount": 1495000, "currencyCode": "GBP", … },
"customer": { "branchId": 298991, "branchDisplayName": "OB Private, Mayfair", … },
"displaySize": "1,285 sq. ft.",
"channel": "BUY",
"addedOrReduced": "Added on 03/07/2026",
…
}
```
| Field | Keep it because | Watch out for |
| --- | --- | --- |
| `price.amount` | The asking price, numeric | It's what the seller wants, not what the buyer paid |
| `listingUpdate.listingUpdateReason`, `listingUpdateDate` | Why and when the listing last changed ( `new` in the recording) | Store every observation to see changes over time |
| `addedOrReduced` | The site's own text, such as `Added on 03/07/2026` | Display text; parse the date carefully |
| `bedrooms`, `bathrooms` | Explain price differences within a type | Land Registry has no room counts to check against |
| `displaySize` | Floor area when the agent gives it | Text, sometimes empty |
| `tenure.tenureType` | Matches Land Registry's `F`/ `L` duration | Leasehold length isn't in either excerpt |
| `propertySubType` | Maps roughly to `D`, `S`, `T`, `F` | "Apartment" and "Flat" both map to `F` |
| `customer.branchDisplayName`, `branchId` | Agent share and agent-level analysis | A branch, not a person |
| `channel` | Filters out commercial stock | The same response has a `COMMERCIAL_BUY` listing |
| `location` | Distance to sales and to each other | Use it for distance, not to identify an address |
Two details from the same recording matter for sold-price work. The second listing in it is `Land` at `65000000` with `channel` `COMMERCIAL_BUY`, inside a residential `BUY` search, so filter on `channel` and `propertySubType` before computing anything. And two of the three `displayAddress` values stop at the street and outcode ( `SW10`, `W1W`), which is too coarse to match one listing to one Land Registry sale.
## How do you join a sale to a listing?
By UPRN where you can, by address where you must. HM Land Registry now publishes a lookup from Price Paid transaction IDs to UPRNs. It was first published on 28 August 2026, isn't back-dated, includes a UPRN only where Land Registry can reliably link the title address to an addressable location, and carries its own licence conditions and an Ordnance Survey attribution ( [HM Land Registry](https://www.gov.uk/government/statistical-data-sets/transaction-unique-identifier-and-uprn-look-up-table-dataset), 2026).
With a UPRN, every Zoopla property endpoint is one call: `/v1/zoopla/property`, `property-valuation-history`, `property-agents` and `property-nearby-sold` each take `uprn` and cost 1 credit. That turns a bare sale row into a sale with its valuation history and agents. We don't have a recorded Zoopla response, so check which fields each returns in the playground on the [Zoopla API page](https://perceptlayer.com/apis/zoopla) before you design your tables.
For older sales, or for Rightmove, match on address. Normalise the postcode (upper case, single space), the house number or name ( `PAON`), the flat ( `SAON`) and the street, and treat a match as certain only when all of them agree. The article on [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources) covers the matching method. Where the listing address stops at the outcode, don't force a property-level match; use the aggregate comparison below instead.
## How do you measure the asking-to-sold gap for an area?
Compare like with like at area level: median asking price from current listings against median sold price from the register, for the same outcode and property type. This works without any property-level match. It measures the market, not individual negotiations, so it's a first look rather than a precise discount. The script reads a Price Paid CSV by column position, which follows Land Registry's documented order, and pages a Rightmove search for one outcode.
```python
import csv
import os
import statistics
import requests
OUTCODE, LR_TYPE, RM_TYPES = "SW10", "F", {"Flat", "Apartment"}
# Land Registry Price Paid Data: no header row; columns in documented order.
sold = []
with open("pp-2026.csv", newline="") as f:
for row in csv.reader(f):
price, postcode, ptype, category = int(row[1]), row[3], row[4], row[14]
if postcode.split(" ")[0] == OUTCODE and ptype == LR_TYPE and category == "A":
sold.append(price)
asking, credits = [], 0
for page in range(1, 6):
r = requests.get("https://api.perceptlayer.com/v1/rightmove/search",
params={"location": OUTCODE, "channel": "BUY", "page": page},
headers={"X-API-Key": os.environ["API_KEY"]}, timeout=60)
if r.status_code != 200:
break
credits += int(r.headers["X-Credits-Used"])
data = r.json()["data"]
for p in data["properties"]:
if p["channel"] == "BUY" and p.get("propertySubType") in RM_TYPES:
asking.append(p["price"]["amount"])
if not data.get("has_next_page"):
break
if sold and asking:
s, a = statistics.median(sold), statistics.median(asking)
print(f"{OUTCODE} flats: median sold {s:,.0f} (n={len(sold)}), "
f"median asking {a:,.0f} (n={len(asking)}), gap {(s - a) / a:+.1%}")
print("credits used:", credits)
```
We tested the script on a sample row and the recorded Rightmove fields, not against live calls. It keeps only category `A` sales, which drops repossessions and other non-standard transfers, and only `BUY` listings of flats. Read the result with its sample sizes. The two sets differ in timing (sales completed months ago against today's asking prices) and in mix (which flats happen to be listed now), so a gap of a few per cent can be noise. Run it monthly per outcode and watch the trend.
## What does the listing side cost?
Land Registry's data is free. Each listing-site call is 1 credit on success and 0 on failure, so the cost is pages and lookups. The script above reads up to 5 Rightmove pages per outcode: 20 outcodes monthly is at most 20 × 5 = 100 credits. Adding Zoopla valuation history and agents for 200 sales with a UPRN is 200 × 2 = 400 credits.
| Step | Calls a month | Credits |
| --- | --- | --- |
| Rightmove search, 20 outcodes × 5 pages | 100 | 100 |
| Zoopla `property-valuation-history` + `property-agents`, 200 UPRNs | 400 | 400 |
| **Total** | **500** | **500** |
That's 500 credits a month. The 100 free credits every verified account gets once cover one month of the Rightmove step, and a 10,000-credit Starter pack covers the whole job for the 12 months purchased credits last (12 × 500 = 6,000). The [credits docs](https://docs.perceptlayer.com/credits) explain the balance and [pricing](https://perceptlayer.com/pricing) has what packs cost. The [Rightmove API guide](https://perceptlayer.com/blog/rightmove-api-property-data) covers search paging and its record cap; to start, run a `sold-properties` call for your own postcode in the playground on the [Rightmove API page](https://perceptlayer.com/apis/rightmove).
## APIs in this post
- [Zoopla **1 credit per call** · 17 endpoints](https://perceptlayer.com/apis/zoopla)
- [Rightmove **1 credit per call** · 8 endpoints](https://perceptlayer.com/apis/rightmove)
## Frequently asked questions
### Is HM Land Registry sold price data free?
Yes. Price Paid Data is free to download and use, for commercial or non-commercial purposes, under the Open Government Licence, with an attribution statement. It covers residential sales in England and Wales sold for value and is updated monthly. The transaction-to-UPRN lookup has its own licence conditions, so read those before you use it.
### Why are the latest months missing sales?
Price Paid Data follows registration, not completion. HM Land Registry says the gap between a sale and its registration typically runs from two weeks to two months, so the two most recent months are incomplete. Don't read a drop in recent volumes as a market change until those months fill in.
### Can listing sites tell me the actual sold price?
They show completed sales, and Rightmove's `sold-properties` and Zoopla's `sold` endpoints return them, but the authoritative price for England and Wales is the Land Registry record. Use listing-site sold data to join a sale to its listing, agent and valuation history, and the register for the price itself.
### How do I match a Rightmove listing to a Land Registry sale?
Only when both have the full address. The recorded Rightmove search shows some `displayAddress` values with only the street and outcode, which can't identify one property. Match on normalised postcode, house number or name, flat and street when they're all present; otherwise compare at outcode level by property type.
### What does it cost to add listing data to Land Registry sales?
Land Registry data costs nothing. Listing calls are 1 credit each when they succeed and nothing when they fail: 100 Rightmove search pages and 400 Zoopla UPRN lookups a month is 500 credits. The 100 free credits on signup are granted once, so a monthly job needs a pack; a 10,000-credit Starter pack covers 12 months of it. The [pricing page](https://perceptlayer.com/pricing) has what credit packs cost.
uk property sold prices land registry house prices real estate data
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 4 Nov 2026 Perceptlayer 7 min read
## [LinkedIn Jobs API: Job Listings as JSON](https://perceptlayer.com/blog/linkedin-jobs-api)
Search public LinkedIn job listings with jobs-search and fetch one posting with job, at 1 credit a call: parameters, cURL and a weekly hiring-signal job.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 31 Oct 2026 Perceptlayer 9 min read
## [Price Monitoring Tool: Build One on Product APIs](https://perceptlayer.com/blog/price-monitoring-tool-build)
Build a price monitoring tool in Python: daily Google Shopping, Walmart and idealo searches, price and seller per day in SQLite, 1 credit per check.
---
title: "Deduplicate Listings Across Sources: Matching Without IDs"
description: "Match car listings from AutoScout24 and AutoTrader UK with no shared ID: normalise make and model, block, then score year, price and mileage in Python."
url: https://perceptlayer.com/blog/deduplicate-listings-across-sources
---
[Blog](https://perceptlayer.com/blog) / [Data engineering](https://perceptlayer.com/blog/category/data-engineering)
# Deduplicate Listings Across Sources: Matching Without IDs
22 Jul 2026 Perceptlayer 10 min read
Two sources never share a listing ID, so you match on what the car is: normalised make and model, first-registration year, price and mileage. Group candidates by make and model, score each pair on the remaining fields, and accept only pairs that clear a threshold. This tutorial builds that matcher in Python against the AutoScout24 and AutoTrader UK search endpoints, and states where it will get things wrong.
## Key takeaways
- Block on normalised make and model first, then score year, price and mileage inside each block. Comparing every listing with every other one is both slow and noisy.
- Mileage is the strongest signal. The matcher weights it 3, price 2 and year 1, and it never auto-accepts a pair when one side has no mileage.
- Two sources can name the same model differently. AutoScout24's recorded `model_group` is `3er`, and AutoTrader writes `5 Series`, so the matcher needs a normaliser for model names.
- The pipeline costs 1 credit per search page: 5 pages from each source is 10 credits per run.
- A threshold is a trade-off. Raise it and you keep duplicates; lower it and you merge two different cars.
## Why can't you deduplicate listings by ID?
Each marketplace issues its own identifiers. AutoScout24 returns a `listing_id` UUID, and AutoTrader UK returns an `advert_id`; neither means anything on the other site. A dealer who advertises one car in both places creates two records with no key in common, so a join on ID finds nothing and you have to compare attributes instead.
That's record linkage, a problem statisticians formalised long before web data existed ( [Fellegi and Sunter, A Theory for Record Linkage, Journal of the American Statistical Association](https://doi.org/10.1080/01621459.1969.10501049), 1969; see also the [overview of record linkage](https://en.wikipedia.org/wiki/Record_linkage)). The practical recipe hasn't changed: normalise the fields, generate candidate pairs, score them, and decide.
Two caveats before the code. The two sources may overlap less than you'd expect, since AutoTrader UK covers the UK and AutoScout24 takes a `market` parameter for other countries, so check how many matches your own filters produce. The same matcher works unchanged for two feeds of the same market, and for duplicates inside one source (a dealer relisting a car). And the matcher gives you probabilities of sameness, not proof.
## Which fields do the two sources share?
Both search endpoints return make, model, year and price, but under different names and units. AutoScout24 gives the model group, first-registration year, price and mileage in kilometres. AutoTrader's recorded search response carries make, model, year and price inside `tracking_context`, and it has no mileage field. That gap shapes the whole design.
| Concept | AutoScout24 `search` | AutoTrader UK `search` |
| --- | --- | --- |
| Source ID | `listing_id` | `advert_id` |
| Make | `make` | `tracking_context.make` |
| Model | `model_group` ( `model` is the narrower `316`) | `tracking_context.model` |
| Year | `first_registration.year` | `tracking_context.year` |
| Price | `price.amount`, `price.currency` ( `EUR` in the recording) | `price.amount`, `price.currency` ( `GBP` in the recording) |
| Mileage | `mileage.value_km` | not in the recorded search response |
Here's the shape of the AutoScout24 fields we use, trimmed from the recorded response:
```json
{
"listing_id": "f81b29b2-19e3-4418-8801-03578ed51631",
"price": { "amount": 5700, "currency": "EUR", … },
"mileage": { "value_km": 215000, … },
"first_registration": { "raw": "06/2013", "year": 2013, "month": 6 },
"make": "BMW",
"model": "316",
"model_group": "3er",
…
}
```
And the AutoTrader UK fields, also trimmed from its recorded response:
```json
{
"advert_id": "202606063062554",
"title": "BMW 5 Series",
"price": { "amount": 2200, "currency": "GBP", "display": "£2,200" },
…
"tracking_context": { "price": 2200, "make": "BMW", "model": "5 Series", "year": 2014, … }
}
```
I haven't got a recorded AutoTrader listing-detail response, so I won't claim that [the listing endpoint](https://perceptlayer.com/apis/autotrader-uk/listing) returns mileage. If you find it does, fetch it only for candidate pairs and feed it into the same scorer; the code below already handles a mileage that is present on one side only.
## How do you fetch both sources?
Call each search endpoint with the filters you care about and read the `listings` array. Each page costs 1 credit on either endpoint, so five pages from each source is 5 × 2 × 1 = 10 credits per run. Send the key in the `X-API-Key` header, as described in [authentication](https://docs.perceptlayer.com/authentication).
The request for AutoScout24 uses `market`, `make_id`, `model_id`, `sort`, `page` and `limit`; the request for AutoTrader uses `postcode`, `make`, `price_search_type`, `sort` and `page`. Both come from the endpoint parameter lists on the [AutoScout24 search page](https://perceptlayer.com/apis/autoscout24/search) and the [AutoTrader UK search page](https://perceptlayer.com/apis/autotrader-uk/search).
```python
import os, re, time
from collections import defaultdict
from dataclasses import dataclass
from itertools import combinations
from typing import Optional
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def get(path, params):
for _ in range(3):
r = requests.get(BASE + path, params=params, headers=HEADERS, timeout=30)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json()["data"]
raise RuntimeError(f"gave up on {path}")
```
The `get` helper waits for the `Retry-After` seconds on a 429 or 503, which the [rate limits](https://docs.perceptlayer.com/rate-limits) page describes. It deliberately doesn't retry timeouts: a request whose reply was lost may have succeeded and been billed, a case covered in [retrying web API calls without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) and [handling errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python).
## Step 1: Normalise each listing into one record
Convert both shapes into a single `Car` record before comparing anything. Every later step then reads one schema, and every source-specific quirk lives in one small function per source. Prices stay in their original currency, with a property that converts to euros using a rate you supply.
```python
TO_EUR = {"EUR": 1.0, "GBP": float(os.environ["GBP_TO_EUR"])}
@dataclass
class Car:
uid: str
make: str
model: str
year: int
price: float
currency: str
km: Optional[float] = None
@property
def eur(self):
return self.price * TO_EUR[self.currency]
def from_autoscout24(l):
return Car(
uid="as24:" + l["listing_id"],
make=l["make"],
model=l.get("model_group") or l["model"],
year=l["first_registration"]["year"],
price=l["price"]["amount"],
currency=l["price"]["currency"],
km=l["mileage"]["value_km"],
)
def from_autotrader(l):
t = l["tracking_context"]
return Car(
uid="at:" + l["advert_id"],
make=t["make"],
model=t["model"],
year=t["year"],
price=l["price"]["amount"],
currency=l["price"]["currency"],
)
```
Set `GBP_TO_EUR` from a rate source you trust on the day you run. Don't hard-code one: a stale rate quietly widens every price gap. Add a source by writing one more `from_…` function and, if it uses another currency, one more entry in `TO_EUR`.
Next come the fetchers. They stop when `pagination.has_more` is false, which both recorded responses include. For longer loops with safe stopping rules, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
```python
def fetch_autoscout24(pages=5):
cars = []
for page in range(1, pages + 1):
data = get("/v1/autoscout24/search", {
"market": "de", "make_id": "13", "model_id": "1639",
"sort": "price", "page": page, "limit": 20,
})
cars += [from_autoscout24(l) for l in data["listings"]]
if not data["pagination"]["has_more"]:
break
return cars
def fetch_autotrader(pages=5):
cars = []
for page in range(1, pages + 1):
data = get("/v1/autotrader-uk/search", {
"postcode": "SW1A1AA", "price_search_type": "total",
"make": "BMW", "sort": "relevance", "page": page,
})
cars += [from_autotrader(l) for l in data["listings"]]
if not data["pagination"]["has_more"]:
break
return cars
```
## Step 2: How do you normalise make and model names?
Compare names after stripping case, spaces and punctuation, then map known spelling differences to one form. This is the hand-maintained part of any matcher, because marketplaces disagree on names. The recorded AutoScout24 listing has `model_group` set to `3er`, while AutoTrader's recorded model for a 5-series car is `5 Series`.
```python
MAKE_ALIASES = {"vw": "volkswagen", "mercedes": "mercedesbenz"}
def make_key(text):
t = re.sub(r"[^a-z0-9]", "", text.lower())
return MAKE_ALIASES.get(t, t)
def model_key(text):
t = re.sub(r"[^a-z0-9]", "", text.lower())
return re.sub(r"^(\d)(er|series)$", r"\1series", t)
```
Here `model_key("3er")` and `model_key("3 Series")` both return `3series`, and `model_key("X5")` returns `x5`. Those three outputs are from running this code. Only `3er` and `5 Series` come from recorded responses; `3 Series` is my test input, written in the same style as the recorded `5 Series`, and I haven't recorded AutoTrader returning it. Check the spelling against your own data.
Keep the alias tables short and grow them from review output. The [AutoScout24 taxonomy endpoint](https://perceptlayer.com/apis/autoscout24/taxonomy) takes `include[]` values `makes` and `models`, and the [AutoTrader UK taxonomy endpoint](https://perceptlayer.com/apis/autotrader-uk/taxonomy) takes `postcode` and an optional `make`. Compare what each returns for your make to find the spellings that disagree.
## Step 3: How do you cut down the pairs to compare?
Group listings into blocks that share the normalised make and model, and only compare pairs inside a block. A block is the cheap filter that makes fuzzy scoring affordable. Without it, N listings produce N(N-1)/2 comparisons, and most of them pit a Golf against an X5.
```python
def compare(cars):
blocks = defaultdict(list)
for c in cars:
blocks[(make_key(c.make), model_key(c.model))].append(c)
for group in blocks.values():
for a, b in combinations(group, 2):
s, parts = score(a, b)
yield a, b, round(s, 3), parts, label(s, parts)
```
Blocking on make and model assumes both sources spell them well enough to land in the same block. A pair whose model names normalise differently is never compared, and that's a missed match you won't see. Review the biggest singleton blocks now and then to catch spellings your alias tables don't cover yet.
## Step 4: How do you score a candidate pair?
Score each field from 0 to 1, weight the scores, and average over the fields both records have. Year, price and mileage each get a closeness score, and mileage counts most because two different cars rarely share an odometer reading. Tolerances absorb the noise: asking prices drift, and exchange rates move.
```python
PRICE_TOL = 0.10
KM_TOL, KM_FLOOR = 0.03, 1000
WEIGHTS = {"year": 1, "price": 2, "mileage": 3}
MATCH, REVIEW = 0.85, 0.80
def closeness(a, b, rel, floor=0):
width = max(max(a, b) * rel, floor)
return max(0.0, 1 - abs(a - b) / width) if width else 1.0
def score(a, b):
"""Score two cars from the same block: 0 (different) to 1 (same)."""
if abs(a.year - b.year) > 1:
return 0.0, {}
parts = {
"year": 1.0 if a.year == b.year else 0.5,
"price": closeness(a.eur, b.eur, PRICE_TOL),
}
if a.km is not None and b.km is not None:
parts["mileage"] = closeness(a.km, b.km, KM_TOL, KM_FLOOR)
total = sum(WEIGHTS[k] * v for k, v in parts.items())
return total / sum(WEIGHTS[k] for k in parts), parts
def label(s, parts):
if "mileage" not in parts:
return "review" if s >= REVIEW else "different"
if s >= MATCH:
return "match"
return "review" if s >= REVIEW else "different"
```
A few choices deserve a sentence each:
- **Year allows a gap of one.** Sources may define the year differently (registration versus manufacture), so a one-year gap scores 0.5 rather than failing outright. Two years apart is rejected.
- **Price tolerance is 10% of the larger price, after conversion.** It covers the exchange rate and asking-price drift. Tighten it if you match within one currency.
- **Mileage tolerance is 3%, with a floor of 1,000 km.** The floor stops a small odometer difference from zeroing the score on a low-mileage car.
- **No mileage means no automatic match.** Without the heaviest signal, year and price alone can clear the bar for two different cars, so `label` caps those pairs at `review`.
These numbers are starting points I chose, not measured optima. Tune them on pairs you've labelled yourself.
## Step 5: How do you group matches into clusters?
Union the pairs labelled `match`, and treat each connected set as one physical car. A union-find structure does this in near-linear time ( [disjoint-set data structure](https://en.wikipedia.org/wiki/Disjoint-set_data_structure)). It also merges chains, so A matching B and B matching C puts all three together even if A and C would not match directly.
```python
def clusters(cars, pairs):
parent = {c.uid: c.uid for c in cars}
def find(x):
while parent[x] != x:
parent[x] = parent[parent[x]]
x = parent[x]
return x
for a, b, _, _, lab in pairs:
if lab == "match":
parent[find(a.uid)] = find(b.uid)
groups = defaultdict(list)
for c in cars:
groups[find(c.uid)].append(c.uid)
return list(groups.values())
if __name__ == "__main__":
cars = fetch_autoscout24() + fetch_autotrader()
pairs = list(compare(cars))
for a, b, s, parts, lab in pairs:
if lab != "different":
print(lab, s, a.uid, b.uid, parts)
print(clusters(cars, pairs))
```
Send `review` pairs to a person or a second check rather than into the clusters. They're the ones where an extra signal, such as comparing photos or calling the listing endpoint for more fields, earns its credit.
## What does the matcher do on real listings?
On the two recorded AutoScout24 listings it correctly refuses to merge a near-miss. Both are BMW 3-series diesels at about €5,700 to €5,800, so a price-only matcher would fold them together. Their mileage separates them: 215,000 km against 177,000 km. I ran the code above on the recorded fields to see what it does.
| Pair | Year score | Price score | Mileage score | Total | Label |
| --- | --- | --- | --- | --- | --- |
| Recorded 2013 (€5,700, 215,000 km) vs recorded 2012 (€5,800, 177,000 km) | 0.5 | 0.828 | 0.0 | 0.359 | `different` |
The recorded AutoTrader listings ( `BMW 5 Series`, 2014, £2,200, and `BMW X5`, 2005, £2,700) land in different blocks from the AutoScout24 pair and from each other, so nothing is compared. That is the right outcome, but it doesn't show a true match, and the recordings contain none.
To exercise the match path I built a synthetic test pair, which is my input and not API output: a `3er` from 2013 at €5,700 and 215,000 km, and a `3 Series` from 2013 at £4,900 and 215,000 km, with `GBP_TO_EUR=1.15` as a test value, not a quoted rate. The scorer returns 0.962 and labels it `match`. Take away the second car's mileage and the score is 0.923, labelled `review`. The clusters function then returns the first two as one group, with the mileage-less third car left alone.
## What are the false-match trade-offs?
Every threshold trades two errors against each other. Raise `MATCH` and you leave true duplicates apart, which inflates counts and averages. Lower it and you merge two different cars, which deletes a real listing from your data. Which error costs more depends on what you do with the output.
| Use | Cheaper error | Lean towards |
| --- | --- | --- |
| Counting distinct cars on the market | Missed duplicates | A high `MATCH`, more `review` |
| Average asking price per model | Either, in moderation | The default thresholds |
| Alerting on a specific car | Missed duplicates (an extra alert) | A high `MATCH` |
| Showing one row per car to users | Merged different cars | A high `MATCH` and manual review |
Some errors are structural, whatever you tune:
- **Identical twins.** A dealer with three same-year, same-spec cars at similar prices and mileage will look like one car. Group by seller or location as an extra guard if your data has them.
- **Chained merges.** Union-find propagates one bad link into a whole cluster. Cap cluster size and inspect anything larger than the number of sources.
- **Price changes between fetches.** A dealer who cuts the price after your first call pushes a true pair apart. The wider the time gap between fetches, the more you rely on mileage.
- **Missing fields.** Any source without mileage leaves you with year and price, which is why those pairs stop at `review`.
Measure instead of guessing. Label a few hundred pairs by hand, including the `review` band, then count how many confirmed matches fall below `MATCH` and how many rejected pairs sit above it. The data quality checks in [web data quality checks](https://perceptlayer.com/blog/web-data-quality-monitoring-checklist) show where to put that measurement in a pipeline.
## What does a run cost?
A run costs 1 credit per search call, one call per page. Five pages from each source is 10 credits. Running that daily for 30 days is 30 × 10 = 300 credits. The 100 free credits every account gets once, after verifying an email address, cover the first 10 runs; after that, the Starter pack's 10,000 credits cover a year of daily runs (12 × 300 = 3,600). See [credits](https://docs.perceptlayer.com/credits) for how billing works and [pricing](https://perceptlayer.com/pricing) for what credits cost.
Failed calls cost nothing and return `X-Credits-Used: 0`. If you'd rather not refetch pages you've already seen, [caching API responses](https://perceptlayer.com/blog/cache-web-data-api-responses) cuts credits further. Rate limits are per account and counted per minute; if you fetch both sources at once, see [concurrent requests under rate limits](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit).
Run the fetchers with your own filters next. Get a free API key at [sign-up](https://perceptlayer.com/signup), try a search in the playground on the [AutoScout24 API page](https://perceptlayer.com/apis/autoscout24) or the [AutoTrader UK API page](https://perceptlayer.com/apis/autotrader-uk), then paste the output into `compare`. For the fields these sources expose, read [used car listing data for price analysis](https://perceptlayer.com/blog/used-car-listing-data-price-analysis), and for loading the result, [loading API JSON into Postgres](https://perceptlayer.com/blog/load-web-data-json-into-postgres).
## APIs in this post
- [AutoScout24 **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autoscout24)
- [AutoTrader UK **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/autotrader-uk)
## Frequently asked questions
### Can I deduplicate listings without a shared ID?
Yes. Normalise make, model and year, group listings that share them, then score price and mileage within each group. Accept pairs above a threshold and send borderline pairs to review. Mileage carries the most weight in this tutorial's matcher, so a source without it can only produce `review` pairs, never automatic matches.
### How much does it cost to fetch both sources?
A successful search call costs 1 credit on both the AutoScout24 and AutoTrader UK endpoints. Five pages from each is 5 × 2 × 1 = 10 credits per run. Failed calls cost nothing. Every account gets 100 free credits after verifying an email address, and [pricing](https://perceptlayer.com/pricing) lists what credits cost.
### Why not match on titles with fuzzy string similarity?
Titles mix trim, engine and marketing text that differ by site: one recorded title is `BMW 316 Touring 316d`, another is `BMW 5 Series`. String distance scores those as unrelated or as similar for the wrong reasons. Structured fields give a more reliable signal. Titles are useful as a tie-breaker inside a block, not as the key.
### Does this work for sources other than cars?
The method does. Normalise the identifying fields, block on a cheap key, and score the numeric fields with tolerances. For property listings you might block on postcode and bedrooms and score price and floor area. You choose the fields and weights from your own data; the car-specific parts here are the make and model normalisers.
### How do I handle currency differences?
Convert to a single currency with a rate you supply, then compare within a tolerance wide enough to cover rate movement and asking-price drift. The matcher keeps the original price and currency on each `Car` and converts at comparison time, so you can re-run with a new rate without refetching.
deduplication record linkage used cars python data quality
## More from the blog
1. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 30 Aug 2026 Updated 21 Oct 2026 Perceptlayer 7 min read
## [Web Data Quality Checks for Scraped and API Data](https://perceptlayer.com/blog/web-data-quality-monitoring-checklist)
Seven web data quality checks in Python, with code written against a recorded Zillow search response: schema drift, null rates, duplicate zpids and outliers.
2. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 26 Oct 2026 Perceptlayer 7 min read
## [API Pagination: Cursors, Pages and Offsets in Practice](https://perceptlayer.com/blog/api-pagination-patterns)
Offset, page-number and cursor pagination with recorded responses from Indeed, Craigslist and Google Play, a loop that stops correctly, and 1 credit per page.
3. [Data engineering](https://perceptlayer.com/blog/category/data-engineering) 25 Oct 2026 Perceptlayer 7 min read
## [API Rate Limiting: How Limits Work and How to Stay Under](https://perceptlayer.com/blog/api-rate-limiting-explained)
API rate limiting from the client side: per-minute limits, the RateLimit and Retry-After headers, and a Python pacer that runs 3,000 searches in 50 minutes.
---
title: "eBay API: Search Results, Items and Autocomplete as JSON"
description: "Use the eBay API to get search results, items and autocomplete as JSON with one key. Real parameters, a recorded response and the cost: 1 credit per call."
url: https://perceptlayer.com/blog/ebay-item-search-data-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# eBay API: Search Results, Items and Autocomplete as JSON
22 Jul 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
The eBay API here returns eBay search results as JSON with one GET request to `/v1/ebay/search`, authenticated with an `X-API-Key` header. Your key is the only credential you need. The same API has an item endpoint and an autocomplete endpoint. Each successful call costs 1 credit, and failed calls cost nothing.
## Key takeaways
- `GET /v1/ebay/search` takes a required `q` and returns `results`, each with `product_id`, `title`, `link`, `price`, `sponsored` and `location`, plus `total_results` and `has_more` for paging.
- `GET /v1/ebay/item` takes a single required `item_id`, and `GET /v1/ebay/autocomplete` takes a single required `q`.
- All seven eBay endpoints cost 1 credit per successful call; a failed call returns `X-Credits-Used: 0`.
- The free tier is 100 credits, once, after you verify an email address, so your first 100 searches cost nothing and need no credit card.
- `per_page` accepts 60, 120 or 240, and each page you request is one call and 1 credit.
## How do you get eBay search results as JSON?
Send a GET request to `https://api.perceptlayer.com/v1/ebay/search` with a query in `q` and your key in the `X-API-Key` header. The response is JSON with a `results` array, one object per listing, so there's no HTML to parse. Here is the request we recorded a response for:
```bash
curl "https://api.perceptlayer.com/v1/ebay/search?q=coffee+maker&page=1&per_page=60" \
-H "X-API-Key: $API_KEY"
```
To get a key, [sign up for a free API key](https://perceptlayer.com/signup). Keys start with `sk_live_`, and [the authentication docs](https://docs.perceptlayer.com/authentication) cover the header and the `api_key` query parameter for places where you can't set headers.
If you'd rather try it before writing code, the [eBay API page](https://perceptlayer.com/apis/ebay) has a playground. Pick an endpoint, fill in the parameters and run a real call with your key.
## Which parameters does the search endpoint take?
The search endpoint has one required parameter, `q`, and twelve optional ones for category, paging, sorting and filtering. Only `q`, `per_page`, `sort` and `location_postal` carry documented limits or allowed values. Boolean filters like `free_shipping` take true or false. The full list is on the [eBay Search endpoint page](https://perceptlayer.com/apis/ebay/search).
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `q` | string | yes | Up to 255 characters |
| `category` | integer | no | A category ID |
| `page` | integer | no | Page number |
| `per_page` | integer | no | One of 60, 120, 240 |
| `sort` | integer | no | One of 1, 7, 10, 12, 15, 16 |
| `buy_it_now` | boolean | no | Filter for Buy It Now listings |
| `auction` | boolean | no | Filter for auction listings |
| `condition[]` | list of integer | no | One or more condition IDs |
| `price_min` | number | no | Lower price bound |
| `price_max` | number | no | Upper price bound |
| `free_shipping` | boolean | no | Filter for free shipping |
| `preferred_location` | integer | no | Location ID |
| `location_postal` | string | no | Up to 20 characters |
The values for `sort`, `category`, `condition[]` and `preferred_location` are numeric IDs. The catalogue doesn't document what each ID means, so don't guess. Run the playground with a value, look at the order or the listings that come back, and note what you find.
### A filtered search
Filters combine in one request. This one asks for 120 results per page, priced between 20 and 80, with free shipping:
```bash
curl -G "https://api.perceptlayer.com/v1/ebay/search" \
--data-urlencode "q=coffee maker" \
--data-urlencode "per_page=120" \
--data-urlencode "price_min=20" \
--data-urlencode "price_max=80" \
--data-urlencode "free_shipping=true" \
-H "X-API-Key: $API_KEY"
```
## What does a search response look like?
A search response wraps everything in `success` and `data`. Inside `data` you get the echoed `query`, `page` and `per_page`, a `has_more` flag, the `results` array, `total_results`, `related_searches` and `categories`. This is an excerpt of the real response to the coffee maker request above, trimmed with `…`:
```json
{
"success": true,
"data": {
"query": "coffee maker",
"page": 1,
"per_page": 60,
"has_more": true,
"results": [
{
"product_id": "366702966104",
"title": "Mr. Coffee 4-in-1 Single-Serve Latte, Iced, and Hot Coffee",
"link": "https://www.ebay.com/itm/366702966104",
"price": {
"raw": "$60.00",
"extracted": 60,
"currency": "USD"
},
"sponsored": true,
"subtitle": "Brand New",
"thumbnail": "https://i.ebayimg.com/images/g/fhEAAeSwuP5qvcJe/s-l500.webp",
"location": "United States"
},
{
"product_id": "167322718667",
"title": "New Keurig Green Mountain K4000 Cafe System Commercial K-Cup Coffee Maker",
"link": "https://www.ebay.com/itm/167322718667",
"price": {
"raw": "$428.98",
"extracted": 428.98,
"currency": "USD"
},
"sponsored": true,
"subtitle": "Brand New",
"thumbnail": "https://i.ebayimg.com/images/g/UVIAAOSwdnFnmqXS/s-l500.webp",
"location": "United States"
},
…
],
"total_results": 110000,
"related_searches": [
{
"query": "keurig coffee maker",
"link": "https://www.ebay.com/sch/i.html?_nkw=keurig+coffee+maker&_sop=12"
},
…
],
"categories": [
{
"id": 11700,
"name": "Home & Garden"
},
…
]
}
}
```
### Fields worth knowing
Prices come as an object: `raw` is the display string, `extracted` is a number you can sort on, and `currency` is the code. That saves you from stripping a dollar sign. In the excerpt, the first result's `extracted` is `60` and the second's is `428.98`, so it's a plain number whether or not there are cents. The `sponsored` flag lets you drop or separate promoted listings.
| Field | What it holds |
| --- | --- |
| `product_id` | The listing's ID |
| `title`, `subtitle` | Listing title and the condition line, such as "Brand New" |
| `link`, `thumbnail` | Listing URL and image URL |
| `price.extracted` | Numeric price |
| `sponsored` | Whether the listing is promoted |
| `location` | A location string, such as "United States" |
## How do you page through results?
Paging uses `page` and `per_page`, and `has_more` in the response tells you when to stop. Request page 1, process `results`, then increment `page` while `has_more` is true. Each page is one call at 1 credit, whatever `per_page` you pick, so a crawl's cost is the number of pages you request, and you can cap it in your own loop.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/ebay/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
page, listings = 1, []
while page <= 3:
r = requests.get(
URL,
headers=HEADERS,
params={"q": "coffee maker", "page": page, "per_page": 120},
timeout=30,
)
r.raise_for_status()
data = r.json()["data"]
listings.extend(data["results"])
if not data["has_more"]:
break
page += 1
print(len(listings), "listings")
```
The loop stops after three pages as a guard. Remove the cap once you know what a full crawl costs. Three pages is 3 credits, however many listings each page holds.
## How do you fetch a single item?
Call `GET /v1/ebay/item` with `item_id`, its only parameter and a required string of up to 20 characters, to look up one listing. In the recorded search response, `product_id` is the same number as the listing's `/itm/` link, so the example below passes it as `item_id`; confirm in the playground that the IDs line up for your listings. The call costs 1 credit, and the response headers `X-Credits-Used` and `X-Credits-Remaining` show what it cost and what's left. You can try it in the playground first. The [eBay Item endpoint page](https://perceptlayer.com/apis/ebay/item) has the details.
```bash
curl "https://api.perceptlayer.com/v1/ebay/item?item_id=366702966104" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded an item or autocomplete response for this article, so we won't show one. Run the calls in the playground to see what they return before you build against them.
## What does the autocomplete endpoint do?
`GET /v1/ebay/autocomplete` is for query suggestions as a user types. Its only parameter is `q`, a required string of up to 255 characters, such as a partial search term. It costs 1 credit per successful call, so a suggestion lookup per keystroke adds up quickly; a failed call returns `X-Credits-Used: 0`. The playground on the eBay API page lets you see what comes back. The [eBay Autocomplete endpoint page](https://perceptlayer.com/apis/ebay/autocomplete) has the details.
```bash
curl "https://api.perceptlayer.com/v1/ebay/autocomplete?q=coffee+mak" \
-H "X-API-Key: $API_KEY"
```
## What does each call cost?
Every eBay endpoint costs 1 credit per successful call. A failed call costs nothing and returns `X-Credits-Used: 0`. Successful responses carry `X-Credits-Used` and `X-Credits-Remaining`, so you can watch your balance without a separate request. [The credits docs](https://docs.perceptlayer.com/credits) explain the accounting.
| Pack | Credits | eBay calls at 1 credit |
| --- | --- | --- |
| Free | 100, once | 100 |
| Starter | 10,000 | 10,000 |
| Build | 50,000 | 50,000 |
| Growth | 200,000 | 200,000 |
Here is a worked example. Say you track 500 keywords daily with one search call each, 20 days a month: 500 × 20 = 10,000 calls × 1 credit = 10,000 credits. That is exactly one Starter pack of 10,000 credits, so a month with a few retries or extra item lookups would need a larger pack. Purchased credits last 12 months, and there's no subscription. The service is prepaid, so when the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited. See [pricing](https://perceptlayer.com/pricing) for the current packs.
## When should you look at eBay's own API?
Perceptlayer's eBay endpoints are read-only: search, item and autocomplete. Use eBay's own API when you need to write to eBay or build on eBay's own program terms. That means creating or managing listings, or relying on eBay's own search features. Two cases are concrete.
First, selling. eBay's [Sell APIs](https://developer.ebay.com/develop/guides/sell/get-started-with-ebay-apis) are for building selling applications: configuring account settings, listing inventory, marketing listings and reporting on seller performance. Nothing in a read-only search endpoint does that, so if your product publishes or edits listings, go to eBay.
Second, buying features built on eBay's own platform. eBay's [Browse API](https://developer.ebay.com/api-docs/buy/static/api-browse.html) lets you search by keyword, category, image, product ID (EPID) or GTIN, and retrieve item details such as return policy terms and product review data. Our search endpoint takes keyword, category and filter parameters only, so image search or GTIN lookups are a reason to use eBay's. So is any need for an agreement directly with eBay.
This API fits when you want listings as JSON today, with one key and one header, and you want the same key to cover other sites. Data is collected from publicly available sources and returned as found at the time of the call, so check the output against your own needs before you depend on it.
## Can an AI agent call these endpoints?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing; `call_endpoint` spends the endpoint's credits on success only. An agent can find the eBay search endpoint, read its parameters and call it. The [MCP docs](https://docs.perceptlayer.com/ai-agents) show the setup.
For wiring an agent end to end, see [Claude MCP Web Search: Live Results for an Agent](https://perceptlayer.com/blog/claude-agent-live-search-mcp). To keep spend predictable once an agent is looping over searches, read [AI Agent API Cost Control: Cap Web Data Spend](https://perceptlayer.com/blog/ai-agent-web-data-costs).
## What should you build first?
Start with one search in the playground, then copy the cURL call and swap in your own `q`. Once the fields look right, add `price_min`, `price_max` and `free_shipping`, and loop over `page` while `has_more` is true. Add the item endpoint for listings you want to look at individually.
Other marketplace and listing guides follow the same pattern: [Zillow Listings API: Get Property Data as JSON](https://perceptlayer.com/blog/zillow-listings-api-json) and [Airbnb Listings Data API: Search, Details and Reviews](https://perceptlayer.com/blog/airbnb-listings-data-api). The [Marketplaces APIs](https://perceptlayer.com/verticals/marketplaces) page lists the rest of the area, and the [API guides](https://perceptlayer.com/blog/category/api-guides) category collects the step-by-step posts. [Get a free API key](https://perceptlayer.com/signup) and run your first eBay search.
## APIs in this post
- [eBay **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/ebay)
## Frequently asked questions
### How much does an eBay search API call cost?
Each successful call to `/v1/ebay/search`, `/v1/ebay/item` or `/v1/ebay/autocomplete` costs 1 credit. The free tier gives 100 credits once, after you verify an email. Paid packs start at 10,000 credits, which is 10,000 eBay calls; see [pricing](https://perceptlayer.com/pricing) for what credits cost. Failed calls cost nothing.
### What happens when a request fails?
You get an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. Codes include `invalid_api_key` (401), `insufficient_credits` (402), `invalid_parameters` (422), `rate_limited` (429) and `source_error` (502). Failed calls return `X-Credits-Used: 0`. See [the errors docs](https://docs.perceptlayer.com/errors) for the full list.
### Can I search by category, price and condition?
Yes. `/v1/ebay/search` accepts `category` as an integer, `price_min` and `price_max` as numbers, and `condition[]` as a list of integers. It also takes `buy_it_now`, `auction` and `free_shipping` as booleans. The catalogue doesn't document what each category or condition ID means, so test values in the playground first.
### How many results does one call return?
Set `per_page` to 60, 120 or 240 and use `page` to move through the results. The response includes `total_results` and a `has_more` flag. Each page is one call at 1 credit. The recorded example returned `total_results: 110000` for "coffee maker".
### Are there rate limits?
Yes. Limits are per account, shared by all its keys, and counted per minute. Free accounts get 1 request a second; paying accounts get at least 5 a second. A request over the limit returns `rate_limited` (429) and, like any failed call, isn't charged. Both 429 and 503 responses carry a `Retry-After` header with the seconds to wait. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) describe how they work, and the [requests docs](https://docs.perceptlayer.com/requests) cover the call format. Space out a large crawl and retry after a 429 instead of resending in a tight loop.
### Is this the official eBay API, or an eBay scraper?
Neither. eBay runs its own developer program, and its APIs need a registered application and OAuth access tokens. A scraper is code you write and maintain against eBay's pages. This eBay API returns public search results, items and autocomplete as named JSON fields with one key, at 1 credit per successful call. Use eBay's own APIs when you sell on eBay or need account data.
ebay marketplaces search api listings json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 27 Oct 2026 Updated 10 Nov 2026 Perceptlayer 9 min read
## [eBay Scraper or API: Prices Without the Parsing](https://perceptlayer.com/blog/ebay-scraper-vs-api)
Compare an eBay scraper with eBay search at 1 credit a call: a recorded coffee maker search with price.extracted, sponsored flags and 110,000 results.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 27 Oct 2026 Perceptlayer 8 min read
## [News API Options: Google News and Search as JSON](https://perceptlayer.com/blog/news-api-comparison)
Compare three news API routes: Google News returns headline, source.name, iso\_date and link per article; web search endpoints don't. 1 credit a query.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 21 Aug 2026 Updated 6 Nov 2026 Perceptlayer 6 min read
## [DuckDuckGo Search API: Web Results as JSON](https://perceptlayer.com/blog/duckduckgo-search-api-json)
DuckDuckGo's Instant Answer API returns topic summaries, not ranked links. GET /v1/duckduckgo/search returns organic results and paging at 1 credit per query.
---
title: "Immobilienscout24 API: German Property Listings as JSON"
description: "Search ImmobilienScout24 rentals and sales by city with one GET call. Parameters, a recorded Berlin response, and the cost: 1 credit per call."
url: https://perceptlayer.com/blog/immobilienscout24-api-listings
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Immobilienscout24 API: German Property Listings as JSON
20 Jul 2026 Updated 10 Nov 2026 Perceptlayer 6 min read
To get ImmobilienScout24 listings as JSON, call `GET /v1/immobilienscout24/search` with a `location` and an optional `type` such as `apartment-rent`. It returns listings with price, rooms, size in square metres, address, coordinates and a link to the original exposé. Each call costs 1 credit, and a failed call costs nothing. Three more endpoints, Locations, Property and Price Insights, are listed below with their parameters and cost. Only `search` has a recorded response in this article.
## Key takeaways
- Four endpoints: `locations` (by `query`), `search` (by `location`), `property` (by `id`) and `price-insights` (by `location`, market context). Each costs 1 credit. Only `search` has a recorded response here.
- `search` takes `type` with four values ( `apartment-rent`, `apartment-buy`, `house-rent`, `house-buy`) plus price, room and size ranges, and `page` and `per_page` for paging.
- The recorded Berlin rental search reported `total_results` of 11396 across `total_pages` of 570, so walking every page costs 570 credits.
- The `published` field is German relative text such as "vor 16 Tagen", not a date, so parse it before you sort or deduplicate.
- Free accounts get 100 credits on signup with no card, enough for 100 calls.
## Which ImmobilienScout24 endpoints are there?
The [ImmobilienScout24 API](https://perceptlayer.com/apis/immobilienscout24) has four endpoints, all `GET`, all 1 credit per successful call. The endpoints are [Locations](https://perceptlayer.com/apis/immobilienscout24/locations), [Search](https://perceptlayer.com/apis/immobilienscout24/search), [Property](https://perceptlayer.com/apis/immobilienscout24/property) and [Price Insights](https://perceptlayer.com/apis/immobilienscout24/price-insights). This article has a recorded response for Search only, so it covers that endpoint in depth and the other three briefly. The API sits in the [real estate area](https://perceptlayer.com/verticals/real-estate) of the catalogue, which has 480 websites and 2,782 endpoints in total.
| Endpoint | Returns | Required | Optional | Credits |
| --- | --- | --- | --- | --- |
| `/v1/immobilienscout24/locations` | Locations | `query` | `limit` | 1 |
| `/v1/immobilienscout24/search` | Search | `location` | `type`, `price_min`, `price_max`, `rooms_min`, `rooms_max`, `size_min`, `size_max`, `page`, `per_page` | 1 |
| `/v1/immobilienscout24/property` | Property | `id` | none | 1 |
| `/v1/immobilienscout24/price-insights` | Price Insights | `location` | none | 1 |
## How do you search listings in a city?
Pass the city as `location` and pick a listing `type`. The request below asks for apartments to rent in Berlin. Authenticate with the `X-API-Key` header; keys start with `sk_live_`, and [authentication](https://docs.perceptlayer.com/authentication) covers the details. You can get a key at [signup](https://perceptlayer.com/signup) and try the same call in the playground on the API page.
```bash
curl "https://api.perceptlayer.com/v1/immobilienscout24/search?location=Berlin&type=apartment-rent" \
-H "X-API-Key: $API_KEY"
```
Here is an excerpt of the recorded response for exactly that request, trimmed with `…`:
```json
{
"success": true,
"total_results": 11396,
"page": 1,
"total_pages": 570,
"results": [
{
"id": "168052908",
"title": "Naturverbunden wohnen in kompakter 2-Zimmer-Gartenwohnung mit WBS-140-Förderung",
"price": 362,
"is_tenant_network": false,
"price_formatted": "362 €",
"rooms": 2,
"size_m2": 52,
"address": "Hellersdorfer Straße 91, 12619 Berlin, Kaulsdorf (Hellersdorf)",
"lat": 52.52485,
"lon": 13.58695,
"url": "https://www.immobilienscout24.de/expose/168052908",
"is_private": false,
"published": "vor 16 Tagen"
},
…
]
}
```
### Which search parameters can you set?
All filters other than `location` are optional. Combine them to narrow the result set before you pay for pages you don't need.
| Parameter | Type | Notes |
| --- | --- | --- |
| `location` | string, required | Up to 255 characters |
| `type` | string | One of `apartment-rent`, `apartment-buy`, `house-rent`, `house-buy` |
| `price_min`, `price_max` | integer | Price range |
| `rooms_min`, `rooms_max` | number | Room range; a number, so half rooms are possible |
| `size_min`, `size_max` | integer | Size range |
| `page`, `per_page` | integer | Paging |
A filtered example: rentals in Berlin with at least two rooms and 50 square metres.
```bash
curl "https://api.perceptlayer.com/v1/immobilienscout24/search?location=Berlin&type=apartment-rent&rooms_min=2&size_min=50" \
-H "X-API-Key: $API_KEY"
```
## What do the response fields mean?
Each item in `results` is one listing, and the response wraps them with `total_results`, `page` and `total_pages`. Read `total_pages` to know when to stop paging. The listing fields are plain: `id` is a string, `price` a number with `price_formatted` as display text, `rooms` and `size_m2` numbers, and `url` links to the original exposé on the portal.
Three details from the recorded sample matter if you store this data:
- **`published` is relative German text.** The sample has "vor 16 Tagen" (16 days ago) and "vor einem Monat" (a month ago). Convert it against the time of your call and keep both the raw string and your computed date. Month-level text gives you a rough date only.
- **Coordinates can be shared.** The two sample listings have different house numbers but identical `lat` and `lon`. Treat them as approximate and use `address` when you need a precise match.
- **`price` is a number.** In the sample it is 362 for one listing and 760 for another, both 52 square metres. Prices in raw listings vary widely, so check for outliers before you average.
For the rest of the fields, run the call in the playground. The recorded excerpt above is all this article quotes.
## What about Locations, Property and Price Insights?
These three endpoints have no recorded response in this article, so it shows their requests and cost only. Each is `GET`, 1 credit per successful call. `locations` takes a `query` (up to 255 characters) and an optional `limit`. `property` takes an `id`. `price-insights` takes a `location` (up to 255 characters) and returns market context. For response fields, see the API pages: [Locations](https://perceptlayer.com/apis/immobilienscout24/locations), [Property](https://perceptlayer.com/apis/immobilienscout24/property) and [Price Insights](https://perceptlayer.com/apis/immobilienscout24/price-insights). Check the shape there before you build a parser.
```bash
curl "https://api.perceptlayer.com/v1/immobilienscout24/locations?query=Kaulsdorf&limit=5" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/immobilienscout24/property?id=168052908" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/immobilienscout24/price-insights?location=Berlin" \
-H "X-API-Key: $API_KEY"
```
## How do you page through every result?
Loop on `page` until it reaches `total_pages`. The recorded Berlin rental search reported 570 pages, so a full walk is 570 calls × 1 credit = 570 credits. Narrow with `price_max`, `rooms_min` or `size_min` first and the loop shrinks. The same pattern is covered in [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
```python
import os
import requests
BASE = "https://api.perceptlayer.com/v1/immobilienscout24/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def search_all(location, listing_type, max_pages=5, **filters):
page = 1
while page <= max_pages:
params = {"location": location, "type": listing_type, "page": page, **filters}
resp = requests.get(BASE, headers=HEADERS, params=params, timeout=30)
resp.raise_for_status()
body = resp.json()
yield from body["results"]
if page >= body["total_pages"]:
break
page += 1
for item in search_all("Berlin", "apartment-rent", max_pages=2, rooms_min=2):
print(item["id"], item["price_formatted"], item["size_m2"], item["address"])
```
The `max_pages` cap is a budget guard, not a limit of the API. Handle failures with the status and code in the JSON error body; [errors](https://docs.perceptlayer.com/errors) lists them, and [handling API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python) shows retry logic. A `429` carries a `Retry-After` header with the seconds to wait.
## What does it cost?
A successful call costs 1 credit on every ImmobilienScout24 endpoint, and failed calls cost nothing and return `X-Credits-Used: 0`. Free accounts get 100 credits after email verification, with no credit card. Every response carries `X-Credits-Used` and `X-Credits-Remaining`, so you can track spend per call. [Credits](https://docs.perceptlayer.com/credits) explains the rules.
| Job | Calls | Credits |
| --- | --- | --- |
| 20 `locations` calls | 20 × 1 | 20 |
| Walk the 570 pages of the Berlin rental search once | 570 × 1 | 570 |
| Same walk, every day for 30 days | 17,100 × 1 | 17,100 |
| Add 50 `property` lookups and 5 `price-insights` calls a day for 30 days | 1,650 × 1 | 1,650 |
The daily Berlin walk plus the lookups comes to 18,750 credits a month, more than the Starter pack's 10,000 credits and within the Build pack's 50,000, unless you narrow the filters first. For what credits cost, see [pricing](https://perceptlayer.com/pricing). Purchased credits last 12 months, and there's no subscription.
## When is the official ImmobilienScout24 API a better fit?
ImmobilienScout24 runs its own developer API, documented at the [ImmobilienScout24 API docs](https://api.immobilienscout24.de/api-docs/tutorials/customer-website/). It is built for partners, mainly brokers and property software that publish and manage their own listings. If you're a broker syncing your own exposés into your website or CRM, the official route fits better: it's the sanctioned channel for your own objects, and it needs a registration with the portal.
Perceptlayer fits the other direction: reading public listings across a city or a market, for research, price monitoring, lead lists or an AI agent, with no partner agreement. Data is collected from publicly available sources and returned as found at the time of the call, so a listing can change or vanish after you pull it. Check the portal's own terms for how you may use listing content.
## What's the next step?
Get a free key at [signup](https://perceptlayer.com/signup), run the Berlin search above, and look at `total_pages` before you decide how much to pull. If you're building an agent, the same endpoints are available as tools through the MCP server; [AI agents (MCP)](https://docs.perceptlayer.com/ai-agents) shows how. For other markets, the same pattern works in the [Rightmove API guide](https://perceptlayer.com/blog/rightmove-api-property-data) for UK listings, and [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources) covers matching the same flat across portals. All guides are in the [API guides](https://perceptlayer.com/blog/category/api-guides) category.
## APIs in this post
- [ImmobilienScout24 **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/immobilienscout24)
## Frequently asked questions
### Is there an official ImmobilienScout24 API?
Yes, but it is aimed at partners such as brokers who manage their own listings, and it requires registering with the portal. Perceptlayer's ImmobilienScout24 endpoints are for reading public listings by location. They need only an API key, and a successful call costs 1 credit.
### How many credits does an ImmobilienScout24 search cost?
One credit per successful call, on all four endpoints. A search for one page is 1 credit. The recorded Berlin rental search reported 570 pages, so reading all of them is 570 credits. Failed calls cost nothing. You get 100 free credits after verifying an email address.
### Which listing types can I search?
The `type` parameter accepts `apartment-rent`, `apartment-buy`, `house-rent` and `house-buy`. It is optional. You can also filter by `price_min`, `price_max`, `rooms_min`, `rooms_max`, `size_min` and `size_max`, and page with `page` and `per_page`.
### Can the listing data go stale?
Yes. Data is returned as found at the time of the call, and listings on the portal change or get removed. The `published` field is relative German text such as "vor 16 Tagen", so store the date of your own call next to it and re-run the search before acting on an old record.
### How fast can I call it?
Limits are per account and counted per minute. Free accounts get 1 request a second, and paying accounts run at least 5 a second. A `429` response includes a `Retry-After` header with the seconds to wait. See [rate limits](https://docs.perceptlayer.com/rate-limits) for pack rates.
real estate immobilienscout24 germany listings rentals
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 20 Oct 2026 Perceptlayer 6 min read
## [MLS API: How to Get MLS Listing Data](https://perceptlayer.com/blog/mls-api-listing-data)
An MLS API means a RESO Web API feed licensed through an MLS or broker. Compare it with Zillow and Redfin listing endpoints at 1 credit a call.
---
title: "LLM Tool Schema Design: A Checklist for Web APIs"
description: "LLM tool schema design checklist, applied to the Google Maps simple-search endpoint: a before and after schema that cuts 28 result fields to 7."
url: https://perceptlayer.com/blog/agent-tool-schema-design-web-apis
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# LLM Tool Schema Design: A Checklist for Web APIs
20 Jul 2026 Perceptlayer 7 min read
A good LLM tool schema exposes only the parameters a model should choose, names them for what they do, constrains values with enums and limits, and returns a trimmed result. Copying a web API's parameter list one-to-one gives you a schema that works but wastes tokens and invites bad calls. This checklist applies eight rules to the Google Maps `simple-search` endpoint, with a before and after schema.
## Key takeaways
- The raw `simple-search` endpoint takes 7 parameters; a model only needs to choose 3 or 4 of them. Fix the rest in code.
- Each recorded result item has 28 top-level fields. Keeping 7 of them cuts the two recorded items from 3,114 to 531 characters, about 83% less.
- Put the enum, the range and the example in the schema, not in a prompt. Schema constraints travel with the tool.
- Return structured errors and a `has_more` flag so the model can correct itself instead of guessing.
- Every call costs 1 credit and failed calls cost nothing, so a schema that prevents a bad call saves tokens, not credits.
## What does a model need from a tool schema?
A model reads your tool's name, description and parameter schema as plain text and decides from that text alone whether to call it and with what arguments. Both [Anthropic's tool use docs](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/overview) and the [MCP specification's tools page](https://modelcontextprotocol.io/specification/2025-06-18/server/tools) (2025) define a tool by a name, a description and a [JSON Schema](https://json-schema.org/) for the input. Those are the fields that carry your intent to the model, so ambiguity there becomes a wrong call at runtime.
The [Google Maps API](https://perceptlayer.com/apis/google-maps) is a good test case because its search endpoint has parameters of different kinds: one the model must fill, some it shouldn't touch, and a result with far more fields than a reasoning step needs.
## What does the one-to-one schema look like?
The one-to-one schema mirrors the endpoint's parameter list exactly. For `GET /v1/google-maps/simple-search` that means `query` (required) plus `hl`, `gl`, `google_domain`, `limit`, `page` and `fields`, with no descriptions. It's valid, and it's what you get from generating a tool straight from an OpenAPI file. Here's that version as a tool definition:
```json
{
"name": "simple_search",
"description": "Search Google Maps.",
"input_schema": {
"type": "object",
"properties": {
"query": { "type": "string" },
"hl": { "type": "string" },
"gl": { "type": "string" },
"google_domain": { "type": "string" },
"limit": { "type": "integer" },
"page": { "type": "integer" },
"fields": { "type": "string" }
},
"required": ["query"]
}
}
```
A model has to guess what `hl` means, whether `google_domain` is worth setting, and what to put in `fields`. It will sometimes set all three to plausible but wrong values.
## The checklist
Work through these in order. Each item is a decision you make once, in the tool wrapper, rather than a rule you repeat in every prompt.
1. **Name the tool for the task, not the endpoint.** `search_places` tells a model when to reach for it; `simple_search` doesn't. If you expose several Google Maps endpoints, name them as verbs on nouns: `search_places`, `get_business_details`, `get_reviews`.
2. **Write the description as a decision rule.** Say what the tool returns, when to use it and what to call next. Mention that it returns a `business_id` that other tools take as input. Add the cost in credits so a cost-aware agent can plan; the endpoint costs 1 credit per successful call.
3. **Rename parameters that only make sense to the API.** Expose `gl` as `country` and drop `hl` from the schema entirely. The reference types both only as strings, so what `country` should hold is your decision (see item 5). Your wrapper maps `country` back to `gl` when it builds the request.
4. **Remove parameters the model shouldn't choose.** `google_domain`, `hl` and `fields` are configuration, not decisions. Set them in code. Fewer parameters means fewer ways to produce an invalid call.
5. **Turn free strings into enums.** If your agent only serves three markets, `country` is an enum of those three values. The model can't invent a fourth. Test each value in the playground on the Google Maps page before you commit to it; the reference only types `gl` as a string and doesn't list allowed values.
6. **Bound numbers and say what they do.** Give `limit` a `minimum`, a `maximum`, a `default` and a description. Pick the numbers yourself: the endpoint reference documents `limit` only as an integer, so any cap or default is your policy, not the API's. Put the default in the schema and use the same value in the wrapper, so the model sees what happens when it omits `limit`.
7. **Add one example per free-text field.** `"ramen in Berlin"` in the `query` description steers the model toward place-plus-location phrasing better than a paragraph of instructions.
8. **Trim the output before the model sees it.** Return the fields the next step needs, plus a `has_more` flag, and nothing else.
## Which fields does the model actually need?
A search result is only useful to an agent if it can pick a place and hand its ID to the next tool. The recorded `simple-search` response for `query=restaurants in new york` returns items with 28 top-level fields, including `name`, `rating`, `review_count`, `business_id`, `subtypes` and `full_address`. It also carries owner IDs and links, a `photos_sample` array of photo objects, an `attributes` object and several near-duplicate address fields.
```json
{
"name": "Altair Restaurant NYC",
"review_count": 1225,
"rating": 4.8,
"website": "https://www.altairnyc.com/",
"business_id": "0x89c2591598891521:0x4ebcde18610e64",
"subtypes": ["New American restaurant", "Restaurant"],
"full_address": "351 W 38th St, New York, NY 10018, United States",
…
}
```
Seven fields cover search, ranking and follow-up: `name`, `rating`, `review_count`, `business_id`, `full_address`, `subtypes` and `website`. The rest is real data, but it belongs to a different question.
To put a number on it, we compared the first recorded item with a copy holding only those seven fields. Method: compact JSON (no whitespace) of each item, counting characters. The full item is 1,573 characters and the trimmed one 274, an 83% cut; across both recorded items it's 3,114 against 531. The recording already shortens two long URLs with `…`, so real full items are somewhat larger. Characters aren't tokens, so treat this as a size ratio, not a token bill. A ten-place result carries that overhead ten times. If a later step needs phone numbers, call [Business Details](https://perceptlayer.com/apis/google-maps/business-details) for that one place instead of carrying every result's `phone_numbers` through the whole conversation.
## What does the after schema look like?
The after schema applies all eight items: a task-named tool, a decision-rule description, three model-facing parameters plus an optional page, an enum and a bounded integer with a default. The country values below are an example; choose the markets you serve.
```json
{
"name": "search_places",
"description": "Find places on Google Maps from a text query. Returns up to `limit` places with name, rating, review_count, full_address, subtypes, website and business_id, plus has_more. Pass business_id to other Google Maps tools. Costs 1 credit per successful call.",
"input_schema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "What and where, for example 'ramen in Berlin'."
},
"country": {
"type": "string",
"enum": ["US", "GB", "DE"],
"description": "Market to search in."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"default": 5,
"description": "Number of places to return."
},
"page": {
"type": "integer",
"description": "Only set this when the previous result had has_more true."
}
},
"required": ["query"]
}
}
```
The wrapper that runs when the model calls it does the other half of the work. Its `limit=5` matches the schema default. It maps `country` to `gl`, sends the request and projects each item down to the seven fields.
```python
import os
import requests
KEEP = ["name", "rating", "review_count", "business_id",
"full_address", "subtypes", "website"]
def search_places(query, country=None, limit=5, page=None):
params = {"query": query, "limit": limit}
if country:
params["gl"] = country
if page is not None:
params["page"] = page
r = requests.get(
"https://api.perceptlayer.com/v1/google-maps/simple-search",
params=params,
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
body = r.json()
if not r.ok:
# Hand the model the code and message so it can correct the call.
return {"error": body["error"]["code"], "message": body["error"]["message"]}
return {
"places": [{k: p.get(k) for k in KEEP} for p in body["items"][:limit]],
"has_more": body["pagination"]["has_more"],
}
```
An `invalid_parameters` (422) error, for instance, reaches the model as a short code and message, not a stack trace. See [the error reference](https://docs.perceptlayer.com/errors) for the full list of codes.
## Does a tighter schema change what you pay?
A tighter schema doesn't change the credit cost of a call. Every successful `simple-search` call costs 1 credit whatever you do with the response, and failed calls cost nothing ( [credits](https://docs.perceptlayer.com/credits)). What it changes is tokens and retries: fewer fields in the result means a smaller tool message in the model's context, and fewer free-form parameters means fewer malformed calls.
Retries are where the schema affects spend most. An agent that makes 20 searches per task spends 20 credits at 1 credit each, and a loop that repeats a search because the model misread `page` adds credits without adding answers. Our post on [capping agent data spend](https://perceptlayer.com/blog/ai-agent-web-data-costs) covers hard limits, and [MCP rate limiting](https://perceptlayer.com/blog/mcp-server-rate-limiting-agents) covers request rates.
If you'd rather skip writing wrappers for each endpoint, the [MCP server](https://docs.perceptlayer.com/ai-agents) exposes `search_endpoints`, `get_endpoint` and `call_endpoint`, so a model discovers parameters from the catalogue at run time. The trade-off is that your own curated schema, as above, constrains the model more tightly. [MCP vs function calling](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) compares the two approaches.
Next step: copy the wrapper above, then run the same query in the playground on the [Google Maps API page](https://perceptlayer.com/apis/google-maps) to check each enum value before you ship it. You can [get a free API key](https://perceptlayer.com/signup) to do it.
## APIs in this post
- [Google Maps **1 credit per call** · 12 endpoints](https://perceptlayer.com/apis/google-maps)
## Frequently asked questions
### How many parameters should a tool schema have?
As few as the model needs to decide. For `simple-search`, the endpoint has 7 parameters, but a model only needs `query`, a market, a limit and a page. Hold the rest constant in code. Each parameter you expose is another value the model can set wrongly, and another line in every request's context.
### Should I generate tool schemas from the OpenAPI file?
Use it as a starting draft, not the final schema. A generated schema mirrors the API, which is built for programs that read documentation, not models that read descriptions. Add task-focused names, descriptions with examples and enums, and drop configuration-only parameters. The generated file is still useful for checking types and required fields.
### Where should output trimming happen?
In your wrapper, before the result goes back to the model. Trimming in code is guaranteed, whereas asking the API for a subset depends on the format of the `fields` parameter, which the reference documents only as a string. Test `fields` in the playground if you want to trim at the source as well.
### Does the model need to know the cost of a call?
It helps when the agent plans multi-step work. Stating "costs 1 credit per successful call" in the description lets a cost-aware agent budget searches. Failed calls cost nothing and return `X-Credits-Used: 0`, so the model doesn't need to worry about retrying after an error. See [credits](https://docs.perceptlayer.com/credits) for how billing works.
tool calling mcp json schema google maps ai agents
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 13 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [What Is an MCP Server? A Working Example with Web Data](https://perceptlayer.com/blog/what-is-an-mcp-server)
An MCP server exposes tools, resources and prompts to AI apps over stdio or Streamable HTTP. See a real tools/list and tools/call, and what each costs.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Sept 2026 Perceptlayer 7 min read
## [MCP Server Too Many Tools: Keeping Agent Context Small](https://perceptlayer.com/blog/mcp-too-many-tools-context)
One tool per endpoint for 1,659 endpoints is about 567,000 characters of schema. A 10-step checklist to keep an MCP server's tool list small.
---
title: "Trustpilot Reviews API: Any Company's Reviews as JSON"
description: "Get any company's Trustpilot reviews as JSON with one GET to /v1/trustpilot/company-reviews. Parameters, a real Amazon response and 1 credit per call."
url: https://perceptlayer.com/blog/trustpilot-reviews-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Trustpilot Reviews API: Any Company's Reviews as JSON
20 Jul 2026 Updated 23 Oct 2026 Perceptlayer 9 min read
To get a company's Trustpilot reviews as JSON, call `GET /v1/trustpilot/company-reviews` with the company's domain in `company_domain`. The response opens with the business profile (trust score, review counts, categories), then lists reviews with a star rating, title, text, dates and language for each. Each successful call costs 1 credit and a failed call costs nothing. The endpoint is addressed by a company's domain, so one request shape works for any company you look up.
## Key takeaways
- `GET /v1/trustpilot/company-reviews` takes one required parameter, `company_domain`, and is addressed by the company's domain rather than your own account.
- Filter with `rating`, `verified`, `with_replies`, `query`, `date_posted`, `sort` and `languages`; page with `page` and `per_page`.
- Use `/v1/trustpilot/company-search` to find a domain from a name, and `/v1/trustpilot/company-details` for the profile alone.
- Every Trustpilot endpoint costs 1 credit on success. 100 calls cost 100 credits, which fits the free tier of 100 credits on signup.
- The recorded Amazon response shows `numberOfReviews: 49830` and `trustScore: 1.5`, then `reviews` and `relevantReviews` arrays whose entries carry `rating`, `title`, `text`, `dates` and `language`.
- Review entries also include a `consumer` object with a display name, so decide before you store or republish anything.
## Can you get any company's reviews from Trustpilot's official API?
Trustpilot's developer site describes its Trustpilot for Business API as a way to send invitations, showcase reviews and reply to feedback ( [Trustpilot Developers](https://developers.trustpilot.com/), 2026). Access to Trustpilot's global database of business profiles and consumer reviews is listed there as a separate offering, Data Solutions. That page doesn't spell out account requirements for either, so check Trustpilot's terms for the access you'd need.
If you're managing your own reviews, the Business API is described for that job. This guide covers a different shape: one GET addressed by a company's domain, which suits reading reviews for competitors, suppliers, merchants or a list of domains.
## How do you make your first call?
You need an API key and one request. [Get a free API key](https://perceptlayer.com/signup), which gives you 100 free credits after you verify an email address, with no credit card. Keys start with `sk_live_` and go in the `X-API-Key` header, as described in [the authentication docs](https://docs.perceptlayer.com/authentication).
Then search for the company to confirm its domain:
```bash
curl "https://api.perceptlayer.com/v1/trustpilot/company-search?query=amazon" \
-H "X-API-Key: $API_KEY"
```
Pass the domain you find to the reviews endpoint:
```bash
curl "https://api.perceptlayer.com/v1/trustpilot/company-reviews?company_domain=amazon.com&languages=all" \
-H "X-API-Key: $API_KEY"
```
You can also run either call in the playground on [the Trustpilot API page](https://perceptlayer.com/apis/trustpilot) before writing any code. The [quick start](https://docs.perceptlayer.com/quickstart) covers the same steps for other APIs.
## Which endpoints does the Trustpilot API have?
The Trustpilot API has six endpoints, all `GET`, all 1 credit. Three of them do most of the work for a review workflow: search to resolve a name to a domain, details for the profile, and reviews for the review text itself. The other three list businesses by category, categories and countries.
| Path | Returns | Required parameters | Credits |
| --- | --- | --- | --- |
| [`/v1/trustpilot/company-search`](https://perceptlayer.com/apis/trustpilot/company-search) | Company Search | `query` | 1 |
| [`/v1/trustpilot/company-details`](https://perceptlayer.com/apis/trustpilot/company-details) | Company Details | `company_domain` | 1 |
| [`/v1/trustpilot/company-reviews`](https://perceptlayer.com/apis/trustpilot/company-reviews) | Company Reviews | `company_domain` | 1 |
| [`/v1/trustpilot/businesses`](https://perceptlayer.com/apis/trustpilot/businesses) | Businesses | `category` | 1 |
| [`/v1/trustpilot/categories`](https://perceptlayer.com/apis/trustpilot/categories) | Categories | none | 1 |
| [`/v1/trustpilot/countries`](https://perceptlayer.com/apis/trustpilot/countries) | Countries | none | 1 |
The `businesses` endpoint lists companies in a category and takes optional `trustscore`, `claimed`, `country` and `sort` filters. `categories` and `countries` take no parameters and return the category and country lists.
## What parameters does the company reviews endpoint take?
`company-reviews` has one required parameter, `company_domain` (up to 255 characters), and eleven optional ones that filter, sort and page the results. The catalogue documents the types and allowed values below and nothing more, so test a filter in the playground on the [Company Reviews page](https://perceptlayer.com/apis/trustpilot/company-reviews) before relying on it.
| Parameter | Type | Notes |
| --- | --- | --- |
| `company_domain` | string, required | Up to 255 characters |
| `page` | integer | Page number |
| `per_page` | integer | Reviews per page |
| `verified` | boolean | Optional |
| `with_replies` | boolean | Optional |
| `query` | string | Up to 200 characters |
| `rating` | string | Optional |
| `sort` | string | `relevance` or `recency` |
| `locale` | string | One of 23 values, such as `en-US`, `de-DE`, `fr-FR`, `pt-BR`, `ja-JP` |
| `languages` | string | Review languages; the recorded call below uses `all` |
| `fields` | string | Up to 500 characters |
| `date_posted` | string | `any`, `last_12_months`, `last_6_months`, `last_3_months` or `last_30_days` |
A call that sets `verified`, `sort` and `date_posted` looks like this:
```bash
curl "https://api.perceptlayer.com/v1/trustpilot/company-reviews?company_domain=amazon.com&verified=true&sort=recency&date_posted=last_30_days" \
-H "X-API-Key: $API_KEY"
```
## What does the response look like?
We recorded a call for Amazon with `languages=all`. The excerpt below is the start of that response, trimmed with `…`. It opens with `businessUnit`, the profile, and the figures are a snapshot, so the counts will differ when you run it.
```json
{
"pageUrl": "https://www.trustpilot.com/review/www.amazon.com?languages=all",
"businessUnit": {
"id": "46ad346800006400050092d0",
"displayName": "Amazon",
"identifyingName": "www.amazon.com",
"numberOfReviews": 49830,
"numberOfReviewsLast12Months": 9156,
"trustScore": 1.5,
"websiteUrl": "https://www.amazon.com",
"stars": 1.5,
"categories": [
{
"id": "shoe_store",
"name": "Shoe Store",
"isPrimary": false
},
…
],
"isClaimed": true,
"isClosed": false,
"countryCode": "GB",
"activity": {
"claimedDate": "2015-02-18T19:08:43.000Z",
"replyBehavior": {
"averageDaysToReply": 0,
"negativeReviewsWithRepliesCount": 0,
"replyPercentage": 0,
"totalNegativeReviewsCount": 7932
},
…
}
},
"reviews": [
{
"text": "Disgusting company run by disgusting and greedy people …",
"rating": 1,
"labels": {
"verification": {
"isVerified": false,
"verificationLevel": "not-verified"
}
},
"title": "Disgusting company run by disgusting…",
"likes": 0,
"source": "Organic",
"dates": {
"experiencedDate": "2026-10-22T00:00:00.000Z",
"publishedDate": "2026-10-23T01:55:36.000Z"
},
"language": "en",
…
},
…
],
"relevantReviews": [ … ],
…
}
```
The review above is one entry from the recording, with fields trimmed and the `consumer` block left out. Field names stay as the source uses them, so the response is easy to map into a table. `numberOfReviews` and `numberOfReviewsLast12Months` give volume, `trustScore` and `stars` give the rating, and `activity.replyBehavior` holds reply figures for negative reviews: `averageDaysToReply: 0`, `negativeReviewsWithRepliesCount: 0`, `replyPercentage: 0` and `totalNegativeReviewsCount: 7932`. Treat them as a snapshot of what the API returned, not as a statement about how Amazon behaves.
Each review carries a `rating`, a `title`, `text`, a `likes` count, a `source`, a `language` code, and a `dates` object with `experiencedDate` and `publishedDate`. `labels.verification.isVerified` flags verification. In the recording, review text and titles that run long end in `…`.
### Why are there `reviews` and `relevantReviews`?
The recorded response has two separate arrays with the same entry shape. Both hold individual reviews with the fields above. In the recording, `reviews` holds two entries, both published on 2026-10-23, while `relevantReviews` holds entries published on 2026-10-22 and 2026-10-19, one of them with `likes: 2`. The recording doesn't show how either list is chosen, so read both and de-duplicate on each entry's `id` if you merge them.
The `filters` block comes after the lists. `filters.pagination` shows `currentPage: 1`, `totalPages: 2340`, `totalResults: 46782` and `perPage: 20`, and `filters.reviewStatistics.ratings` gives star counts: `one: 33636`, `two: 3004`, `three: 1869`, `four: 2423` and `five: 8898`. Note that `ratings.total` is 49830 while `totalNumberOfReviews` is 46782 in the same recording, so pick one figure and say which you used. Trustpilot explains how it calculates TrustScore in its [Trust Centre](https://corporate.trustpilot.com/trust) (2026), so read that before you compare `trustScore` across companies with very different review counts.
## How do you read these fields in Python?
Call `company-search`, pick the domain, then call `company-reviews` and read the profile and the review entries. We have no recorded `company-search` response, so its fields aren't shown here and the script doesn't parse them. It prints the start of the result so you can find the domain yourself, then sets `domain` by hand. The fields it reads afterwards are the ones in the Amazon recording.
```python
import json
import os
import requests
BASE = "https://api.perceptlayer.com/v1/trustpilot"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def get(path, **params):
r = requests.get(f"{BASE}/{path}", headers=HEADERS, params=params, timeout=30)
r.raise_for_status()
print("credits remaining:", r.headers.get("X-Credits-Remaining"))
return r.json()
search = get("company-search", query="amazon")
print(json.dumps(search)[:500]) # inspect this to find the company's domain
domain = "amazon.com" # set by hand from the search output
data = get("company-reviews", company_domain=domain, languages="all")
unit = data["businessUnit"]
reply = unit["activity"]["replyBehavior"]
print(unit["trustScore"], unit["numberOfReviews"])
print(reply["totalNegativeReviewsCount"], reply["replyPercentage"])
for review in data["reviews"]:
print(
review["rating"],
review["dates"]["publishedDate"],
review["text"][:80],
)
```
Against the recorded call, the two profile lines read `1.5 49830` and `7932 0`, and the loop prints one line per entry in `reviews`, such as `1 2026-10-23T01:55:36.000Z Disgusting company run by disgusting and greedy people`. Two calls cost 2 credits. Loop over `data["relevantReviews"]` the same way if you want that list too. Skip `review["consumer"]` unless you have a reason to read it.
## How do you get just the company profile?
Call `company-details` when you only need the profile, such as a trust score for a list of suppliers. It takes `company_domain` (required) and an optional `locale`, and costs 1 credit.
```bash
curl "https://api.perceptlayer.com/v1/trustpilot/company-details?company_domain=amazon.com" \
-H "X-API-Key: $API_KEY"
```
It costs the same 1 credit as a `company-reviews` call. We have no recorded response for this endpoint, so the [Company Details page](https://perceptlayer.com/apis/trustpilot/company-details) is the place to see its fields.
## How do you page through every review?
`page` and `per_page` are the paging parameters, both integers. The recording's `filters.pagination` block reports `currentPage`, `totalPages` and `perPage`, which is the place to check how far you have left to go. Each page is a separate call at 1 credit, so a limit on pages is also a limit on spend.
Two habits are a general paging pattern. Stop when a page comes back with no reviews rather than at a fixed count, and log the `X-Credits-Remaining` header the API returns on every success. The [pagination guide](https://perceptlayer.com/blog/paginate-web-data-api-python) has a safe loop in Python.
## What does it cost?
Every Trustpilot endpoint costs 1 credit per successful call, and failed calls cost nothing and return `X-Credits-Used: 0`. The free tier gives 100 credits on signup. Purchased credits last 12 months, with no subscription and no seats; the [credits docs](https://docs.perceptlayer.com/credits) and [pricing page](https://perceptlayer.com/pricing) have the detail.
| Pack | Credits | Requests a second included |
| --- | --- | --- |
| Free | 100, once, on signup | 1 |
| Starter | 10,000 | 5 |
| Build | 50,000 | 5 |
| Growth | 200,000 | 5 |
| Pro | 500,000 | 5 |
| Scale | 1,000,000 | 10 |
| Volume | 5,000,000 | 20 |
A worked example: checking the trust score of 500 suppliers with `company-details` is 500 calls × 1 credit = 500 credits: the free tier's 100 credits cover the first 100 suppliers, and the rest needs a pack. Pulling 20 review pages for each of 100 companies is 100 × 20 = 2,000 calls × 1 credit = 2,000 credits, which fits the Starter pack's 10,000.
Scaling up, 500,000 review pages is 500,000 calls × 1 credit = 500,000 credits, exactly one Pro pack. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Rate limits are per account and counted per minute; the pricing page also lists the faster rates you can choose at checkout.
## How do you handle errors and limits?
Errors return an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. For this API, check parameter values against the table above: `invalid_parameters` (422) is the code for bad parameters, alongside `not_found` (404) and `insufficient_credits` (402). Rate-limited (429) and temporarily unavailable (503) responses include a `Retry-After` header with the seconds to wait.
Treat 429 and 503 as retryable after that delay, and 4xx errors as bugs in the request. The [errors docs](https://docs.perceptlayer.com/errors) list every code and the [rate limits docs](https://docs.perceptlayer.com/rate-limits) cover 429 behaviour. Data is collected from publicly available sources and returned as found at the time of the call.
## Can an AI agent call this?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only look up the catalogue and cost nothing; `call_endpoint` takes an endpoint ID and its parameters and spends 1 credit on success only.
An agent can then resolve a company name with `company-search`, fetch `company-reviews` and summarise recent complaints. See [the MCP docs](https://docs.perceptlayer.com/ai-agents) for setup, and [MCP vs function calling](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) for when each approach fits. For other review sources, the [Google Maps reviews guide](https://perceptlayer.com/blog/google-maps-reviews-api-parameters), the [App Store reviews guide](https://perceptlayer.com/blog/app-store-reviews-api), the [Google Play guide](https://perceptlayer.com/blog/google-play-store-api) and the [Glassdoor guide](https://perceptlayer.com/blog/glassdoor-salary-data-api) work the same way.
Next step: run the Amazon call above in the playground on [the Trustpilot API page](https://perceptlayer.com/apis/trustpilot), then swap in the domain you care about.
## APIs in this post
- [Trustpilot **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/trustpilot)
## Frequently asked questions
### Do I need a Trustpilot account to use this?
You need a Perceptlayer API key, which is free to create, and the company's domain. The catalogue documents `company_domain` as the only required input and no Trustpilot credentials. Trustpilot's official Trustpilot for Business API is described as a way to send invitations, showcase reviews and reply to feedback ( [Trustpilot Developers](https://developers.trustpilot.com/), 2026). This endpoint is addressed by a company's domain instead.
### How much does it cost to pull a company's reviews?
One credit per successful call, whichever Trustpilot endpoint you use, so 1,000 calls × 1 credit = 1,000 credits. The free tier gives 100 credits on signup, enough for 100 calls, and failed calls are never billed. [Pricing](https://perceptlayer.com/pricing) shows what credits cost in the 10,000 to 5,000,000 credit packs.
### Do the responses include reviewer names?
Yes. Each review entry in the recording has a `consumer` object with a display name, an image URL, a country code and a review count. We left that block out of the excerpts and don't reproduce the names. Display names identify real people, so we'd leave them out of anything you publish. Check the terms and any privacy rules that apply to your use before you store them.
### Can I filter reviews by star rating or date?
The endpoint has a `rating` parameter (a string with no allowed values listed) and `date_posted`, which takes one of `any`, `last_12_months`, `last_6_months`, `last_3_months` or `last_30_days`. `sort` takes `relevance` or `recency`. Try the combination in the playground. Each call is 1 credit.
### How do I find a company's domain?
Call `company-search` with `query` set to the company name. You can narrow it with `country`, `min_rating` ( `any`, `3`, `4` or `4.5`) and `min_review_count` ( `any`, `25`, `50`, `100`, `250` or `500`). Then pass the domain you chose as `company_domain` to the reviews or details endpoint.
reviews trustpilot reputation api
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 7 min read
## [Trustpilot Scraper or API: Ratings and Review History](https://perceptlayer.com/blog/trustpilot-scraper-vs-api)
A Trustpilot scraper vs a 1-credit company-reviews call: the recorded Amazon response, its star breakdown, and 2,340 pages × 1 credit for a full history.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Jul 2026 Updated 7 Nov 2026 Perceptlayer 8 min read
## [Google Maps Reviews API: Parameters, Requests and Cost](https://perceptlayer.com/blog/google-maps-reviews-api-parameters)
Call GET /v1/google-maps/reviews with a business\_id from Simple Search. Every parameter, the sort values 1 to 4, and the cost: 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
---
title: "LangChain Custom Tool for Live Web Data: Python Tutorial"
description: "Build a LangChain tool in Python for Google Search and News: typed arguments, retries on 429, 502 and 503 only, and a per-run credit cap."
url: https://perceptlayer.com/blog/langchain-custom-tool-web-data
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# LangChain Custom Tool for Live Web Data: Python Tutorial
18 Jul 2026 Updated 10 Nov 2026 Perceptlayer 11 min read
A LangChain custom tool for an API is a Python function with a typed argument schema and a docstring the model can read. This tutorial wraps two Perceptlayer endpoints, Google Search and Google News, in that shape. You get validated arguments, retries only for errors that are worth retrying, and a hard credit cap per agent run. The whole thing is one file of Python, and a successful call costs 1 credit.
## Key takeaways
- A tool is a function plus a Pydantic `args_schema`; the field descriptions and the docstring are what the model sees when it decides how to call it.
- Retry only `rate_limited` (429), `source_error` (502) and `temporarily_unavailable` (503), and honour `Retry-After` when it's present. Never retry 401, 402, 403 or 422: they won't change on a second try.
- HTTP error responses cost nothing and return `X-Credits-Used: 0`, so retrying them can't add to the bill. A request whose reply is lost to a timeout is different: there's no idempotency key, so it may have succeeded and been billed. Don't resend it, and count it against the cap.
- A small `CreditBudget` object reserves each call's cost under a lock before the request and settles to `X-Credits-Used` afterwards, so a looping agent, even one making parallel tool calls, can't spend more than the cap.
- Project responses to the few fields the model needs before truncating, and return errors as short strings instead of raising.
## What does a LangChain custom tool for an API need?
A tool needs four things: a name, a description, an input schema and a function that returns text. LangChain builds the schema the model sees from your type hints, and you can supply a Pydantic model for richer constraints and field descriptions, as the [LangChain tools documentation](https://docs.langchain.com/oss/python/langchain/tools) describes. The model never sees your code, only that schema and the docstring.
For a web data API, that means three decisions. Which endpoint parameters to expose, which to hide, and what the function returns when something goes wrong. Exposing every parameter makes the schema noisy and the model sloppy. Exposing too few leaves the agent unable to narrow a search by language or country.
We'll expose the parameters an agent actually reasons about and leave the rest out. You can add more later from the endpoint pages, such as [the Search Light parameters](https://perceptlayer.com/apis/google-search/search-light).
## Which endpoints and parameters does the tool call?
The tool calls two endpoints, each costing 1 credit on success. `GET /v1/google-search/search-light` takes a required `query` and a set of optional filters. `GET /v1/google-news/news` has no required parameter at all, though in practice you'll pass `q`. Both are on the [Google Search API](https://perceptlayer.com/apis/google-search) and [Google News API](https://perceptlayer.com/apis/google-news) pages, where you can run them in the playground first.
| Endpoint | Required | Parameters we expose | Credits |
| --- | --- | --- | --- |
| `/v1/google-search/search-light` | `query` | `num`, `page`, `hl`, `gl`, `safe`, `sort` | 1 |
| `/v1/google-news/news` | none | `q`, `gl`, `hl`, `page` | 1 |
Some constraints come straight from the catalogue. `hl` and `gl` accept up to 2 characters. `safe` is one of `active` or `off`. `sort` is one of `date`, `date:r` or `date:d`. `query` on Search Light is capped at 2048 characters, and `q` on News at 500. The schema below encodes exactly these, so a malformed call fails locally, before the network, and costs nothing.
Search Light is one of seven Google Search endpoints. If your agent needs more filters, [Search Advanced](https://perceptlayer.com/apis/google-search/search-advanced) takes many more optional parameters, such as `tbs`, `tbm` and `device`, and [Search AI Overview](https://perceptlayer.com/apis/google-search/search-ai-overview) is a separate endpoint.
## How do you set up the project?
Setup is one install and one environment variable. You need Python 3.10 or later (the [LangChain install docs](https://docs.langchain.com/oss/python/langchain/install) list 3.10+ as the requirement), a model provider key for the agent in step 5, and a Perceptlayer key. Free accounts get 100 credits after verifying an email address, no credit card, so everything here fits in the free tier. [Get a free API key](https://perceptlayer.com/signup) and export it.
```bash
pip install langchain langchain-anthropic httpx pydantic
export API_KEY="sk_live_..."
export ANTHROPIC_API_KEY="..."
```
Keys start with `sk_live_` and go in the `X-API-Key` header, which the client below sets once. The [authentication docs](https://docs.perceptlayer.com/authentication) cover the query-parameter alternative for places where you can't set headers. The LangChain packages come from the same install docs: `langchain` plus a provider package, here `langchain-anthropic`. We use `httpx` because it lets you set [separate connect, read, write and pool timeouts](https://www.python-httpx.org/advanced/timeouts/), but `requests` works the same way.
## Step 1: How do you define typed arguments?
Define one Pydantic model per tool, with a `Field(description=...)` on every attribute. The model reads those descriptions as instructions, so write them for it: say what the value is for, not just what type it is. Pydantic's `Field` accepts constraints such as `max_length` ( [Pydantic field docs](https://pydantic.dev/docs/validation/latest/concepts/fields/)), and a `Literal` type limits a value to a fixed set, so we encode the catalogue's limits in the schema instead of leaving them to the API.
```python
from typing import Literal, Optional
from pydantic import BaseModel, Field
class SearchInput(BaseModel):
query: str = Field(
max_length=2048,
description="The search query, as you would type it into Google.",
)
num: Optional[int] = Field(
default=None, description="Number of results to request."
)
page: Optional[int] = Field(
default=None, description="Results page to fetch, for follow-up queries."
)
hl: Optional[str] = Field(
default=None, max_length=2, description="Interface language, e.g. 'en'."
)
gl: Optional[str] = Field(
default=None, max_length=2, description="Country code for results, e.g. 'us'."
)
safe: Optional[Literal["active", "off"]] = Field(
default=None, description="SafeSearch setting."
)
sort: Optional[Literal["date", "date:r", "date:d"]] = Field(
default=None, description="Sort order. Leave unset for relevance."
)
class NewsInput(BaseModel):
q: Optional[str] = Field(
default=None, max_length=500, description="News search query."
)
gl: Optional[str] = Field(
default=None, max_length=2, description="Country code, e.g. 'us'."
)
hl: Optional[str] = Field(
default=None, max_length=2, description="Language code, e.g. 'en'."
)
page: Optional[int] = Field(default=None, description="Results page to fetch.")
```
Every optional field defaults to `None`, and the client drops `None` values before sending. That keeps us from stating defaults the catalogue doesn't document: if the model doesn't set a parameter, the API applies its own behaviour.
## Step 2: How do you build a budget that caps credits per run?
A credit budget is a counter with a ceiling. Before each call the client reserves the call's cost, and only if the reservation fits under the cap does the request go out. Afterwards it settles the reservation to the `X-Credits-Used` value from the response. Every successful response carries that header, plus `X-Credits-Remaining` for the account balance after the call.
Reserving matters because agents can issue several tool calls at once. A plain check-then-record counter would let every parallel call pass the check before any of them recorded a cost. A lock around the reservation closes that gap.
```python
import threading
class CreditBudget:
def __init__(self, cap: int):
self.cap = cap
self.spent = 0 # settled spend plus reservations still in flight
self._lock = threading.Lock()
def reserve(self, cost: int) -> bool:
with self._lock:
if self.spent + cost > self.cap:
return False
self.spent += cost
return True
def settle(self, reserved: int, used: int) -> None:
with self._lock:
self.spent += used - reserved
```
Why a cap in your own code when the account is prepaid anyway? Because prepaid protects the account, not the run. When the balance hits zero, calls return `insufficient_credits` (402) and nothing more is debited. LangGraph already bounds a run with a [recursion limit](https://docs.langchain.com/oss/python/langgraph/graph-api) that raises `GraphRecursionError` when exceeded, and you can lower it per call with `config={"recursion_limit": 5}`. That limit counts graph steps, not credits. The cap is a second limit, denominated in the thing you pay for, so "the agent got stuck" becomes a bounded, known cost. The cost-control article [AI Agent API Cost Control](https://perceptlayer.com/blog/ai-agent-web-data-costs) goes further on budgets across runs.
The arithmetic is simple. A cap of 10 credits at 1 credit per call is at most 10 calls. A run at the ceiling is 10 calls × 1 credit = 10 credits, which is 10 of the 100 free credits you get on signup, or 10 of the 10,000 in a Starter pack. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
## Step 3: Which errors should the tool retry?
Retry the three codes that describe a temporary condition and nothing else. `rate_limited` (429), `source_error` (502) and `temporarily_unavailable` (503) can clear on their own. `invalid_api_key` (401), `insufficient_credits` (402), `restricted_endpoint` (403), `not_found` (404) and `invalid_parameters` (422) are properties of your request or account. Resending the same call gets the same answer.
Errors arrive as an HTTP status and a JSON body shaped `{"error": {"code", "message", "request_id"}}`. The [errors docs](https://docs.perceptlayer.com/errors) are the place to check how errors are reported. An HTTP error response returns `X-Credits-Used: 0`, so retrying one that fails again costs nothing. You're spending time, not credits. Keep the attempt count low so a stuck call doesn't stall the agent, and see the [rate limit docs](https://docs.perceptlayer.com/rate-limits) if you hit 429 often.
Two cases need more care. First, `429` and `503` responses carry a `Retry-After` header with the seconds to wait, so the loop uses it when present and falls back to exponential backoff when it's missing. Second, a call with no response at all is a different animal. Requests have no idempotency key, so one lost to a read timeout may have succeeded and been billed. The client therefore resends only when the connection itself failed, which means the request never arrived. For any other transport error it keeps the reserved credits counted against the cap and tells the model not to repeat the call.
```python
import json
import os
import random
import time
import httpx
BASE_URL = "https://api.perceptlayer.com"
RETRYABLE_STATUS = {429, 502, 503}
STOP_CODES = {"invalid_api_key", "insufficient_credits", "restricted_endpoint"}
MAX_ATTEMPTS = 3
MAX_WAIT = 30 # seconds; if Retry-After asks for more, give up instead
MAX_CHARS = 6000 # our own limit, to protect the model's context window
# Fields from the recorded Search and News responses that a model can use.
KEEP = ("position", "title", "link", "snippet", "source", "iso_date")
RESULT_KEYS = ("organic_results", "news_results")
def project(text: str) -> str:
"""Keep a few fields per result, then drop whole results to fit MAX_CHARS."""
try:
data = json.loads(text)
except ValueError:
return text[:MAX_CHARS]
items = next((data[k] for k in RESULT_KEYS if isinstance(data.get(k), list)), None)
if items is None: # a shape we have no recorded sample for
return text[:MAX_CHARS]
kept = []
for item in items:
row = {k: item[k] for k in KEEP if k in item}
if isinstance(row.get("source"), dict): # News nests the name
row["source"] = row["source"].get("name")
if len(json.dumps(kept + [row])) > MAX_CHARS:
break
kept.append(row)
return json.dumps(kept)
class PerceptlayerClient:
def __init__(self, budget: CreditBudget):
self.budget = budget
self.http = httpx.Client(
base_url=BASE_URL,
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
def get(self, path: str, params: dict, cost: int = 1) -> str:
if not self.budget.reserve(cost):
return (
f"Credit cap reached: {self.budget.spent} of {self.budget.cap} "
"credits used this run. Do not call again; answer from the "
"results you already have."
)
clean = {k: v for k, v in params.items() if v is not None}
for attempt in range(1, MAX_ATTEMPTS + 1):
try:
resp = self.http.get(path, params=clean)
except (httpx.ConnectError, httpx.ConnectTimeout) as exc:
# No connection, so the request never arrived: safe to resend.
if attempt < MAX_ATTEMPTS:
time.sleep(self._backoff(attempt))
continue
self.budget.settle(cost, 0)
return f"Could not connect after {attempt} attempts: {type(exc).__name__}."
except httpx.TransportError as exc:
# The reply was lost. The call may have succeeded and been
# billed, so keep the reservation and do not resend.
return (
f"No reply ({type(exc).__name__}). The call may have been "
"billed, so it counts against the cap. Do not repeat it."
)
if resp.is_success:
used = int(resp.headers.get("X-Credits-Used", cost))
self.budget.settle(cost, used)
return project(resp.text)
code, message = self._parse_error(resp)
if resp.status_code in RETRYABLE_STATUS and attempt < MAX_ATTEMPTS:
delay = self._delay(resp, attempt)
if delay is not None:
time.sleep(delay)
continue
self.budget.settle(cost, 0) # an error response is not billed
hint = " Do not retry." if code in STOP_CODES else ""
return f"Request failed ({resp.status_code} {code}): {message}{hint}"
self.budget.settle(cost, 0)
return "Request failed."
@staticmethod
def _parse_error(resp: httpx.Response) -> tuple[str, str]:
try:
err = resp.json()["error"]
return err.get("code", f"http_{resp.status_code}"), err.get("message", "")
except (ValueError, KeyError, TypeError, AttributeError):
return f"http_{resp.status_code}", ""
@staticmethod
def _backoff(attempt: int) -> float:
return 2 ** (attempt - 1) + random.uniform(0, 0.5)
def _delay(self, resp: httpx.Response, attempt: int) -> float | None:
"""Seconds to wait before a retry, or None to stop retrying."""
header = resp.headers.get("Retry-After")
if header is None:
return self._backoff(attempt)
try:
seconds = max(float(header), 0.0)
except ValueError:
return self._backoff(attempt)
return seconds if seconds <= MAX_WAIT else None
```
Four details matter here. The reservation happens before the request, so a capped run never touches the network, and parallel calls can't all pass the check at once. The loop returns strings for every failure instead of raising, so the model reads "422 invalid\_parameters: …" and can correct its next call. `Retry-After` wins over the backoff schedule when it's there, and a wait longer than `MAX_WAIT` ends the retries rather than stalling the agent. And `project` keeps only fields that appear in the recorded responses before it applies `MAX_CHARS`.
Why project at all? The recorded Search response carries `redirect_link` tokens on each result, and the recorded News response carries `thumbnail`, `story_token` and a `menu_links` list. Those cost context and tell the model nothing. Cutting raw JSON at a character count also lands mid-field. `project` drops whole results instead, so the output stays valid JSON. The trade-off is that fields outside `KEEP`, such as `related_questions` or `local_results`, never reach the model; add the ones your agent needs. The recorded sample is from the Search endpoint, and we haven't recorded Search Light, so if its response has neither `organic_results` nor `news_results`, `project` falls back to the raw text cut at `MAX_CHARS`. Check the shape in the playground and adjust `RESULT_KEYS` if it differs.
## Step 4: How do you turn the client into LangChain tools?
Wrap the client in a factory so each run gets its own budget. Inside, decorate one function per endpoint with `@tool`, pass the `args_schema`, and write a docstring that tells the model when to pick this tool over the other. The docstring is the tool description, so it's the most important text in the file after the schema.
```python
from langchain.tools import tool
def build_tools(budget: CreditBudget):
client = PerceptlayerClient(budget)
@tool("google_search", args_schema=SearchInput)
def google_search(
query: str,
num: Optional[int] = None,
page: Optional[int] = None,
hl: Optional[str] = None,
gl: Optional[str] = None,
safe: Optional[str] = None,
sort: Optional[str] = None,
) -> str:
"""Search Google and return the results as JSON text. Use for general
questions, documentation and anything that is not breaking news."""
return client.get(
"/v1/google-search/search-light",
{"query": query, "num": num, "page": page, "hl": hl,
"gl": gl, "safe": safe, "sort": sort},
)
@tool("google_news", args_schema=NewsInput)
def google_news(
q: Optional[str] = None,
gl: Optional[str] = None,
hl: Optional[str] = None,
page: Optional[int] = None,
) -> str:
"""Search Google News and return recent articles as JSON text. Use for
current events and anything where recency matters."""
return client.get(
"/v1/google-news/news",
{"q": q, "gl": gl, "hl": hl, "page": page},
)
return [google_search, google_news]
```
You can test a tool without any model. Call `build_tools(CreditBudget(cap=5))[1].invoke({"q": "technology"})` and you get a JSON string: the projected results, not the raw response. Pass `{"query": "x" * 3000}` to the search tool and the schema rejects it before a request is sent.
What does the model actually see? Here is the recorded News response for `q=technology`, trimmed to two results. The bulky fields are marked with `…`.
```json
{
"news_results": [
{
"position": 1,
"title": "Top Strategic Technology Trends for 2027",
"link": "https://www.gartner.com/en/articles/top-technology-trends-2027",
"snippet": "Explore Gartner's Top Strategic Technology Trends for 2027 — 10 trends that will shape autonomy, resilience and governance in the years...",
"iso_date": "2026-10-20T15:59:45+00:00",
"thumbnail": "https://www.gartner.com/ngw/globalassets/…/itsym-top-tech-trends.webp",
"source": { "name": "Gartner", "icon": "…", "title": "Gartner" },
"story_token": "CBMib0FVX3lxTE1zMGNN…",
…
},
…
],
"menu_links": [ { "title": "U.S.", "link": "…", "topic_token": "…" }, … ]
}
```
After `project`, the news tool returns this instead, with `thumbnail`, `story_token`, `menu_links` and the nested source object gone:
```json
[{"position": 1, "title": "Top Strategic Technology Trends for 2027", "link": "https://www.gartner.com/en/articles/top-technology-trends-2027", "snippet": "Explore Gartner's Top Strategic Technology Trends for 2027 — 10 trends that…", "source": "Gartner", "iso_date": "2026-10-20T15:59:45+00:00"}, …]
```
The recorded Search response for `query=best restaurants in Berlin` works the same way. Each item in `organic_results` has `position`, `title`, `link`, `snippet` and `source`, plus a long `redirect_link` that the projection drops:
```json
{
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"redirect_link": "https://www.google.com/goto?url=CAESegHrOzAV7vOTOiRY…",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. …",
"source": "Anders & Kaitlin",
…
},
…
],
…
}
```
That recording is from `/v1/google-search/search`, a sibling of Search Light, so treat it as the shape to expect rather than a guarantee. To see a real Search Light or News response with your own parameters, run the call in the playground on the [Search Light page](https://perceptlayer.com/apis/google-search/search-light) or the [News page](https://perceptlayer.com/apis/google-news/news).
## Step 5: How do you run the agent with a credit cap?
Create one budget per run, build the tools from it, and hand them to the agent. `create_agent` is imported from `langchain.agents`, takes a `"provider:model"` string and a `system_prompt`, as the [LangChain agents docs](https://docs.langchain.com/oss/python/langchain/agents) show. The model ID below, `claude-sonnet-5-5`, is the Claude Sonnet 5.5 API ID listed on [Anthropic's models overview](https://platform.claude.com/docs/en/about-claude/models/overview) (2026); the agents docs use a different Claude example ID, so check the models page for the current one. Print the budget at the end so every run reports what it spent. The cap is enforced in the tools, not in the prompt, and each call reserves its credits under a lock before the request goes out, so neither a persuasive model nor parallel tool calls can push the run past it.
```python
from langchain.agents import create_agent
MODEL = "anthropic:claude-sonnet-5-5" # swap for any chat model LangChain supports
def run(question: str, max_credits: int = 10) -> str:
budget = CreditBudget(cap=max_credits)
agent = create_agent(
MODEL,
tools=build_tools(budget),
system_prompt=(
"Answer using the tools. Use google_news for recent events and "
"google_search otherwise. If a tool says the credit cap is "
"reached, stop calling tools and answer with what you have."
),
)
result = agent.invoke({"messages": [{"role": "user", "content": question}]})
print(f"Credits used this run: {budget.spent} of {budget.cap}")
return result["messages"][-1].content
if __name__ == "__main__":
print(run("What changed in the news about AI agent frameworks this week?"))
```
What the run prints is two things: the model's final answer, which depends on the model and on whatever the news is that day, and one line in the form `Credits used this run: N of 10`, where N is the number of successful calls at 1 credit each, plus any call whose reply was lost. We haven't recorded an agent run, so we won't show an answer here. If the agent loops, the first call past the cap comes back with the cap message instead of data, and the run ends at your ceiling. The credit line prints on every run, which is also a cheap way to spot a prompt that makes the agent over-search.
## When should you use MCP instead of a custom tool?
Use a custom tool when you want control: typed arguments you chose, your own retry rules and a budget in code. Use the MCP server when you want breadth. It exposes `search_endpoints`, `get_endpoint` and `call_endpoint` at `https://perceptlayer.com/mcp`, so an agent can discover endpoints across the whole catalogue of 480 websites and 2,782 endpoints without you writing a wrapper for each.
The two compose well. Searching the catalogue and reading endpoint details cost nothing; `call_endpoint` spends the endpoint's credits on success only. A custom tool is the better fit when the agent needs one or two sources and you want predictable arguments. MCP fits an agent that has to pick its own sources. The [MCP docs](https://docs.perceptlayer.com/ai-agents) and the [Claude MCP search tutorial](https://perceptlayer.com/blog/claude-agent-live-search-mcp) cover that route.
Your next step: [get a free API key](https://perceptlayer.com/signup), paste the code into one file, and run it with a cap of 5 credits. Then browse the [full list of APIs](https://perceptlayer.com/apis) and add a second wrapper for the next source your agent needs.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
- [Google News **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/google-news)
## Frequently asked questions
### How much does a LangChain tool call cost?
Each successful call to the two endpoints in this tutorial costs 1 credit. HTTP error responses cost nothing and return `X-Credits-Used: 0`. A free account gets 100 credits once, on signup, so 100 calls × 1 credit = 100 credits fits the free tier. Paid credits come in prepaid packs starting at 10,000 credits (Starter). See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits).
### Why return error strings instead of raising exceptions?
A string goes back to the model as the tool result, so it can correct an `invalid_parameters` argument or stop on a cap message. LangChain's [tools docs](https://docs.langchain.com/oss/python/langchain/tools) handle tool errors with agent middleware that catches the exception and returns a custom error message, which is the same idea applied after the fact. Returning short, specific strings from the tool itself needs no extra configuration and gives the model what it needs to decide its next step.
### Which errors are safe to retry?
Retry `rate_limited` (429), `source_error` (502) and `temporarily_unavailable` (503), waiting for `Retry-After` when the response has one. Don't retry `invalid_api_key`, `insufficient_credits`, `restricted_endpoint`, `not_found` or `invalid_parameters`; the same request will fail the same way. Error responses cost no credits, but a timeout leaves you without a response, and that request may have been billed. Details are in the [errors docs](https://docs.perceptlayer.com/errors).
### Can I use other endpoints in the same pattern?
Yes. The endpoints in this post are GETs with named parameters, and each endpoint page lists its method, so each new one needs a Pydantic model, a small function and a path. Take the paths and parameter limits from the endpoint page. Some endpoints cover social, personal or SEO data and need the restricted-endpoint terms accepted in the dashboard first.
### Is the credit cap shared across runs?
No. `CreditBudget` lives in memory for one run, because `build_tools` creates a new one each time. For a daily or monthly limit, persist the spent total yourself, or watch `X-Credits-Remaining` on the account balance. The prepaid model is the backstop: when credits run out, calls return `insufficient_credits` (402) and nothing more is debited.
langchain python tool calling google search ai agents
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Oct 2026 Perceptlayer 8 min read
## [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends)
Wire Google Search, Trends and News into one Python agent, cap it at 8 credits per question, and see a recorded Trends response.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 24 Jul 2026 Perceptlayer 7 min read
## [Scheduled AI Agent Runs: Budgeting Credits per Run](https://perceptlayer.com/blog/scheduled-agent-credit-budget)
Cap an agent at N calls per run with a Python ledger that reads X-Credits-Used, plus the math for hourly and daily runs on 100 credits on signup.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 14 Jul 2026 Perceptlayer 7 min read
## [AI Shopping Agent: Compare Prices Across Marketplaces](https://perceptlayer.com/blog/ai-shopping-agent-compare-prices)
A Python AI shopping agent that searches Google Shopping, Walmart and AliExpress, normalises offers into one table and stops at a credit cap of 6 per question.
---
title: "MCP Server Rate Limiting: Keep Agent Tool Calls in Check"
description: "Where to rate limit MCP agent tool calls, with a worked loop against a 60-requests-a-minute account, Retry-After handling and the credit math."
url: https://perceptlayer.com/blog/mcp-server-rate-limiting-agents
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# MCP Server Rate Limiting: Keep Agent Tool Calls in Check
18 Jul 2026 Perceptlayer 9 min read
Rate limiting an MCP server means capping how many tool calls an agent can make per minute, and the cap belongs in three places at once: a pacing check in the agent's own code, a per-account limit at the gateway, and respect for whatever the source website tolerates. The gateway limit is the one you can't skip, because an agent loop will find it. This article shows where each limit sits and walks through a loop that hits one. It is written from the side of an agent that consumes a limited gateway; if you are building the limiter into your own MCP server, the short section on that below covers what to enforce.
## Key takeaways
- Put the hard limit at the gateway, per account, so one runaway agent can't spend another team's request budget. Put a soft pacing check in the client so the agent rarely reaches the hard one.
- Perceptlayer limits requests per account, counted per minute: free accounts get 1 request a second (60 a minute), and paying accounts get at least 5 a second (300 a minute).
- A `429` carries a `Retry-After` header with the seconds to wait, and a failed call costs 0 credits, so retrying after a `429` doesn't bill you.
- Don't blindly retry a client timeout: with no idempotency key, the original request may have succeeded and been billed.
- Hand the model a plain "wait N seconds" tool result instead of a stack trace, so it can decide whether to pause or change plan.
## Why do MCP tool calls need rate limiting at all?
An agent decides how many tool calls to make, and nobody reviews that decision in advance. A model that fans out eight searches per step, over ten steps, produces 80 calls in whatever time the loop takes. Without a limit, that is also your credit balance, the source websites' goodwill and your other users' latency, spent by a prompt.
The [Model Context Protocol tools specification](https://modelcontextprotocol.io/specification/latest/server/tools) defines how a client lists and calls tools, and its security considerations say servers must rate limit tool invocations. It doesn't set a number or a window, so each server picks its own policy (MCP specification, 2026). That's why the limit has to live somewhere you control, not in the model's instructions. "Please make at most one call a second" in a system prompt is a request the model may or may not honour.
Two things make agents different from a normal API client. First, they can retry: nothing stops a model from answering an error by sending the same call again, or a near-identical one, straight away, so plan for it rather than hoping it won't happen. Second, they can parallelise: by default, Claude may call multiple tools in a single response, and it's up to your code whether those run concurrently or one at a time ( [Anthropic parallel tool use docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/parallel-tool-use), 2026). Both patterns can turn a polite average rate into bursts.
## Where should the limit live: client, gateway or source?
Each layer protects something different, so the question isn't which one to pick. The gateway limit protects the account and the service, the client limit protects the agent from wasting its own turns, and the source website's limit is the constraint you inherit and can only respect, not set.
| Layer | What it protects | Who sets it | What happens when it trips |
| --- | --- | --- | --- |
| Client (agent code) | Your own latency, token budget and credit balance | You | The agent waits or drops a call before it is sent |
| Gateway (the MCP server and API) | The account, other accounts, the service | The provider, per account | `429` with `Retry-After`; nothing is billed |
| Source (the website behind the data) | The source's tolerance for traffic | The source | Can show up as a slow or failed call; you don't control it |
The client layer is soft and advisory: you can change it any time, but a bug bypasses it. The gateway layer is hard: it applies to every client, including the one with the bug. If you only build one, build the gateway layer (see the section on building it below). If you consume someone else's gateway, as you do with Perceptlayer, your job is the client layer: read the headers the gateway gives you and stay under them.
## What does the Perceptlayer rate limit look like?
Limits are per account, shared by all of the account's keys, and counted per minute ( [rate limits docs](https://docs.perceptlayer.com/rate-limits)). A free account gets 1 request a second, which is 60 a minute. Each credit pack includes a rate: 5 a second for Starter through Pro, 10 for Scale, 20 for Volume, 25 for Volume 10M and Volume 25M, and 50 for Volume 50M. Paying accounts run at the rate of the credits they are using, and at least 5 a second (300 a minute).
A faster rate can be chosen at checkout for a higher price, up to a maximum that depends on the pack; [pricing](https://perceptlayer.com/pricing) has the details and what credits cost. Because the limit is per account, a second API key doesn't add capacity. Two agents sharing one account share one budget.
Every response says where you stand:
| Header | Meaning |
| --- | --- |
| `RateLimit-Limit` | Requests allowed per minute |
| `RateLimit-Remaining` | Requests left this minute |
| `RateLimit-Reset` | Seconds until the minute resets |
| `RateLimit-Policy` | The policy the limit follows |
| `Retry-After` | On `429` and `503`: seconds to wait |
| `X-Credits-Used` / `X-Credits-Remaining` | What the call cost, and the balance after it |
A `429` follows the standard in [RFC 6585](https://www.rfc-editor.org/rfc/rfc6585#section-4), and `Retry-After` is defined in [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110#field.retry-after). The error body is `{"error": {"code", "message", "request_id"}}` with the code `rate_limited`; the [errors docs](https://docs.perceptlayer.com/errors) list the rest.
## What happens when an agent loop hits the limit?
On a free account, a loop that issues 80 calls in under a minute is over the budget: the limit is 60 requests a minute, so about 20 calls are rejected with `rate_limited` (429). Requests are counted per minute, so the first 60 in the minute go through and the rest get `rate_limited` until `RateLimit-Reset` says the minute has started over. Rejected calls cost nothing: failed calls return `X-Credits-Used: 0`.
Here is the loop. An agent researches a topic. At each of 10 steps, the model asks for 8 searches through `call_endpoint`, using the [Google Search API](https://perceptlayer.com/apis/google-search) `search-light` endpoint (1 credit per call).
| Quantity | Value |
| --- | --- |
| Calls the loop wants to make | 10 steps × 8 searches = 80 calls |
| Free-account limit | 60 requests a minute |
| Calls the minute's budget covers | 60 |
| Calls over budget, rejected with `429` | 20 |
| Credits spent on 60 accepted calls | 60 calls × 1 credit = 60 credits |
| Credits spent on 20 rejected calls | 20 × 0 = 0 credits |
| Credits once all 80 eventually succeed | 80 calls × 1 credit = 80 credits |
Two outcomes are possible, and they differ in cost to you in tokens, not credits. If the tool returns the raw error, the model may retry at once and burn turns on more `429` responses. If the tool or the client waits the `Retry-After` seconds, the loop finishes a little later and each rejected call is made once more, for 80 credits in total.
On a paying account with at least 5 requests a second (300 a minute), the same 80 calls fit inside the 300-a-minute limit without any waiting. This is why the account's rate, not the number of keys, is the figure to plan around.
## How do you pace calls in the client?
Read `RateLimit-Remaining` and `RateLimit-Reset` on every response, and sleep when the budget is spent. That keeps most calls from ever seeing a `429`. Treat `Retry-After` as the authority when you do get one. The wrapper below does both, and it is the function you would expose to the model as a tool.
```python
import os
import time
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
resume_at = 0.0 # when the minute's budget is back, after a call used it up
def search(query: str, max_tries: int = 4) -> dict:
global resume_at
time.sleep(max(0.0, resume_at - time.monotonic()))
wait, remaining = 0, 0
for attempt in range(max_tries):
r = requests.get(
f"{BASE}/v1/google-search/search-light",
params={"query": query},
headers=HEADERS,
timeout=30,
)
if r.status_code in (429, 503):
# Failed calls cost 0 credits, so waiting and retrying is safe.
wait = int(r.headers.get("Retry-After", 2 ** attempt))
remaining = int(r.headers.get("RateLimit-Remaining", 0))
if attempt < max_tries - 1:
time.sleep(wait)
continue
r.raise_for_status() # 402 insufficient_credits, 422, etc. stop here
if int(r.headers.get("RateLimit-Remaining", 1)) == 0:
# Budget used up: return this result now, and wait before the next call.
resume_at = time.monotonic() + int(r.headers.get("RateLimit-Reset", 1))
return r.json()
# Out of retries: hand the model a small result instead of raising.
return {
"code": "rate_limited",
"retry_after_seconds": wait,
"calls_remaining": remaining,
}
```
Three details matter. A `requests.Timeout` isn't caught on purpose: the request may have succeeded and been billed, because requests carry no idempotency key. Decide per call whether a repeat is acceptable; [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers the patterns. A `402` ( `insufficient_credits`) isn't retried either, since the service is prepaid and nothing tops up automatically. And `max_tries` bounds the loop, so a stuck limit ends in a small result the model can act on, not a spin.
For concurrent tool calls, put a semaphore or a shared token bucket around `search`, sized so a burst from one model turn can't use up the minute's budget on its own.
## What should the model see when a limit trips?
Give the model a short, actionable result and keep the retry logic out of its context. A model reasons well about "rate limited, wait 12 seconds, 31 searches still pending" and badly about a raw traceback or an HTML error page. Handle the wait in code when you can; surface it to the model only when waiting changes the plan.
When retries run out, the `search` function above returns this instead of raising:
```json
{
"code": "rate_limited",
"retry_after_seconds": 12,
"calls_remaining": 0
}
```
`code` tells the model what kind of problem it is, `retry_after_seconds` is the `Retry-After` value (12 here is an illustration), and `calls_remaining` is the `RateLimit-Remaining` budget for this minute. If you expose `search` through an MCP server, report it as a tool execution error ( `isError: true`), which the specification says clients should pass to the model so it can recover ( [MCP tools specification](https://modelcontextprotocol.io/specification/latest/server/tools), 2026). Don't include request or response bodies in logs; log the `request_id` from the error body instead, which is what support needs to trace a call.
If you run the Perceptlayer MCP server at `https://perceptlayer.com/mcp` (Streamable HTTP), remember that limits are per account, so pace it the way you would any other client of your key, and `call_endpoint` reports credits used and remaining on each call. `search_endpoints` and `get_endpoint` only look up the catalogue and cost nothing in credits. Your client-side pacing still matters, because the server can only say no; it can't make the agent plan fewer calls. The [AI agents docs](https://docs.perceptlayer.com/ai-agents) cover setup, and [MCP server for web scraping](https://perceptlayer.com/blog/mcp-server-for-web-scraping) shows the three tools in use.
## What if you are building the limiter into your own MCP server?
Enforce three things on the server, keyed by account rather than by connection or API key. Count requests per window and reject over-budget calls before doing any work. Return the same result shape on every rejection: a code, the seconds to wait and the budget left. Only charge for calls that succeed, so a rejected call is free for the caller. A token bucket or fixed window both work; the choice mostly decides how bursts are treated. Behind a gateway, the gateway usually does the counting and the MCP server just passes the headers through.
Rate limits cap speed, not spend. For a ceiling on total credits per run, pair pacing with a budget, as described in [capping web data spend for an agent](https://perceptlayer.com/blog/ai-agent-web-data-costs). The [credits docs](https://docs.perceptlayer.com/credits) explain how debits work.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Do rejected requests cost credits?
No. Only a successful response debits credits, and a failed call returns `X-Credits-Used: 0`. A `429` is a failed call, so a loop that gets rate limited and waits spends the same total as one that was never limited: each successful call costs the credits shown on its endpoint, which is 1 credit for nearly all of them.
### Does a second API key raise my rate limit?
No. Limits are per account and shared by all of its keys, so extra keys don't add capacity. To go faster, use a pack with a higher included rate, or choose a faster rate at checkout up to the pack's maximum. The [pricing page](https://perceptlayer.com/pricing) lists the details, and the rate limits docs explain how the rate follows the credits in use.
### How long should the agent wait after a 429?
Wait the number of seconds in the `Retry-After` header. If it's missing, fall back to exponential backoff with a small cap. `RateLimit-Reset` tells you how many seconds remain until the minute resets, which is a useful upper bound when you are pacing before a `429` happens.
### Is it safe to retry a call that timed out?
Not automatically. Requests have no idempotency key, so a request whose reply was lost may have succeeded and been billed. Retry on a timeout only when the call is cheap to repeat, such as a 1-credit search, and keep a cap on attempts. For a deeper treatment, see the article on retrying without paying twice.
### Where do I start?
Get a free key at [signup](https://perceptlayer.com/signup): 100 free credits after verifying an email address, no credit card. Then run the `search-light` call from this article in a loop of your own and watch `RateLimit-Remaining` fall on each response. The [Search Light endpoint page](https://perceptlayer.com/apis/google-search/search-light) has a playground for a first call.
mcp rate limiting ai agents tool calling retry-after
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 13 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [What Is an MCP Server? A Working Example with Web Data](https://perceptlayer.com/blog/what-is-an-mcp-server)
An MCP server exposes tools, resources and prompts to AI apps over stdio or Streamable HTTP. See a real tools/list and tools/call, and what each costs.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Sept 2026 Perceptlayer 7 min read
## [MCP Server Too Many Tools: Keeping Agent Context Small](https://perceptlayer.com/blog/mcp-too-many-tools-context)
One tool per endpoint for 1,659 endpoints is about 567,000 characters of schema. A 10-step checklist to keep an MCP server's tool list small.
---
title: "Airbnb Listings Data API: Search, Details and Reviews"
description: "Search Airbnb listings by place and dates as JSON: price, rating, beds and coordinates from a recorded response, plus the listing and reviews calls."
url: https://perceptlayer.com/blog/airbnb-listings-data-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Airbnb Listings Data API: Search, Details and Reviews
16 Jul 2026 Updated 26 Oct 2026 Perceptlayer 7 min read
You can get Airbnb listings as JSON with three GET endpoints: `/v1/airbnb/search` for a place and dates, `/v1/airbnb/listing` for one listing, and `/v1/airbnb/reviews` for its reviews. Each successful call costs 1 credit, and you authenticate with one `X-API-Key` header. This guide shows the search request, a recorded response, the parameters of all three endpoints and what a market snapshot costs.
## Key takeaways
- Airbnb's own API is offered through API programs that require signed agreements ( [Airbnb Help Center, API Terms](https://www.airbnb.com/help/article/3418), 2026), so a search by place and dates needs another route. The Airbnb API on Perceptlayer has 3 endpoints: `search`, `listing` and `reviews`.
- `/v1/airbnb/search` requires only `place`. With `checkin`, `checkout` and `adults` it returns each listing's price for the stay in `price.amount`, `price.currency` and `price.nights`.
- Search results include `id`, `url`, `rating`, `review_count`, `bedrooms`, `beds`, `bathrooms`, `latitude`, `longitude` and `images`. The `id` is what you pass as `listing_id` to the other two endpoints.
- Every successful call is 1 credit, and failed calls return `X-Credits-Used: 0`. The 100 free credits on signup cover the first 100 calls of a 620-call snapshot, and a Starter pack of 10,000 credits covers the whole snapshot 16 times.
## Can you get Airbnb listings from the official API?
Usually not. Airbnb's API terms say participation in an API Program requires signing Airbnb's standard mutual nondisclosure agreement, agreeing to the API Terms and completing a data security review, and that Airbnb decides which Scopes (sets of access permissions) an organization gets ( [Airbnb Help Center, API Terms](https://www.airbnb.com/help/article/3418), 2026). Airbnb's [developer portal](https://developer.withairbnb.com/) is aimed at building and integrating with the Airbnb platform. If you manage listings through a connectivity partner, that route is the right one. If you want to search a market, compare prices or read reviews across listings you don't manage, you need a data API instead.
The [Airbnb API on Perceptlayer](https://perceptlayer.com/apis/airbnb) covers that second case. Data is collected from publicly available sources and returned as found at the time of the call.
## How do you search Airbnb listings by place and dates?
Call `GET /v1/airbnb/search` with a `place` and, for stay prices, `checkin`, `checkout` and `adults`. Only `place` is required. The request below searches Paris for two adults over four nights in November 2026 and asks for prices in euros. Get a key on the [free sign-up page](https://perceptlayer.com/signup) and export it as `API_KEY`; the [authentication docs](https://docs.perceptlayer.com/authentication) cover the query-parameter alternative.
```bash
curl "https://api.perceptlayer.com/v1/airbnb/search?place=Paris--France&checkin=2026-11-10&checkout=2026-11-14&adults=2¤cy=EUR" \
-H "X-API-Key: $API_KEY"
```
The `place` value in this request is `Paris--France`, and the response echoes it back as `"place": "Paris, France"`. The same call can be run with your key in the playground on the [Search endpoint page](https://perceptlayer.com/apis/airbnb/search).
### What does the search response contain?
The recorded response below is real output from this exact request, trimmed with `…`. Each item in `data.results` is one listing. The first carries a `rating` and `review_count`; the second has neither, so treat both as optional when you parse.
```json
{
"success": true,
"data": {
"place": "Paris, France",
"results": [
{
"id": "1669612146929039736",
"url": "https://www.airbnb.com/rooms/1669612146929039736",
"title": "Apartment in Paris",
"name": "Stylish 1-Bedroom/2-Person Apartment – Beaugrenelle",
"subtitle": "Bright 6th-floor stay near the Eiffel Tower, with a balcony and a private entrance",
"rating": 5,
"review_count": 17,
"price": {
"amount": 714,
"currency": "EUR",
"nights": 4,
"qualifier": "for 4 nights"
},
"price_breakdown": [
{
"description": "4 nights x €178.34",
"amount": 713.37
}
],
"bedrooms": 1,
"beds": 1,
"bathrooms": 1,
"latitude": 48.84223,
"longitude": 2.29241,
"badges": [
"Guest favorite"
],
"images": [
"https://a0.muscache.com/im/pictures/hosting/Hosting-1669612146929039736/original/053b1768-c702-49bf-9b31-d0b00b51260b.jpeg",
…
]
},
…
],
"has_more": true,
"next_cursor": "eyJzZWN0aW9uX29mZnNldCI6MCwiaXRlbXNfb2Zmc2V0IjoxOCwidmVyc2lvbiI6MX0="
},
"meta": {
"endpoint_family": "stay_search",
"billable": true
}
}
```
The fields that matter for most jobs are in the table below. All of them appear in the recorded response above.
| Field | What it holds |
| --- | --- |
| `id`, `url` | The listing ID and its page URL |
| `name`, `title`, `subtitle` | Listing name, property type and city, and the short description |
| `rating`, `review_count` | Average rating and number of reviews; absent on the second listing in the sample |
| `price.amount`, `price.currency`, `price.nights` | The total for the stay in the currency you requested |
| `price_breakdown` | A list of lines, each with a `description` such as `4 nights x €178.34` and an `amount` (713.37 in the first listing) |
| `bedrooms`, `beds`, `bathrooms` | Counts as numbers |
| `latitude`, `longitude` | Coordinates for mapping or distance work |
| `badges`, `images` | Labels such as `Guest favorite`, and photo URLs |
Note that `price.amount` is the stay total, shown as 714 for 4 nights. In the first listing the `price_breakdown` amount is 713.37, also the stay total, and the nightly rate (€178.34) appears only inside the `description` string. Because `price.amount` is rounded, dividing it by `price.nights` gives 178.5, not 178.34. If you need the exact nightly rate, read it from the description text.
### Which parameters does the search endpoint take?
Search takes one required parameter, `place`, and ten optional ones for dates, guests, currency, price ceiling and room type. Only the types, the 100-character limit on `place`, the 200-character limit on `cursor` and the three `room_type` values are documented, so test other values in the [playground](https://perceptlayer.com/apis/airbnb/search) before relying on them.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `place` | string | yes | Up to 100 characters |
| `checkin`, `checkout` | string | no | The example uses `2026-11-10` style dates |
| `adults`, `children`, `infants`, `pets` | integer | no | Guest counts |
| `currency` | string | no | The example uses `EUR` |
| `price_max` | integer | no | Price ceiling |
| `room_type` | string | no | One of `entire_home`, `private_room`, `hotel_room` |
| `cursor` | string | no | Up to 200 characters; for continuing a search |
## How do you fetch one listing and its reviews?
Pass the `id` from a search result as `listing_id` to `GET /v1/airbnb/listing` for the listing itself and to `GET /v1/airbnb/reviews` for its reviews. Each call is 1 credit. We have no recorded response for either endpoint, so this section shows the requests only and doesn't list their response fields. For the fields each one returns, and to run a real call with your key, open the [Listing endpoint page](https://perceptlayer.com/apis/airbnb/listing) and the [Reviews endpoint page](https://perceptlayer.com/apis/airbnb/reviews).
The listing endpoint accepts `checkin`, `checkout` and `adults` in addition to `listing_id`, so you can ask about a specific stay.
```bash
curl "https://api.perceptlayer.com/v1/airbnb/listing?listing_id=1669612146929039736&checkin=2026-11-10&checkout=2026-11-14&adults=2" \
-H "X-API-Key: $API_KEY"
```
The reviews endpoint takes `limit` and `offset`, which is how you page through a listing's reviews. Both are integers, and the documentation gives no default or maximum, so set `limit` explicitly.
```bash
curl "https://api.perceptlayer.com/v1/airbnb/reviews?listing_id=1669612146929039736&limit=20&offset=0" \
-H "X-API-Key: $API_KEY"
```
| Endpoint | Required | Optional | Credits |
| --- | --- | --- | --- |
| `/v1/airbnb/listing` | `listing_id` | `checkin`, `checkout`, `adults` | 1 |
| `/v1/airbnb/reviews` | `listing_id` | `limit`, `offset` | 1 |
| `/v1/airbnb/search` | `place` | `checkin`, `checkout`, `adults`, `children`, `infants`, `pets`, `currency`, `price_max`, `room_type`, `cursor` | 1 |
## How do you run the search from code?
The script below runs the search and prints name, price and rating for each result. It uses `.get()` for `rating`, `price` and `name` because the recorded excerpt shows only two listings, and one of them has no rating, so any field may be missing on others. We have no recorded run of this script, so try it on a single search before you build on it.
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/airbnb/search",
params={
"place": "Paris--France",
"checkin": "2026-11-10",
"checkout": "2026-11-14",
"adults": 2,
"currency": "EUR",
},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
resp.raise_for_status()
for item in resp.json()["data"]["results"]:
price = item.get("price") or {}
name = (item.get("name") or "").strip()
print(item.get("id"), name, price.get("amount"), price.get("currency"), item.get("rating"))
```
Errors come back as an HTTP status with a JSON body of `{"error": {"code", "message", "request_id"}}`. Handle `rate_limited` (429) by backing off, and `insufficient_credits` (402) by stopping, since nothing is debited and there is no automatic top-up. The [errors docs](https://docs.perceptlayer.com/errors) list every code and the [rate limit docs](https://docs.perceptlayer.com/rate-limits) cover the rest.
## What does a market snapshot cost in credits?
A snapshot costs one credit per call, so the total is search calls plus listing calls plus review calls. Failed calls return `X-Credits-Used: 0` and cost nothing, and each successful response reports `X-Credits-Remaining` so your job can watch the balance. The [credits docs](https://docs.perceptlayer.com/credits) explain both headers.
As an example, not a measured plan, say you want a neighbourhood snapshot: 20 search calls to collect candidates (each page's `next_cursor` goes back as `cursor` for the next one), then the listing detail and the first page of reviews for 300 of them.
| Step | Calls | Credits |
| --- | --- | --- |
| Search | 20 | 20 |
| Listing detail | 300 | 300 |
| Reviews, one page each | 300 | 300 |
| Total | 620 | 620 |
620 credits is more than the 100 free credits you get on signup after verifying an email address, with no credit card, so the free credits cover a test of the first 100 calls. Beyond that, credits come in prepaid packs starting at 10,000 credits (the Starter pack), so one 620-call snapshot is 620 × 1 credit = 620 credits, a small fraction of it. See [pricing](https://perceptlayer.com/pricing) for what credits cost. The 20-search figure is an assumed budget, not a measured page count; run your own search and count `data.results` before you plan around it.
Price changes with dates, so rerun the same search on a schedule if you want a time series. Each rerun costs the same credits.
If an agent will make these calls, the [MCP docs](https://docs.perceptlayer.com/ai-agents) show how to expose them as tools, and the [credits docs](https://docs.perceptlayer.com/credits) show how to track spend. For a comparable listings guide, see [Zillow listings as JSON](https://perceptlayer.com/blog/zillow-listings-api-json), or browse all [API guides](https://perceptlayer.com/blog/category/api-guides) and the [travel APIs](https://perceptlayer.com/verticals/travel).
Next step: [get a free API key](https://perceptlayer.com/signup), then run the search above in the playground on the [Airbnb API page](https://perceptlayer.com/apis/airbnb).
## APIs in this post
- [Airbnb **1 credit per call** · 3 endpoints](https://perceptlayer.com/apis/airbnb)
## Frequently asked questions
### Does Airbnb have a public API for listings and reviews?
Airbnb's API terms describe access through API Programs, which require signed agreements and a data security review, with Airbnb deciding which Scopes an organization receives ( [Airbnb Help Center, API Terms](https://www.airbnb.com/help/article/3418), 2026). That is built for partners managing their own listings. For searching and reading listings you don't manage, use a data API like the three endpoints above.
### How much does one Airbnb API call cost?
Each successful call to search, listing or reviews costs 1 credit. Failed calls cost nothing and return `X-Credits-Used: 0`. Every account gets 100 free credits after email verification. Paid packs start at 10,000 credits, so 10,000 calls × 1 credit = 10,000 credits, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
### How do I page through results and reviews?
For reviews, use `limit` and `offset`; both are integers. For search, the recorded response ends `data` with `has_more` and `next_cursor`: pass `next_cursor` back as the `cursor` parameter (a string of up to 200 characters) to get the next page, and stop when `has_more` is false. No defaults or page sizes are documented, so set `limit` explicitly for reviews.
### What happens if my credits run out mid-job?
The next call returns `insufficient_credits` with HTTP status 402, and nothing is debited. The service is prepaid with no automatic top-up, so your job stops cleanly. Read `X-Credits-Remaining` on each response to stop early or alert before the balance reaches zero.
### How fresh is the data?
Data is collected from publicly available sources and returned as found at the time of the call. Nothing here promises completeness or accuracy beyond that, so treat a stored snapshot as a record of one moment.
### Should I build an Airbnb scraper instead?
An Airbnb scraper has to render JavaScript-heavy pages, keep up with markup changes and respect Airbnb's terms, and you maintain all of it. The search, listing and reviews endpoints return price, rating, beds and coordinates as JSON for 1 credit per successful call. Build your own only for fields these endpoints don't return.
airbnb travel listings short-term rentals reviews
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Nov 2026 Perceptlayer 9 min read
## [Airbnb Scraper or API: What You Get](https://perceptlayer.com/blog/airbnb-scraper-vs-api)
An Airbnb scraper vs search, listing and reviews endpoints at 1 credit a call: a recorded Paris search with price.amount, price\_breakdown and coordinates.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Oct 2026 Perceptlayer 7 min read
## [Vrbo API: Vacation Rental Listings and Availability](https://perceptlayer.com/blog/vrbo-api-vacation-rental-listings)
Search Vrbo with required check\_in and check\_out, then pull a listing's availability and reviews by property\_id. Parameters, cURL and the cost of 50 listings.
---
title: "Google AI Mode API: Answers and Follow-ups as JSON"
description: "Google has no AI Mode API. GET /v1/google-search/google-ai-mode-search takes q, hl, gl and a follow_up_token; a three-turn conversation costs 3 credits."
url: https://perceptlayer.com/blog/google-ai-mode-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google AI Mode API: Answers and Follow-ups as JSON
16 Jul 2026 Perceptlayer 7 min read
Google doesn't offer an API for AI Mode, its conversational search answers. `GET /v1/google-search/google-ai-mode-search` returns an AI Mode answer as JSON for a question you pass in `q`, with `hl`, `gl`, `google_domain` and `uule` to set language and location. A `follow_up_token` parameter carries a conversation into its next turn. Every turn is one call at 1 credit, so a three-turn conversation costs 3 credits.
## Key takeaways
- Google has no public AI Mode API; AI Mode is a Search feature, available in over 200 countries and territories according to Google.
- `GET /v1/google-search/google-ai-mode-search` needs only `q`, which takes up to 8,192 characters, four times the AI Overview endpoint's 2,048.
- `follow_up_token` (up to 4,000 characters) links a follow-up question to the turn before it; without it, each call is a fresh conversation.
- Each turn costs 1 credit on success: 3 credits for a three-turn conversation, 3,000 for 1,000 of them.
- We haven't recorded an AI Mode response, so this guide gives the request, the parameters and the cost, and names what you need to check in the playground before you build on it.
## Is there an official Google AI Mode API?
No. AI Mode is a tab in Google Search, not a developer product. Google describes it as using a "query fan-out" technique: it splits a question into subtopics and searches for each one at once across several sources, then writes one answer with links ( [Google Search Help](https://support.google.com/websearch/answer/16011537), 2026). Google's developer offerings for generative answers sit elsewhere, in its Gemini API and Vertex AI, which ground a model you call on Google Search results rather than returning the AI Mode answer a searcher sees.
If you want your own model's answer grounded in search, a model API with a search tool is the more direct route, and our guide to [grounding LLM answers with live search](https://perceptlayer.com/blog/ground-agent-answers-live-search) covers that pattern. If you need the answer Google itself gives, for monitoring what AI Mode says about a brand, a product or a topic, the [Google AI Mode Search endpoint](https://perceptlayer.com/apis/google-search/google-ai-mode-search) returns it. Data is collected from publicly available sources and returned as found at the time of the call.
## How do you ask AI Mode a question?
Send a GET request with `q`, the question as a user would type it. Add `hl` and `gl` so the answer matches the language and country you care about. Put your key in the `X-API-Key` header; keys start with `sk_live_`, and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest. A first call looks like this:
```bash
curl "https://api.perceptlayer.com/v1/google-search/google-ai-mode-search?q=what+should+I+look+for+in+a+first+road+bike&hl=en&gl=us" \
-H "X-API-Key: $API_KEY"
```
We haven't run this request for the article and there's no recorded AI Mode response yet, so we won't describe the response fields. Run it in the playground on the [AI Mode endpoint page](https://perceptlayer.com/apis/google-search/google-ai-mode-search) to see the real output.
### Which parameters does it take?
The endpoint takes `q` and five optional parameters. Note the name: it's `q`, while the other Google Search endpoints, including the AI Overview one, use `query`. Types and lengths come from the endpoint definition; defaults aren't documented, so set language and location on every call.
| Parameter | Type | Notes |
| --- | --- | --- |
| `q` | string, required | The question, up to 8,192 characters |
| `hl` | string | Language, 2 characters, for example `en` |
| `gl` | string | Country, 2 characters, for example `us` |
| `google_domain` | string | Up to 100 characters, for example `google.co.uk` |
| `uule` | string | Encoded location, up to 500 characters |
| `follow_up_token` | string | Links a follow-up to the previous turn, up to 4,000 characters |
The long `q` limit matters for AI Mode more than for classic search. People tend to ask it long, specific questions. A question with constraints ("a first road bike under 1,500 dollars for 40 km commutes on rough roads") fits easily.
## How do follow-up questions work?
AI Mode is conversational: in Search you can ask a follow-up and the answer takes the earlier question into account. The endpoint models that with `follow_up_token`. The first call sends only `q`. Each later call sends the new question as `q` plus a token that identifies the conversation so far. Without the token, the follow-up is answered as a new, standalone question.
The token comes from a response, and that's the part we can't show yet. Without a recording we can't name the field that carries it, say whether it changes every turn, or say how long it stays valid. Check these three things in the playground before you build a multi-turn flow:
1. Which field in the first response holds the token to send back.
2. Whether the second response returns a new token for the third turn, or the same one.
3. What a stale or malformed token returns: a fresh answer, or an `invalid_parameters` (422) error.
Here's a Python helper that runs a conversation and leaves the token lookup to you. It's written to the parameters above; we haven't run it against the live API.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/google-search/google-ai-mode-search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def converse(questions, get_token, hl="en", gl="us"):
"""Ask questions in order, passing each turn's token to the next.
get_token(response_json) returns the follow-up token, or None.
Write it once you've seen a real response in the playground."""
token, turns = None, []
for q in questions:
params = {"q": q, "hl": hl, "gl": gl}
if token:
params["follow_up_token"] = token
r = requests.get(URL, headers=HEADERS, params=params, timeout=90)
r.raise_for_status()
body = r.json()
turns.append({"q": q, "credits": r.headers.get("X-Credits-Used"), "body": body})
token = get_token(body)
if not token:
break
return turns
```
The helper records `X-Credits-Used` for each turn, so your first run also confirms the cost per turn. It stops if a turn returns no token, rather than silently starting a new conversation. Wrap the request in retries for `rate_limited` and `temporarily_unavailable`, as in [handling web data API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python).
## What does a conversation cost?
Every call costs 1 credit on success, so a conversation costs one credit per turn. Failed calls cost nothing and return `X-Credits-Used: 0`; every success returns `X-Credits-Used` and `X-Credits-Remaining`. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
| Job | Calls | Credits |
| --- | --- | --- |
| One question | 1 | 1 |
| A three-turn conversation | 3 | 3 |
| 50 brand questions, daily, one turn each, 30 days | 1,500 | 1,500 |
| 50 brand questions, daily, three turns each, 30 days | 4,500 | 4,500 |
Worked example: 1,000 three-turn conversations are 1,000 × 3 × 1 credit = 3,000 credits. The 100 free credits you get once, after verifying an email address, cover 33 of them. The daily three-turn brand check, 4,500 credits a month, fits twice in a Starter pack of 10,000 credits with room to spare, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
The helper allows a 90-second client timeout, longer than the 60 seconds after which the API returns `timeout` (504). A request whose reply is lost to a client timeout may still have succeeded and been billed, because requests have no idempotency key. The [rate limits docs](https://docs.perceptlayer.com/rate-limits) cover per-account limits.
## How is AI Mode different from AI Overviews?
They're separate features and separate endpoints. An AI Overview is a summary Google adds above classic results on some searches, when its systems judge it helpful. AI Mode is a separate tab where every question gets a generated answer and you can ask follow-ups. Google says you can also jump from an AI Overview into an AI Mode conversation on mobile ( [Google](https://blog.google/products-and-platforms/products/search/ai-mode-ai-overviews-updates/), 2026).
| | AI Overview | AI Mode |
| --- | --- | --- |
| Endpoint | [`/v1/google-search/search-ai-overview`](https://perceptlayer.com/apis/google-search/search-ai-overview) | [`/v1/google-search/google-ai-mode-search`](https://perceptlayer.com/apis/google-search/google-ai-mode-search) |
| Query parameter | `query`, up to 2,048 characters | `q`, up to 8,192 characters |
| Follow-ups | No | `follow_up_token` |
| Appears on every query | No, only some | Every question gets an answer |
| Credits | 1 per call | 1 per turn |
For monitoring, use both. AI Overviews are what most searchers see on the classic results page; AI Mode is where people go for longer research questions. The [AI Overview API guide](https://perceptlayer.com/blog/google-ai-overview-api) covers that endpoint and why many queries return no overview. For classic results, see the [Google Search API guide](https://perceptlayer.com/blog/google-search-api-json).
## Where is AI Mode available?
Google says AI Mode is available in over 200 countries and territories and has added languages through 2025 and 2026, including Hindi, Indonesian, Japanese, Korean and Brazilian Portuguese in one 2025 expansion ( [Google](https://blog.google/products-and-platforms/products/search/ai-mode-expands-languages-locations/), 2025). Set `hl` and `gl` to a market where it's offered.
We haven't tested how the endpoint responds when `gl` points at a market without AI Mode, so include that case in your first playground runs if you track several countries. Keep `hl`, `gl` and `google_domain` fixed per market across runs; otherwise day-over-day changes in an answer mix market differences with real ones.
## Can an AI agent call AI Mode?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints` and `get_endpoint`, which are free catalogue lookups, and `call_endpoint`, which runs `google-search.google-ai-mode-search` and spends 1 credit per turn on success. An agent can ask AI Mode a question and read the answer as JSON.
Treat the answer as one more source, not as ground truth: it's generated, so have the agent follow the linked pages for anything it will state as fact. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents), and error codes are in the [errors docs](https://docs.perceptlayer.com/errors).
To see the response shape and find the follow-up token, [get a free API key](https://perceptlayer.com/signup) and run a question in the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search).
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Does Google have an AI Mode API?
No. AI Mode is a Google Search feature with no public API. Google's Gemini API and Vertex AI can ground a model's answer in search results, but they don't return the AI Mode answer a searcher sees. `GET /v1/google-search/google-ai-mode-search` returns that answer as JSON, at 1 credit per successful call.
### How do I ask a follow-up question?
Send the follow-up as `q` with the `follow_up_token` from the previous turn's response. Without the token, the question is answered on its own. We haven't recorded a response yet, so check in the playground which field holds the token and whether it changes from turn to turn before you build a multi-turn flow.
### How much does an AI Mode conversation cost?
Each turn is one call and costs 1 credit on success, so a three-turn conversation costs 3 credits. Failed calls cost nothing. Every account gets 100 free credits after verifying an email address, and prepaid packs start at 10,000 credits. The [pricing page](https://perceptlayer.com/pricing) has what credits cost.
### Why is the parameter q and not query?
The AI Mode endpoint names its question parameter `q`, while the other Google Search endpoints, including the AI Overview endpoint, use `query`. Sending `query` to the AI Mode endpoint leaves `q` missing, which returns `invalid_parameters` (422) and costs nothing. `q` accepts up to 8,192 characters.
### What happens if a call fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and no credits are debited. Rate-limited (429) and temporarily unavailable (503) responses include a `Retry-After` header with the seconds to wait, and a `timeout` (504) error means the source didn't answer within 60 seconds. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
google ai mode google search ai answers follow-up questions json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Aug 2026 Perceptlayer 7 min read
## [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json)
Call GET /v1/google-search/search for organic results as JSON at 1 credit a call. Parameters, a real recorded response and the cost in credits.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 14 Jul 2026 Perceptlayer 7 min read
## [Google AI Overview API: Get AI Overviews as JSON](https://perceptlayer.com/blog/google-ai-overview-api)
Google has no AI Overview API. GET /v1/google-search/search-ai-overview takes a query, hl and gl, costs 1 credit, and suits daily keyword tracking.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 10 Nov 2026 Perceptlayer 7 min read
## [Google Search Scraper or API: What You Get](https://perceptlayer.com/blog/google-search-scraper-vs-api)
A Google Search scraper parses every block on the page. Seven endpoints return them as JSON at 1 to 3 credits a call, with a recorded Berlin search.
---
title: "Google Jobs API: Search Job Listings as JSON | Perceptlayer"
description: "Google's Cloud Talent Solution searches your own jobs, not Google's jobs panel. GET /v1/google-jobs/search does, with date_posted, job_type and lrad filters."
url: https://perceptlayer.com/blog/google-jobs-api-search
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Jobs API: Search Job Listings as JSON
16 Jul 2026 Perceptlayer 7 min read
Google has two job-related APIs, and neither searches the jobs panel you see in Google Search. Cloud Talent Solution indexes and searches job listings you upload yourself, and the Indexing API tells Google about your own job pages. To search Google's jobs results as JSON, `GET /v1/google-jobs/search?q=software+engineer` takes a query plus location, radius, date and job-type filters, and costs 1 credit per successful call.
## Key takeaways
- Google Cloud Talent Solution is for job boards, career sites, staffing agencies and applicant tracking systems searching their own job inventory; it doesn't return Google's aggregated listings.
- Getting your jobs into Google Search is a separate route: `JobPosting` structured data on each job page, plus the Indexing API for job URLs.
- `GET /v1/google-jobs/search` has no required parameter; `q` (up to 500 characters), `uule`, `lrad` (5, 10, 25, 50 or 100), `date_posted` and `job_type` shape the search, and `next_page_token` pages through it.
- `date_posted=today` keeps a daily pull to new postings only; 20 roles in 10 cities, one page each, is 200 calls and 200 credits a day.
- We haven't recorded a Google Jobs response, so check the fields in the playground before you write a parser.
## Is there an official Google Jobs API?
Not one that searches Google's jobs results. Google's Cloud Talent Solution Job Search API is built for job boards, career site providers, staffing agencies and applicant tracking systems: you send it your own job and company records, it indexes them, and it returns ranked results for your own site's search box ( [Google Cloud, Job search basics](https://docs.cloud.google.com/talent-solution/job-search/v3/docs/basics), 2026). It's a search engine for your inventory, with features like commute-time search, and it searches only the listings you send it.
The other side is publishing. Google's job search experience in Search is fed by sites that add `JobPosting` structured data to each job detail page, with required properties including `title`, `description`, `datePosted` and `hiringOrganization` ( [Google Search Central](https://developers.google.com/search/docs/appearance/structured-data/job-posting), 2026). Google's Indexing API lets those sites notify it when job pages are added or removed ( [Google Search Central Blog](https://developers.google.com/search/blog/2018/06/introducing-indexing-api-for-job), 2018).
| You want to | Use |
| --- | --- |
| Search your own job inventory on your own site | Cloud Talent Solution |
| Get your jobs into Google's job results | `JobPosting` markup and the Indexing API |
| Read Google's job results for a query and place | [`/v1/google-jobs/search`](https://perceptlayer.com/apis/google-jobs/search) |
If you run a job board, the first two are the right tools and they're free or priced by Google. If you need what Google shows a job seeker for "data analyst in Leeds", that's the [Google Jobs API](https://perceptlayer.com/apis/google-jobs). Data is collected from publicly available sources and returned as found at the time of the call.
## Which parameters does the search endpoint take?
`GET /v1/google-jobs/search` takes ten optional parameters and requires none, though in practice you'll always send `q`. Types and allowed values below come from the endpoint definition. Defaults and units, such as whether `lrad` is in miles or kilometres, aren't documented, so test them in the playground.
| Parameter | Type | Allowed values or notes |
| --- | --- | --- |
| `q` | string | The job search, up to 500 characters, for example `software engineer` |
| `uule` | string | Encoded location, up to 500 characters |
| `lrad` | integer | Search radius: `5`, `10`, `25`, `50`, `100` |
| `date_posted` | string | `today`, `3days`, `week`, `month`, `1`, `3`, `7`, `14` |
| `job_type` | string | `full_time`, `part_time`, `contract`, `internship`, `remote` |
| `next_page_token` | string | Token for the next page of results |
| `uds` | string | Up to 1,000 characters |
| `hl` | string | Language, 2 characters |
| `gl` | string | Country, 2 characters |
| `google_domain` | string | Up to 50 characters, for example `google.co.uk` |
`date_posted` takes both words and day counts: `week` and `7` look like the same window, and `14` has no word equivalent. Pick one form and keep it, so runs are comparable. Location can also go in `q` as text ("nurse jobs in Leeds"), the way a person types it into Google; `uule` pins it to a place regardless of wording.
## How do you search Google Jobs?
Send a GET request with `q`. The request below is the endpoint's catalogue example. Put your key in the `X-API-Key` header; keys start with `sk_live_`, and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest.
```bash
curl "https://api.perceptlayer.com/v1/google-jobs/search?q=software+engineer" \
-H "X-API-Key: $API_KEY"
```
A narrower search for full-time roles posted in the last three days, from Google's UK domain:
```bash
curl "https://api.perceptlayer.com/v1/google-jobs/search?q=data+analyst+leeds&job_type=full_time&date_posted=3days&gl=gb&hl=en&google_domain=google.co.uk" \
-H "X-API-Key: $API_KEY"
```
We haven't run either request for this article and have no recorded response, so we won't list response fields here. The [Search endpoint page](https://perceptlayer.com/apis/google-jobs/search) has a playground that runs the call with your key and shows the real output. Look for the job title, company, location, posting age and the token for the next page.
## How do you page through results?
Use `next_page_token`. The endpoint pages by token, not by page number: a response carries a token for the next page, and you send it back as `next_page_token` on the following call. Each page is one call and 1 credit. Since we haven't recorded a response, find the token's field name in the playground first.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/google-jobs/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def search_jobs(params, get_jobs, get_token, max_pages=3):
"""get_jobs(body) returns the list of jobs; get_token(body) the next-page token or None.
Write both once you've seen a real response in the playground."""
jobs, token = [], None
for _ in range(max_pages):
p = dict(params, next_page_token=token) if token else params
r = requests.get(URL, headers=HEADERS, params=p, timeout=60)
if r.status_code == 404:
break
r.raise_for_status()
body = r.json()
jobs.extend(get_jobs(body))
token = get_token(body)
if not token:
break
return jobs
```
This sketch hasn't been run against the live API. It treats `not_found` (404), which costs nothing, as the end of the results, and caps pages so a broad query can't run up credits. For retries on `rate_limited` and `temporarily_unavailable`, see [handling web data API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python).
## What does a daily role-and-city pull cost?
Every call costs 1 credit on success; failed calls cost nothing and return `X-Credits-Used: 0`. Each success returns `X-Credits-Used` and `X-Credits-Remaining`. For a daily pull, `date_posted=today` keeps each run to new postings, which keeps the page count low. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
| Job | Calls a day | Credits a month (30 days) |
| --- | --- | --- |
| 5 roles × 4 cities, 1 page each | 20 | 600 |
| 20 roles × 10 cities, 1 page each | 200 | 6,000 |
| 20 roles × 10 cities, up to 3 pages each | up to 600 | up to 18,000 |
Worked example: 20 roles in 10 cities is 200 searches; at one page each, 200 × 1 credit = 200 credits a day, or 6,000 credits over 30 days. The 100 free credits you get on signup after verifying an email address cover five days of the first row. The second row, 6,000 credits a month, fits more than eight times in a Build pack of 50,000 credits, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
At the free tier's 1 request a second, 200 calls take a little over three minutes; paid packs run at 5 a second or more, per the [rate limits docs](https://docs.perceptlayer.com/rate-limits).
## What should you watch for in Google Jobs data?
Duplicates and posting age. Google's jobs results aggregate postings from employer career sites and job boards, so the same role often appears through several sites, and the same posting can come back on consecutive days. Deduplicate on company, title and location rather than on a URL, as our guide to [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources) explains.
Posting age is often shown in relative terms ("3 days ago"), so convert it to a date at collection time and store both. Salary appears only when the posting includes it, and advertised ranges have their own biases; [salary data from job sites](https://perceptlayer.com/blog/salary-data-job-sites-bias) covers how to read them. For a research use of the same data, see [job posting data for labour-market research](https://perceptlayer.com/blog/job-posting-data-labour-market-research), and to compare with a single board, the [Indeed jobs API guide](https://perceptlayer.com/blog/indeed-jobs-api-json).
## Can an AI agent search Google Jobs?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints` and `get_endpoint`, which are free catalogue lookups, and `call_endpoint`, which runs `google-jobs.search` and spends 1 credit on success. An agent can turn "remote Python contract roles posted this week" into `q`, `job_type=contract` and `date_posted=week`.
Our [job search agent tutorial](https://perceptlayer.com/blog/job-search-agent-live-postings) builds one that matches postings to a CV. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents), and error codes are in the [errors docs](https://docs.perceptlayer.com/errors). The other job sources in the catalogue are on the [jobs APIs](https://perceptlayer.com/verticals/jobs) page.
To see the response, [get a free API key](https://perceptlayer.com/signup) and run a search for your role and city in the playground on the [Google Jobs API page](https://perceptlayer.com/apis/google-jobs).
## APIs in this post
- [Google Jobs **1 credit per call** · 1 endpoint](https://perceptlayer.com/apis/google-jobs)
## Frequently asked questions
### Does Google have a jobs API?
Google has Cloud Talent Solution, which indexes and searches job listings you upload for your own job board or careers site, and the Indexing API for notifying Google about your job pages. Neither returns Google's aggregated job results. `GET /v1/google-jobs/search` returns those as JSON, at 1 credit per successful call.
### How do I get my jobs to show up in Google's job search?
Add `JobPosting` structured data to each job detail page, with the required properties such as `title`, `description`, `datePosted` and `hiringOrganization`, and use Google's Indexing API to notify it when job pages are added or removed. Google's Search Central documentation covers the markup rules. That's a publishing task, separate from reading results.
### How much does the Google Jobs endpoint cost?
1 credit per successful call; each further page is another call, and failed calls cost nothing. A daily pull of 20 roles in 10 cities at one page each is 6,000 credits a month. Every account gets 100 free credits after verifying an email address. The [pricing page](https://perceptlayer.com/pricing) has what credits cost.
### How do I filter by date or job type?
Use `date_posted` with `today`, `3days`, `week`, `month` or a day count of `1`, `3`, `7` or `14`, and `job_type` with `full_time`, `part_time`, `contract`, `internship` or `remote`. `lrad` sets a radius of 5, 10, 25, 50 or 100 around the location in `uule` or the query.
### What happens if a search fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and nothing is debited. A search with no results can come back as `not_found` (404), which also costs nothing. Rate-limited (429) and temporarily unavailable (503) responses carry `Retry-After` with the seconds to wait. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
google jobs job listings job search api labour market json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Google News Scraper or API: What You Get](https://perceptlayer.com/blog/google-news-scraper-vs-api)
A Google News scraper vs a 1-credit news call: the recorded response with iso\_date, source and story\_token, and 4 credits per tracked query per day.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 27 Oct 2026 Perceptlayer 8 min read
## [News API Options: Google News and Search as JSON](https://perceptlayer.com/blog/news-api-comparison)
Compare three news API routes: Google News returns headline, source.name, iso\_date and link per article; web search endpoints don't. 1 credit a query.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 11 Oct 2026 Perceptlayer 7 min read
## [SERP API: What It Returns and What a Query Costs](https://perceptlayer.com/blog/serp-api-explained)
A SERP API returns a results page as JSON: organic results, People also ask, related searches, local results. Real responses from 3 engines, 1 credit each.
---
title: "AI Shopping Agent: Compare Prices Across Marketplaces"
description: "A Python AI shopping agent that searches Google Shopping, Walmart and AliExpress, normalises offers into one table and stops at a credit cap of 6 per question."
url: https://perceptlayer.com/blog/ai-shopping-agent-compare-prices
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# AI Shopping Agent: Compare Prices Across Marketplaces
14 Jul 2026 Perceptlayer 7 min read
An AI shopping agent takes a product name, searches several marketplaces, and returns the offers side by side in one table. This tutorial builds one in Python with Claude: it searches Google Shopping, Walmart and AliExpress through one generic `call_endpoint` tool, records each offer through a second tool with a fixed schema, and refuses any data call past a credit cap. A typical question costs 3 credits, one search per marketplace, with a hard cap of 6.
## Key takeaways
- Three searches answer most questions: `/v1/google-shopping/search` ( `q`), `/v1/walmart/search` ( `query`) and `/v1/aliexpress/search` ( `query`, `page`, `sort`), 1 credit each.
- The model normalises the offers itself through a `record_offer` tool with a fixed schema, so the code doesn't depend on three different response shapes.
- The recorded Google Shopping response gives `extracted_price` as a number; the recorded Walmart response gives `price` with a separate `currency`. None of the three recorded search responses includes a shipping cost, so shipping stays empty unless the data states it.
- The credit cap lives in code: every `call_endpoint` adds its `X-Credits-Used`, and calls past the cap return an error to the model instead of reaching the API.
- 300 questions a month at 3 credits each is 900 credits. The 100 free credits cover your first 33 questions; after that, the Starter pack's 10,000 credits last 11 months at that rate. Claude's own tokens are billed separately by Anthropic.
## What does the agent do?
You ask it "compare prices for an Instant Pot 6 quart". It runs one search per marketplace, reads the results, picks the offers that match the product, and records each one with its marketplace, title, price, currency, link and stock status. Your code then prints the offers sorted by price. If the first search comes back empty or ambiguous, the model may refine it once, but only within the cap.
The design splits the work by what each side does well. The model reads messy, differently shaped JSON and decides which results are the same product. The code owns everything that must be exact: which endpoints the model may call, how many credits it may spend, and the final table. That split is why the agent needs only two tools, however many marketplaces you add.
You need Python 3.10 or newer, `pip install anthropic requests`, an Anthropic API key in `ANTHROPIC_API_KEY`, and a Perceptlayer key in `API_KEY`. [Get a free API key](https://perceptlayer.com/signup); verifying your email gives you 100 free credits on signup.
## Step 1: Which endpoints does the agent search?
One search endpoint per marketplace, each 1 credit per successful call. Their required parameters differ, which is why the model needs to know them: AliExpress search requires `page` and `sort` as well as the query. The table lists what the agent sends.
| Marketplace | Endpoint ID | Path | Required parameters |
| --- | --- | --- | --- |
| Google Shopping | `google-shopping.search` | `/v1/google-shopping/search` | `q` (up to 500 characters) |
| Walmart | `walmart.search` | `/v1/walmart/search` | `query` (up to 500 characters) |
| AliExpress | `aliexpress.search` | `/v1/aliexpress/search` | `query`, `page`, `sort` ( `default`, `orders`, `price_asc`, `price_desc`) |
Google Shopping results come from many shops, so one search already compares sellers. In the recorded response for `q=iphone 15&gl=us&hl=en`, the first two results are from "Walmart - Wireless Source" at `extracted_price` 393.73 and "Best Buy" at 441:
```json
{
"shopping_results": [
{
"position": 1,
"title": "Apple iPhone 15",
"source": "Walmart - Wireless Source",
"rating": 4.7,
"price": "$393.73",
"extracted_price": 393.73,
"link": "https://www.google.com/shopping/product/4263606017411565992",
…
},
{
"position": 2,
"title": "Apple iPhone 15 128GB",
"source": "Best Buy",
"price": "$441.00",
"extracted_price": 441,
…
}
],
…
}
```
Walmart's recorded search for `air fryer` returns `results` with a numeric `price`, a `currency`, `seller_name`, `availability_status` and `product_page_url`, plus a `sponsored` flag that's `true` on both of the first two results:
```json
{
"data": {
"search_metadata": { "query": "air fryer", "total_items": 72, … },
"results": [
{
"us_item_id": "14678059894",
"title": "Chefman Air Fryer 1500W, 6 Quart, 4 Functions with Touch Controls, Stainless Steel",
"price": 59.98,
"currency": "USD",
"seller_name": "Walmart.com",
"availability_status": "IN_STOCK",
"product_page_url": "https://www.walmart.com/ip/14678059894",
"sponsored": true,
…
},
…
],
…
}
}
```
AliExpress's recorded search for `query=wireless earbuds&page=1&sort=orders` returns `results` with a `price` object that carries its own `currency`, plus an `original_price` and `discount_percent` for the advertised discount:
```json
{
"data": {
"query": "wireless earbuds",
"page_size": 60,
"total_results": 16557,
"results": [
{
"product_id": "3256812408115438",
"title": "HTC NE79 TWS Bluetooth 6.0 Earbuds AI Translation 135 Languages ENC Noise Cancelling HiFi Stereo Headphones with LED Display",
"url": "https://www.aliexpress.com/item/3256812408115438.html",
"price": { "amount": 4.35, "currency": "USD", "formatted": "US $4.35" },
"original_price": { "amount": 17.31, "currency": "USD", "formatted": "US $17.31" },
"discount_percent": 74,
"selling_points": ["Fastest delivery in 6 days"],
"is_sponsored": false,
…
},
…
]
}
}
```
`selling_points` mentions delivery time, not a shipping cost, so `shipping` stays null for these rows too. The [Google Shopping API](https://perceptlayer.com/apis/google-shopping), [Walmart API](https://perceptlayer.com/apis/walmart) and [AliExpress API](https://perceptlayer.com/apis/aliexpress) pages list every parameter.
## Step 2: How do you define the two tools?
`call_endpoint` takes an endpoint ID and its parameters, the same shape as the `call_endpoint` tool on Perceptlayer's MCP server, so the model's behaviour carries over if you later move it to an MCP client. `record_offer` takes one normalised offer. Its schema is the table you want at the end, so the model's job is to fill it in.
```python
TOOLS = [
{
"name": "call_endpoint",
"description": (
"Run one marketplace search and return its JSON. Allowed endpoints: "
"google-shopping.search (params: q, optional gl, hl), "
"walmart.search (params: query, optional sort, min_price, max_price), "
"aliexpress.search (params: query, page, sort; sort is one of "
"default, orders, price_asc, price_desc). Each successful call costs 1 credit."
),
"input_schema": {
"type": "object",
"properties": {
"endpoint": {"type": "string", "enum": ["google-shopping.search", "walmart.search", "aliexpress.search"]},
"params": {"type": "object"},
},
"required": ["endpoint", "params"],
},
},
{
"name": "record_offer",
"description": (
"Record one offer that matches the requested product. Use only values present "
"in the search results. Leave shipping and in_stock null unless the data states them."
),
"input_schema": {
"type": "object",
"properties": {
"marketplace": {"type": "string", "enum": ["google_shopping", "walmart", "aliexpress"]},
"seller": {"type": ["string", "null"]},
"title": {"type": "string"},
"price": {"type": "number"},
"currency": {"type": ["string", "null"]},
"shipping": {"type": ["number", "null"]},
"in_stock": {"type": ["boolean", "null"]},
"link": {"type": "string"},
},
"required": ["marketplace", "title", "price", "link"],
},
},
]
```
The `enum` on `endpoint` means the model can only name the three searches. The instruction to leave `shipping` null unless the data states it is the honest part: none of the recorded search responses carry a shipping cost, and a model asked to fill every field will otherwise guess.
## Step 3: How do you run the endpoints under a credit cap?
Map each endpoint ID to its path, call the API, and keep a running total from the `X-Credits-Used` header. Before each call, check the total against the cap; past it, return an error the model can read instead of calling the API. Failed calls return `X-Credits-Used: 0`, so they don't count against the cap.
```python
import json
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
PATHS = {
"google-shopping.search": "/v1/google-shopping/search",
"walmart.search": "/v1/walmart/search",
"aliexpress.search": "/v1/aliexpress/search",
}
CREDIT_CAP = 6
class Budget:
def __init__(self, cap):
self.cap, self.spent = cap, 0
def call(self, endpoint, params):
if endpoint not in PATHS:
return f"Error unknown_endpoint: use one of {', '.join(PATHS)}.", True
if self.spent >= self.cap:
return f"Error credit_cap: {self.spent} of {self.cap} credits used. Stop searching and record the offers you have.", True
r = requests.get(BASE + PATHS[endpoint], params=params, headers=HEADERS, timeout=90)
if r.status_code != 200:
err = r.json()["error"]
return f"Error {err['code']}: {err['message']}", True
self.spent += int(r.headers["X-Credits-Used"])
return r.text[:60000], False
```
The response is cut at 60,000 characters to keep one large result from filling the model's context; the cut drops the end of the response. Error results start `Error :` with the API's own message, which tells the model what went wrong and what to do next. Anthropic's tool use docs recommend exactly that: return failures as a `tool_result` with `is_error` set, and make the message say what went wrong and what to try ( [Claude Docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/handle-tool-calls), 2026).
## Step 4: How do you write the agent loop?
A standard tool-use loop. Send the question with both tools, run every `tool_use` block Claude returns, send all the results back in one user message, and repeat until Claude stops calling tools. `call_endpoint` goes through the budget; `record_offer` appends to a list and returns "recorded".
```python
import anthropic
SYSTEM = (
"You compare prices for one product across Google Shopping, Walmart and AliExpress. "
"Search each marketplace once with call_endpoint. Refine a search only if its results "
"don't contain the product. Then call record_offer for each matching offer, up to 3 per "
"marketplace, using only values from the results. Skip accessories and different models. "
"Finish with one sentence naming the cheapest matching offer."
)
def run_agent(question):
client = anthropic.Anthropic()
budget, offers = Budget(CREDIT_CAP), []
messages = [{"role": "user", "content": question}]
while True:
response = client.messages.create(
model="claude-opus-5-5", max_tokens=16000,
system=SYSTEM, tools=TOOLS, messages=messages,
)
if response.stop_reason == "refusal":
raise RuntimeError("The model declined this request.")
messages.append({"role": "assistant", "content": response.content})
calls = [b for b in response.content if b.type == "tool_use"]
if not calls:
break
results = []
for call in calls:
if call.name == "call_endpoint":
text, is_error = budget.call(call.input["endpoint"], call.input.get("params", {}))
else:
offers.append(call.input)
text, is_error = "recorded", False
results.append({"type": "tool_result", "tool_use_id": call.id,
"content": text, "is_error": is_error})
messages.append({"role": "user", "content": results})
summary = "".join(b.text for b in response.content if b.type == "text")
return offers, summary, budget.spent
```
Two details keep it correct. All tool results for one turn go back in a single user message, one per `tool_use` block and matched by `tool_use_id`, as Anthropic's [parallel tool use docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/parallel-tool-use) require (2026). And the loop ends when a response contains no `tool_use` blocks, so a model that hits the cap simply records what it has and answers.
## Step 5: How do you print the comparison?
Sort the recorded offers by price and print one row each. Add the shipping cost to the price only when it's known, and say so in the column header, so nobody reads an item price as a delivered price.
```python
def print_table(offers):
rows = sorted(offers, key=lambda o: o["price"] + (o.get("shipping") or 0))
print(f"{'marketplace':16} {'price':>9} {'ship':>6} {'cur':4} {'stock':6} title")
for o in rows:
ship = "" if o.get("shipping") is None else f"{o['shipping']:.2f}"
stock = {True: "yes", False: "no"}.get(o.get("in_stock"), "?")
print(f"{o['marketplace']:16} {o['price']:>9.2f} {ship:>6} {(o.get('currency') or ''):4} {stock:6} {o['title'][:60]}")
if __name__ == "__main__":
import sys
offers, summary, spent = run_agent(" ".join(sys.argv[1:]) or "Compare prices for a 6 quart air fryer")
print_table(offers)
print(summary)
print(f"Perceptlayer credits used: {spent}")
```
Run it with `python shop.py "Instant Pot Vortex 4 quart air fryer"`. You get up to nine rows, three per marketplace, sorted by price, then the model's one-sentence answer and the credits the run spent. An empty `ship` column means the source didn't state shipping, and `?` under stock means the same for availability. We ran this code with the model and API calls mocked, which checks the loop, the cap and the table; we haven't run it live against both APIs for this article, so expect to adjust the prompt after your first real runs.
## What should you check before trusting the table?
Three things, all visible in the recorded data. First, currencies: Walmart returns a `currency` field, while Google Shopping's `extracted_price` is a bare number, with the currency only visible in the `price` text ( `$393.73` in the recording, searched with `gl=us`). AliExpress's `price` carries its own `currency` ( `USD` in the recording). Only compare rows with the same currency. Second, sponsored results: both of the first two Walmart results in the recording are `sponsored: true`, so the first result isn't necessarily the cheapest or the most relevant.
Third, matching. "6 quart air fryer" matches many products, and the model decides which offers are the same item. Ask for a specific model name or number when you need like-for-like prices, and spot-check the links. For tracking prices over time rather than answering one question, the [price tracking agent tutorial](https://perceptlayer.com/blog/price-tracking-agent-python) stores results per day.
## What does each question cost?
Each successful search is 1 credit, and `record_offer` costs nothing because it never calls the API. A question that searches each marketplace once is 3 credits; one that refines all three searches hits the cap at 6. Failed calls are free and don't count toward the cap.
| Workload | Credits per question | Credits a month |
| --- | --- | --- |
| 300 questions, one search per marketplace | 3 | 300 × 3 = 900 |
| 300 questions, every search refined (cap) | 6 | 300 × 6 = 1,800 |
| 3,000 questions, one search per marketplace | 3 | 3,000 × 3 = 9,000 |
The 100 free credits cover 33 questions at 3 credits each, enough to test the agent. The Starter pack's 10,000 covers the first row for 11 months, or the third row for one. These are Perceptlayer credits only; Claude's tokens are billed by Anthropic. The [credits docs](https://docs.perceptlayer.com/credits) explain the balance, and [pricing](https://perceptlayer.com/pricing) has what packs cost. For the same idea through an MCP client instead of your own loop, the [AI agents (MCP) docs](https://docs.perceptlayer.com/ai-agents) show the server setup, and [MCP vs function calling](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) explains what changes.
## APIs in this post
- [Google Shopping **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/google-shopping)
- [Walmart **1 credit per call** · 11 endpoints](https://perceptlayer.com/apis/walmart)
- [AliExpress **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/aliexpress)
## Frequently asked questions
### How much does one price comparison cost?
Three credits when the agent searches each marketplace once, and never more than the 6-credit cap, because the code refuses calls past it. Recording offers costs nothing. Failed calls cost nothing either. Claude's tokens are billed separately by Anthropic, so the full cost of a question is the credits plus the model usage.
### Why not normalise the responses in code?
You can: the recorded responses show `extracted_price` on Google Shopping, `price` on Walmart and `price.amount` on AliExpress. Letting the model fill a fixed `record_offer` schema avoids writing and maintaining three parsers, and lets it skip accessories and different models, which a parser can't judge. The code still controls the output shape, because the tool schema is the table.
### Does the agent include shipping costs?
Only when a source states them. None of the recorded search responses include a shipping cost, so the prompt tells the model to leave `shipping` null rather than guess. AliExpress has a separate `/v1/aliexpress/product-shipping` endpoint with `product_id` and `country`; adding it as a fourth allowed endpoint costs 1 credit per product checked.
### Can I run this agent through MCP instead?
Yes. Add Perceptlayer's MCP server to an MCP client and give the model the same system prompt; its `call_endpoint` tool takes the same endpoint IDs and parameters. What you lose is the hard cap, since the client, not your code, runs the calls. Keep your own loop when the cap has to hold.
### What happens when the cap is reached?
The next `call_endpoint` returns an error result, `Error credit_cap`, without calling the API, and the model is told to record the offers it already has. The run ends with a partial table rather than overspending. Raise `CREDIT_CAP` if your questions routinely need refined searches.
ai agents shopping price comparison tool calling python
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Oct 2026 Perceptlayer 8 min read
## [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends)
Wire Google Search, Trends and News into one Python agent, cap it at 8 credits per question, and see a recorded Trends response.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 18 Jul 2026 Updated 10 Nov 2026 Perceptlayer 11 min read
## [LangChain Custom Tool for Live Web Data: Python Tutorial](https://perceptlayer.com/blog/langchain-custom-tool-web-data)
Build a LangChain tool in Python for Google Search and News: typed arguments, retries on 429, 502 and 503 only, and a per-run credit cap.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
---
title: "Google AI Overview API: Get AI Overviews as JSON"
description: "Google has no AI Overview API. GET /v1/google-search/search-ai-overview takes a query, hl and gl, costs 1 credit, and suits daily keyword tracking."
url: https://perceptlayer.com/blog/google-ai-overview-api
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google AI Overview API: Get AI Overviews as JSON
14 Jul 2026 Perceptlayer 7 min read
Google offers no API for AI Overviews. Its Search Console reports count how often your own site appears in them, but nothing returns the overview for a query you choose. `GET /v1/google-search/search-ai-overview?query=...` does that: you pass a query, plus `hl`, `gl`, `google_domain` or `uule` for language and location, and it costs 1 credit per successful call. Expect many queries to have no overview at all, because Google shows one only on some searches.
## Key takeaways
- Google has no AI Overview API; Search Console reports impressions in AI features for your own site, and its dedicated generative AI reports were still rolling out to a subset of sites in June 2026.
- `GET /v1/google-search/search-ai-overview` needs only `query` (up to 2,048 characters) and takes `hl`, `gl`, `google_domain` and `uule` to set language and location.
- AI Overviews appear on a minority of searches: Pew found them on 18% of Google searches in March 2025, 8% of one- or two-word queries and 53% of queries of 10 words or more.
- Each call costs 1 credit on success; tracking 200 keywords daily is 200 × 30 = 6,000 credits a month.
- We haven't recorded an AI Overview response yet, so this guide shows the request and parameters but no response fields.
## Is there an official Google AI Overview API?
No. Google's documentation for site owners says pages that appear in AI features such as AI Overviews and AI Mode are counted in Search Console's Performance report, under the Web search type ( [Google Search Central](https://developers.google.com/search/docs/appearance/ai-features), 2026). In June 2026 Google added dedicated generative AI performance reports, rolling out to a subset of websites first ( [Google Search Central Blog](https://developers.google.com/search/blog/2026/06/gen-ai-performance-reports), 2026).
Both are the right tools for one question: how often does my site show up? They're free, first-party and cover every query Google counts. They can't tell you what an overview says, which sources it cites, or whether a competitor appears for your keywords. For that you need the overview itself for a query you choose, which is what the [Search Ai Overview endpoint](https://perceptlayer.com/apis/google-search/search-ai-overview) returns. Data is collected from publicly available sources and returned as found at the time of the call.
| Question | Search Console | `/v1/google-search/search-ai-overview` |
| --- | --- | --- |
| How often does my site appear in AI features? | Yes, impressions and clicks | No |
| What does the overview say for a given query? | No | Yes |
| Which sites are cited for my keywords? | Only my own | Whatever the overview shows |
| Cost | Free | 1 credit per successful call |
## How do you request an AI Overview?
Send a GET request with `query`. Add `hl` and `gl`, both two-letter codes, so the overview matches the language and country you're tracking. The request below uses the endpoint's catalogue example. Put your key in the `X-API-Key` header; keys start with `sk_live_`, and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest.
```bash
curl "https://api.perceptlayer.com/v1/google-search/search-ai-overview?query=how+does+photosynthesis+work&hl=en&gl=us" \
-H "X-API-Key: $API_KEY"
```
We haven't run this request for the article and have no recorded response, so we won't describe the response fields here. Run it in the playground on the [Search Ai Overview page](https://perceptlayer.com/apis/google-search/search-ai-overview) to see the real output before you write a parser.
### Which parameters does the endpoint take?
The endpoint takes one required parameter and four optional ones. Types and lengths come from the endpoint definition. Nothing else, such as defaults, is documented, so set the language and location you need on every call rather than relying on one.
| Parameter | Type | Notes |
| --- | --- | --- |
| `query` | string, required | Up to 2,048 characters |
| `hl` | string | Interface language, 2 characters, for example `en` |
| `gl` | string | Country, 2 characters, for example `us` |
| `google_domain` | string | Up to 100 characters, for example `google.co.uk` |
| `uule` | string | Encoded location, up to 500 characters |
`gl` sets the country; `uule` narrows to a place, which matters for local queries such as "emergency plumber near me". The [Google Search API guide](https://perceptlayer.com/blog/google-search-api-json) covers `uule` and the other six Google Search endpoints, so this article doesn't repeat them.
## Why do many queries return no AI Overview?
Because Google shows an overview only when its systems decide it helps. Google's help pages say AI Overviews appear when generative AI can be especially helpful, such as when you want to understand information from a range of sources ( [Google Search Help](https://support.google.com/websearch/answer/14901683), 2026). After early problems, Google said in 2024 it had added triggering restrictions for queries where overviews weren't proving helpful ( [Google](https://blog.google/products-and-platforms/products/search/ai-overviews-update-may-2024/), 2024).
Query length is the clearest pattern in public data. In Pew Research Center's analysis of 900 US adults' browsing in March 2025, 18% of Google searches produced an AI summary. Only 8% of one- or two-word searches did, against 53% of searches with 10 words or more, and questions and full sentences triggered summaries more often ( [Pew Research Center](https://www.pewresearch.org/data-labs/2025/05/23/what-web-browsing-data-tells-us-about-how-ai-appears-online/), 2025). Those are US figures from 2025; the share changes as Google expands the feature.
So a keyword list of short head terms will mostly come back empty, while long, question-shaped queries will mostly return an overview. Plan for both outcomes in your code. We haven't recorded a query without an overview, so we can't show whether one comes back as a successful, billed response with no overview in it, or as a `not_found` (404) error, which costs nothing. Budget as if every call costs 1 credit, and check the response on the first runs.
## How do you track AI Overviews for a keyword set?
Run each keyword once a day with fixed `hl` and `gl`, store the raw JSON with the date, and compare day over day. Storing the raw response matters more than usual here: overview text changes between runs, and you can't go back for yesterday's. Here's a minimal daily job in Python.
```python
import datetime
import json
import os
import pathlib
import requests
URL = "https://api.perceptlayer.com/v1/google-search/search-ai-overview"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
KEYWORDS = ["how does photosynthesis work", "how long to boil an egg for a soft yolk"]
day = datetime.date.today().isoformat()
out = pathlib.Path("overviews") / day
out.mkdir(parents=True, exist_ok=True)
for i, kw in enumerate(KEYWORDS):
r = requests.get(URL, headers=HEADERS, params={"query": kw, "hl": "en", "gl": "us"}, timeout=60)
record = {"query": kw, "status": r.status_code, "credits": r.headers.get("X-Credits-Used")}
if r.ok:
record["body"] = r.json()
elif r.status_code != 404:
record["error"] = r.json().get("error", {}).get("code")
(out / f"{i:04d}.json").write_text(json.dumps(record))
```
We haven't run this script against the live API. It stores the status and the `X-Credits-Used` header with each result, which answers the empty-overview billing question on your first run. It treats a 404 as "no data" and keeps any other error code. For retries on `rate_limited` and `temporarily_unavailable`, see [handling web data API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python). For what to do with stored results, [search result data for SEO monitoring](https://perceptlayer.com/blog/search-result-data-seo-monitoring) covers which SERP fields to track.
## What does tracking AI Overviews cost?
Each call costs 1 credit on success; failed calls cost nothing and return `X-Credits-Used: 0`. Every success returns `X-Credits-Used` and `X-Credits-Remaining`, so the daily job can log spend from the headers. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
| Job | Calls a month | Credits a month |
| --- | --- | --- |
| 30 keywords, daily, one market | 900 | 900 |
| 200 keywords, daily, one market | 6,000 | 6,000 |
| 200 keywords, daily, three markets | 18,000 | 18,000 |
| 200 keywords, weekly, one market | about 867 | about 867 |
The 100 free credits you get once, after verifying an email address, cover the first 3 days of the first row (3 × 30 = 90), enough to test before you buy. Every row needs a pack for ongoing use. A Starter pack of 10,000 credits covers the 30-keyword job for 11 months (10,000 ÷ 900) and weekly tracking of 200 keywords, about 867 credits a month, for 11 months too. The 200-keyword daily job, 6,000 credits a month, fits a Build pack of 50,000 credits for eight months, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Free accounts run at 1 request a second, so 200 calls take a little over three minutes; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) list paid rates.
If you also want the classic results for the same keywords, that's a second call to the [Google Search endpoint](https://perceptlayer.com/apis/google-search/search) at 1 credit each. For Google's conversational answers with follow-ups, see the [Google AI Mode API guide](https://perceptlayer.com/blog/google-ai-mode-api).
## Can an AI agent fetch AI Overviews?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints` and `get_endpoint` for free catalogue lookups and `call_endpoint` to run the endpoint, spending 1 credit on success. An agent can look up `google-search.search-ai-overview`, read its parameters and call it with a query.
An overview is Google's generated summary, not a source. If an agent uses it, have it follow the cited pages rather than quoting the overview as fact. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents), and errors come back with a JSON `code` listed in the [errors docs](https://docs.perceptlayer.com/errors).
To see a real response, [get a free API key](https://perceptlayer.com/signup) and run your own keyword in the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search).
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### Does Google have an API for AI Overviews?
No. Google reports your own site's impressions in AI features through Search Console, under the Web search type, and added dedicated generative AI reports in 2026 for a subset of sites. Neither returns the overview for a query you choose. `GET /v1/google-search/search-ai-overview` takes a query and returns the overview as JSON, at 1 credit per successful call.
### How much does the AI Overview endpoint cost?
1 credit per successful call; failed calls cost nothing. Tracking 200 keywords daily is about 6,000 credits a month, and every account gets 100 free credits after verifying an email address. Prepaid packs start at 10,000 credits and last 12 months. The [pricing page](https://perceptlayer.com/pricing) has what credits cost.
### Why did my query return no AI Overview?
Google shows overviews only when its systems judge them helpful, mostly for longer and question-shaped queries. Pew found summaries on 8% of one- or two-word searches and 53% of searches of 10 words or more in March 2025. Language and country matter too, so set `hl` and `gl` to the market you're tracking.
### Can I target a country or city?
Yes. `gl` takes a two-letter country code and `hl` a two-letter language code. `google_domain` sets the Google domain, such as `google.co.uk`, and `uule` takes an encoded location for city-level results. Keep these fixed across runs, or day-over-day changes will mix market differences with real ones.
### What happens if a call fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and nothing is debited. A missing `query` returns `invalid_parameters` (422). Rate-limited (429) and temporarily unavailable (503) responses carry a `Retry-After` header with the seconds to wait. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
google ai overview ai overviews google search seo serp json
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 6 Aug 2026 Perceptlayer 7 min read
## [Google Search API: Get Search Results as JSON](https://perceptlayer.com/blog/google-search-api-json)
Call GET /v1/google-search/search for organic results as JSON at 1 credit a call. Parameters, a real recorded response and the cost in credits.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Oct 2026 Perceptlayer 7 min read
## [Rank Tracking API: Track Google Positions as JSON](https://perceptlayer.com/blog/rank-tracking-api)
Build a daily rank check from one Google search call per keyword and location: read organic\_results position and link, store them, 1 credit a check.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Oct 2026 Perceptlayer 8 min read
## [Scrape Google Search Results with Python](https://perceptlayer.com/blog/scrape-google-search-results-python)
Get Google results in Python as JSON: organic\_results, related\_questions and related\_searches from one call to /v1/google-search/search, at 1 credit a page.
---
title: "AI Agent API Cost Control: Cap Web Data Spend | Perceptlayer"
description: "Cap an agent's web data spend per run: credit arithmetic for 8 and 20 calls per task, a Python budget wrapper, and why failed calls cost 0 credits."
url: https://perceptlayer.com/blog/ai-agent-web-data-costs
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# AI Agent API Cost Control: Cap Web Data Spend
12 Jul 2026 Perceptlayer 7 min read
AI agent API cost control comes down to two numbers: the credits one call costs and the maximum number of calls one run may make. On Perceptlayer a successful call costs the credits shown on its endpoint, which is 1 credit for nearly all of them, and a failed call costs nothing. Multiply calls per run by runs per month, add a hard cap in your own code, and the worst case is known before the agent starts.
## Key takeaways
- Worst-case spend per run is `max_calls × credits_per_call`. With a cap of 20 calls at 1 credit, no run can cost more than 20 credits.
- A typical run of 8 calls uses 8 credits, and 500 tasks a month use 4,000 credits. Capped at 20 calls, the same 500 tasks use at most 10,000 credits, exactly the Starter pack. [Pricing](https://perceptlayer.com/pricing) shows what credits cost.
- Failed calls return `X-Credits-Used: 0`, so retries after an error or a rate limit don't add to the credit bill.
- Enforce the cap in the code that executes tool calls, not in the prompt. A model can ignore an instruction to stop; a wrapper that raises an exception can't be ignored.
- Web data credits are separate from model token costs. This article covers only the data side.
## Why do agent data costs drift?
Agents decide at run time how many calls a task needs, so the bill depends on model behaviour as much as on traffic. A model that keeps refining a query or loops on an empty result makes more calls than you planned. Per-call pricing is fine. The unbounded loop is the problem, and the fix is a ceiling the loop can't pass.
Prepaid credits help because the account itself has a ceiling. The service is prepaid: purchased credits last 12 months, with no subscription and no seats. When the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited, so a runaway agent stops at the balance you loaded. A per-run cap keeps one run from eating that whole balance.
## How do you calculate credits per agent task?
Count the calls one task needs, multiply by the credits per call, and keep two figures: the typical case and the capped worst case. For endpoints that cost 1 credit, calls and credits are the same number. Check the cost shown on each endpoint you give the agent, because the cap should be in credits if any endpoint costs more than 1.
Take an example agent that answers a research question. Assume it typically makes 8 calls per task and you cap it at 20. These are example figures for the arithmetic, not measurements. Per run, that's 8 credits typical and 20 credits worst case.
| Pack | Credits | Typical runs (8 credits each) | Capped runs (20 credits each) |
| --- | --- | --- | --- |
| Free credits | 100, once | 12 | 5 |
| Starter | 10,000 | 1,250 | 500 |
| Build | 50,000 | 6,250 | 2,500 |
| Growth | 200,000 | 25,000 | 10,000 |
| Scale | 1,000,000 | 125,000 | 50,000 |
What a pack costs is on the [pricing page](https://perceptlayer.com/pricing), and the credit arithmetic doesn't change with it.
Run counts follow from the credits. The 100 free credits cover 12 typical runs (100 ÷ 8, rounded down) or 5 capped runs (100 ÷ 20). The Starter pack's 10,000 credits cover 1,250 typical runs or 500 capped runs. At 500 tasks a month, typical spend is 500 × 8 = 4,000 credits, and the cap bounds the worst case at 500 × 20 = 10,000 credits, which equals the Starter pack.
## Why don't failed calls count against the budget?
A failed call returns an HTTP status, a JSON error body and the header `X-Credits-Used: 0`. Only a successful response debits credits. So the retries an agent makes after a `rate_limited` (429, the status [RFC 6585](https://www.rfc-editor.org/rfc/rfc6585#section-4) defines for too many requests) or `source_error` (502) response don't change the credit total.
Take a run that makes 8 successful calls and hits 3 errors along the way: 8 credits, not 11. The three failed attempts cost nothing in credits. They still cost time and model tokens, so they should count toward a separate attempt cap.
That second cap matters. An agent that retries an `invalid_parameters` (422) response forever will never be billed for it, and it will never finish either. See the [error reference](https://docs.perceptlayer.com/errors) and the [rate limit docs](https://docs.perceptlayer.com/rate-limits).
## How do you build AI agent API cost control in code?
Put the cap in the function that executes the agent's tool calls. The wrapper below counts credits and attempts, refuses to send a request that would pass either limit, and raises `BudgetExceeded` so the agent loop stops and returns what it has. It counts each successful call at the endpoint's listed cost, which you pass in as `credits_per_call`.
```python
import os
import requests
class BudgetExceeded(Exception):
pass
class CallBudget:
def __init__(self, max_credits, max_attempts, credits_per_call=1):
self.max_credits = max_credits
self.max_attempts = max_attempts
self.credits_per_call = credits_per_call
self.spent = 0
self.attempts = 0
def call(self, url, params=None, method="GET"):
if self.spent + self.credits_per_call > self.max_credits:
raise BudgetExceeded(f"credit cap reached: {self.spent}/{self.max_credits}")
if self.attempts >= self.max_attempts:
raise BudgetExceeded(f"attempt cap reached: {self.attempts}/{self.max_attempts}")
self.attempts += 1
try:
response = requests.request(
method,
url,
params=params,
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
)
except requests.RequestException as error:
raise BudgetExceeded(f"request failed, stopping the run: {error}") from error
if response.status_code == 402:
raise BudgetExceeded("account is out of credits")
if response.ok:
self.spent += self.credits_per_call
return response
```
Use one `CallBudget` per run and hand its `call` method to the agent as the only way to reach the API.
```python
budget = CallBudget(max_credits=20, max_attempts=30)
url = os.environ["ENDPOINT_URL"] # copied from the endpoint's page
try:
response = budget.call(url, params={"q": "example"})
print(response.status_code, f"{budget.spent} credits spent")
except BudgetExceeded as stop:
print("stopping the run:", stop)
```
A timeout or connection error counts as an attempt and ends the run cleanly instead of crashing the loop. The credit count is a local estimate: it adds the endpoint's listed cost for each successful response and doesn't read anything from the response. Treat it as a ceiling check, and compare it with the `X-Credits-Remaining` header, which every successful response carries with your balance after the call.
Set `max_attempts` above `max_credits` so a few free failures can retry, and keep the gap small. Here 20 credits allow 20 successful calls, and the 10 extra attempts allow up to 10 failures before the run stops. See also the [requests docs](https://docs.perceptlayer.com/requests).
## What changes when the agent calls through MCP?
The MCP server at `https://perceptlayer.com/mcp` exposes three tools, `search_endpoints`, `get_endpoint` and `call_endpoint`. `search_endpoints` and `get_endpoint` only look things up in the catalogue and cost nothing, so `call_endpoint` is the one tool that needs a budget check. A successful `call_endpoint` costs the credits shown on its endpoint, failed calls cost nothing, and its result reports the credits used and the balance remaining. The [MCP docs](https://docs.perceptlayer.com/ai-agents) cover the tools.
The cap needs your own agent loop, because the loop is where tool calls get executed. Route every `call_endpoint` the model requests through a budget check, and let the loop stop when it raises. The sketch below assumes your MCP client gives you a function `send_call_endpoint(arguments)` that runs the tool and returns its result; `credits_per_call` is the cost listed on the endpoint.
```python
class McpBudget:
def __init__(self, max_credits, credits_per_call=1):
self.max_credits = max_credits
self.credits_per_call = credits_per_call
self.spent = 0
def call_endpoint(self, send_call_endpoint, arguments):
if self.spent + self.credits_per_call > self.max_credits:
raise BudgetExceeded(f"credit cap reached: {self.spent}/{self.max_credits}")
try:
result = send_call_endpoint(arguments)
except Exception as error:
raise BudgetExceeded(f"tool call failed, stopping the run: {error}") from error
if not getattr(result, "isError", False):
self.spent += self.credits_per_call
return result
```
MCP marks a failed tool call with `isError` in its result (see the [MCP tools specification](https://modelcontextprotocol.io/specification/2025-06-18/server/tools)), which is what the wrapper checks before counting credits. In the loop, when the model asks for `call_endpoint`, call `budget.call_endpoint(...)` instead of the client directly. Catch `BudgetExceeded` outside the loop and return what the agent has so far. As with the HTTP wrapper, the credit count is a local estimate, not a figure read from the response.
The related walkthrough, [Claude MCP Web Search: Live Results for an Agent](https://perceptlayer.com/blog/claude-agent-live-search-mcp), shows the tools in use.
## How should you size a balance for an agent?
Size the balance for the capped worst case, then watch the typical case. Take runs per month × cap × credits per call. For 500 runs capped at 20 calls, that's 10,000 credits, which the Starter pack's 10,000 credits cover exactly. For 5,000 runs, it's 100,000 credits at the cap and 40,000 at 8 calls per run. One Build pack (50,000 credits) covers the typical 40,000. One Growth pack (200,000 credits) covers the 100,000-credit worst case with room to spare. A Scale pack holds 1,000,000 credits, so it only pays off if you'll use most of it within the 12 months credits last. See [pricing](https://perceptlayer.com/pricing) for what each pack costs.
Start on the free credits. When you verify an email address you get 100 free credits once, with no credit card, which is enough to measure your real calls per task with a cap in place.
The [credits docs](https://docs.perceptlayer.com/credits) and the [pricing page](https://perceptlayer.com/pricing) have the details and the packs. [Get a free API key](https://perceptlayer.com/signup), add the wrapper above, and run 5 tasks (at most 100 credits at the cap) before you decide on a pack. More agent guides are in the [AI agents category](https://perceptlayer.com/blog/category/ai-agents).
## Frequently asked questions
### Do failed calls use credits?
No. A failed call returns an HTTP status, a JSON error body with a `code`, `message` and `request_id`, and the header `X-Credits-Used: 0`. Only a successful response debits credits. Failed attempts still take time, so cap attempts as well as credits, and see the [error docs](https://docs.perceptlayer.com/errors) for each code.
### How much does an agent run cost at 20 calls?
At 1 credit per call, a run capped at 20 calls uses at most 20 credits (20 calls × 1 credit). The 500-run month in this article is at most 10,000 credits, and the [pricing page](https://perceptlayer.com/pricing) shows what those credits cost. Calls to the rare endpoint that costs more than 1 credit change the maths.
### Should the budget live in the prompt or in code?
In code. A prompt that says "make at most 20 calls" is a request the model can miss after a long context or a confusing result. A wrapper that counts credits and raises an exception at the cap is deterministic. Use the prompt to tell the agent what to do when the wrapper stops it.
### What happens when my credits run out mid-run?
The API returns `insufficient_credits` with HTTP status 402, and nothing is debited for that call. In the example wrapper, a 402 raises `BudgetExceeded`, which ends the run cleanly. Purchased credits last 12 months, and there is no subscription.
### Does the free tier cover testing an agent?
Yes. Every account gets 100 free credits after verifying an email address, with no credit card. At a cap of 20 calls per run, that's 5 capped runs, or 12 runs at 8 calls each, which is enough to measure real calls per task before buying a pack.
ai agents cost control credits mcp budgeting
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 23 Aug 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [MCP Server for Web Scraping: Tools Agents Can Call](https://perceptlayer.com/blog/mcp-server-for-web-scraping)
An MCP server gives an agent three tools to find, inspect and call web endpoints. Use the scraper for uncatalogued pages, structured endpoints for the rest.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 24 Jul 2026 Perceptlayer 7 min read
## [Scheduled AI Agent Runs: Budgeting Credits per Run](https://perceptlayer.com/blog/scheduled-agent-credit-budget)
Cap an agent at N calls per run with a Python ledger that reads X-Credits-Used, plus the math for hourly and daily runs on 100 credits on signup.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
---
title: "Job Search Agent: Match Postings to a CV with Live Data"
description: "Build an AI job search agent in Python: Indeed postings, Glassdoor pay and ratings, ranked by CV skill match locally. About 12 credits a run."
url: https://perceptlayer.com/blog/job-search-agent-live-postings
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Job Search Agent: Match Postings to a CV with Live Data
12 Jul 2026 Updated 12 Aug 2026 Perceptlayer 9 min read
An AI job search agent needs two things: live postings and a way to score them against your CV. Pull postings from the Indeed jobs endpoint, add Glassdoor pay and ratings for the top companies, and do the CV matching on your own machine so the CV never reaches an API. The script below does that in about 12 credits per run.
## Key takeaways
- One `GET /v1/indeed/jobs` call returns postings with `title`, `company.name`, `description_html`, `date_published` and `apply_url`; it costs 1 credit.
- The CV is read from a local file and matched against posting text in Python. Only a job title, a location and company names go to the API.
- Glassdoor `companies-search` and `salaries` add a rating and, where a row is found, a total-pay median per shortlisted company, at 1 credit each.
- A run with 5 shortlisted companies costs 1 + 1 + (5 × 2) = 12 credits, so a daily run for 30 days is 360 credits. The 100 free credits on signup cover the first 8 runs.
## How does the agent work?
The agent is a short pipeline, not a chat loop. It reads a local CV, searches Indeed for your target title, scores each posting by how many of the skills it mentions you already have, and then enriches only the best few with Glassdoor data. Ranking is plain Python, which keeps it cheap and repeatable.
An LLM is optional. You can add one at the end to write a summary of the shortlist, but the matching doesn't need it, and leaving it out is what keeps the CV local by construction. We'll come back to that trade-off below.
| Step | Where it runs | Calls | Credits |
| --- | --- | --- | --- |
| Read `cv.txt`, extract skills | Your machine | 0 | 0 |
| Search postings | `GET /v1/indeed/jobs` | 1 | 1 |
| Baseline pay for the title | `GET /v1/glassdoor/salaries` | 1 | 1 |
| Match and rank postings | Your machine | 0 | 0 |
| Company rating, per company | `GET /v1/glassdoor/companies-search` | up to 5 | up to 5 |
| Company pay, per company | `GET /v1/glassdoor/salaries` with `employer_id` | up to 5 | up to 5 |
## What do you need before you start?
You need Python 3, the `requests` library, and an API key. Keys start with `sk_live_` and go in the `X-API-Key` header; the [authentication docs](https://docs.perceptlayer.com/authentication) cover the details. A free account gets 100 credits after email verification, and [signing up](https://perceptlayer.com/signup) takes no credit card.
Create a working folder with three files: `cv.txt` (your CV as plain text), `profile.json` (what you're searching for) and `job_agent.py` (below). Export the key in your shell:
```bash
export API_KEY=sk_live_your_key_here
pip install requests
```
The profile holds only search parameters, nothing personal:
```json
{
"title": "software engineer",
"location": "Berlin",
"country": "DE",
"job_type": "full_time"
}
```
## Step 1: How do you extract skills from a CV locally?
Match the CV against a skills vocabulary you control. Open the file, lowercase it, and keep every vocabulary term that appears as a whole word. No network call is involved, and the result is a plain Python set you can print and check.
A vocabulary is less clever than a language model, but it's predictable. If a skill isn't found, you add it to the list and rerun. The same vocabulary is used on the posting side, so the two sets are comparable.
```python
import json
import os
import re
import time
from html.parser import HTMLParser
import requests
BASE = "https://api.perceptlayer.com"
SKILLS = [
"python", "javascript", "typescript", "golang", "rust", "java", "sql",
"postgresql", "mysql", "redis", "kafka", "docker", "kubernetes",
"terraform", "aws", "gcp", "azure", "react", "node.js", "fastapi",
"django", "graphql", "ci/cd", "machine learning", "pytorch",
]
def has_term(term, text):
pattern = r"(?The AI orchestration of your wildest imagination.
…",
"attributes": ["Collaboration with Sales", "Go"],
"date_published": "2026-08-12 05:00:00",
"apply_url": "https://jobs.ashbyhq.com/n8n/…"
}
],
"pagination": { "next_cursor": "…", "has_more": true },
"metadata": { "total_results": 20, "timestamp": "2026-10-21T13:25:37.233649Z" }
}
}
```
Two details matter for the agent. The posting text is HTML in `description_html`, so it needs stripping before matching. And `pagination.has_more` with `next_cursor` tells you more postings exist; for the cursor loop pattern, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python). The [Indeed Jobs API article](https://perceptlayer.com/blog/indeed-jobs-api-json) covers the endpoint in more depth.
## Step 3: How do you score postings against the CV?
Score each posting by coverage: of the vocabulary skills a posting mentions, what fraction does your CV have? A posting that mentions five skills and matches four scores 0.8. Postings that mention no vocabulary skills are dropped, because there's nothing to compare. Missing skills are kept, so the output shows what to learn or leave out.
Coverage beats a raw count here. A long posting that lists twenty technologies would otherwise outrank a focused one you fit better.
```python
class TextExtractor(HTMLParser):
def __init__(self):
super().__init__()
self.parts = []
def handle_data(self, data):
self.parts.append(data)
def html_to_text(html):
parser = TextExtractor()
parser.feed(html or "")
return " ".join(parser.parts)
def score_postings(jobs, cv_skills):
scored = []
for job in jobs:
text = f"{job['title']} {' '.join(job.get('attributes', []))} {html_to_text(job.get('description_html'))}"
wanted = skills_in(text)
if not wanted:
continue
matched = wanted & cv_skills
scored.append({
"id": job["id"],
"title": job["title"],
"company": job["company"]["name"],
"remote": job["location"].get("is_remote", False),
"published": job["date_published"],
"apply_url": job["apply_url"],
"score": round(len(matched) / len(wanted), 2),
"matched": sorted(matched),
"missing": sorted(wanted - cv_skills),
})
scored.sort(key=lambda j: (j["score"], j["published"]), reverse=True)
return scored
```
Ties break on `date_published`, so between two equal fits the newer posting comes first. Everything in this step runs on your machine against text you already downloaded.
## Step 4: How do you add Glassdoor pay and ratings?
Use two Glassdoor endpoints. [`companies-search`](https://perceptlayer.com/apis/glassdoor/companies-search) takes a company name and returns candidates with an `id`, `rating`, `review_count` and `salary_count`. [`salaries`](https://perceptlayer.com/apis/glassdoor/salaries) takes a `job_title` and an optional `employer_id`, and returns pay percentiles. Each call costs 1 credit, so enrich only the shortlist.
A recorded `companies-search` response for the query `Stripe`, trimmed:
```json
{
"success": true,
"data": {
"query": "Stripe",
"companies": [
{ "id": 671932, "name": "Stripe", "rating": 3.8, "review_count": 1619, "salary_count": 4702, "job_count": 3 },
{ "id": 5554043, "name": "Stripe OLT", "rating": 4, "review_count": 24, "salary_count": 38, "job_count": 0 }
],
"page": 1,
"total_pages": 5,
"has_more": true
}
}
```
The search returns near-matches ("Stripe OLT" next to "Stripe"), so the code accepts only an exact, case-insensitive name match and otherwise skips the company. A wrong company is worse than a missing one.
The recorded `salaries` response, called with only `job_title=software engineer`, has a `salaries` list with one row per employer, each carrying `total_pay` percentiles ( `p10` to `p90`), `currency` and `pay_period`. It also has an `estimate` block with `total_pay` percentiles for the title across the whole country ( `location` was `United States` in our recording). We recorded the unfiltered call only. The call with `employer_id` isn't in a recording, so the code makes no assumption about what it returns: it reads every field defensively with `.get` and uses a row only if the row's `employer.id` equals the company id from the search. If no such row comes back, `company_pay` returns the rating and review count with `p50` set to `None`, and the output shows a dash for pay. The title-level `estimate` is a separate call, made once by `title_baseline`.
```python
def title_baseline(title):
data = call("/v1/glassdoor/salaries", job_title=title)
est = data.get("estimate") or {}
return {
"currency": est.get("currency"),
"location": est.get("location"),
"p50": (est.get("total_pay") or {}).get("p50"),
}
def company_pay(name, title):
found = call("/v1/glassdoor/companies-search", query=name)["companies"]
match = next((c for c in found if c["name"].lower() == name.lower()), None)
if match is None:
return None
data = call("/v1/glassdoor/salaries", job_title=title, employer_id=match["id"])
rows = data.get("salaries") or []
row = next(
(s for s in rows if (s.get("employer") or {}).get("id") == match["id"]),
None,
)
total = (row or {}).get("total_pay") or {}
return {
"rating": match.get("rating"),
"reviews": match.get("review_count"),
"currency": (row or {}).get("currency"),
"p50": total.get("p50"),
}
```
One caveat for non-US searches: the recorded baseline is in USD for the United States, while a Berlin posting is likely paid in euros. The agent keeps the `currency` next to every figure and never converts. Treat a USD median as context for a Berlin posting, not a salary offer.
## Step 5: How do you put it together and run it?
The `main` function loads the profile and the CV skills, fetches and ranks postings, then enriches the top five distinct companies. The company cache means a firm with three open roles is looked up once. The script prints a table and writes the full result to `results.json`, including `apply_url` for each posting.
```python
def main():
with open("profile.json", encoding="utf-8") as f:
profile = json.load(f)
cv_skills = load_cv_skills()
print("CV skills found:", ", ".join(sorted(cv_skills)))
ranked = score_postings(fetch_postings(profile), cv_skills)
baseline = title_baseline(profile["title"])
pay_cache = {}
for job in ranked[:5]:
name = job["company"]
if name not in pay_cache:
pay_cache[name] = company_pay(name, profile["title"])
job["glassdoor"] = pay_cache[name]
with open("results.json", "w", encoding="utf-8") as f:
json.dump({"baseline": baseline, "postings": ranked}, f, indent=2)
for job in ranked[:10]:
g = job.get("glassdoor") or {}
pay = f"{g.get('p50'):,.0f} {g.get('currency')}" if g.get("p50") else "-"
print(f"{job['score']:.2f} {job['title'][:38]:38} {job['company'][:18]:18} {g.get('rating', '-')} {pay}")
print(f"credits spent: {credits_spent}")
if __name__ == "__main__":
main()
```
Run `python job_agent.py`. The output is one line per posting: match score, title, company, Glassdoor rating and median total pay where found, then the credits spent. The `credits spent` figure comes from summing the `X-Credits-Used` header on each response, so it matches what the call actually cost.
The loop makes at most 12 calls, one after another. Free accounts get 1 request a second, so if you hit a rate-limit error, add a short `time.sleep` between calls; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) explain how limits are counted. If you later parallelise the company lookups, see [concurrent API requests under rate limits](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit).
## What does the agent cost to run?
A run costs 1 credit for the Indeed search, 1 for the title baseline, and 2 credits per shortlisted company, so five companies is 1 + 1 + (5 × 2) = 12 credits. Failed calls cost nothing. A daily run for a month is 30 × 12 = 360 credits. The 100 free credits cover the first 8 daily runs; after that, the Starter pack's 10,000 credits cover a year of them (12 × 360 = 4,320).
| Setup | Calls per run | Credits per run | Credits per 30 days |
| --- | --- | --- | --- |
| Search and baseline only | 2 | 2 | 60 |
| Shortlist of 5 companies | 12 | 12 | 360 |
| Shortlist of 10 companies | 22 | 22 | 660 |
Every response carries `X-Credits-Remaining`, so you can print the balance at the end of a run if you want a running total. The [credits docs](https://docs.perceptlayer.com/credits) describe how debits work, and [pricing](https://perceptlayer.com/pricing) lists what credits cost if you outgrow the free tier. One honest caveat: requests have no idempotency key, so a timeout can hide a call that succeeded and was billed. The script doesn't retry timeouts, which keeps a flaky network from doubling a debit.
## Does the CV really stay local?
Yes, as written. The CV is read with `open()`, matched in-process and never put in a request. The API sees four things: a job title, a location and country, a job type, and company names pulled from public postings. All four are search terms, not documents.
That boundary holds only while the matching stays in Python. Hand the CV to a hosted LLM to "improve the match" and the text leaves your machine, so decide that deliberately. If you want a model to write the shortlist summary, send it `results.json` (postings, scores, skill names), not `cv.txt`. A local model avoids the question entirely.
Your search terms also say something: a title plus a city reveals where you want to work. That's the whole disclosure, and it's the same one a job board search makes.
## When should you use an LLM or MCP instead?
Use a script when the steps are fixed, as they are here. Use an agent loop when the next call depends on what came back, for example "search again with a broader title if fewer than ten postings match". The same endpoints are available as tools over MCP at `https://perceptlayer.com/mcp`, with `search_endpoints`, `get_endpoint` and `call_endpoint`.
The [AI agents docs](https://docs.perceptlayer.com/ai-agents) show how to add the server, and [MCP vs function calling](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) compares the two ways to wire tools. The [Model Context Protocol site](https://modelcontextprotocol.io) has the protocol itself. For agent spend limits, see [capping web data spend](https://perceptlayer.com/blog/ai-agent-web-data-costs).
Whichever you choose, the same privacy rule applies: the model sees what you put in its context. Keep the CV out of that context and the agent stays as local as this script. The [LangChain custom tool tutorial](https://perceptlayer.com/blog/langchain-custom-tool-web-data) shows the tool-wrapping pattern if you go that way.
To try the first call before running anything, open the [Indeed API page](https://perceptlayer.com/apis/indeed), run `/v1/indeed/jobs` in the playground with your title and city, then [get a free API key](https://perceptlayer.com/signup) and run the script.
## APIs in this post
- [Indeed **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/indeed)
- [Glassdoor **1 credit per call** · 13 endpoints](https://perceptlayer.com/apis/glassdoor)
## Frequently asked questions
### Can I use Glassdoor's job listings instead of Indeed's?
Yes. The `GET /v1/glassdoor/jobs-search` endpoint takes a `keyword` and an optional `cursor`, and costs 1 credit. Indeed's endpoint adds `location`, `country`, `job_type` and `sort` filters, which is why this tutorial uses it for postings and keeps Glassdoor for pay and ratings. See the [Glassdoor API page](https://perceptlayer.com/apis/glassdoor).
### How many credits does one search cost?
One Indeed search is 1 credit, and each Glassdoor call is 1 credit. The tutorial's default run, with five shortlisted companies, is 12 credits. A free account gets 100 credits once, on signup, so that's 8 runs with 4 credits to spare. Failed calls return `X-Credits-Used: 0`.
### What happens when I run out of credits mid-run?
The next call returns `insufficient_credits` with HTTP 402 and nothing more is debited; the service is prepaid, with no automatic top-up. The `call` helper in this tutorial raises with that code. The [errors docs](https://docs.perceptlayer.com/errors) list every code and what to do about each.
### Is the salary data an offer estimate?
No. The `salaries` endpoint returns percentiles ( `p10` to `p90`) with a currency and pay period on each row, as found at the time of the call. A median for a title or company is context for a negotiation, not a prediction of what a specific employer will offer you.
### Can I run this on a schedule?
Yes. The script has no interactive steps, so cron or a CI scheduler can run it. Add a check that skips postings whose `id` appeared in the previous `results.json`, so a daily run only surfaces new matches. Mind the request rate: free accounts get 1 request a second.
ai agents job search indeed glassdoor python
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 9 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [CrewAI Tools: Build a Custom Tool for Live Web Data](https://perceptlayer.com/blog/crewai-custom-tool-web-data)
Build a CrewAI custom tool (a BaseTool subclass) that searches Google for live results, cap it at 5 calls a run, or load MCP tools instead. Tested code.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Oct 2026 Perceptlayer 8 min read
## [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends)
Wire Google Search, Trends and News into one Python agent, cap it at 8 credits per question, and see a recorded Trends response.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 11 Sept 2026 Perceptlayer 8 min read
## [Build a Price Tracking Agent in Python with Live Data](https://perceptlayer.com/blog/price-tracking-agent-python)
A Python price tracker that checks Google Shopping and eBay once per product per run, stores history in SQLite, flags drops and costs 2 credits a product.
---
title: "Zoopla API: UK Listings and Sold Prices as JSON"
description: "Search Zoopla listings by outcode, pull sold prices and a property's valuation history by UPRN, at 1 credit per call. Parameters, cURL and a sweep cost."
url: https://perceptlayer.com/blog/zoopla-api-property-listings-sold-prices
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Zoopla API: UK Listings and Sold Prices as JSON
12 Jul 2026 Perceptlayer 7 min read
Zoopla's own API access is for its member agents and approved partners, not for anyone with a key. To read Zoopla listings, sold prices and valuation history as JSON, the Perceptlayer Zoopla API has 17 GET endpoints at 1 credit per successful call. Resolve a place with `/v1/zoopla/locations`, search it with `/v1/zoopla/search`, then pull sold records with `/v1/zoopla/sold` and a single property's history by its UPRN.
## Key takeaways
- `GET /v1/zoopla/search` needs only `location` (up to 32 characters, such as an outcode like `sw1a`) and takes `section` ( `for-sale`, `to-rent` or `new-homes`) and `page`.
- Sold prices come from `GET /v1/zoopla/sold` by `location`, filtered with `from_last_sale_date` and `to_last_sale_date` and paged with `first` and `after`.
- Nine endpoints work on one property by its UPRN, including `property`, `property-valuation-history` and `property-nearby-sold`. `addresses` takes a postcode and is the place to start when you only have an address.
- Every Zoopla endpoint costs 1 credit on success. A sweep of 20 outcodes with 5 search pages and 4 sold pages each is 20 × 10 = 200 credits.
- England and Wales sold prices are free from HM Land Registry under the Open Government Licence. Use Zoopla data for what the register lacks: live listings, agents and valuation history.
## Is there an official Zoopla API?
Not one you can sign up for and use to read listings. The APIs Zoopla documents are for its members' products, such as Premium Listings and Featured Properties, and its authentication guide describes OAuth 2.0 client credentials that Zoopla issues and revokes through your technical contact ( [Zoopla tech documentation](https://support.zoopla.co.uk/hc/en-gb/articles/360015656838-Authentication-Tech-Documentation), 2023). The site's [terms of use](https://www.zoopla.co.uk/terms/) say you may not use its content for commercial purposes without a licence from Zoopla, and they name developing an AI system as one such use (2026).
That gives you two routes. If you're building a commercial product on Zoopla's data, such as a valuation tool you sell, ask Zoopla for a licence: it's the only route that gives you the rights to redistribute. If you need structured Zoopla data for analysis, research or an internal tool, the [Zoopla API](https://perceptlayer.com/apis/zoopla) returns it as JSON with one key. Whether your use is allowed still depends on Zoopla's terms and UK law, and Perceptlayer can't advise on that.
## What can the Zoopla API return?
Seventeen endpoints cover three jobs: finding listings in an area, reading sold prices and market statistics, and looking up one property by its Unique Property Reference Number (UPRN). Every endpoint is a GET request, returns JSON and costs 1 credit when it succeeds. The table groups them by what you pass in, which is the order you'll call them.
| You have | Endpoint | Required | Credits |
| --- | --- | --- | --- |
| A place name or outcode | [`/v1/zoopla/locations`](https://perceptlayer.com/apis/zoopla/locations) | `query` | 1 |
| A location | `/v1/zoopla/search`, `/v1/zoopla/search-count` | `location` | 1 |
| A location | `/v1/zoopla/sold` | `location` | 1 |
| Location paths | `/v1/zoopla/sold-summary` | `paths[]` | 1 |
| An outcode | [`/v1/zoopla/market-insights`](https://perceptlayer.com/apis/zoopla/market-insights) | `outcode` | 1 |
| A geography | [`/v1/zoopla/market-activity`](https://perceptlayer.com/apis/zoopla/market-activity) | `geo` | 1 |
| A postcode | [`/v1/zoopla/addresses`](https://perceptlayer.com/apis/zoopla/addresses) | `postcode` | 1 |
| A UPRN | `property`, `property-valuation-history`, `property-nearby-sold`, `property-similar`, `property-demand`, `property-agents`, `market-local-stats` | `uprn` | 1 each |
| A listing ID | [`/v1/zoopla/listing`](https://perceptlayer.com/apis/zoopla/listing) | `listingId` | 1 |
| A branch ID | [`/v1/zoopla/agent`](https://perceptlayer.com/apis/zoopla/agent) | `branchId` | 1 |
The UPRN endpoints are the part a listings search can't give you. A UPRN identifies the property rather than a listing, so it stays the same across sales and lettings, and it is the key to join Zoopla records to your own address data.
## How do you search Zoopla listings?
Call `GET /v1/zoopla/search` with a `location` and, optionally, a `section` and a `page`. The location can be an outcode such as `sw1a`; if you start from a place name, call `/v1/zoopla/locations` with it first and use what it returns. `section` picks the listing type: `for-sale`, `to-rent` or `new-homes`. This request asks for the first page of homes for sale in SW1A:
```bash
curl "https://api.perceptlayer.com/v1/zoopla/search?location=sw1a§ion=for-sale&page=1" \
-H "X-API-Key: $API_KEY"
```
Keys start with `sk_live_` and go in the `X-API-Key` header; [get a free API key](https://perceptlayer.com/signup) and see the [authentication docs](https://docs.perceptlayer.com/authentication) for the rest.
These are all the search parameters. Nothing else about them is documented, so don't rely on a default sort or page size.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `location` | string | yes | Up to 32 characters, such as an outcode |
| `section` | string | no | `for-sale`, `to-rent` or `new-homes` |
| `page` | integer | no | Results page |
`GET /v1/zoopla/search-count` takes the same `location` and `section` and returns the count for that search, which tells you how many pages to expect before you spend credits on them. We don't have a recorded Zoopla response to show here, so run the call in the playground on the [Zoopla API page](https://perceptlayer.com/apis/zoopla) to see the fields for yourself.
## How do you get Zoopla sold prices?
Use `GET /v1/zoopla/sold` for sold records in an area. It takes a required `location` and four optional parameters: `from_last_sale_date` and `to_last_sale_date` bound the sale dates, and `first` and `after` page through the results. The names follow the usual cursor pattern, where `first` is how many records to return and `after` is the cursor from the previous page. Check the response in the playground for where the cursor appears.
```bash
curl "https://api.perceptlayer.com/v1/zoopla/sold?location=sw1a&first=50" \
-H "X-API-Key: $API_KEY"
```
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `location` | string | yes | Up to 32 characters |
| `first` | integer | no | Records per page |
| `after` | string | no | Cursor from the previous page, up to 255 characters |
| `from_last_sale_date` | string | no | Earliest last sale date |
| `to_last_sale_date` | string | no | Latest last sale date |
For an aggregate rather than a list, `GET /v1/zoopla/sold-summary` takes one or more `paths[]` values, each up to 120 characters, with optional `section` and `location`. `GET /v1/zoopla/market-activity` gives market activity for a `geo` (up to 32 characters), with `range_months` from `THREE_MONTHS` to `ALL` and `house_type` of `ALL`, `DETACHED`, `SEMI_DETACHED`, `FLAT` or `TERRACED`.
## How do you get a property's valuation history by UPRN?
Pass the UPRN to `GET /v1/zoopla/property-valuation-history`. Every per-property endpoint takes the same single `uprn` parameter, so once you have it, the property record, its valuation history, nearby sold homes, similar homes, demand and agents are each one more call. If you only have an address, call `GET /v1/zoopla/addresses` with the postcode to find the property among the addresses listed there.
```bash
curl "https://api.perceptlayer.com/v1/zoopla/addresses?postcode=SW1A%202EP" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/zoopla/property-valuation-history?uprn=100023337105" \
-H "X-API-Key: $API_KEY"
```
`property-agents` also takes an optional `transaction_type` of `SALE` or `RENT`. Note the space in the postcode is URL-encoded as `%20`.
A short Python loop runs the same lookups for a list of UPRNs and saves each response as it comes, so a failure halfway through doesn't lose the rest:
```python
import json
import os
import requests
BASE = "https://api.perceptlayer.com/v1/zoopla"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
UPRNS = ["100023337105"] # your list
for uprn in UPRNS:
for endpoint in ("property", "property-valuation-history", "property-nearby-sold"):
r = requests.get(f"{BASE}/{endpoint}", params={"uprn": uprn}, headers=HEADERS, timeout=60)
if r.status_code != 200:
print(uprn, endpoint, r.status_code, r.json()["error"]["code"])
continue
with open(f"{uprn}-{endpoint}.json", "w") as f:
json.dump(r.json(), f)
print(uprn, endpoint, "credits used:", r.headers["X-Credits-Used"])
```
We haven't run this script against the live API for this article. Each successful call prints `credits used: 1`. A failed one prints its error code, such as `not_found` or `invalid_parameters`, and costs nothing. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
## What does a postcode sweep cost?
Every Zoopla endpoint costs 1 credit per successful call, so the cost of a sweep is the number of calls. Take 20 outcodes. For each one, a `search-count` call, 5 pages of `search` and 4 pages of `sold` is 10 calls, so 20 × 10 = 200 credits. Valuing 300 of the properties you found, with `property-valuation-history` and `property-nearby-sold` for each, adds 300 × 2 = 600 credits.
| Step | Calls | Credits |
| --- | --- | --- |
| `search-count`, one per outcode | 20 | 20 |
| `search`, 5 pages per outcode | 100 | 100 |
| `sold`, 4 pages per outcode | 80 | 80 |
| Two UPRN lookups for 300 properties | 600 | 600 |
| **Total** | **800** | **800** |
That's 800 credits. The 100 free credits every verified account gets once cover the 10 calls per outcode for 10 of the 20 outcodes; the full sweep needs a pack. Run it weekly and it's 800 × 4 = 3,200 credits a month, within the Starter pack's 10,000. Failed calls return `X-Credits-Used: 0`, so retries after an error don't add to it. The [credits docs](https://docs.perceptlayer.com/credits) explain the balance, and [pricing](https://perceptlayer.com/pricing) has what packs cost.
## When is HM Land Registry data the better source?
For completed sale prices in England and Wales, start with HM Land Registry. Its Price Paid Data covers residential sales in England and Wales sold for value and lodged for registration, is updated monthly, and is free to use for commercial or non-commercial purposes under the Open Government Licence ( [HM Land Registry](https://www.gov.uk/guidance/about-the-price-paid-data), 2026). It is the register, so it is the authoritative price.
It has gaps a listing site fills. The two most recent months are incomplete because registration lags the sale, and it records the price paid, not the asking price, the agent or how a valuation moved over time. Zoopla's endpoints add live listings, asking prices, agents and valuation history by UPRN. A common split is Land Registry for the sold price and Zoopla for everything around it. For Scotland and Northern Ireland, which the Price Paid Data doesn't cover, listing sites matter more. The [Rightmove API](https://perceptlayer.com/blog/rightmove-api-property-data) covers the other large UK portal if you want a second source for the same areas.
To try it now, run a `search` for your own outcode in the playground on the [Zoopla API page](https://perceptlayer.com/apis/zoopla).
## APIs in this post
- [Zoopla **1 credit per call** · 17 endpoints](https://perceptlayer.com/apis/zoopla)
## Frequently asked questions
### How much does the Zoopla API cost?
Each of the 17 Zoopla endpoints costs 1 credit per successful call, and failed calls cost nothing. Every verified account gets 100 free credits on signup, enough for 100 searches or property lookups. Beyond that, credits come in prepaid packs from 10,000 credits, and the [pricing page](https://perceptlayer.com/pricing) has what they cost.
### Do I need a Zoopla developer account?
No. One Perceptlayer key in the `X-API-Key` header works for Zoopla and every other API in the catalogue. Zoopla's own credentials are issued to its members and partners for their integrations. If you need a licence to republish Zoopla's data commercially, that has to come from Zoopla itself.
### What is a UPRN and where do I get one?
A UPRN is a Unique Property Reference Number, an identifier for an addressable property rather than for one listing of it. Nine Zoopla endpoints take it as `uprn`. If you start from an address, call `/v1/zoopla/addresses` with the postcode and pick the property from the addresses it returns.
### Does the sold endpoint cover all UK sales?
It returns the sold records Zoopla shows for the location you ask for, as found at the time of the call. For the authoritative record of England and Wales sale prices, use HM Land Registry's free Price Paid Data, and treat Zoopla's sold data as a way to join prices to listings, agents and valuation history.
### What happens if I send a location Zoopla doesn't recognise?
The call fails with an error code and a message in a JSON body, and `X-Credits-Used` is 0, so a bad location costs nothing. Values over the length limits, such as a `location` longer than 32 characters, fail with `invalid_parameters` (422). The [errors docs](https://docs.perceptlayer.com/errors) list every code.
zoopla uk property sold prices real estate uprn
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Aug 2026 Perceptlayer 8 min read
## [Rightmove API: Get UK Property Listings and Sold Prices](https://perceptlayer.com/blog/rightmove-api-property-data)
Pull Rightmove UK listings, sold prices and agents as JSON with 8 endpoints at 1 credit per call, with a real London search response and cURL examples.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
---
title: "Google Finance API: Stock Quotes and History as JSON"
description: "Six Google Finance endpoints return quotes, history, intraday, markets and indices as JSON at 1 credit a call. Parameters, a recorded AAPL quote and costs."
url: https://perceptlayer.com/blog/google-finance-api-stock-quotes
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Finance API: Stock Quotes and History as JSON
10 Jul 2026 Perceptlayer 8 min read
Google Finance is a website and a spreadsheet function, not a JSON API, but Perceptlayer's Google Finance API returns data from the Google Finance site as JSON. Six endpoints cover search, quotes, history, intraday, markets and indices. Each successful call costs 1 credit, and failed calls cost nothing. Send a ticker in `symbol`, add `exchange` when it's ambiguous, and read the result.
## Key takeaways
- `GET /v1/google-finance/quote` needs only `symbol`; adding `exchange=NASDAQ` pins the listing. The recorded AAPL response carries `summary`, `key_stats`, `about` and `financials`.
- All six endpoints cost 1 credit per successful call. Failed calls return `X-Credits-Used: 0`.
- `historical` takes `interval` (daily, weekly or monthly) plus `range`, `start_date` and `end_date`.
- `markets` takes `trend` (gainers, losers, most-active and more) and `index_market` (americas, europe-middle-east-africa, asia-pacific).
- Data is returned as found at the time of the call. It is not a trading feed.
## Is there an official Google Finance API?
Not one we can point you to. Google offers the [Google Finance](https://www.google.com/finance/) website and a [`GOOGLEFINANCE` function in Google Sheets](https://support.google.com/docs/answer/3093281), and neither page documents an HTTP API for developers. Developers who want quotes as JSON either use a market data vendor or collect the page data some other way. This API takes the second route: the [Google Finance API](https://perceptlayer.com/apis/google-finance) on Perceptlayer returns what the site shows, collected from publicly available sources, as JSON with named fields.
That framing matters for what you build. A market data vendor's licensed feed is the right choice for execution, order routing or anything where a stale price costs money. This API fits research, dashboards, screening, enrichment and agents that need a fact-check on a ticker. Treat it as a reference reading, not a tick stream.
## Which Google Finance endpoints are there?
The Google Finance API has six endpoints under `https://api.perceptlayer.com/v1/google-finance/`: `search`, `quote`, `historical`, `intraday`, `markets` and `indices`. All are `GET` requests and each successful call costs 1 credit. Pick by the question you're asking: what is this ticker, how has it moved, or what is the market doing.
| Path | What it returns | Required | Credits |
| --- | --- | --- | --- |
| `/v1/google-finance/search` | Search results for a company or ticker | `q` | 1 |
| `/v1/google-finance/quote` | Quote | `symbol` | 1 |
| `/v1/google-finance/historical` | Historical | `symbol` | 1 |
| `/v1/google-finance/intraday` | Intraday | `symbol` | 1 |
| `/v1/google-finance/markets` | Markets | none | 1 |
| `/v1/google-finance/indices` | Indices | none | 1 |
A typical flow starts with [`search`](https://perceptlayer.com/apis/google-finance/search) to look up a company name, then calls `quote` for the snapshot and `historical` or `intraday` for the series. `markets` and `indices` need no symbol at all, so they suit a morning overview. The first step looks like this:
```bash
curl "https://api.perceptlayer.com/v1/google-finance/search?q=AAPL&hl=en&gl=us" \
-H "X-API-Key: $API_KEY"
```
We have no recorded `search` response, so run it in the playground to confirm which fields identify the symbol and exchange. Then pass those two values as `symbol` and `exchange` to `quote`, as in the next section.
## How do I get a stock quote as JSON?
Call `quote` with a `symbol` and, ideally, an `exchange`. One request returns the price summary, key statistics, a company profile and financial statements for the ticker. Authentication is the `X-API-Key` header; [get a free API key](https://perceptlayer.com/signup) if you don't have one, and see [authentication](https://docs.perceptlayer.com/authentication) for the details.
```bash
curl "https://api.perceptlayer.com/v1/google-finance/quote?symbol=AAPL&exchange=NASDAQ" \
-H "X-API-Key: $API_KEY"
```
### What does the quote response contain?
This is an excerpt of a recorded response for that request, trimmed with `…`. The prices are the values at the time we recorded it, so yours will differ.
```json
{
"quote": {
"summary": {
"name": "Apple Inc",
"symbol": "AAPL",
"exchange": "NASDAQ",
"current_price": 347.725,
"price_change": -0.49,
"percent_change": -0.14,
"currency": "USD",
"market": {
"trading": "Extended Hours",
"price": "$347.20",
"extracted_price": 347.2001,
"price_movement": {
"percentage": 0.15,
"movement": "Down"
}
}
},
"key_stats": {
"previous_close": "$348.22",
"day_range": "$345.75 - $351.73",
"year_range": "$243.42 - $351.73",
"market_cap": "5.07T USD",
"avg_volume": "39.13M",
"pe_ratio": 39.86,
"dividend_yield": "0.31%",
"primary_exchange": "NASDAQ"
},
"about": {
"ceo": "John Ternus",
"founded": "Apr 1, 1976",
"headquarters": "Cupertino, California, United States",
"employees": "166,000"
},
"financials": [
{
"title": "Income Statement",
"results": [
{ "date": "Jun 2026", "period_type": "Quarterly", "table": ["…"] }
]
}
]
}
}
```
Three things to notice before you write a parser. First, numbers come in two shapes: `current_price` and `pe_ratio` are numeric, while `previous_close`, `day_range` and `market_cap` are display strings such as `"5.07T USD"`. Convert those yourself; the snippet below shows one way. Second, `market.trading` says `"Extended Hours"` here, so the `market` block describes the session at the time of the call. Third, `financials` is a list of statements, each with dated results.
### How do I turn the display strings into numbers?
Strip the currency symbol and separators, read the number, then apply the `K`, `M`, `B` or `T` suffix. This Python parses the recorded strings: `"$348.22"` becomes 348.22, `"5.07T USD"` becomes 5,070,000,000,000, `"39.13M"` becomes 39,130,000, and `"$345.75 - $351.73"` splits into a low and a high.
```python
import os
import re
import requests
response = requests.get(
"https://api.perceptlayer.com/v1/google-finance/quote",
params={"symbol": "AAPL", "exchange": "NASDAQ"},
headers={"X-API-Key": os.environ["API_KEY"]},
timeout=30,
).json()
SUFFIX = {"K": 1e3, "M": 1e6, "B": 1e9, "T": 1e12}
def parse_display(value):
m = re.search(r"-?[\d,]*\.?\d+", value)
if not m:
return None
number = float(m.group().replace(",", ""))
after = value[m.end():m.end() + 1].upper()
return number * SUFFIX.get(after, 1)
def parse_range(value):
low, high = value.split(" - ")
return parse_display(low), parse_display(high)
stats = response["quote"]["key_stats"]
previous_close = parse_display(stats["previous_close"]) # 348.22
low, high = parse_range(stats["day_range"]) # 345.75, 351.73
market_cap = parse_display(stats["market_cap"]) # 5.07e12
```
`dividend_yield` ( `"0.31%"`) comes back as 0.31, a percentage and not a fraction, and a string with no digits returns `None`. Keep the raw string next to the parsed value so you can audit a surprising number later.
### How do I switch between quarterly and annual financials?
`period_type` accepts `quarterly` or `annual`; run both in the [quote playground](https://perceptlayer.com/apis/google-finance/quote) to see the difference. The recorded response above shows quarterly entries ( `"period_type": "Quarterly"`).
## What parameters does each endpoint take?
Each endpoint takes a small set of query parameters, and the table below lists every one with its type and allowed values, taken from the endpoint definitions. Only `q` or `symbol` is required where noted. Nothing else is documented about defaults, so check the [API page](https://perceptlayer.com/apis/google-finance) or run a call in its playground before relying on one.
| Endpoint | Parameter | Type | Notes |
| --- | --- | --- | --- |
| `search` | `q` | string, required | Up to 255 characters |
| `quote` | `symbol` | string, required | Up to 20 characters |
| `quote` | `exchange` | string | Optional, for example `NASDAQ` |
| `quote` | `period_type` | string | `quarterly` or `annual` |
| `historical` | `symbol` | string, required | Up to 20 characters |
| `historical` | `exchange` | string | Optional |
| `historical` | `range` | integer | Optional |
| `historical` | `start_date`, `end_date` | string | Optional |
| `historical` | `interval` | string | `daily`, `weekly` or `monthly` |
| `intraday` | `symbol` | string, required | Up to 20 characters |
| `intraday` | `exchange` | string | Optional |
| `markets` | `trend` | string | `indexes`, `most-active`, `gainers`, `losers`, `climate-leaders`, `cryptocurrencies`, `currencies` |
| `markets` | `index_market` | string | `americas`, `europe-middle-east-africa`, `asia-pacific` |
| `indices` | `indices` | string | Optional |
| all six | `hl`, `gl` | string | Language and country, up to 10 characters each |
The docs on [requests and responses](https://docs.perceptlayer.com/requests) explain how parameters are encoded and what headers come back.
## How do I get historical and intraday prices?
[`historical`](https://perceptlayer.com/apis/google-finance/historical) takes a `symbol`, an `interval` of `daily`, `weekly` or `monthly`, and a window set by `start_date` and `end_date` or the integer `range`. [`intraday`](https://perceptlayer.com/apis/google-finance/intraday) takes the same `symbol` and optional `exchange` as `quote`. We have no recorded sample for either, so we don't show their response shape or the date format `start_date` accepts; run one call of each in the playground before you write code against them.
```bash
curl "https://api.perceptlayer.com/v1/google-finance/historical?symbol=AAPL&exchange=NASDAQ&interval=weekly" \
-H "X-API-Key: $API_KEY"
curl "https://api.perceptlayer.com/v1/google-finance/intraday?symbol=AAPL&exchange=NASDAQ" \
-H "X-API-Key: $API_KEY"
```
What you can check now is the cost. A backfill is one `historical` call per ticker, so 50 tickers is 50 credits, and at the free rate of 1 request a second the loop takes at least 50 seconds. Intraday is a snapshot per call, not a stream: polling one ticker every minute for 6.5 hours is 390 calls, or 390 credits per ticker per US trading day. Chain it the same way as `quote`: `search` once per name, store the `symbol` and `exchange` it gives you, then reuse them so each later call is a single credit.
## How do I see market movers and indices?
[`markets`](https://perceptlayer.com/apis/google-finance/markets) answers "what is the market doing" with no symbol. Set `trend` to `gainers`, `losers`, `most-active`, `indexes`, `climate-leaders`, `cryptocurrencies` or `currencies`. `index_market` accepts `americas`, `europe-middle-east-africa` or `asia-pacific`.
```bash
curl "https://api.perceptlayer.com/v1/google-finance/markets?trend=gainers&hl=en&gl=us" \
-H "X-API-Key: $API_KEY"
```
[`indices`](https://perceptlayer.com/apis/google-finance/indices) takes an optional `indices` string and the same `hl` and `gl` pair. It needs no parameters, so this is a valid call:
```bash
curl "https://api.perceptlayer.com/v1/google-finance/indices?hl=en&gl=us" \
-H "X-API-Key: $API_KEY"
```
We have no recorded `indices` or `markets` response either, so check the fields in the playground. Use `hl` and `gl` consistently across calls, because language and country can change what a page shows.
## What does it cost?
Every endpoint is 1 credit per successful call, and failed calls are free; they return `X-Credits-Used: 0`. Free accounts get 100 credits once, after verifying an email, with no credit card. Paid credits come in prepaid packs and last 12 months; [pricing](https://perceptlayer.com/pricing) shows what each pack costs.
A worked example: a watchlist of 50 tickers, with one `quote` call each per trading day, over 21 trading days is 50 × 21 × 1 credit = 1,050 credits. The 100 free credits cover the first 2 trading days of that (50 × 2 = 100); the rest needs a pack. Add one `historical` backfill per ticker (50 credits) and a daily `markets` call (21 credits) and you're at 1,121 credits for the month, so the 10,000-credit Starter pack covers 8 months. See [credits](https://docs.perceptlayer.com/credits) for how balances and headers work.
Rate limits are per account: free accounts get 1 request a second. A loop over 50 tickers needs a short pause between calls, and a 429 carries `Retry-After` with the seconds to wait. The [rate limits](https://docs.perceptlayer.com/rate-limits) and [errors](https://docs.perceptlayer.com/errors) pages cover both.
## What should you check before relying on this data?
Data is collected from publicly available sources and returned as found at the time of the call. We don't promise freshness, completeness or accuracy beyond that. A quote can be delayed, and the `market.trading` field in the recorded response shows the session can be extended hours rather than the regular one.
In practice that means: store the time you made each call, keep the raw strings alongside any numbers you parse, and don't use it to trigger trades. If you want an agent to look up a ticker on demand, the same endpoints work through MCP; the [AI agents docs](https://docs.perceptlayer.com/ai-agents) show how to add the server. For a similar guide to another Google source, see the [Google Search API](https://perceptlayer.com/blog/google-search-api-json) article, or browse the [API guides](https://perceptlayer.com/blog/category/api-guides).
Next step: [get a free API key](https://perceptlayer.com/signup), open the playground on the [Google Finance API page](https://perceptlayer.com/apis/google-finance) and run `quote` for your own ticker.
## APIs in this post
- [Google Finance **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/google-finance)
## Frequently asked questions
### Does Google have an official Finance API?
Not one we can point you to. Google's Finance product is a [website](https://www.google.com/finance/), and Google Sheets has a `GOOGLEFINANCE` function documented in [Google's help center](https://support.google.com/docs/answer/3093281); neither page describes an HTTP API. For JSON over HTTP you need another source, such as the Google Finance endpoints on Perceptlayer.
### How much does a Google Finance API call cost?
One credit per successful call on all six endpoints, and nothing for failed calls. Free accounts get 100 credits once, after email verification. A daily `quote` for 20 tickers over 21 trading days is 20 × 21 × 1 credit = 420 credits, so the free credits cover the first 5 days and the rest needs a pack. The [pricing page](https://perceptlayer.com/pricing) shows what credits cost.
### Is the data real time?
No. It is returned as found at the time of the call, and the recorded quote shows an `Extended Hours` session. That suits dashboards, research and enrichment. It doesn't suit trading decisions, where you need a licensed real-time feed with its own latency guarantees.
### How do I find the right symbol and exchange?
Call `search` with `q` set to a company name or ticker (up to 255 characters), then use what you find as `symbol` and `exchange` on `quote`, `historical` or `intraday`. We have no recorded `search` response, so confirm in the playground which fields hold the symbol and exchange. Passing `exchange` is worth it when a ticker may be listed on more than one venue.
### What happens when a call fails?
You get an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`. Codes include `invalid_parameters` (422) for a bad `interval`, and `rate_limited` (429) with a `Retry-After` header. A failed call isn't billed. The [errors page](https://docs.perceptlayer.com/errors) lists every code.
google finance stock quotes finance data historical prices market data
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 29 Oct 2026 Perceptlayer 9 min read
## [Stock Price API: Quotes and History as JSON](https://perceptlayer.com/blog/stock-price-api-google-finance)
Get a stock price as JSON with GET /v1/google-finance/quote: current\_price, price\_change, key stats and a Python watchlist loop at 1 credit per symbol.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 18 Nov 2026 Perceptlayer 7 min read
## [Discogs API: Releases and Marketplace Data as JSON](https://perceptlayer.com/blog/discogs-api-json)
Search Discogs releases, look one up and read marketplace listings as JSON: a recorded vinyl search with master\_id and have/want counts, 1 to 2 credits a call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 18 Nov 2026 Perceptlayer 7 min read
## [Google Books Data as JSON: Search, ISBN and Volumes](https://perceptlayer.com/blog/google-books-api-json)
Search Google Books by author and title, look up a book by ISBN or volume id, and get isbn\_13, page\_count and categories as JSON at 1 credit a call.
---
title: "Real Estate Listing Data: Fields That Matter for Valuation"
description: "Which fields in a Zillow search response feed a valuation model (price, livingArea, yearBuilt), which are noisy, and what listing data can't tell you."
url: https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Real Estate Listing Data: Fields That Matter for Valuation
10 Jul 2026 Perceptlayer 10 min read
A valuation model needs a small core from each listing: price, living area, bedrooms, bathrooms, year built, lot size, property type, status and a location. The Zillow API's search endpoint returns all of those as named JSON fields for 1 credit per call. What the sample doesn't show matters just as much. This post maps the fields to model inputs and flags what to distrust.
## Key takeaways
- The recorded `/v1/zillow/search` response carries `price.value`, `price.pricePerSquareFoot`, `livingArea`, `bedrooms`, `bathrooms`, `yearBuilt`, `lotSizeWithUnit`, `propertyType`, `listing.listingStatus`, `listing.marketingStatus` and `location` for each listing.
- A list price is an asking price, not a sale price. Treat it as a noisy label for what homes sell for. The search endpoint accepts `home_statuses[]=recentlySold`, but we haven't recorded a sold response, so check what it returns before you rely on it.
- The recorded response includes `taxAssessment.taxAssessedValue` (949000, `taxAssessmentYear` "2025") on the second listing, but no annual property tax, HOA fees, sale history, condition or renovation data.
- Drop free-text and marketing fields such as `title` and `mapDotTag`, and keep `estimates.zestimate` out of your features: it is Zillow's own valuation, so a model that learns from it is circular.
- Each search call costs 1 credit, but one query returns at most 1,000 rows ( `page * page_size` must not exceed 1000), so the recorded area's 2,058 matches need at least 103 calls at `page_size` 20.
## Which listing fields does a valuation model actually need?
A hedonic valuation model, which [breaks a home into its characteristics and estimates the value each contributes](https://en.wikipedia.org/wiki/Hedonic_regression), needs size, rooms, age, lot, type and location, plus a price target. All of them appear in a single search listing. The rest of the response (photo links, virtual tour flags, rental flags) describes how a listing is marketed, not what the home is worth.
Here is how the recorded fields map to model inputs:
| Model input | Field in the search response | Notes |
| --- | --- | --- |
| Target price | `price.value` | List price, in `currency`: `usd` |
| Price per area | `price.pricePerSquareFoot` | Supplied in the response; recompute it from `price.value` and `livingArea` to check it |
| Size | `livingArea` | Unit isn't documented; 7870 with a `pricePerSquareFoot` of 1779, and 2100 with 500, are both consistent with square feet |
| Bedrooms | `bedrooms` | Integer |
| Bathrooms | `bathrooms` | Integer in the sample |
| Age | `yearBuilt` | Convert to age at the call date |
| Lot | `lotSizeWithUnit.lotSize` and `lotSizeUnit` | The unit changes between listings: `acres` on the first, `squareFeet` on the second. Convert in code |
| Property type | `propertyType` | `singleFamily` in the sample |
| Location | `location.latitude`, `location.longitude`, `address.zipcode` | Coordinates for distance features, zip for grouping |
| Listing status | `listing.listingStatus` | `forSale` on both sample listings |
| Marketing status | `listing.marketingStatus` | `active` on the first listing, `comingSoon` on the second. A coming-soon price is a different label from an active asking price, so use this as a status feature or filter on it |
| Assessed value | `taxAssessment.taxAssessedValue` and `taxAssessmentYear` | 949000 and `"2025"` on the second listing only. An assessed value, not the annual tax bill; keep the year with it |
| Zillow's estimate | `estimates.zestimate` | 13068300 on the first listing only. Don't train on it: see below |
The [Zillow API](https://perceptlayer.com/apis/zillow) has ten endpoints. The search endpoint is the one that returns this table in bulk; the [Property endpoint](https://perceptlayer.com/apis/zillow/property) takes `zpid[]` for individual homes.
## What does the recorded response look like?
The recorded response from `/v1/zillow/search` nests everything under `data.listings`. Each listing has a `zpid` identifier, a `location` object, an `address` object and flat fields for size and type. Here is the request we recorded, centred on Seattle:
```bash
curl "https://api.perceptlayer.com/v1/zillow/search?latitude=47.6062&longitude=-122.3321&radius_mi=5&listing_category=category1&page_size=20" \
-H "X-API-Key: $API_KEY"
```
An excerpt of the first listing it returned:
```json
{
"data": {
"listings": [
{
"zpid": 2068074790,
"location": { "latitude": 47.592564, "longitude": -122.386925 },
"address": {
"streetAddress": "1124 Sunset Avenue SW",
"zipcode": "98116",
"city": "Seattle",
"state": "WA"
},
…
"bathrooms": 6,
"bedrooms": 4,
"livingArea": 7870,
"yearBuilt": 2015,
"lotSizeWithUnit": { "lotSize": 0.2652, "lotSizeUnit": "acres" },
"propertyType": "singleFamily",
"listing": {
"listingStatus": "forSale",
"marketingStatus": "active",
…
},
"price": {
"value": 14000000,
"pricePerSquareFoot": 1779
},
"estimates": {
"zestimate": 13068300
},
…
```
And an excerpt of the second listing, which reports its lot in a different unit and carries a tax assessment instead of an estimate:
```json
{
"zpid": 49046647,
…
"bathrooms": 2,
"bedrooms": 4,
"livingArea": 2100,
"yearBuilt": 1974,
"lotSizeWithUnit": { "lotSize": 3933.468, "lotSizeUnit": "squareFeet" },
"propertyType": "singleFamily",
"listing": {
"listingStatus": "forSale",
"marketingStatus": "comingSoon",
…
},
"price": {
"value": 1050000,
"pricePerSquareFoot": 500
},
"taxAssessment": {
"taxAssessedValue": 949000,
"taxAssessmentYear": "2025"
},
…
```
The paging fields sit at the end of the `data` object:
```json
"count": 20,
"total_matching_count": 2058,
"page": 1,
"page_size": 20,
…
"paging_note": "page * page_size must not exceed 1000; up to 1000 rows come back in one request."
```
Keys are camelCase and the units are implicit, so write a small normalisation layer before anything reaches your model. For authentication and requests, see the docs on [authentication](https://docs.perceptlayer.com/authentication) and [requests](https://docs.perceptlayer.com/requests).
## Which fields are noisy or missing in this sample?
Several fields need cleaning, and several valuation inputs aren't in the sample at all. The two recorded listings already disagree with each other: one reports its lot in acres and the other in square feet, one carries a Zillow estimate and the other a tax assessment, and one is `active` while the other is `comingSoon`. Two listings are an anecdote, not a benchmark, so check your own pulls.
### Noisy fields
- **`price.value`** is what the seller asks. It is the right target for "what is on the market" and the wrong one for "what did homes sell for". For a `comingSoon` listing it is an even earlier signal, so keep `listing.marketingStatus` next to it.
- **`price.pricePerSquareFoot`** is supplied, but how it's computed isn't documented. In the sample, 14,000,000 divided by 7,870 is about 1,779 and 1,050,000 divided by 2,100 is exactly 500, both matching the supplied values, so recompute it from `price.value` and `livingArea` if you want a single source of truth.
- **`title`** reads "West Seattle L&I Co 1st Of" and "Scenic Heights Supl Plat" in the sample. Neither is an address or a description. Drop it.
- **`bathrooms`** is a count; whether it includes half baths isn't documented, so don't assume.
- **`lotSizeWithUnit`** comes with a unit, and the unit varies. The first listing has 0.2652 `acres`; the second has 3933.468 `squareFeet`. A model that reads both as the same unit without checking `lotSizeUnit` is wrong by a factor of 43,560.
- **`estimates.zestimate`** is Zillow's own estimate of value (13,068,300 against a list price of 14,000,000 on the first listing). It is useful as a benchmark to compare your model's output against. As a feature it makes the model circular: you would be training a valuation model partly on another valuation model's output, and the error you measure would look smaller than it is.
### Fields the response doesn't show
The recorded response does include `taxAssessment.taxAssessedValue` (949000) and `taxAssessmentYear` ("2025") on the second listing. That is an assessed value, not annual property tax, and the first listing doesn't have the field at all. Neither listing in the recorded response shows annual property tax, HOA fees, sale history, renovation status, basement or garage details, or school quality. We haven't recorded those, so check a full response in the playground on the [Property](https://perceptlayer.com/apis/zillow/property) and [Schools](https://perceptlayer.com/apis/zillow/schools) endpoint pages before you build on them.
## How do you pull a clean training table?
Request listings by area, flatten the nested objects, normalise the lot size and drop anything you can't use. The code below calls the search endpoint with the same parameters as the recorded example, keeps the fields from the mapping table and prints the first two rows. It uses `.get` throughout, because a field missing on one listing shouldn't stop the batch. The Zestimate is stored for benchmarking only; leave it out of your feature list.
```python
import os
from datetime import date
import requests
SQFT_PER_UNIT = {"acres": 43560, "squareFeet": 1}
resp = requests.get(
"https://api.perceptlayer.com/v1/zillow/search",
headers={"X-API-Key": os.environ["API_KEY"]},
params={
"latitude": 47.6062,
"longitude": -122.3321,
"radius_mi": 5,
"listing_category": "category1",
"page_size": 20,
},
timeout=30,
)
resp.raise_for_status()
data = resp.json()["data"]
rows = []
for item in data["listings"]:
price = (item.get("price") or {}).get("value")
living_area = item.get("livingArea")
if not price or not living_area:
continue # no target or no size: unusable for training
lot = item.get("lotSizeWithUnit") or {}
loc = item.get("location") or {}
listing = item.get("listing") or {}
tax = item.get("taxAssessment") or {}
unit_factor = SQFT_PER_UNIT.get(lot.get("lotSizeUnit"))
lot_size = lot.get("lotSize")
year_built = item.get("yearBuilt")
rows.append({
"zpid": item.get("zpid"),
"price": price,
"living_area": living_area,
"price_per_area": round(price / living_area),
"beds": item.get("bedrooms"),
"baths": item.get("bathrooms"),
"age": date.today().year - year_built if year_built else None,
# unknown unit -> None, never a silent guess
"lot_sqft": round(lot_size * unit_factor) if lot_size and unit_factor else None,
"type": item.get("propertyType"),
"lat": loc.get("latitude"),
"lon": loc.get("longitude"),
"zipcode": (item.get("address") or {}).get("zipcode"),
"status": listing.get("listingStatus"),
"marketing_status": listing.get("marketingStatus"),
"tax_assessed_value": tax.get("taxAssessedValue"),
"tax_year": tax.get("taxAssessmentYear"),
"zestimate": (item.get("estimates") or {}).get("zestimate"), # benchmark only
})
print(len(rows), "usable of", len(data["listings"]), "listings;",
data["total_matching_count"], "match the query")
for row in rows[:2]:
print(row)
```
Run against the recorded request, the first two rows are the two listings above, with `lot_sqft` about 11,552 for the first and 3,933 for the second, both in square feet. To narrow the pull, the search endpoint accepts `min_price`, `max_price`, `min_beds`, `max_beds`, `living_area_min`, `lot_size_min` and `year_built_min`, and `home_statuses[]` to select for example `recentlySold`. Parameters you can page with are `page` and `page_size`, and `page * page_size` must not exceed 1000. Errors come back with an HTTP status and a code; see the [error reference](https://docs.perceptlayer.com/errors).
## How do you turn one listing into model features?
Take the second recorded listing, a typical house rather than the $14,000,000 outlier, and compute the derived features the table calls for, using a call date in 2026:
- **Age:** 2026 − `yearBuilt` 1974 = 52 years.
- **Lot in square feet:** `lotSize` 3933.468 with `lotSizeUnit` `squareFeet` needs no conversion, so it stays about 3,933 square feet (roughly 0.09 acres). The first listing's 0.2652 acres would need × 43,560 = about 11,552 square feet.
- **Own price per area:** `price.value` 1,050,000 ÷ `livingArea` 2,100 = 500.
- **Price against assessment:** `price.value` 1,050,000 ÷ `taxAssessedValue` 949,000 = about 1.11, an assessment from 2025 compared with a 2026 asking price.
- **Status:** `marketingStatus` `comingSoon`, so a flag separates it from `active` listings.
The own price per area matches the supplied `pricePerSquareFoot` of 500. Computing it yourself means every row uses one formula, even when a field is missing or differs on other listings. For this row, the model sees a home 52 years old, on about 3,933 square feet, listed at 500 per unit of living area, before it hits the market as an active listing.
## What does a pull cost?
Every call to the search endpoint costs 1 credit, and a failed call costs nothing. So the cost of a dataset is the number of calls, not the number of listings. The recorded request shows how fast that adds up: `total_matching_count` is 2,058, and `paging_note` says `page * page_size` must not exceed 1000, so one query returns at most 1,000 rows. Here are two worked examples:
- One area like the recorded one: 2,058 matches ÷ `page_size` 20 = 103 pages, so at least 103 calls × 1 credit = 103 credits. You can't page past 1,000 rows in a single query, so split the area into slices that each match 1,000 or fewer (a smaller `radius_mi`, a bounding box, or bands of `min_price` and `max_price`). Uneven slices cost more calls than the minimum.
- A neighbourhood-level refresh of 2,000 search calls × 1 credit = 2,000 credits. The 100 free credits on signup cover the first 100 calls, and the other 1,900 come from a pack.
The smallest pack is Starter, with 10,000 credits. You buy the whole pack, so the remaining 1,900 calls draw on it and the other 8,100 credits stay for later pulls. A monthly refresh of 10,000 calls × 1 credit = 10,000 credits fits one Starter pack.
Credits are prepaid and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost and the [credits docs](https://docs.perceptlayer.com/credits). See [rate limits](https://docs.perceptlayer.com/rate-limits) before you pull many areas in parallel.
## When is listing data not enough for valuation?
Listing data describes asking prices, so it is weakest for homes that aren't on the market and for homes whose condition drives the price. Test any model built on it against sold prices in your own market before you trust it.
What that means for your own model:
- **Asking prices aren't sale prices.** A model trained on asking prices learns what sellers hoped for. Add `recentlySold` listings through `home_statuses[]` and a status feature ( `listing.marketingStatus` is one), and inspect what a sold record contains first.
- **Zillow's estimate isn't independent.** `estimates.zestimate` is another valuation. Use it to sanity-check your output, not as an input.
- **Condition is a gap.** Two identical-looking homes can differ by a full renovation. The [Photos endpoint](https://perceptlayer.com/apis/zillow/photos) takes `zpid[]`, so you can pull images for a computer-vision step. The trade-off is a separate modelling project on top of the tabular one.
- **Outliers distort a small pull.** The sample's first listing is a $14,000,000, 7,870-square-foot home with six bathrooms, a poor comparable for a typical house. Narrow the pull with `min_price`, `max_price` and `min_beds`, at the cost of fewer rows per call.
- **Lending is a different bar.** [12 CFR 323.3](https://www.law.cornell.edu/cfr/text/12/323.3) requires an appraisal by a state certified or licensed appraiser for real estate-related financial transactions at institutions the FDIC regulates, with listed exemptions, so a model output doesn't replace one.
If you need area-level context rather than home-level inputs, the [Market Data endpoint](https://perceptlayer.com/apis/zillow/market-data) takes a required `family` and `geography` (one of City, County, Metro, National, Neighborhood, State, Zip). The Zillow API also has a `/v1/zillow/zestimate-accuracy` endpoint, which takes optional `state` and `metro` parameters. For a full walk-through of the search call, see [Zillow Listings API: Get Property Data as JSON](https://perceptlayer.com/blog/zillow-listings-api-json). More real estate endpoints are listed in [real estate APIs](https://perceptlayer.com/verticals/real-estate).
Next step: [get a free API key](https://perceptlayer.com/signup), open the [Zillow API](https://perceptlayer.com/apis/zillow) page and run the search call in the playground against your own market before you design features.
## APIs in this post
- [Zillow **1 credit per call** · 20 endpoints](https://perceptlayer.com/apis/zillow)
## Frequently asked questions
### Which Zillow field should be the target for a valuation model?
Use `price.value` as the target only if you accept that it's an asking price. For a model of sale values, pull listings with `home_statuses[]=recentlySold` and inspect what the response returns for them. Don't mix active and sold prices in one training set without a status feature, and don't use `estimates.zestimate` as an input.
### Can I get listing data for a whole city in one call?
No. The recorded request reports a `total_matching_count` of 2,058, but `paging_note` says `page * page_size` must not exceed 1000, so one query returns at most 1,000 rows. Split the area with a smaller `radius_mi`, a bounding box or price bands, then page each slice. At `page_size` 20, 2,058 matches need at least 103 calls, which is 103 credits.
### How much does a valuation dataset cost to collect?
Each successful call costs 1 credit, and failed calls cost nothing. 2,000 calls use 2,000 credits. The free tier gives 100 credits once, after you verify an email address, with no credit card, so the other 1,900 come from a pack. The smallest, Starter, has 10,000 credits; see [pricing](https://perceptlayer.com/pricing) for what credits cost.
### Is the data complete and current?
The data is collected from publicly available sources and returned as found at the time of the call. We don't promise completeness or freshness. Fields can be absent on some listings, as `taxAssessment` and `estimates` are in the sample, so write code that tolerates missing values and record the date of each pull alongside the data.
### What happens if I run out of credits mid-pull?
The service is prepaid, with no automatic top-up. When the balance runs out, calls return `insufficient_credits` (402) and nothing more is debited. Check the `X-Credits-Remaining` header on each response, and stop the loop on a 402 so you can resume after adding credits.
real estate valuation zillow listings property data
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 3 Jul 2026 Updated 10 Nov 2026 Perceptlayer 9 min read
## [Zillow Listings API: Get Property Data as JSON](https://perceptlayer.com/blog/zillow-listings-api-json)
One GET to /v1/zillow/search returns listings near a point as JSON with price, beds, baths and address. Parameters, a real response, 1 credit per call.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Sept 2026 Perceptlayer 6 min read
## [Realestate.com.au API: Australian Listings as JSON](https://perceptlayer.com/blog/realestate-com-au-api-listings)
Search realestate.com.au by location and channel (buy, rent, sold), then open each listing by URL. Parameters, a recorded Sydney response and the cost.
---
title: "Google Maps Reviews API: Parameters, Requests and Cost"
description: "Call GET /v1/google-maps/reviews with a business_id from Simple Search. Every parameter, the sort values 1 to 4, and the cost: 1 credit per call."
url: https://perceptlayer.com/blog/google-maps-reviews-api-parameters
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Google Maps Reviews API: Parameters, Requests and Cost
7 Jul 2026 Updated 7 Nov 2026 Perceptlayer 8 min read
To get Google Maps reviews as JSON, call `GET /v1/google-maps/reviews` with a `business_id`. You get that ID from the `business_id` field of a Simple Search result, so the whole path is two requests.
This guide walks both steps with real requests, then covers the parameters on the Reviews and Review endpoints and what the calls cost. It also shows a trimmed excerpt of a recorded Reviews response, so you can see the fields you'll parse, including the `review_id` the single-review endpoint needs.
## Key takeaways
- `business_id` is the only required parameter on `/v1/google-maps/reviews`. Simple Search items carry it, for example `0x89c259bf22ca32bd:0x35d818a560181b20`.
- Reviews accepts `page`, `pages`, `search`, `sort`, `limit`, `hl` and `gl`. `sort` takes one of 1, 2, 3 or 4, and `search` is capped at 100 characters.
- `/v1/google-maps/review` fetches a single review and needs both `review_id` and `business_id`.
- Each call costs 1 credit, so the 100 free credits on signup cover 100 calls.
## Where does the business\_id come from?
Reviews are looked up by a place's `business_id`, not by its name. Search for the place with Simple Search and read `business_id` from each item in the response. Simple Search needs only `query`, so a search like "restaurants in new york" is enough to get IDs for the places it finds.
Here is the request:
```bash
curl "https://api.perceptlayer.com/v1/google-maps/simple-search?query=restaurants+in+new+york" \
-H "X-API-Key: $API_KEY"
```
The response is a JSON object with an `items` array. This is an excerpt of a recorded response, trimmed with `…`:
```json
{
"items": [
{
"name": "Lulla NYC",
"review_count": 1571,
"rating": 4.8,
"business_id": "0x89c259bf22ca32bd:0x35d818a560181b20",
"subtypes": [
"Italian restaurant",
"Restaurant"
],
"full_address": "113 W 24th St, New York, NY 10011, United States",
"place_id": "ChIJvTLKIr9ZwokRIBsYYKUY2DU=",
…
}
]
}
```
Each item also carries `rating` and `review_count`, so you can rank places before you spend a call on their reviews. Use `business_id`, the value with the `0x…:0x…` shape, for the next step. `place_id` is a different identifier.
Sign-in details are in the [authentication docs](https://docs.perceptlayer.com/authentication). If you don't have a key yet, [get a free API key](https://perceptlayer.com/signup).
## How do you request reviews for a place?
Pass the `business_id` you got from Simple Search to the Reviews endpoint. It's a `GET` request to `/v1/google-maps/reviews`, and the key goes in the `X-API-Key` header like every other call. The only required parameter is `business_id`, so the shortest working request is one query string value and one header.
```bash
curl "https://api.perceptlayer.com/v1/google-maps/reviews?business_id=0x89c259bf22ca32bd:0x35d818a560181b20" \
-H "X-API-Key: $API_KEY"
```
Here's the same two-step flow in Python. It picks Lulla NYC out of the Simple Search items by its `business_id`, rather than taking the first item, which in the recorded response is a different place. It then loops over the Reviews `items` and prints `rating`, `review_id` and `timestamp`, three fields from the recorded response:
```python
import os
import requests
BASE = "https://api.perceptlayer.com/v1/google-maps"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
search = requests.get(
f"{BASE}/simple-search",
params={"query": "restaurants in new york"},
headers=HEADERS,
timeout=30,
)
search.raise_for_status()
TARGET_ID = "0x89c259bf22ca32bd:0x35d818a560181b20"
place = next(
(i for i in search.json()["items"] if i["business_id"] == TARGET_ID),
None,
)
if place is None:
raise SystemExit(f"{TARGET_ID} not in the Simple Search items; use another business_id")
print(place["name"], place["rating"], place["review_count"])
reviews = requests.get(
f"{BASE}/reviews",
params={"business_id": place["business_id"]},
headers=HEADERS,
timeout=30,
)
reviews.raise_for_status()
for review in reviews.json()["items"]:
print(review["rating"], review["review_id"], review["timestamp"])
```
Two calls, two credits.
## What does the Reviews response look like?
The response is a JSON object with an `items` array, one object per review. This excerpt is from a recorded response for a different `business_id` than the one above ( `0x60188b88b7d8f7ab:0x2133080e9923eaac`). It's trimmed with `…`, and the reviewer's name and profile links are left out:
```json
{
"items": [
{
"review_source": "Google",
"review_id": "Ci9DQUlRQUNvZENodHljRjlvT25kVUxXTmpaamhNWjFac016WTVSMjlqUVRCb1VYYxAB",
"rating": 5,
"timestamp": 1779471094452,
…
"author_review_count": 262,
"author_photo_count": 660,
"review_text": [
"A must do! Easy access via …"
],
"review_language": [
"en"
],
"review_link": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sCi9DQUlRQUNvZENodHljRjlvT25kVUxXTmpaamhNWjFac016WTVSMjlqUVRCb1VYYxAB",
"images": [
…
],
"is_google_review": true
},
…
]
}
```
Each item has a `rating`, a `timestamp` and a `review_id`, plus `review_text` and `review_language`, which are both arrays. Items also carry author fields (name, profile link, review and photo counts) and an `images` array. Treat the author fields as personal data.
## Which parameters does the Reviews endpoint take?
`GET /v1/google-maps/reviews` takes one required parameter, `business_id`, and seven optional ones: `page`, `pages`, `search`, `sort`, `limit`, `hl` and `gl`. The `sort` value must be 1, 2, 3 or 4, and `search` is capped at 100 characters. The table below lists each parameter with its type and any limits from the catalogue.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `business_id` | string | yes | From Simple Search, e.g. `0x89c259bf22ca32bd:0x35d818a560181b20` |
| `page` | string | no | Up to 512 characters |
| `pages` | integer | no | |
| `search` | string | no | Up to 100 characters |
| `sort` | integer | no | One of 1, 2, 3, 4 |
| `limit` | integer | no | |
| `hl` | string | no | |
| `gl` | string | no | |
The catalogue records types and limits only. It doesn't say what 1 to 4 mean for `sort`, what `page` or `pages` select, what `hl` and `gl` accept, give defaults, or state how many reviews a call returns, so we won't guess at any of that. Run a call in the playground on the [Google Maps API page](https://perceptlayer.com/apis/google-maps) to see the effect of each value on your own place before you rely on it.
Combining parameters is a matter of adding query string values. The request below is a syntax example only. We have no recorded response for it, and the values are placeholders that show how the parameters fit together, not a claim about what they return:
```bash
curl -G "https://api.perceptlayer.com/v1/google-maps/reviews" \
--data-urlencode "business_id=0x89c259bf22ca32bd:0x35d818a560181b20" \
--data-urlencode "search=pasta" \
--data-urlencode "sort=2" \
--data-urlencode "limit=20" \
--data-urlencode "hl=en" \
-H "X-API-Key: $API_KEY"
```
It passes `search=pasta`, `sort=2`, `limit=20` and `hl=en` along with the place's `business_id`, all within the documented types and limits. What `sort=2` orders by and how many reviews `limit=20` yields are not documented, so check both on your own place.
To find out what each `sort` value does, call Reviews four times with the same `business_id` and `sort` set to 1, 2, 3 and 4. Compare the order of `rating` and `timestamp` across the `items`. For `page` and `limit`, repeat the call with and without them and count the `items` each time. Each test call is 1 credit.
## How do you fetch a single review?
Use `GET /v1/google-maps/review` when you already know the review you want. It needs two parameters, `review_id` (up to 100 characters) and `business_id`, and nothing else.
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `review_id` | string | yes | Up to 100 characters |
| `business_id` | string | yes | From Simple Search |
```bash
curl "https://api.perceptlayer.com/v1/google-maps/review?review_id=$REVIEW_ID&business_id=0x89c259bf22ca32bd:0x35d818a560181b20" \
-H "X-API-Key: $API_KEY"
```
The review ID comes from the Reviews response: each object in `items` carries a `review_id`, as in the excerpt above. So the chain is Reviews, then Review. Call Reviews with a `business_id`, read `items[].review_id`, and pass that value with the same `business_id` to Review. The [Review endpoint page](https://perceptlayer.com/apis/google-maps/review) has the parameters and a playground link. Two related endpoints cover other angles on the same data. [Contributor Reviews](https://perceptlayer.com/apis/google-maps/contributor-reviews) takes a `contributor_id` and looks at reviews from the reviewer's side, and [Business Details](https://perceptlayer.com/apis/google-maps/business-details) takes a `business_id` for the place's own record.
## What does a Google Maps reviews call cost?
Each call to Reviews or Review costs 1 credit when it succeeds, as shown on the endpoint. A failed call costs nothing and returns `X-Credits-Used: 0`. Credits come from the one-time free grant or a prepaid pack, with no subscription and no seats. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
| Plan | Credits | Reviews calls at 1 credit |
| --- | --- | --- |
| Free | 100, once | 100 |
| Starter | 10,000 | 10,000 |
| Build | 50,000 | 50,000 |
| Growth | 200,000 | 200,000 |
| Pro | 500,000 | 500,000 |
| Scale | 1,000,000 | 1,000,000 |
Larger packs run from 5,000,000 up to 50,000,000 credits. The free tier needs a verified email and no credit card. Purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
Here is the arithmetic for a realistic job. Say you want reviews for 300 places. One Simple Search call finds places, and one Reviews call per place fetches reviews:
- 300 Reviews calls × 1 credit = 300 credits.
- Add N Simple Search calls to find the places, at 1 credit each. N depends on how many places each search returns.
- Total: 300 + N credits. That's more than the 100 free credits on signup, which cover a test on the first few dozen places; the full job needs a pack.
Repeat that four times a month and you'd use at least 4 × 300 = 1,200 credits a month before counting searches. The Starter pack's 10,000 credits covers a month of it with room to spare, and [pricing](https://perceptlayer.com/pricing) shows what a pack costs.
One caveat. These figures assume one page of reviews per place. Reviews costs 1 credit per page it fetches: `pages` sets how many, up to 50, so a call with `pages=3` costs 3 credits. Multiply the estimate by the pages you plan to fetch per place.
## How does this compare with the official Places API?
Google's own Places API fits some jobs better. Its Place resource documents the `reviews` field as a "list of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned" ( [Google Maps Platform, Place resource reference](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places), 2026). If five reviews per place is enough, and you want Google's billing and terms directly, use it. The [Place Details documentation](https://developers.google.com/maps/documentation/places/web-service/place-details) lists the `reviews` field among the fields you can request.
Reach for the Reviews endpoint when you want the `search`, `sort`, `limit` and `pages` parameters, or the same key and JSON conventions as the rest of the catalogue. Run a call on one of your own places and compare the `items` you get back with the cap above before you choose.
Data is collected from publicly available sources and returned as found at the time of the call. Reviews are written by individuals, so treat reviewer names and text as personal data in your own storage and follow the rules that apply to you.
## What happens when a request fails?
A failed request comes back with an HTTP status and a JSON body shaped as `{"error": {"code", "message", "request_id"}}`. The `code` tells you whether to fix the request or retry it. Failed calls cost nothing. The codes you're most likely to meet here:
| Code | Status | What to do |
| --- | --- | --- |
| `invalid_api_key` | 401 | Check the `X-API-Key` header |
| `insufficient_credits` | 402 | Buy a credit pack |
| `not_found` | 404 | Check the `business_id` came from Simple Search |
| `invalid_parameters` | 422 | Check types and limits, e.g. `sort` is 1 to 4 |
| `rate_limited` | 429 | Back off and retry; see [rate limits](https://docs.perceptlayer.com/rate-limits) |
| `source_error` | 502 | Retry the call |
| `temporarily_unavailable` | 503 | Retry the call |
The full list is in the [errors docs](https://docs.perceptlayer.com/errors). Log the `request_id` with every failure so you can trace it later.
Next step: get a free key, run the Simple Search call above, and paste the `business_id` into the Reviews call in the playground. Related guides: [Zillow listings as JSON](https://perceptlayer.com/blog/zillow-listings-api-json) is another walk-through in the same format, and the [API guides category](https://perceptlayer.com/blog/category/api-guides) has the rest.
## APIs in this post
- [Google Maps **1 credit per call** · 12 endpoints](https://perceptlayer.com/apis/google-maps)
## Frequently asked questions
### Do I need a Google account or Google Cloud project?
No Google credentials appear in the request. You send an `X-API-Key` header with a Perceptlayer key, which starts with `sk_live_`. Verify an email address and you get 100 free credits on signup, with no credit card.
### How much does it cost to pull reviews for 1,000 places?
One Reviews call per place is 1,000 calls at 1 credit each, so 1,000 credits. That's ten times the 100 free credits on signup, so it needs a pack: the Starter pack's 10,000 credits cover it ten times over; [pricing](https://perceptlayer.com/pricing) has what credits cost.
### Can I filter reviews by keyword or sort them?
Yes. Reviews takes `search` (a string of up to 100 characters) and `sort` (an integer, one of 1, 2, 3, 4).
### How do I get more than one page of reviews?
Reviews has `page` (a string, up to 512 characters), `pages` (an integer, up to 50) and `limit` (an integer). Each page fetched costs 1 credit, so `pages=5` costs 5 credits. Try them on one place in the playground before you build a loop.
### Does a failed request use credits?
No. A failed call returns an error body with a `code`, `message` and `request_id`. A 429 or 503 response you receive wasn't charged, and it carries a `Retry-After` header with the seconds to wait. One exception: requests have no idempotency key, so if a reply is lost (a client timeout), the call may have succeeded and been billed. Check `X-Credits-Remaining` before you retry those.
google maps reviews local business api
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 8 min read
## [Yelp Scraper or API: Reviews Without the Upkeep](https://perceptlayer.com/blog/yelp-scraper-vs-api)
A Yelp scraper vs three 1-credit endpoints: a recorded Gary Danko search whose alias feeds the reviews call, with rating, text, created\_at and next\_after.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [Google Maps Scraper or Places Data API: What You Get](https://perceptlayer.com/blog/google-maps-scraper-vs-api)
Compare building a Google Maps scraper with the official Places API and place endpoints at 1 credit a call: fields, upkeep, terms and a verdict per use case.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 3 Sept 2026 Updated 31 Oct 2026 Perceptlayer 7 min read
## [Google Maps Directions API Alternative: Routes as JSON](https://perceptlayer.com/blog/google-maps-directions-api-alternative)
One GET to /v1/google-maps/directions returns a route as JSON for 1 credit. Parameters, a 15,000-route cost example and Google's per-request rates.
---
title: "HotPads API: US Rental Listings as JSON | Perceptlayer"
description: "GET /v1/hotpads/search returns US rentals with rent ranges, beds, baths, sqft and coordinates, 40 a page at 1 credit per call. Parameters and a real response."
url: https://perceptlayer.com/blog/hotpads-api-rental-listings
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# HotPads API: US Rental Listings as JSON
7 Jul 2026 Perceptlayer 7 min read
HotPads publishes feed programs for landlords sending listings in, not an API for reading them out. The Perceptlayer HotPads API covers the reading side with two GET endpoints. `GET /v1/hotpads/search?area=albuquerque-nm&type=apartments` returns rentals with rent, bed, bath and square-foot ranges, an address and coordinates, 40 to a page, at 1 credit per successful call. `GET /v1/hotpads/listing` returns one listing by `id`.
## Key takeaways
- HotPads, part of Zillow Group since 2012, takes listings through partner feeds for property managers; it offers no public endpoint for reading listings.
- `GET /v1/hotpads/search` needs only `area`, a slug such as `albuquerque-nm`, and filters by `type`, `beds`, `min_price` and `max_price`.
- Building listings carry ranges, not single values: the first recorded result rents for `price.min` 1,732 to `price.max` 2,529 USD, from studios to two beds.
- The recorded Albuquerque search reports 3,541 results but 10 pages of 40, so one search reaches about 400 rows; slice by price or beds to cover a metro.
- At 1 credit per call, a 9-slice sweep of Albuquerque apartments costs 90 credits; the 100 free credits on signup cover the first one, and weekly, at 390 credits a month, needs a pack.
## Is there an official HotPads API?
Not for reading listings. Zillow Group, which agreed to buy HotPads in 2012 ( [Zillow Group](https://zillowgroup.com/news/zillow-to-acquire-hotpads-to-grow-rental-marketplace-for-consumers-and-pros-2), 2012), runs a rentals feed program in which property managers and property management systems syndicate listings after approval by its Rentals Integrations team ( [Zillow Group Rentals Feed Integrations](https://www.zillowgroup.com/developers/api/rentals/rentals-feed-integrations/), 2026). HotPads' own help centre points landlords to the same XML feed. Both are for publishing your inventory.
If you manage rental properties and want them on HotPads, apply for the feed program: it's free and it's the supported route. If you need to read US rental listings as JSON for market analysis, a search product or an agent, that's what the [HotPads API](https://perceptlayer.com/apis/hotpads) does. It sits in the [real estate APIs](https://perceptlayer.com/verticals/real-estate) with the same key and conventions as the rest of the catalogue. Check HotPads' terms against your use. Data is collected from publicly available sources and returned as found at the time of the call.
## Which parameters does the search endpoint take?
`GET /v1/hotpads/search` takes one required parameter, `area`, and five optional ones. The recorded request passes `area` as a city-and-state slug, `albuquerque-nm`, the same form HotPads uses in its own URLs. Types and allowed values below come from the endpoint definition; defaults aren't documented, so don't rely on any.
| Parameter | Type | Allowed values or notes |
| --- | --- | --- |
| `area` | string, required | Up to 100 characters, for example `albuquerque-nm` |
| `type` | string | `apartments`, `houses`, `condos`, `townhomes` |
| `beds` | integer | Bedroom count |
| `min_price` | integer | Lowest monthly rent |
| `max_price` | integer | Highest monthly rent |
| `page` | integer | Page number |
The listing endpoint, [`/v1/hotpads/listing`](https://perceptlayer.com/apis/hotpads/listing), takes a single `id` of up to 200 characters. Both endpoints cost 1 credit on success.
## How do you search HotPads rentals?
Send a GET request with `area` and, optionally, `type`. The call below is the exact request behind the recorded response in the next section. Put your key in the `X-API-Key` header; keys start with `sk_live_`, and the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest. A first call is two lines of cURL.
```bash
curl "https://api.perceptlayer.com/v1/hotpads/search?area=albuquerque-nm&type=apartments" \
-H "X-API-Key: $API_KEY"
```
To narrow it, add filters: `area=albuquerque-nm&type=apartments&beds=2&max_price=1800` asks for two-bed apartments at up to 1,800 a month. We haven't run that filtered request for this article; the [Search endpoint page](https://perceptlayer.com/apis/hotpads/search) has a playground to try it.
### What does a search response look like?
The recorded Albuquerque response holds a `data` object with the `area`, a `results` array and paging fields, plus a `meta` object. Here is an excerpt of the first result, trimmed with `…`:
```json
{
"success": true,
"data": {
"area": {
"title": "Albuquerque, NM Apartments for Rent",
"url": "https://hotpads.com/albuquerque-nm/apartments-for-rent"
},
"results": [
{
"id": "249njun",
"name": "Markana Uptown",
"url": "https://hotpads.com/markana-uptown-albuquerque-nm-87110-249njun/pad",
"listing_id": "2q29a1ud4hqp5",
"property_type": "large",
"listing_type": "rental",
"address": {
"street": "6500 Americas Pkwy NE",
"city": "Albuquerque",
"state": "NM",
"zip": "87110"
},
"location": {
"latitude": 35.101585147458174,
"longitude": -106.57245218753815
},
"price": { "min": 1732, "max": 2529, "currency": "USD" },
"beds": { "min": 0, "max": 2 },
"baths": { "min": 1, "max": 2 },
"sqft": { "min": 589, "max": 1022 },
"unit_count": 12,
"price_drop_count": 2,
"labels": ["New Today", "Special Offer"],
"photos": ["…"],
"listed_at": "2023-10-25T14:34:52Z",
"updated_at": "2026-10-22T00:55:05Z"
},
…
],
"page": 1,
"per_page": 40,
"total_pages": 10,
"total_results": 3541,
"has_more": true
},
"meta": {
"endpoint_family": "search",
"billable": true
}
}
```
Pass the result's `id` ( `249njun` here) to the listing endpoint for one listing's full record. We haven't recorded a listing response, so the [Listing endpoint page](https://perceptlayer.com/apis/hotpads/listing) is where to see its fields.
## Which fields matter for rent analysis?
The fields that carry the market signal are `price`, `beds`, `baths` and `sqft`, each a `min`/ `max` pair, plus `unit_count`, `price_drop_count`, `listed_at` and `updated_at`. Location comes as a street address with `zip` and as coordinates, so you can join to census tracts or ZIP-level data without geocoding.
| Field | What it tells you | Watch out for |
| --- | --- | --- |
| `price.min`, `price.max` | Rent range across available units | A range for a building, not one unit's rent |
| `beds`, `baths`, `sqft` | Unit mix | `beds.min` of 0 means studios |
| `property_type` | `large` in both recorded results | Multi-unit buildings and single homes mix in one search |
| `unit_count` | Units listed in the building | 12 and 6 in the recorded results |
| `price_drop_count` | How often the asking rent fell | 2 and 5 in the recorded results |
| `special_offer`, `labels` | Concessions such as a month off | Free text, as found on the page |
| `listed_at`, `updated_at` | Time on market and freshness | A building can stay listed for years |
The ranges are the trap. The first recorded result spans 1,732 to 2,529 USD across units from studios to two beds. Averaging `price.min` across buildings gives you the cheapest-unit rent, which skews low; the midpoint mixes studios with two-beds. For per-bedroom rents, filter the search with `beds` so each result's range covers one unit size, or fetch listings individually.
Concessions are raw text too. The second recorded result carries `special_offer` with a doubled currency sign, as it appeared on the page, and a `Price Drop` label next to it. Parse offers as strings, keep the original, and don't net them off the rent without reading what they say. For more on which rental fields to keep and why, see [rental listing data for market analysis](https://perceptlayer.com/blog/rental-listing-data-market-analysis).
## How do you cover a whole metro area?
Split it into searches that each fit in about 400 rows. The recorded response reports `total_results` of 3,541 but `total_pages` of 10 at `per_page` 40, so paging stops at roughly 400 results. Narrow each search with `min_price`/ `max_price` bands, `beds` or `type` until `total_results` falls under 400, then page through with `page` until `has_more` is false.
Here's a Python sketch that reads those paging fields. It follows the recorded response shape; we haven't run it against the live API for this article.
```python
import os
import requests
URL = "https://api.perceptlayer.com/v1/hotpads/search"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def sweep(params):
rows, page = [], 1
while True:
r = requests.get(URL, headers=HEADERS, params={**params, "page": page}, timeout=60)
r.raise_for_status()
data = r.json()["data"]
rows.extend(data["results"])
if not data["has_more"]:
break
page += 1
if data["total_results"] > data["per_page"] * data["total_pages"]:
print(f"{params}: {data['total_results']} results, slice further")
return rows
bands = [(0, 1000), (1001, 1300), (1301, 1600), (1601, 2000), (2001, 99999)]
seen = {}
for lo, hi in bands:
for row in sweep({"area": "albuquerque-nm", "type": "apartments", "min_price": lo, "max_price": hi}):
seen[row["id"]] = row
print(len(seen))
```
A building with a rent range can match more than one band, so key results by `id` as the code does. The band edges here are guesses; pick yours from a first pass. For retries and backoff in a loop like this, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python), and for merging HotPads with other rental sources, [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources).
## What does covering a metro cost?
Each HotPads call costs 1 credit on success, and a full search is at most 10 pages, so 10 credits. Failed calls cost nothing and return `X-Credits-Used: 0`; every success returns `X-Credits-Used` and `X-Credits-Remaining`. The [credits docs](https://docs.perceptlayer.com/credits) explain billing.
Worked example: 3,541 apartment results at about 400 per search needs at least 9 slices. 9 slices × 10 pages × 1 credit = 90 credits per snapshot. A weekly snapshot is 90 × 52 ÷ 12 = 390 credits a month. The 100 free credits every verified account gets once cover the first snapshot; a year of weekly snapshots, 4,680 credits, fits in the 10,000-credit Starter pack.
| Job | Calls | Credits |
| --- | --- | --- |
| One full search | 10 | 10 |
| Albuquerque apartments, 9 slices | 90 | 90 |
| Weekly for a year | 4,680 | 4,680 |
| Five metros of that size, weekly for a year | 23,400 | 23,400 |
Five metros weekly for a year, 23,400 credits, fits in a Build pack of 50,000 credits, and purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Free accounts run at 1 request a second, so a 90-call snapshot takes about a minute and a half; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) list the paid rates.
## Can an AI agent use the HotPads API?
Yes. The MCP server at `https://perceptlayer.com/mcp` gives an agent `search_endpoints` and `get_endpoint`, which look up the catalogue for free, and `call_endpoint`, which runs an endpoint and spends credits only on success. An agent can turn "two-bed apartments in Albuquerque under 1,800" into `area`, `type`, `beds` and `max_price`.
Tell the agent that prices are ranges, or it will quote a building's cheapest unit as its rent. Setup is in the [AI agents docs](https://docs.perceptlayer.com/ai-agents); errors come back with an HTTP status and a JSON `code`, listed in the [errors docs](https://docs.perceptlayer.com/errors). For US valuation data alongside rentals, the [Redfin API guide](https://perceptlayer.com/blog/redfin-api-property-valuation) covers search, property and estimates.
To try it, [get a free API key](https://perceptlayer.com/signup) and run a search for your city in the playground on the [HotPads API page](https://perceptlayer.com/apis/hotpads).
## APIs in this post
- [HotPads **1 credit per call** · 2 endpoints](https://perceptlayer.com/apis/hotpads)
## Frequently asked questions
### Does HotPads have a public API?
No public API for reading listings. HotPads and Zillow Group offer feed programs that let approved property managers send listings in. To read HotPads rentals as JSON, the Perceptlayer [HotPads API](https://perceptlayer.com/apis/hotpads) has a search endpoint and a listing endpoint, both 1 credit per successful call, with data collected from publicly available sources.
### How much does the HotPads API cost?
Both HotPads endpoints cost 1 credit per successful call, and failed calls cost nothing. A full 10-page search is 10 credits. Every account gets 100 free credits once, after verifying an email address, and prepaid packs start at 10,000 credits. The [pricing page](https://perceptlayer.com/pricing) shows what credits cost.
### What format does the area parameter take?
The recorded request uses a lowercase city-and-state slug, `albuquerque-nm`, which matches the area path in HotPads' own URLs. The parameter accepts up to 100 characters. The response echoes the matched area's title and URL, so check `data.area.title` to confirm the search hit the place you meant.
### Why are rents returned as ranges?
Many results are buildings with several available units, so `price`, `beds`, `baths` and `sqft` come as `min` and `max`. The first recorded result spans studios to two beds and 1,732 to 2,529 USD. Filter with `beds` to compare like with like, and don't treat `price.min` as a typical rent.
### What happens if a HotPads call fails?
You get an HTTP status and a JSON error with a `code`, `message` and `request_id`, and nothing is debited. A missing `area` returns `invalid_parameters` (422). Rate-limited (429) and temporarily unavailable (503) responses include a `Retry-After` header with the seconds to wait. The [errors docs](https://docs.perceptlayer.com/errors) list every code.
hotpads us rentals apartments rental listings real estate
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 8 Nov 2026 Perceptlayer 9 min read
## [Redfin Scraper or API: What You Get](https://perceptlayer.com/blog/redfin-scraper-vs-api)
A Redfin scraper vs 14 Redfin endpoints at 1 credit each: recorded Seattle locations, search, property and valuation calls, and the cost per home tracked.
---
title: "Search Trend Data for Demand Forecasting: What It Can Show"
description: "Google Trends values are a 0 to 100 relative index, not search volumes. What that means for forecasting, with a real interest response and a rescaling example."
url: https://perceptlayer.com/blog/search-trend-data-demand-forecasting
---
[Blog](https://perceptlayer.com/blog) / [Web data by industry](https://perceptlayer.com/blog/category/web-data)
# Search Trend Data for Demand Forecasting: What It Can Show
7 Jul 2026 Updated 31 Oct 2026 Perceptlayer 7 min read
Search trend data shows when interest in a topic rises and falls, which makes it a useful leading signal for demand forecasting. It does not show how many searches happened. Google Trends returns an index from 0 to 100 that is rescaled for every request, so you can model shape, seasonality and timing, but not units sold or absolute volume.
## Key takeaways
- A Trends value is a share of searches scaled to 0 to 100, not a count. In the recorded response below, the window's maximum is 100.
- Each value is scaled against its own request, so a week can carry a different value when you change the window (the worked example below uses made-up numbers).
- Use trend data as a regressor or a timing signal next to your own sales history, never as the target variable.
- Low-volume terms show as 0, so niche products need broader or related queries.
- The `interest` endpoint costs 1 credit per call, so a weekly refresh of 50 keywords in two windows is 100 credits.
## What does a Google Trends value actually measure?
A Trends value measures relative popularity: the share of searches for a term in a given place and period, scaled to a 0 to 100 range. Google describes the process itself: "Each data point is divided by the total searches of the geography and time range it represents to compare relative popularity" ( [Google Trends Help, FAQ about Google Trends data](https://support.google.com/trends/answer/4365533), accessed October 2026). The result is then scaled "on a range of 0 to 100 based on a topic's proportion to all searches on all topics."
Two consequences follow. First, a value of 40 means "40% of this window's peak share", not 40 searches or 40% of anything absolute. Second, if overall search activity grows, a term's index can stay flat while its raw volume rises, because the denominator moved too.
## What does the API return?
The [Google Trends interest endpoint](https://perceptlayer.com/apis/google-trends/interest) returns a series with a timestamp, a human-readable date range and the index value, plus a summary block with the average, maximum and minimum. This is a real recorded response for `tesla` in the US over one year, trimmed:
```bash
curl "https://api.perceptlayer.com/v1/google-trends/interest?q=tesla&geo=US&time_range=1y" \
-H "X-API-Key: $API_KEY"
```
```json
{
"search_parameters": {
"keyword": "tesla",
"geo": "US",
"time_range": "today+12-m",
…
},
"timeline_data": [
{ "timestamp": 1760832000, "date": "Oct 19 – 25, 2025", "value": 40 },
{ "timestamp": 1761436800, "date": "Oct 26 – Nov 1, 2025", "value": 39 },
…
],
"interest_over_time": {
"average": 49.13,
"max_value": 100,
"min_value": 39,
…
}
}
```
Read it as: in the week of Oct 19 to 25, 2025, interest was 40% of the strongest week in that 12-month window. The `max_value` here is 100, which is the top of the scale. It tells you nothing about how large that peak was in searches.
The request takes `q`, plus optional `geo`, `time_range` (1h to 5y or all), `hl` and `search_type` (web, images, news, youtube or shopping). Authentication is covered in [the docs](https://docs.perceptlayer.com/authentication).
## Why does the window change the numbers?
The window changes the numbers because the peak is recalculated for every request. Google says each data point is divided by the totals for the geography and time range it represents. It doesn't spell out what happens when you change the window, but a different window can contain a different maximum, so the same week can plausibly be 40 in one response and a different number in another, with no change in the underlying searches.
Here is the arithmetic, using made-up numbers to show the mechanism. Suppose a week has a true search share of 0.002% and the peak week in a 1-year window has 0.005%. That week indexes at 0.002 / 0.005 × 100 = 40. Now request 5 years, where an earlier peak had a share of 0.010%. The same week indexes at 0.002 / 0.010 × 100 = 20. Nothing changed except the denominator.
For a forecasting pipeline, this means you should never append values from separate requests to one table as if they shared a scale. Pull one long window and store it whole, or rescale overlapping windows against each other.
## How do you stitch two windows onto one scale?
You stitch windows by finding timestamps present in both responses and computing the ratio between them. If the overlap is a few points with non-zero values, the median ratio is a stable scale factor. This only works when both responses use the same granularity. The recorded 1y response is weekly, but We haven't recorded a 5y response, so the script checks for shared timestamps instead of assuming they line up.
```python
import os
import statistics
import requests
BASE = "https://api.perceptlayer.com/v1/google-trends/interest"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def series(q, geo, time_range):
r = requests.get(
BASE,
params={"q": q, "geo": geo, "time_range": time_range},
headers=HEADERS,
timeout=30,
)
r.raise_for_status()
return {p["timestamp"]: p["value"] for p in r.json()["timeline_data"]}
recent = series("tesla", "US", "1y")
long_run = series("tesla", "US", "5y")
overlap = [t for t in recent if t in long_run and recent[t] > 0 and long_run[t] > 0]
if not overlap:
raise SystemExit("No shared timestamps; the windows use different granularity")
factor = statistics.median(long_run[t] / recent[t] for t in overlap)
print(f"{len(overlap)} shared points, long-window values are x{factor:.2f} of the recent ones")
```
This costs 2 credits (2 calls × 1 credit). Failed calls cost nothing, and the retry rules for lost replies are in [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice).
Rounding is the limit here. Values are integers, so a term that sits at 1 or 2 has too little resolution for a reliable ratio. Prefer overlap points with values above 10.
## What can the index show a forecasting model?
The index can show seasonality, trend breaks and lead time. Those are shape properties, and shape survives rescaling. A product whose search interest climbs six weeks before your sales history does is a candidate for a lagged regressor, and the lag is something you can measure with a cross-correlation against your own data.
What it cannot show is level. You can't turn 40 into units, and you can't compare two terms from separate requests, because each response has its own peak of 100. The catalogue doesn't document requesting several terms in one call, so check in the playground whether `q` accepts more than one before you build comparisons on it. Check the [endpoint page](https://perceptlayer.com/apis/google-trends/interest) and run a call in the playground to see how the response is shaped before you build on it.
Useful companions in the same API:
| Endpoint | What it adds | Credits |
| --- | --- | --- |
| [`/v1/google-trends/interest`](https://perceptlayer.com/apis/google-trends/interest) | Index over time for a term | 1 |
| [`/v1/google-trends/interest-by-region`](https://perceptlayer.com/apis/google-trends/interest-by-region) | Relative interest across regions | 1 |
| [`/v1/google-trends/related`](https://perceptlayer.com/apis/google-trends/related) | Related queries for broadening a thin term | 1 |
| [`/v1/google-trends/trending-now`](https://perceptlayer.com/apis/google-trends/trending-now) | What is surging now in a `geo` | 1 |
## What are the honest limits?
The limits are sampling, privacy thresholds and rounding. Google says that "only a sample of Google searches are used in Google Trends" and argues that this is sufficient at its scale ( [Google Trends Help](https://support.google.com/trends/answer/4365533), accessed October 2026). It also says Trends "only shows data for popular terms, so search terms with low volume appear as '0.'"
In practice that gives you a short list of cautions:
- **Zeros are not zero demand.** A 0 means below Google's threshold for that place and period.
- **Narrow geographies are noisy.** Smaller `geo` areas have fewer searches behind each point.
- **Search is not purchase.** Interest can come from curiosity, news or a product launch with no buying behind it.
- **Terms are ambiguous.** A brand name can pick up searches that have nothing to do with your product.
- **The data is as found.** Perceptlayer returns what the source shows at the time of the call, so store the call date next to every series.
If your category is small, trend data may be too thin to help. In that case your own sales, site search and ad data will do better.
## How do you run this as a forecasting input?
You run it as a scheduled pull that stores raw series with the request parameters and the call date, then builds features from them. Keep the raw response, because the rescaling means you can't reconstruct it later from derived values.
A simple plan: pull each keyword weekly with `time_range=1y`, which the recorded response returns as weekly points, store every pull so your own history grows past one year, and compute features such as a 4-week moving average and, once a year of pulls has built up, a year-over-year ratio. Test whether adding them lowers error on a holdout period against a baseline that uses only your sales history. If it doesn't, drop the signal.
Cost is easy to budget. 50 keywords × 1 call a week × 4 weeks = 200 credits a month. The 100 free credits you get once, after verifying an email address, cover the first two weeks; see [pricing](https://perceptlayer.com/pricing) for what credits cost beyond that. Caching repeat requests is covered in [Cache API Responses in Python](https://perceptlayer.com/blog/cache-web-data-api-responses), and the first call to run is in the [Google Trends API in Python](https://perceptlayer.com/blog/google-trends-api-python) guide. To start, [get a free API key](https://perceptlayer.com/signup) and run an `interest` call in the playground on [the Google Trends API page](https://perceptlayer.com/apis/google-trends).
## APIs in this post
- [Google Trends **1 credit per call** · 5 endpoints](https://perceptlayer.com/apis/google-trends)
## Frequently asked questions
### Can Google Trends data predict sales?
It can improve a forecast when search interest leads purchases and you test the lag against your own history. It cannot predict sales alone, because the values are a relative index with no units. Treat it as an extra input beside sales data and keep it only if it lowers holdout error.
### Are Google Trends values search volumes?
No. Google says each data point is divided by the total searches of its geography and time range, then scaled from 0 to 100 against the topic's proportion of all searches ( [Google Trends Help](https://support.google.com/trends/answer/4365533), accessed October 2026). The value 100 marks the peak of that window, not a fixed number of searches.
### Why do my values change between requests?
The scale is recalculated for each request, so a different `time_range`, `geo` or set of terms can put the maximum somewhere else and shift every other value. Store whole series from one request, or rescale overlapping windows with a ratio on shared timestamps, as in the Python example above.
### How much does it cost to pull trend data?
Each `interest` call costs 1 credit, and failed calls cost nothing and return `X-Credits-Used: 0`. Every account gets 100 free credits after email verification. After that, credits come in prepaid packs starting at 10,000 credits (the Starter pack), so 10,000 calls × 1 credit = 10,000 credits. See [pricing](https://perceptlayer.com/pricing) for what credits cost and [credits in the docs](https://docs.perceptlayer.com/credits).
### What does a value of 0 mean?
Google states that terms with low volume appear as 0, because Trends only shows data for popular terms ( [Google Trends Help](https://support.google.com/trends/answer/4365533), accessed October 2026). A 0 therefore means below the reporting threshold, not no searches. For niche products, query a broader term or use the `related` endpoint to find one.
google trends demand forecasting search data time series
## More from the blog
1. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 17 Nov 2026 Perceptlayer 7 min read
## [Grocery Price Data from Five Stores as JSON](https://perceptlayer.com/blog/grocery-price-data-api)
Grocery prices from Kroger, Whole Foods, Trader Joe's, Sprouts and Costco at 1 credit a search: sale and unit-price fields, and a weekly basket's cost.
2. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 4 Nov 2026 Perceptlayer 7 min read
## [LinkedIn Jobs API: Job Listings as JSON](https://perceptlayer.com/blog/linkedin-jobs-api)
Search public LinkedIn job listings with jobs-search and fetch one posting with job, at 1 credit a call: parameters, cURL and a weekly hiring-signal job.
3. [Web data by industry](https://perceptlayer.com/blog/category/web-data) 31 Oct 2026 Perceptlayer 9 min read
## [Price Monitoring Tool: Build One on Product APIs](https://perceptlayer.com/blog/price-monitoring-tool-build)
Build a price monitoring tool in Python: daily Google Shopping, Walmart and idealo searches, price and seller per day in SQLite, 1 credit per check.
---
title: "AI Competitor Monitoring Agent: News, Search and Reviews"
description: "A weekly Python agent checks news, Google results and Trustpilot reviews for each competitor, keeps only new URLs and review IDs, and costs 3 credits a company."
url: https://perceptlayer.com/blog/ai-competitor-monitoring-agent
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# AI Competitor Monitoring Agent: News, Search and Reviews
5 Jul 2026 Perceptlayer 7 min read
AI competitor monitoring works best as a scheduled job that collects first and summarises second. This tutorial builds one in Python: once a week, for each company on your list, it pulls Google News articles, Google search results and the latest Trustpilot reviews, keeps only items it hasn't seen before, and has Claude write a digest of what changed with a link for every claim. Each company costs 3 credits a run.
## Key takeaways
- Three calls per company per week: `GET /v1/google-news/news`, `GET /v1/google-search/search` and `GET /v1/trustpilot/company-reviews`, at 1 credit each.
- Deduplication happens in code, before the model: news and search items are keyed by a normalised URL, reviews by their Trustpilot `id`, and a JSON file remembers every key.
- In a test on recorded responses with mocked HTTP calls, the first run found 9 new items and a second run on the same data found 0, for 3 credits a run.
- Reviewer names never reach the model: the agent passes rating, title, text, language and date only.
- Monitoring 20 companies weekly costs 20 × 3 × 52 ÷ 12 ≈ 260 credits a month. The 100 free credits on signup cover the first run of 60 credits, and a Starter pack of 10,000 credits covers a year.
## How does the agent work?
It's a fixed pipeline with a model at the end. Code decides what to fetch and what's new; the model only writes. That split matters for monitoring: a model choosing its own searches every week drifts, costs a different amount each run, and can't tell you reliably what's new, while a list of keys on disk can.
1. For each company, fetch news for its name, the search results for its name and its newest Trustpilot reviews.
2. Turn every item into a key: the URL without scheme, `www.`, query string or trailing slash for news and search (split with Python's [`urllib.parse.urlsplit`](https://docs.python.org/3/library/urllib.parse.html), 2026), and the review `id` for reviews.
3. Drop any key already in `seen.json`, and any repeat within the run.
4. Save the new keys, then send only the new items to Claude with instructions to cite URLs and summarise reviews as themes.
5. Schedule it weekly with cron or any job runner.
You need Python 3.10 or later, a Perceptlayer API key and an Anthropic API key. [Get a free API key](https://perceptlayer.com/signup); verified accounts get 100 free credits on signup. Install `pip install anthropic requests` and export `PERCEPTLAYER_API_KEY` and `ANTHROPIC_API_KEY`.
## Which endpoints does it call?
One per signal, from the [Google News API](https://perceptlayer.com/apis/google-news), the [Google Search API](https://perceptlayer.com/apis/google-search) and the Trustpilot API, each answering a different question about a competitor. News says what's being reported; search says what someone researching the company finds first; reviews say what customers are complaining or happy about this week. All three cost 1 credit per successful call.
| Signal | Endpoint | Parameters used | Key for dedupe |
| --- | --- | --- | --- |
| News | [`/v1/google-news/news`](https://perceptlayer.com/apis/google-news/news) | `q` (the name in quotes), `hl`, `gl` | Article URL |
| Search results | [`/v1/google-search/search`](https://perceptlayer.com/apis/google-search/search) | `query`, `hl`, `gl` | Result URL |
| Reviews | [`/v1/trustpilot/company-reviews`](https://perceptlayer.com/apis/trustpilot/company-reviews) | `company_domain`, `sort=recency` | Review `id` |
The quotes around the company name in `q` ask Google News for the exact phrase, which cuts unrelated matches for names that are also common words; that's ordinary Google query syntax, which we haven't tested on this endpoint. `sort` on the reviews endpoint takes `relevance` or `recency`; recency is what a weekly diff needs. The [Google News API guide](https://perceptlayer.com/blog/google-news-api) and the [Trustpilot reviews API guide](https://perceptlayer.com/blog/trustpilot-reviews-api) cover the other parameters.
## What do the responses contain?
Each signal comes back with an ID-like field and a date, which is what makes a weekly diff possible. The excerpts below are from recorded responses, trimmed with `…`. A news result carries the article `link`, `source.name` and an exact `iso_date` alongside the relative `date`:
```json
{
"news_results": [
{
"position": 1,
"title": "Top Strategic Technology Trends for 2027",
"link": "https://www.gartner.com/en/articles/top-technology-trends-2027",
"type": "article",
"iso_date": "2026-10-20T15:59:45+00:00",
"date": "2 days ago",
"source": { "name": "Gartner", … },
"story_token": "CBMib0FVX3lxTE1zMGNNN1p0UTdtOXV0U3RoU2JvSGlYUXpQYTZIeEFvcHZGZVpiazBjZ2UyZ0ZhVzZ6NUl3c3Y3LTdCWUVfYVd1YnZuMFdtVElGcHlsR3IwM1BnYXBQNGZueEdldUZJOWM0UnRTQ3Y0WQ",
…
},
…
]
}
```
The Trustpilot response for `company_domain=amazon.com` carries the company's `trustScore` and `numberOfReviews` in `businessUnit`, then a `reviews` array. Each review has an `id`, a `rating`, `title`, `text`, `language` and `dates.publishedDate`, plus a `consumer` object the agent deliberately leaves out:
```json
{
"businessUnit": {
"displayName": "Amazon",
"numberOfReviews": 49830,
"numberOfReviewsLast12Months": 9156,
"trustScore": 1.5,
…
},
"reviews": [
{
"id": "6adac54ca4e34a0e087ae2b2",
"rating": 1,
"language": "de",
"dates": {
"experiencedDate": "2026-10-23T00:00:00.000Z",
"publishedDate": "2026-10-23T04:24:12.000Z"
},
…
},
…
]
}
```
Use `iso_date` and `publishedDate`, not the relative `date`, when you store items: "2 days ago" means something different next week. The search response's `organic_results` carry `position`, `title` and `link`, as in the [Google Search API guide](https://perceptlayer.com/blog/google-search-api-json).
## What does the complete agent look like?
Here's the whole script. `get` adds each response's `X-Credits-Used` to a running total. `collect` makes the three calls and flattens them into items. `new_items` drops what's been seen and updates the state. `digest` sends the new items to Claude through the [Messages API](https://docs.anthropic.com/en/api/messages) (Anthropic, 2026). Edit `COMPANIES` to your list; set `CLAUDE_MODEL` to use another model.
```python
"""Weekly competitor digest: new news, search results and reviews for each company."""
import json
import os
import pathlib
from urllib.parse import urlsplit
import anthropic
import requests
API = "https://api.perceptlayer.com/v1"
HEADERS = {"X-API-Key": os.environ["PERCEPTLAYER_API_KEY"]}
MODEL = os.environ.get("CLAUDE_MODEL", "claude-opus-5-5")
STATE = pathlib.Path("seen.json")
COMPANIES = [
{"name": "Amazon", "domain": "amazon.com"},
]
spent = 0
def get(path, **params):
global spent
r = requests.get(f"{API}/{path}", headers=HEADERS, params=params, timeout=90)
spent += int(r.headers.get("X-Credits-Used", "0"))
r.raise_for_status()
return r.json()
def url_key(url):
"""Same page, same key: no scheme, no www, no query or fragment, no trailing slash."""
parts = urlsplit(url)
host = parts.netloc.lower().removeprefix("www.")
return f"{host}{parts.path.rstrip('/')}"
def collect(company):
news = get("google-news/news", q=f'"{company["name"]}"', hl="en", gl="us")
search = get("google-search/search", query=company["name"], hl="en", gl="us")
reviews = get("trustpilot/company-reviews", company_domain=company["domain"], sort="recency")
items = []
for n in news.get("news_results", []):
items.append({"kind": "news", "key": url_key(n["link"]), "title": n["title"],
"source": n.get("source", {}).get("name"), "date": n.get("iso_date"), "url": n["link"]})
for s in search.get("organic_results", []):
items.append({"kind": "search", "key": url_key(s["link"]), "title": s["title"],
"position": s.get("position"), "url": s["link"]})
for rv in reviews.get("reviews", []):
# No reviewer names or profile data go to the model or the digest.
items.append({"kind": "review", "key": f'trustpilot:{rv["id"]}', "rating": rv["rating"],
"title": rv.get("title"), "text": rv.get("text", "")[:500],
"language": rv.get("language"), "date": rv.get("dates", {}).get("publishedDate")})
score = reviews.get("businessUnit", {})
return items, {"trust_score": score.get("trustScore"), "reviews_total": score.get("numberOfReviews")}
def new_items(company, items, seen):
known = set(seen.get(company["domain"], []))
fresh, keys = [], set()
for it in items:
if it["key"] in known or it["key"] in keys:
continue
keys.add(it["key"])
fresh.append(it)
seen[company["domain"]] = sorted(known | keys)
return fresh
SYSTEM = """You write a weekly competitor digest for a product team.
You get, per company, only items that are new since last week: news articles,
search results and customer reviews. Group by company. For each, say in two or
three bullets what changed, citing the URL of every news or search item you use.
Summarise reviews as themes with counts; never quote a reviewer's name.
If a company has nothing new, say "No change". Do not add facts that are not in the input."""
def digest(report):
client = anthropic.Anthropic()
response = client.messages.create(
model=MODEL,
max_tokens=16000,
system=SYSTEM,
messages=[{"role": "user", "content": json.dumps(report, ensure_ascii=False)}],
)
if response.stop_reason == "refusal":
return "The model declined to write the digest."
return "".join(b.text for b in response.content if b.type == "text")
def run():
seen = json.loads(STATE.read_text()) if STATE.exists() else {}
report = []
for company in COMPANIES:
items, score = collect(company)
fresh = new_items(company, items, seen)
report.append({"company": company["name"], **score, "new": fresh})
STATE.write_text(json.dumps(seen))
return report
if __name__ == "__main__":
report = run()
print(digest(report))
print(f"\nCredits used: {spent}")
```
Run it with `python monitor.py`, then add a weekly cron entry such as `0 7 * * 1 cd /path/to/monitor && python monitor.py >> digest.log`. The first run reports everything as new; from the second run on, only changes appear. Our guide to [scheduling web data pulls](https://perceptlayer.com/blog/schedule-web-data-pulls-cron-queue) compares cron with queues and workflow tools.
## What happened when we ran it on recorded data?
We haven't run this script against the live API or a model. We ran `run()` twice with `requests.get` mocked to return three recorded responses: Google News for `q=technology`, Google Search for "best restaurants in Berlin" and Trustpilot reviews for `amazon.com`. The news and search recordings are for other queries, so this checks the plumbing, not the relevance of results for a real competitor.
| Run | New news | New search | New reviews | Credits |
| --- | --- | --- | --- | --- |
| First | 3 | 3 | 3 | 3 |
| Second, same data | 0 | 0 | 0 | 3 |
The recorded samples are short, so 3 items each; a live response has more. The first run's report, the part sent to the model, was under 3,000 characters for one company. The second run shows the property that matters: the same items on the same keys are dropped, so a quiet week produces "No change" instead of a repeated digest. The Trustpilot score and total came through as 1.5 and 49,830.
URL keys catch the same article twice, but not the same story from two outlets: syndicated wire stories have different URLs. If that noise matters, group news by `story_token` or by title similarity before the digest. For weighting reviews, see [product review data for sentiment analysis](https://perceptlayer.com/blog/product-review-data-sentiment-analysis).
## What does it cost to run?
Three successful calls per company per run, at 1 credit each. Failed calls cost nothing and return `X-Credits-Used: 0`, so `spent` counts what was billed, not what was attempted. The [credits docs](https://docs.perceptlayer.com/credits) explain billing; the model's tokens are billed separately by Anthropic.
| Companies | Credits a run | Weekly, per month (× 52 ÷ 12) | Daily, per month (× 30) |
| --- | --- | --- | --- |
| 5 | 15 | 65 | 450 |
| 20 | 60 | 260 | 1,800 |
| 100 | 300 | 1,300 | 9,000 |
Worked example: 20 companies weekly is 20 × 3 = 60 credits a run, about 260 a month. The 100 free credits on signup cover the first run, and a Starter pack of 10,000 credits covers a year of weekly runs (12 × 260 = 3,120 credits). Running the same list daily is 1,800 credits a month, so a Starter pack of 10,000 credits lasts five months; purchased credits last 12 months. See [pricing](https://perceptlayer.com/pricing) for what credits cost, and [budgeting credits per scheduled agent run](https://perceptlayer.com/blog/scheduled-agent-credit-budget) for caps.
Calls run one after another, so 100 companies is 300 calls, five minutes at the free tier's 1 request a second; the [rate limits docs](https://docs.perceptlayer.com/rate-limits) list paid rates, and [concurrent API requests in Python](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit) shows how to parallelise within them.
## How do you make it production-ready?
Five changes take it from script to job. Each is small, and none changes the cost per company.
1. **Retry the right errors.** Retry `rate_limited` and `temporarily_unavailable` after `Retry-After`; skip a company on `not_found` and keep going. [Handling web data API errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python) has the pattern, and the [errors docs](https://docs.perceptlayer.com/errors) list the codes.
2. **Write state only after the digest is sent.** Otherwise a failed email loses a week of items.
3. **Keep a rank history for search.** Store `position` per URL per week, so the digest can say a page moved from 7 to 2, not only that it's new; [search result data for SEO monitoring](https://perceptlayer.com/blog/search-result-data-seo-monitoring) covers which fields to keep.
4. **Track the score.** Store `trustScore` and `numberOfReviews` each week and report the change.
5. **Bound the state file.** Drop keys older than a few months, or it grows forever.
For an agent that chooses its own sources, the same endpoints are available through the MCP server, as in the [AI agents docs](https://docs.perceptlayer.com/ai-agents). To start, [get a free API key](https://perceptlayer.com/signup) and run a competitor's domain through the playground on the [Trustpilot API page](https://perceptlayer.com/apis/trustpilot). Data is collected from publicly available sources and returned as found at the time of the call.
## APIs in this post
- [Google News **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/google-news)
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
- [Trustpilot **1 credit per call** · 6 endpoints](https://perceptlayer.com/apis/trustpilot)
## Frequently asked questions
### Which data sources does the monitoring agent use?
Google News articles for each company's name, Google search results for the name and the newest Trustpilot reviews for its domain, through `google-news/news`, `google-search/search` and `trustpilot/company-reviews`. Each returns JSON with a URL or review ID and a date, which the agent uses to keep only items it hasn't seen in earlier runs.
### How much does competitor monitoring cost?
3 credits per company per run, one for each endpoint, at 1 credit per successful call; failed calls cost nothing. Twenty companies weekly is about 260 credits a month. The 100 free credits every verified account gets once cover the first run of 60 credits, and a pack covers the rest. Daily runs for the same list are 1,800 credits a month. See [pricing](https://perceptlayer.com/pricing).
### How does the agent avoid reporting the same item twice?
It keys news and search results by URL without scheme, `www.`, query string or trailing slash, and reviews by their Trustpilot `id`, and stores every key in `seen.json`. On the next run, any item whose key is already stored is dropped before the model sees it. Syndicated stories with different URLs still get through.
### Does the agent store reviewers' personal data?
No. It passes each review's rating, title, text, language and publication date to the model and leaves out the `consumer` object, which holds the reviewer's display name and profile. The system prompt also tells the model never to quote names. Keep it that way if you add fields.
### Why not let the model search for itself?
Because a weekly diff needs the same queries every week. A model choosing its own searches varies them, which makes "new since last week" meaningless and the cost per run unpredictable. Code fixes the queries and the cost at 3 credits per company; the model only writes the summary, from items code has already filtered.
competitor monitoring ai agents google news trustpilot python
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 9 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [CrewAI Tools: Build a Custom Tool for Live Web Data](https://perceptlayer.com/blog/crewai-custom-tool-web-data)
Build a CrewAI custom tool (a BaseTool subclass) that searches Google for live results, cap it at 5 calls a run, or load MCP tools instead. Tested code.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Oct 2026 Perceptlayer 8 min read
## [Build a Market Research Agent with Search and Trends Data](https://perceptlayer.com/blog/market-research-agent-search-trends)
Wire Google Search, Trends and News into one Python agent, cap it at 8 credits per question, and see a recorded Trends response.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 11 Sept 2026 Perceptlayer 8 min read
## [Build a Price Tracking Agent in Python with Live Data](https://perceptlayer.com/blog/price-tracking-agent-python)
A Python price tracker that checks Google Shopping and eBay once per product per run, stores history in SQLite, flags drops and costs 2 credits a product.
---
title: "Expedia Hotels API: Search Hotels and Rooms as JSON"
description: "Search Expedia hotels by region and dates, then list rooms and rate plans as JSON. Real parameters, a recorded response and 1 credit per call."
url: https://perceptlayer.com/blog/expedia-hotels-api-search-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Expedia Hotels API: Search Hotels and Rooms as JSON
5 Jul 2026 Perceptlayer 7 min read
To search Expedia hotels as JSON, call `GET /v1/expedia/hotels-search` with a `region_id`, a check-in date and a check-out date. It returns a ranked list of properties with price, guest rating and a `property_id`. Pass that ID to `GET /v1/expedia/hotels-rooms` to get each room and its rate plans. Every call costs 1 credit, and failed calls cost nothing.
## Key takeaways
- The flow is four endpoints on the [Expedia API](https://perceptlayer.com/apis/expedia): `destinations` finds a region, `hotels-search` lists properties, `hotels-rooms` lists rooms and rate plans, `hotels-detail` takes a `property_id`.
- `hotels-search` requires `check_in`, `check_out` and `region_id`. Paging uses `limit` and `offset`, and the response includes `has_more` and `next_offset`.
- `hotels-rooms` returns `total_price` and `price_per_night` for each `rate_plan_id`, in the currency named in the response.
- Each call costs 1 credit, so looking up a region, searching it and pulling rooms for one hotel is 3 credits.
- Expedia Group runs its own partner API, Rapid, for travel partners. If you're a partner, that's the first route to check.
## Which endpoints make up the Expedia hotel search flow?
Four endpoints cover a hotel search from a typed place name to a bookable room. You look up a destination, search hotels in it for a date range, then drill into one property for rooms or detail. All four are `GET` requests that return JSON and cost 1 credit each. The table lists the required and optional parameters.
| Endpoint | Returns | Required | Optional |
| --- | --- | --- | --- |
| `/v1/expedia/destinations` | Destinations | `query` | `limit` |
| `/v1/expedia/hotels-search` | Hotels Search | `check_in`, `check_out`, `region_id` | `adults`, `children`, `region_name`, `sort`, `limit`, `offset` |
| `/v1/expedia/hotels-rooms` | Hotels Rooms | `check_in`, `check_out`, `property_id` | `adults`, `children` |
| `/v1/expedia/hotels-detail` | Hotels Detail | `property_id` | `check_in`, `check_out`, `adults` |
Each endpoint has its own page with a playground: [Destinations](https://perceptlayer.com/apis/expedia/destinations), [Hotels Search](https://perceptlayer.com/apis/expedia/hotels-search), [Hotels Rooms](https://perceptlayer.com/apis/expedia/hotels-rooms) and [Hotels Detail](https://perceptlayer.com/apis/expedia/hotels-detail). The wider [Travel APIs](https://perceptlayer.com/verticals/travel) area lists the other travel sources in the catalogue.
## How do you authenticate and make the first call?
Send your key in the `X-API-Key` header on every request. Keys start with `sk_live_`, and where a header isn't possible you can use the `api_key` query parameter instead. A free account gets 100 credits after you verify an email address, with no credit card, so the calls below are free to try. The [authentication docs](https://docs.perceptlayer.com/authentication) cover the details.
Start with the destination lookup. `query` takes up to 100 characters, and `limit` is optional:
```bash
curl "https://api.perceptlayer.com/v1/expedia/destinations?query=Paris&limit=5" \
-H "X-API-Key: $API_KEY"
```
Run it in the playground on the [Destinations page](https://perceptlayer.com/apis/expedia/destinations) to see the response for your own query, then use the region you want as `region_id` in the search. The recorded searches in this article use `region_id=2734` with `region_name=Paris, France`. If you don't have a key yet, [get a free API key](https://perceptlayer.com/signup) first.
## How do you search hotels for a date range?
`GET /v1/expedia/hotels-search` takes a `region_id`, `check_in` and `check_out`, and returns a ranked list of properties for those dates. Add `adults` for the party size, `region_name` as a label (up to 120 characters), and `limit` and `offset` to page. This request asks for the first 10 hotels in Paris for two adults:
```bash
curl "https://api.perceptlayer.com/v1/expedia/hotels-search?region_id=2734®ion_name=Paris%2C+France&check_in=2026-11-20&check_out=2026-11-23&adults=2&limit=10" \
-H "X-API-Key: $API_KEY"
```
### Parameters
| Parameter | Type | Required | Notes |
| --- | --- | --- | --- |
| `check_in` | string | yes | Dates in the recorded requests look like `2026-11-20` |
| `check_out` | string | yes | Same format as `check_in` |
| `region_id` | string | yes | From the destinations lookup |
| `adults` | integer | no | Number of adults |
| `children` | string | no | Children in the party |
| `region_name` | string | no | Up to 120 characters |
| `sort` | string | no | One of `recommended`, `price_low_to_high`, `review` |
| `limit` | integer | no | Hotels per page |
| `offset` | integer | no | Where the page starts |
### What does the response look like?
This is a recorded response for the request above, trimmed to the first hotel:
```json
{
"success": true,
"data": {
"region_id": "2734",
"check_in": "2026-11-20",
"check_out": "2026-11-23",
"hotels": [
{
"property_id": "564660",
"position": 1,
"name": "Mercure Paris Centre Tour Eiffel",
"area": "Paris",
"guest_rating": 8,
"guest_rating_label": "Very good",
"review_count": 1000,
"total_price": 690,
"price_per_night": 230,
"free_cancellation": false,
"sponsored": true,
"amenities_preview": ["restaurant", "bar"],
"currency": "EUR"
},
…
],
"total_results": 500,
"offset": 0,
"has_more": true,
"next_offset": 10
},
"meta": {
"endpoint_family": "hotel_search",
"billable": true
}
}
```
A few fields are worth knowing before you build on them. The recording shows `position: 1` and `sponsored: true` on the hotel shown (and `sponsored: true` on both hotels recorded); the brief doesn't document what either field means, so check them against your own results before relying on them. The prices are in the `currency` field ( `EUR` here), and `total_price` for this stay is `price_per_night` times three nights: 3 × 230 = 690. Some hotels also carry an `original_price` next to `total_price`, which shows a discount. Each hotel also has `url` and `image_urls`, left out above.
### How do you page through results?
Use `has_more` and `next_offset`. The recorded response reports `total_results` of 500, `offset` of 0 and `next_offset` of 10 with `limit=10`, so the next call repeats the request with `offset=10`. The recording shows `has_more` as `true`; no final page is recorded, so check the last page's response yourself before you rely on its shape. Each page is a separate call at 1 credit, so reading 500 results at 10 per page is 50 calls × 1 credit = 50 credits. The [request and response docs](https://docs.perceptlayer.com/requests) describe the response envelope.
## How do you list rooms and rate plans for one hotel?
`GET /v1/expedia/hotels-rooms` takes a `property_id` from the search, the same dates, and optionally `adults` and `children`. It returns each room type with its features, amenities and a list of rate plans, each with a `rate_plan_id`, `total_price` and `price_per_night`. Rooms are where you see the spread within one hotel:
```bash
curl "https://api.perceptlayer.com/v1/expedia/hotels-rooms?property_id=564660&check_in=2026-11-20&check_out=2026-11-23&adults=2" \
-H "X-API-Key: $API_KEY"
```
Recorded response for that request, trimmed to the first room:
```json
{
"success": true,
"data": {
"property_id": "564660",
"check_in": "2026-11-20",
"check_out": "2026-11-23",
"currency": "EUR",
"rooms": [
{
"unit_id": "226385",
"name": "Classic Room, 1 Double Bed",
"features": ["18 sq m", "Sleeps 2"],
"highlights": ["Soundproofed rooms", "Air-conditioning"],
"amenities": ["Wheelchair accessibility", "Bathtub or shower"],
"rate_plans": [
{
"rate_plan_id": "397104173",
"total_price": 690,
"price_per_night": 230
},
{
"rate_plan_id": "397104181",
"total_price": 825,
"price_per_night": 275
}
]
},
…
]
},
"meta": {
"endpoint_family": "room_offers",
"billable": true
}
}
```
The first rate plan, at 690 for three nights, matches the `total_price` the search gave for the same hotel and dates. The second room in the recorded response, "Classic Room, 2 Single Beds", has plans at 700 and 825. In this recording the search price equals the lowest rate plan of the first room, and the rooms call shows what the other plans cost.
## What does the detail endpoint add?
`GET /v1/expedia/hotels-detail` takes a `property_id` and, optionally, `check_in`, `check_out` and `adults`. Only `property_id` is required. We haven't recorded a response for it, so we can't show its fields here. See the [Hotels Detail page](https://perceptlayer.com/apis/expedia/hotels-detail) for the fields and run it in the playground with your key.
## How do you chain the calls in Python?
Search first, then fetch rooms for the top results. The script uses only the parameters and fields in the recordings above, and you need `API_KEY` set. It searches Paris for two adults, takes the first three hotels and prints each room's rate plans:
```python
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
DATES = {"check_in": "2026-11-20", "check_out": "2026-11-23"}
def get(path, **params):
r = requests.get(BASE + path, headers=HEADERS, params=params, timeout=30)
r.raise_for_status()
return r.json()["data"]
search = get(
"/v1/expedia/hotels-search",
region_id="2734",
region_name="Paris, France",
adults=2,
limit=10,
**DATES,
)
for hotel in search["hotels"][:3]:
print(hotel["name"], hotel["total_price"], hotel["currency"])
rooms = get(
"/v1/expedia/hotels-rooms",
property_id=hotel["property_id"],
adults=2,
**DATES,
)
for room in rooms["rooms"]:
for plan in room["rate_plans"]:
print(" ", room["name"], plan["rate_plan_id"], plan["total_price"])
```
This run makes 1 search and 3 rooms calls: 4 calls × 1 credit = 4 credits. Add a `try` around `raise_for_status` and read the JSON error body when it fails; the [error docs](https://docs.perceptlayer.com/errors) list the codes. If a request times out, it may have succeeded and been billed, because requests have no idempotency key.
## What does it cost to run at scale?
Every call to these endpoints costs 1 credit, so cost is the call count. Watching 50 hotels for one stay, once a day for 30 days, is 50 × 30 = 1,500 rooms calls, or 1,500 credits. That's above the 100 free credits you get on signup, and within the smallest 10,000-credit Starter pack. Purchased credits last 12 months, with no subscription. [Pricing](https://perceptlayer.com/pricing) has what credits cost.
Responses carry `X-Credits-Used` and `X-Credits-Remaining`, so you can track spend per call. Rates are per account and counted per minute: free accounts get 1 request a second, and paying accounts at least 5. A 429 response carries a `Retry-After` header with the seconds to wait. See [rate limits](https://docs.perceptlayer.com/rate-limits) and [credits](https://docs.perceptlayer.com/credits). For a rate-monitoring design, read [hotel price data for rate monitoring](https://perceptlayer.com/blog/hotel-price-data-rate-monitoring).
## Should you use Expedia's own API instead?
If you're a travel partner of Expedia Group, probably yes. Expedia Group runs a partner API called [Rapid](https://partner.expediagroup.com/en-us/solutions/build-your-travel-experience/rapid-api) for lodging search and booking, and its [developer support pages](https://developers.expediagroup.com/rapid/support) point to the partner support channels. Check there for current access terms. It's the natural route if you need to take bookings or want a contractual relationship with Expedia.
Perceptlayer fits a different job: reading search results as JSON without a partner agreement, for price comparison, research or an agent that needs live hotel prices. Data is collected from publicly available sources and returned as found at the time of the call. For other hotel sources, see the [Booking.com guide](https://perceptlayer.com/blog/booking-com-hotel-prices-api) and the [Google Hotels guide](https://perceptlayer.com/blog/google-hotels-api).
Next step: [get a free API key](https://perceptlayer.com/signup), then run `hotels-search` in the playground on the [Expedia API page](https://perceptlayer.com/apis/expedia).
## APIs in this post
- [Expedia **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/expedia)
## Frequently asked questions
### Does Expedia have a public hotel search API?
Expedia Group offers a partner API, Rapid, for lodging search and booking, aimed at travel partners. For read-only hotel search results as JSON without a partner agreement, the `hotels-search` endpoint on Perceptlayer takes a region, dates and party size and returns ranked properties with prices.
### How much does an Expedia hotel search cost per call?
Each of the four Expedia endpoints costs 1 credit per successful call. A search plus rooms for one hotel is 2 credits. Failed calls cost nothing and return `X-Credits-Used: 0`. Free accounts get 100 credits on signup, and [pricing](https://perceptlayer.com/pricing) shows what credit packs cost.
### How do I get the region\_id for a city?
Call `GET /v1/expedia/destinations` with `query` set to the place name, for example `query=Paris`, and use the region you want as `region_id` in the search. The recorded searches in this guide use `region_id=2734` for Paris, France.
### Why is the search price different from a room's price?
The search returns one headline price per hotel, such as 690 for three nights in the recorded response. The rooms endpoint lists every room and rate plan for the same dates, such as 690 and 825 for one room type. Use the rooms call when you need the full spread.
### What happens when the balance runs out?
The service is prepaid. When credits run out, calls return `insufficient_credits` with HTTP status 402 and nothing more is debited. There is no automatic top-up. Errors come back as JSON with a `code`, `message` and `request_id`, described in the [error docs](https://docs.perceptlayer.com/errors).
expedia hotel search api hotel prices travel rooms
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 25 Aug 2026 Updated 23 Oct 2026 Perceptlayer 8 min read
## [Booking.com Hotel Prices API: Search, Rooms and Reviews](https://perceptlayer.com/blog/booking-com-hotel-prices-api)
Eleven Booking.com endpoints as JSON: search, prices, rooms and reviews, with parameters and a 1,000-hotel price check costed in credits.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 8 Nov 2026 Perceptlayer 8 min read
## [Expedia Scraper or API: What You Get](https://perceptlayer.com/blog/expedia-scraper-vs-api)
An Expedia scraper vs 4 Expedia endpoints at 1 credit each: a recorded Paris search and rooms call with total\_price, rate plans, and the cost per hotel-date.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 8 min read
## [Hotel API: Expedia, Booking.com and Google Hotels](https://perceptlayer.com/blog/hotel-api-comparison)
Expedia, Booking.com and Google Hotels hotel endpoints compared on recorded Paris searches: price as numbers or strings, hotel IDs, 1 credit per call.
---
title: "Claude MCP Web Search: Live Results for an Agent"
description: "Add the Perceptlayer MCP server to Claude, let the agent call the Google Search endpoint, and count its cost: 1 credit per search call."
url: https://perceptlayer.com/blog/claude-agent-live-search-mcp
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Claude MCP Web Search: Live Results for an Agent
3 Jul 2026 Updated 10 Nov 2026 Perceptlayer 10 min read
To give a Claude agent live search results over MCP, add the Perceptlayer MCP server at `https://perceptlayer.com/mcp` with your API key, then let the agent find and call the Google Search endpoint through the `search_endpoints`, `get_endpoint` and `call_endpoint` tools. Each successful search call costs 1 credit and failed calls cost nothing. This tutorial wires it up in Claude Code and in a Python agent, then counts the credits per question.
## Key takeaways
- One command, `claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp`, connects Claude Code to the server with a Bearer header.
- The server exposes three tools: `search_endpoints`, `get_endpoint` and `call_endpoint`.
- A successful Google Search call costs 1 credit, so the 100 free credits on signup cover 100 search calls.
- Failed calls cost nothing and return `X-Credits-Used: 0`, so errors your agent receives don't drain credits. A timeout is different: the call may have succeeded and been billed, because requests have no idempotency key (see [retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice)).
- A cap of 3 search calls per question in the system prompt is a guardrail, not a hard limit, so the script in step 4 prints the call count for you to check against it.
## What do you need before you start?
You need a Perceptlayer API key, the `claude` CLI or the Claude Agent SDK for Python, and an environment variable holding the key. Keys start with `sk_live_`. Every account gets 100 free credits after verifying an email address, with no credit card, so you can run everything below without paying. [Get a free API key](https://perceptlayer.com/signup) first, then export it.
```bash
export API_KEY="sk_live_..."
```
The same key authenticates plain HTTP calls with the `X-API-Key` header and the MCP server with an `Authorization: Bearer` header. Where headers aren't possible, the `api_key` query parameter also works. The [authentication section of the docs](https://docs.perceptlayer.com/authentication) is the place to read more about keys.
## How does a Claude agent search the web over MCP?
The Model Context Protocol lets an agent discover and call tools on a remote server. Perceptlayer's server speaks [Streamable HTTP](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http), the protocol's standard transport for remote servers, and gives the agent access to a catalogue of 480 websites and 2,782 endpoints, all returning JSON.
The server's tools are `search_endpoints`, `get_endpoint` and `call_endpoint`. The [AI agents (MCP) section of the docs](https://docs.perceptlayer.com/ai-agents) covers the server, and the [protocol site](https://modelcontextprotocol.io/) describes MCP itself.
## Step 1: How do you add the MCP server to Claude Code?
Run one command. It registers the server under the name `perceptlayer`, using the HTTP transport and your key as a Bearer token. Claude Code stores the entry in its MCP configuration.
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp \
--header "Authorization: Bearer $API_KEY"
```
Confirm the server connected:
```bash
claude mcp list
```
You should see `perceptlayer` in the list. Inside a Claude Code session, the `/mcp` command shows the connection status of the server. If you want the entry scoped to a project instead of your user, the [Claude Code MCP documentation](https://code.claude.com/docs/en/mcp) lists the scope options.
### Ask a question that needs live search
Start `claude` and ask something the model can't know from training, such as: "Use Perceptlayer to search Google for the latest Claude Code release notes and list the top five result titles with their URLs."
The agent needs access to three tools to reach the Google Search endpoint: `search_endpoints`, `get_endpoint` and `call_endpoint`. If your permission settings block any of them, the call will fail, so allow all three.
## Step 2: Which Google Search endpoint should the agent use?
The Google Search API has 7 endpoints, and every one costs 1 credit per successful call. For an agent answering open questions, start with `/v1/google-search/search`, which takes a required `query` and optional parameters for country ( `gl`), language ( `hl`), result count and paging. The others fit narrower jobs, so tell the agent which to prefer if you care.
| Endpoint | Required | Use it when |
| --- | --- | --- |
| [`/v1/google-search/search`](https://perceptlayer.com/apis/google-search/search) | `query` | General web search with the full parameter set |
| [`/v1/google-search/search-light`](https://perceptlayer.com/apis/google-search/search-light) | `query` | A smaller parameter set, with `num` for result count |
| [`/v1/google-search/search-ai-overview`](https://perceptlayer.com/apis/google-search/search-ai-overview) | `query` | You want the AI Overview for a query |
| [`/v1/google-search/google-ai-mode-search`](https://perceptlayer.com/apis/google-search/google-ai-mode-search) | `q` | You want an AI Mode answer, with `follow_up_token` for follow-ups |
| [`/v1/google-search/search-light-autocomplete`](https://perceptlayer.com/apis/google-search/search-light-autocomplete) | `query` | Query suggestions, with `hl` and `limit` |
Note that `google-ai-mode-search` uses `q` where the others use `query`. A hard-coded script needs to get that right. The [Google Search API page](https://perceptlayer.com/apis/google-search) lists all seven, including [`search-advanced`](https://perceptlayer.com/apis/google-search/search-advanced) and [`search-advanced-place`](https://perceptlayer.com/apis/google-search/search-advanced-place), and the [search engines hub](https://perceptlayer.com/verticals/search) shows related sources.
### When is Claude's built-in web search enough?
Often it is. If you want a quick, prose answer to an occasional question and don't need to control how the search runs, Claude's own web search tool may be all you need, and you should start there. Check [Anthropic's web search tool documentation](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool) for how to enable it on your surface and plan. A structured endpoint earns its place when the agent needs fields it can rely on. `/v1/google-search/search` takes `gl` and `hl` to fix country and language, `amount` to set the result count, and returns separate fields for organic results, related questions and related searches. Two sibling endpoints return an AI Overview or an AI Mode answer for a query. The cost is a key, a credit per call and a prompt that handles errors. If your agent only reads the answer and never parses it, that overhead may not pay off. For a longer comparison of tool-calling approaches, read [MCP vs function calling for live web data](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data).
## Step 3: How do you check the endpoint outside the agent?
Call the endpoint directly with cURL before trusting an agent with it. If the request works from your terminal, any later failure is in the agent's prompt or tool use, not in the data call. The `-i` flag prints the response headers so you can see the status.
```bash
curl -i "https://api.perceptlayer.com/v1/google-search/search?query=claude%20code%20release%20notes" \
-H "X-API-Key: $API_KEY"
```
The endpoint returns the search results as JSON. This excerpt is from a recorded response to a different request, `query=best restaurants in Berlin&hl=en&safe=off`, trimmed with …:
```json
{
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. It holds two Michelin stars, has been frequently ranked on The World's 50 ..."
},
{
"position": 2,
"title": "Restaurants - Berlin",
"link": "https://guide.michelin.com/us/en/berlin-region/berlin/restaurants",
"snippet": "Berlin and surroundings: 1-48 of 79 restaurants · POTS · Rutz · GOLVET · Bandol sur mer · Nobelhart & Schmutzig · Oukan · 136 · FACIL."
}
],
"related_questions": [
{ "question": "What is the coolest restaurant in Berlin?", "next_page_token": "…" },
{ "question": "What is famous to eat in Berlin?", "next_page_token": "…" }
]
}
```
Each item in `organic_results` has a `position`, a `title`, a `link` and a `snippet`, which is what an agent needs to cite a page. `related_questions` holds follow-up questions the agent can use to refine a search. The full response has more fields, including `related_searches` and `local_results`. To see a real response for your own query before you wire up the agent, run it in the playground on the [Google Search API page](https://perceptlayer.com/apis/google-search); the [Search endpoint page](https://perceptlayer.com/apis/google-search/search) lists every parameter.
Break the call on purpose to see the failure shape. Send a bad key and you get HTTP 401 with a body like `{"error": {"code": "invalid_api_key", ...}}`, and the response carries `X-Credits-Used: 0`. The [errors section of the docs](https://docs.perceptlayer.com/errors) is the reference for error responses.
## Step 4: How do you build a Python agent that uses the server?
Use the Claude Agent SDK, point `mcp_servers` at the Perceptlayer URL, and allow the three tools by name. The script below asks one question, prints the answer, and counts how many times the agent called `call_endpoint`. The script counts only `call_endpoint` calls. `search_endpoints` and `get_endpoint` only look up the catalogue and cost nothing, so leaving them out doesn't hide any spend. The count includes failed calls, which are free, so it can be higher than the number of billed calls. For the exact figure, read the credits used and remaining that each `call_endpoint` result reports.
Install the SDK with `pip install claude-agent-sdk`, then save this as `agent.py`:
```python
import asyncio
import os
from claude_agent_sdk import (
AssistantMessage,
ClaudeAgentOptions,
TextBlock,
ToolUseBlock,
query,
)
QUESTION = "What changed in the latest Claude Code release? Cite the result URLs you used."
SYSTEM_PROMPT = (
"You answer questions with live web search. "
"Use the perceptlayer MCP tools to find and call a Google Search endpoint. "
"Make at most 3 search calls per question. Cite the URLs you relied on."
)
OPTIONS = ClaudeAgentOptions(
system_prompt=SYSTEM_PROMPT,
mcp_servers={
"perceptlayer": {
"type": "http",
"url": "https://perceptlayer.com/mcp",
"headers": {"Authorization": f"Bearer {os.environ['API_KEY']}"},
}
},
allowed_tools=[
"mcp__perceptlayer__search_endpoints",
"mcp__perceptlayer__get_endpoint",
"mcp__perceptlayer__call_endpoint",
],
)
async def main():
data_calls = 0
async for message in query(prompt=QUESTION, options=OPTIONS):
if not isinstance(message, AssistantMessage):
continue
for block in message.content:
if isinstance(block, ToolUseBlock) and block.name.endswith("call_endpoint"):
data_calls += 1
elif isinstance(block, TextBlock):
print(block.text)
print(f"\ndata calls: {data_calls}")
asyncio.run(main())
```
The [Agent SDK documentation](https://code.claude.com/docs/en/agent-sdk/python) covers the options used above.
## Step 5: What does the script print?
Run it with `python agent.py`. The agent's answer text prints as it arrives, followed by one summary line in this format, where `` is a number from your run:
```text
data calls:
```
Compare that number with the cap in the system prompt. The credits used and remaining come from the `call_endpoint` results themselves, which report both. If the count is higher than the cap, tighten the prompt.
### Why cap the number of search calls?
Each successful search call costs 1 credit, so the number of calls sets the credit cost of a question. The prompt line "at most 3 search calls per question" asks the agent to keep that spend to 3 credits, and the counter shows whether it does. The model can ignore the instruction, so treat the cap as a guardrail, not a guarantee, and check the printed count while you tune the prompt. For a hard limit, enforce it in your own code, for example by stopping the run after the third `call_endpoint` call.
## What does each question cost?
A successful `call_endpoint` call to a Google Search endpoint costs 1 credit, so an agent that searches twice spends 2 credits. The figures below count only those search calls; `search_endpoints` and `get_endpoint` cost nothing, so they add no credits. The free tier of 100 credits, granted once on signup, covers 100 search calls, and purchased credits last 12 months with no subscription and no seats. The table below counts Perceptlayer credits only. Claude model tokens are billed separately by Anthropic, so the real cost of a question is higher than the credit figure.
| Workload | Calls | Credits | Covered by |
| --- | --- | --- | --- |
| 100 questions × 1 search each | 100 | 100 | Free credits (100 on signup) |
| 33 questions × 3 searches each | 99 | 99 | Free credits (100 on signup) |
| 10,000 questions × 1 search each | 10,000 | 10,000 | Starter pack (10,000 credits) |
| 5,000 questions × 3 searches each | 15,000 | 15,000 | Build pack (50,000 credits) |
The third row is 10,000 calls × 1 credit = 10,000 credits, exactly the Starter pack's 10,000. The last row is 5,000 questions × 3 calls × 1 credit = 15,000 credits, within the Build pack's 50,000. The [pricing page](https://perceptlayer.com/pricing) shows what each pack costs, and the [credits section of the docs](https://docs.perceptlayer.com/credits) covers credits.
Because failed calls are free, a rate-limited or erroring call doesn't add to the total. Only a successful response debits credits.
## What happens when a call fails?
A failed call returns an HTTP status and a JSON body with `error.code`, `error.message` and `error.request_id`, and it costs nothing. Give the agent a rule for each case in the system prompt so it knows whether to retry, change the query, or stop, and doesn't loop.
| Code | Status | What the agent should do |
| --- | --- | --- |
| `invalid_parameters` | 422 | Check the parameters against the endpoint page, fix, retry once |
| `rate_limited` | 429 | Wait for the seconds in the `Retry-After` header, then retry; see [rate limits](https://docs.perceptlayer.com/rate-limits) |
| `source_error` | 502 | Retry once, then report that search is unavailable |
| `temporarily_unavailable` | 503 | Wait for the seconds in the `Retry-After` header, then retry |
| `insufficient_credits` | 402 | Stop and tell the user to top up |
| `invalid_api_key` | 401 | Stop; the key is wrong or revoked |
| `restricted_endpoint` | 403 | Stop; the endpoint needs the restricted-endpoint terms accepted in the dashboard |
Add a sentence such as "If a tool call fails with insufficient\_credits or invalid\_api\_key, stop and say so" to `SYSTEM_PROMPT`. Retrying a returned error is safe for your balance because failures aren't billed. A timeout is the exception: if the reply was lost, the request may have succeeded and been billed, and requests have no idempotency key. [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers how to handle that.
## Next step: point the same server at more sources
The server isn't limited to Google Search. The same key and the same three tools reach the rest of the catalogue, so the agent can move from a search result to a listing, a review page or a price without a new integration. Some endpoints, covering social, personal and SEO data, need you to accept the restricted-endpoint terms in the dashboard first.
Add the server with the command in step 1, ask your agent a question that needs live data, and check the credit count it prints. For more on using the server with agents, see the [MCP docs](https://docs.perceptlayer.com/ai-agents), and for related reading, see [MCP server for web scraping](https://perceptlayer.com/blog/mcp-server-for-web-scraping), [capping web data spend for agents](https://perceptlayer.com/blog/ai-agent-web-data-costs) and [Google search results as JSON](https://perceptlayer.com/blog/google-search-api-json). More agent tutorials are in the [AI agents category](https://perceptlayer.com/blog/category/ai-agents).
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
## Frequently asked questions
### How much does a Claude MCP web search cost with Perceptlayer?
A successful call to a Google Search endpoint costs 1 credit. The free tier gives 100 credits on signup, and the smallest pack is 10,000 credits, enough for 10,000 search calls at 1 credit each. See [pricing](https://perceptlayer.com/pricing) for what credits cost. Failed calls cost nothing and return `X-Credits-Used: 0`, so errors never add to your bill.
### Do I need the Claude Agent SDK, or does Claude Code work on its own?
Claude Code works on its own. The `claude mcp add` command registers the server, and you ask questions in the terminal. The Agent SDK is for embedding the same behaviour in your own application, where you want to control the prompt, cap the number of searches and print the credits used per question.
### Can I use the key in a header other than Authorization?
On plain HTTP calls, send the key in `X-API-Key`, or in the `api_key` query parameter where headers aren't possible. The MCP server uses an `Authorization: Bearer` header in the Claude Code command shown above. Keys start with `sk_live_`, and the [authentication section of the docs](https://docs.perceptlayer.com/authentication) has more on keys.
### What does the agent do when search is rate limited?
A rate-limited call returns HTTP 429 with the code `rate_limited`, and it isn't billed. The response carries a `Retry-After` header with the seconds to wait, and a 503 does too. Free accounts get 1 request a second, shared by all the account's keys. Put a retry rule in the system prompt so the agent waits that long and tries again instead of looping.
### What are the data-use terms for search results?
Data is collected from publicly available sources and returned as found at the time of the call. How you use results is your responsibility, so check the terms that apply to your use case. Social, personal and SEO endpoints need you to accept the restricted-endpoint terms, and you shouldn't use personal data to contact people without a lawful basis.
claude mcp google search ai agents tool calling
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [AI Agent Tools: What an Agent Needs for Web Data](https://perceptlayer.com/blog/ai-agent-tools-web-data)
An agent tool is a name, a description, an input schema and a result. How search, lookup and fetch tools map to three MCP tools, two of them free.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 13 Oct 2026 Updated 10 Nov 2026 Perceptlayer 7 min read
## [What Is an MCP Server? A Working Example with Web Data](https://perceptlayer.com/blog/what-is-an-mcp-server)
An MCP server exposes tools, resources and prompts to AI apps over stdio or Streamable HTTP. See a real tools/list and tools/call, and what each costs.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 26 Sept 2026 Perceptlayer 7 min read
## [MCP Server Too Many Tools: Keeping Agent Context Small](https://perceptlayer.com/blog/mcp-too-many-tools-context)
One tool per endpoint for 1,659 endpoints is about 567,000 characters of schema. A 10-step checklist to keep an MCP server's tool list small.
---
title: "Craigslist API: Get Classified Postings as JSON"
description: "Search Craigslist postings by site, category and price as JSON, then poll for new ones. A real response, the parameters and the credit cost."
url: https://perceptlayer.com/blog/craigslist-api-postings-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Craigslist API: Get Classified Postings as JSON
3 Jul 2026 Updated 26 Oct 2026 Perceptlayer 8 min read
Craigslist's documented developer interface is for submitting ads, not reading them, but you can get its classified postings as JSON with four GET calls: `sites`, `categories`, `search` and `posting`. Each call costs 1 credit, and a failed call costs nothing. This guide walks through them in order, shows a real search response, and ends with a polling loop that watches a category for new postings and a worked credit budget for it.
## Key takeaways
- The Craigslist API has 4 endpoints, `/v1/craigslist/sites`, `/categories`, `/search` and `/posting`, and each successful call costs 1 credit.
- `search` filters by `site`, `subarea`, `category`, `query`, `min_price`, `max_price`, `sort` and `page`, and returns `total`, `page`, `has_more` and a `results` array.
- Use the `sites` and `categories` endpoints to look up the values you pass to `search`, so you never hard-code a guess.
- A poll every 15 minutes is 96 calls a day, or 2,880 credits over 30 days, before any `posting` lookups.
- Failed calls return `X-Credits-Used: 0`, so a retry loop around a 429 or 503 doesn't bill you for the failures.
## Is there an official Craigslist API?
None that we know of for reading postings. The interface Craigslist documents is a [bulk posting interface](https://www.craigslist.org/about/bulk_posting_interface) for submitting ads, which is a different job from searching them, and its [terms of use](https://www.craigslist.org/about/terms.of.use) are worth reading before you build anything on top of the site. If you need to read postings as structured data, the options are a scraper you maintain or an API that returns them already parsed.
The Perceptlayer [Craigslist API](https://perceptlayer.com/apis/craigslist) is the second option. It returns JSON with named fields instead of HTML, and data is collected from publicly available sources and returned as found at the time of the call. If you're weighing the two approaches, [what maintaining a scraper involves](https://perceptlayer.com/blog/scraper-vs-api-maintenance-cost) lays out the ongoing work.
## What does each Craigslist endpoint return?
The four endpoints map onto how you'd browse the site by hand: pick a city, pick a section, search, open a posting. All four are `GET` requests under `https://api.perceptlayer.com`, all cost 1 credit per successful call, and none has required parameters except `posting`, which needs an `id`.
| Endpoint | Returns | Credits | Required | Optional |
| --- | --- | --- | --- | --- |
| `/v1/craigslist/sites` | Craigslist sites (cities and regions) | 1 | none | `country`, `query` |
| `/v1/craigslist/categories` | Posting categories | 1 | none | `query` |
| `/v1/craigslist/search` | Search results | 1 | none | `site`, `subarea`, `category`, `query`, `min_price`, `max_price`, `sort`, `page` |
| `/v1/craigslist/posting` | One posting | 1 | `id` | none |
Each endpoint also has its own page with a playground: [Sites](https://perceptlayer.com/apis/craigslist/sites), [Categories](https://perceptlayer.com/apis/craigslist/categories), [Search](https://perceptlayer.com/apis/craigslist/search) and [Posting](https://perceptlayer.com/apis/craigslist/posting). The API belongs to the [Marketplaces](https://perceptlayer.com/verticals/marketplaces) area of the catalogue.
## How do you find the right site and category?
Call `sites` and `categories` once, filter them with `query`, and store the values you need. The `site` and `category` parameters on `search` take short codes, and looking them up beats guessing. The recorded search below uses `site=portland` and `category=bia`, and its results report `portland` as the site and `mlt` as the sub-area.
```bash
# Which sites match "portland"?
curl "https://api.perceptlayer.com/v1/craigslist/sites?query=portland" \
-H "X-API-Key: $API_KEY"
# Which categories match "bike"?
curl "https://api.perceptlayer.com/v1/craigslist/categories?query=bike" \
-H "X-API-Key: $API_KEY"
```
`sites` also takes a `country` filter, and `query` is capped at 100 characters on both endpoints. Store the values you get back rather than looking them up on every poll. Run the two calls once and the 2 credits are a setup cost, not a per-poll cost. If you're new to the key and headers, [authentication](https://docs.perceptlayer.com/authentication) covers them, and the [quick start](https://docs.perceptlayer.com/quickstart) gets a first call running.
## Which parameters does the search endpoint take?
`GET /v1/craigslist/search` takes eight optional parameters, so a bare call is valid, but you'll nearly always set `site` and `category`. Filters combine: a site, a category, a text query and a price range narrow the result set before it reaches you, which keeps pages short and credits low.
| Parameter | Type | Notes |
| --- | --- | --- |
| `site` | string | A site from the `sites` endpoint, such as `portland` |
| `subarea` | string | A sub-area within a site, such as `mlt` in the recorded response |
| `category` | string | A category from the `categories` endpoint, such as `bia` |
| `query` | string | Search text, up to 200 characters |
| `min_price` | integer | Lower price bound |
| `max_price` | integer | Upper price bound |
| `sort` | string | One of `date`, `dateoldest`, `rel`, `priceasc`, `pricedsc` |
| `page` | integer | Page number, starting from the `page` value in the response |
The `sort` values are the lever for monitoring. For a poller, `date` is the one to start with. The reference doesn't spell out how each value orders results, so check the order on your first response before you rely on it.
## What does a search response look like?
A search returns a `data` object with the match count and a `results` array of postings. Here's a real call for bikes between 50 and 300 dollars in Portland, followed by an excerpt of the recorded response, trimmed with `…`.
```bash
curl "https://api.perceptlayer.com/v1/craigslist/search?site=portland&category=bia&query=bike&min_price=50&max_price=300" \
-H "X-API-Key: $API_KEY"
```
```json
{
"success": true,
"data": {
"total": 821,
"page": 1,
"per_page": 360,
"has_more": true,
"results": [
{
"position": 1,
"id": "wnD16b4hEY7DaHprfGYGAg",
"posting_id": 7988730852,
"title": "21\" Specialized Sirrus A1 commuter",
"url": "https://www.craigslist.org/view/wnD16b4hEY7DaHprfGYGAg",
"price": 250,
"currency": "USD",
"images": [
"https://images.craigslist.org/00s0s_f9B6cl8tXrr_0Cz0t2_600x450.jpg"
],
"slug": "portland-21-specialized-sirrus-a1",
"location": {
"name": "multnomah county",
"site": "portland",
"subarea": "mlt",
"latitude": 45.56,
"longitude": -122.6001
},
"bumped_at": "2026-10-23T20:30:33Z"
},
…
]
},
"meta": {
"endpoint_family": "search",
"billable": true
}
}
```
The fields that matter for most jobs are `title`, `price` with `currency`, `images`, `location` (with `latitude` and `longitude`) and `bumped_at`. There are two identifiers: `id`, a string, and `posting_id`, an integer. In the recorded response, `total` was 821 and `has_more` was `true`, so one call is a window onto a larger set, and `page` moves through it. For a safe page loop, see [paginating a web data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python).
## How do you fetch a single posting?
Call `GET /v1/craigslist/posting` with the posting's `id`, the one required parameter on any Craigslist endpoint. It costs 1 credit and returns that one posting, which is the call to make when you already have an `id` from a search and want that posting on its own.
```bash
curl "https://api.perceptlayer.com/v1/craigslist/posting?id=wnD16b4hEY7DaHprfGYGAg" \
-H "X-API-Key: $API_KEY"
```
We don't have a recorded `posting` response to quote here, so run it in the playground on the [Posting page](https://perceptlayer.com/apis/craigslist/posting) to see its exact fields before you write a parser. Treat `posting` as the second step, not the first: search results already carry title, price, photos and location, so fetch a posting on its own only when you've decided you care about it. That alone cuts a monitoring job's credit use sharply.
## How do you poll for new postings?
Run a `search` with `sort=date` on a timer, remember the `id` values you've already seen, and treat anything new as a fresh posting. The loop below uses the Python `requests` library, honours `Retry-After` on a 429 or 503, and prints new postings; swap the print for a database write or a notification.
```python
import os
import time
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
PARAMS = {
"site": "portland",
"category": "bia",
"query": "bike",
"min_price": 50,
"max_price": 300,
"sort": "date",
}
INTERVAL = 15 * 60 # seconds between polls
seen = set()
first_run = True
while True:
resp = requests.get(
f"{BASE}/v1/craigslist/search", headers=HEADERS, params=PARAMS, timeout=30
)
if resp.status_code in (429, 503):
time.sleep(int(resp.headers.get("Retry-After", 30)))
continue
resp.raise_for_status()
for item in resp.json()["data"]["results"]:
if item["id"] in seen:
continue
seen.add(item["id"])
if not first_run:
print(item["price"], item["title"], item["url"])
first_run = False
print("credits left:", resp.headers.get("X-Credits-Remaining"))
time.sleep(INTERVAL)
```
The first pass only fills `seen`, so you don't get the whole current page as "new". If `sort=date` returns the newest first, as you should confirm on your first response, page 1 is enough as long as fewer new postings arrive between polls than one page holds. If your category is busier than that, shorten the interval or narrow it with `subarea` or a tighter price range. A timeout on the client side may mean the call succeeded and was billed, since requests have no idempotency key; the next poll simply picks up whatever you missed. [Retrying without paying twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers the edge cases, and [errors](https://docs.perceptlayer.com/errors) lists every code.
## What does polling cost in credits?
Every poll is one `search` call at 1 credit, so the cost is the number of polls plus any `posting` lookups. You choose the interval, and the arithmetic is simple enough to do before you start. The table assumes one search per poll and no detail lookups.
| Interval | Calls per day | Credits over 30 days |
| --- | --- | --- |
| Every 60 minutes | 24 | 720 |
| Every 15 minutes | 96 | 2,880 |
| Every 5 minutes | 288 | 8,640 |
You get 100 free credits once, after you verify an email address, so an hourly poll of one search (24 credits a day) runs on them for the first 4 days (4 × 24 = 96). After that it needs a pack. Polling every 15 minutes for 30 days is 96 × 30 = 2,880 credits, which is within the smallest pack, Starter, of 10,000 credits. Purchased credits last 12 months, there's no subscription, and [pricing](https://perceptlayer.com/pricing) has what credits cost.
Add detail lookups on top. If 150 new postings turn up in a month and you fetch each one with `posting`, that's 150 × 1 credit = 150 more credits. Every response carries `X-Credits-Used` and `X-Credits-Remaining`, so the loop above can stop itself when the balance gets low. See [credits](https://docs.perceptlayer.com/credits) for how billing works.
A job like this is also a request-rate question. One search every few minutes is far below the 1 request a second a free account gets, but if you run many sites and categories at once, stagger them. The [rate limits](https://docs.perceptlayer.com/rate-limits) page has the headers to watch.
## When should you not use this?
If you only need a handful of postings once, the free tier and the playground are enough, and you don't need a loop. If you're building something that reaches out to the people who posted, stop and read the site's terms and the law that applies to you first: the data here is for analysis such as price tracking and market research, not for contacting individuals.
For a different marketplace shape, the same pattern applies to [eBay search results](https://perceptlayer.com/blog/ebay-item-search-data-json), and [deduplicating listings across sources](https://perceptlayer.com/blog/deduplicate-listings-across-sources) helps when the same item appears in more than one place. Next step: [get a free API key](https://perceptlayer.com/signup), then run the `sites` call above in the playground on the [Craigslist API page](https://perceptlayer.com/apis/craigslist).
## APIs in this post
- [Craigslist **1 credit per call** · 4 endpoints](https://perceptlayer.com/apis/craigslist)
## Frequently asked questions
### Is there a Craigslist API for searching postings?
Craigslist documents a bulk posting interface for submitting ads, but we know of no documented endpoint for searching them. Perceptlayer's Craigslist API covers that with four endpoints ( `sites`, `categories`, `search` and `posting`) that return postings as JSON, each costing 1 credit per successful call.
### How much does a Craigslist API call cost?
Every Craigslist endpoint costs 1 credit per successful call, and failed calls cost nothing and return `X-Credits-Used: 0`. The free tier includes 100 credits after email verification, with no credit card. A 15-minute polling loop uses 2,880 credits over 30 days.
### Can I filter Craigslist results by price and location?
Yes. `search` accepts `min_price` and `max_price` as integers, plus `site` and `subarea` for location, `category` for the section and `query` for text. Each result also carries a `location` object with a name, site, sub-area, `latitude` and `longitude`.
### How do I get more than one page of results?
Pass `page` as an integer on `search`. The response includes `total`, `page`, `per_page` and `has_more`, so loop while `has_more` is `true`. Each page is a separate call at 1 credit, so budget pages the same way you budget polls.
### What happens when I hit the rate limit?
You get a 429 with a `Retry-After` header giving the seconds to wait, and the rejected call isn't billed. Free accounts get 1 request a second, and paying accounts run at least 5 a second. Limits are per account, shared by all its keys.
### Should I build a Craigslist scraper instead?
You can, but a Craigslist scraper is yours to keep working: page markup changes, request limits apply, and Craigslist's terms govern how you collect postings. The search endpoint returns postings as named JSON fields for 1 credit per successful call. A scraper makes sense only for data the endpoint doesn't return; run the endpoint in the playground first to compare.
craigslist classifieds marketplaces listings polling
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 28 Oct 2026 Perceptlayer 8 min read
## [Craigslist Scraper or API: Watching New Postings](https://perceptlayer.com/blog/craigslist-scraper-vs-api)
Compare a Craigslist scraper with four endpoints at 1 credit a call: a recorded Portland bike search with 821 results, bumped\_at times and a 3-call sweep.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 28 Sept 2026 Perceptlayer 7 min read
## [Kleinanzeigen API: Search German Classifieds as JSON](https://perceptlayer.com/blog/kleinanzeigen-api-search-json)
Search Kleinanzeigen ads by query, city, category and price range with one GET call. Parameters, a real response and the cost: 1 credit per call.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Jul 2026 Updated 10 Nov 2026 Perceptlayer 8 min read
## [eBay API: Search Results, Items and Autocomplete as JSON](https://perceptlayer.com/blog/ebay-item-search-data-json)
Use the eBay API to get search results, items and autocomplete as JSON with one key. Real parameters, a recorded response and the cost: 1 credit per call.
---
title: "Zillow Listings API: Get Property Data as JSON"
description: "One GET to /v1/zillow/search returns listings near a point as JSON with price, beds, baths and address. Parameters, a real response, 1 credit per call."
url: https://perceptlayer.com/blog/zillow-listings-api-json
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Zillow Listings API: Get Property Data as JSON
3 Jul 2026 Updated 10 Nov 2026 Perceptlayer 9 min read
You can get Zillow listings as JSON with one GET request to `/v1/zillow/search` on the Perceptlayer API. Pass a latitude, longitude and radius, and the response lists properties with address, price, bedrooms, bathrooms and photos. Each successful call costs 1 credit, and a failed call costs nothing. This guide shows the request, the parameters, a trimmed real response and the cost in credits.
## Key takeaways
- `GET /v1/zillow/search` takes a point and radius ( `latitude`, `longitude`, `radius_mi`) or a bounding box, and returns listings under `data.listings`.
- Filters include `min_price`, `max_price`, `min_beds`, `min_baths`, `home_statuses[]` and `sort_order`. All of them are optional.
- Look up one property with `GET /v1/zillow/property?zpid[]=`, using the `zpid` from a search result.
- Every Zillow endpoint costs 1 credit per successful call: 1,000 calls × 1 credit = 1,000 credits. See [pricing](https://perceptlayer.com/pricing) for what credits cost.
- The free tier gives 100 credits after you verify an email address. No credit card.
## Is there an official Zillow listings API?
Zillow Group runs a [developer site](https://www.zillowgroup.com/developers/) that lists APIs for MLS listings, rentals feeds, public data and Zestimates, offered to the public and to partners. Those programs have their own terms and eligibility. If your use fits one, check that route first, because it's the authoritative one.
If you aren't, or you need a plain search-by-location call returning JSON today, that's the gap the Perceptlayer [Zillow API](https://perceptlayer.com/apis/zillow) fills. It exposes 10 endpoints under one key, with the same authentication and credit model as every site in the catalogue: Zillow is one of 480 websites and 2,782 endpoints in the catalogue.
Data is collected from publicly available sources and returned as found at the time of the call. Listing fields can change between calls, so store the timestamp of each pull.
## How do you get a key and make the first call?
Sign up, verify your email and copy a key that starts with `sk_live_`. Send it in the `X-API-Key` header on every request. If you can't set headers, the `api_key` query parameter works instead. The free tier is 100 credits on signup, enough for 100 Zillow calls, so you can run everything below without paying. The [authentication docs](https://docs.perceptlayer.com/authentication) cover both options.
[Get a free API key](https://perceptlayer.com/signup), export it, then run this search for listings within 5 miles of a point in Seattle (latitude 47.6062, longitude -122.3321):
```bash
export API_KEY=sk_live_your_key_here
curl "https://api.perceptlayer.com/v1/zillow/search?latitude=47.6062&longitude=-122.3321&radius_mi=5&listing_category=category1&page_size=20" \
-H "X-API-Key: $API_KEY"
```
The response is JSON with a `data` object. The listings sit in `data.listings`, one object per property. The [requests docs](https://docs.perceptlayer.com/requests) explain the general conventions that apply to every endpoint.
## Which parameters does the search endpoint take?
`/v1/zillow/search` has no required parameters, but you'll always want to say where to look. Use a centre point with `radius_mi`, a bounding box made of four coordinates, `region_ids[]`, or a `polygon` string. Everything else narrows the results by price, size, status or keyword. The table groups all 29 parameters by job.
| Group | Parameter | Type |
| --- | --- | --- |
| Point and radius | `latitude`, `longitude`, `radius_mi` | number |
| Bounding box | `north_latitude`, `south_latitude`, `east_longitude`, `west_longitude` | number |
| Region | `region_ids[]` | list of integer |
| Region | `region_id_type` | integer |
| Shape | `polygon` | string |
| Category | `listing_category` | string: `all`, `category1`, `category2` |
| Status | `home_statuses[]` | list of string |
| Status | `include_off_market`, `allow_empty` | boolean |
| Price | `min_price`, `max_price` | integer |
| Size | `min_beds`, `max_beds`, `min_baths`, `max_baths` | integer |
| Size | `living_area_min`, `lot_size_min`, `year_built_min` | integer |
| Text | `keywords` | string |
| Map | `zoom_level` | integer |
| Sorting | `sort_order` | string, see below |
| Sorting | `sort_ascending` | boolean |
| Paging | `page`, `page_size` | integer |
`sort_order` accepts one of `baths`, `yearBuilt`, `price`, `relevance`, `beds`, `daysOn`, `featured`, `livingArea`, `lotArea`, `nearby`, `recentlyChanged`, `rentalDays` or `rentalPriorityScore`.
`category1` selects sale listings and `category2` selects rent listings, per the recorded response. The example request above uses `category1`, and every listing in the response below carries `"listingCategory": "category1"` and a `forSale` status. The response also reports category counts, but they're cross-mapped: a `category1` (sale) request reports the `category2` (rent) counts, as a note in the recorded response said. Don't read `listing_category_counts` as the totals for the category you asked for.
### Narrowing the search
Add filters as plain query parameters. This request asks for homes with at least 3 bedrooms and 2 bathrooms between $500,000 and $900,000, sorted by price:
```bash
curl "https://api.perceptlayer.com/v1/zillow/search?latitude=47.6062&longitude=-122.3321&radius_mi=5&min_price=500000&max_price=900000&min_beds=3&min_baths=2&sort_order=price&sort_ascending=true&page_size=20" \
-H "X-API-Key: $API_KEY"
```
A tight filter can return few or no listings, so loosen one filter at a time if a search comes back thin. The search endpoint also takes an `allow_empty` boolean.
## What does a search response look like?
The response wraps results in `data.listings`. Each listing carries a `zpid` (the property ID), a `location`, an `address`, a `media` block with photo links, and the facts a valuation or lead tool needs: `bedrooms`, `bathrooms`, `livingArea`, `yearBuilt`, `propertyType`, a `listing` status object and a `price` object. This is a trimmed excerpt of a recorded response to the Seattle request above:
```json
{
"data": {
"listings": [
{
"zpid": 2068074790,
"location": {
"latitude": 47.592564,
"longitude": -122.386925
},
"address": {
"streetAddress": "1124 Sunset Avenue SW",
"zipcode": "98116",
"city": "Seattle",
"state": "WA"
},
"media": { … },
"currency": "usd",
"country": "usa",
"bestGuessTimeZone": "America/Los_Angeles",
"bathrooms": 6,
"bedrooms": 4,
"livingArea": 7870,
"yearBuilt": 2015,
"lotSizeWithUnit": {
"lotSize": 0.2652,
"lotSizeUnit": "acres"
},
"propertyType": "singleFamily",
"listing": {
"listingStatus": "forSale",
"marketingStatus": "active",
"palsId": "39001_2591845"
},
"price": {
"value": 14000000,
"pricePerSquareFoot": 1779
…
```
Field names are camelCase and nested. Price is at `price.value`, the street at `address.streetAddress`, and the lot size is an object with a value and a unit. The excerpt also holds media flags and recommendation blocks that we've cut with `…`. Treat any field you don't see in your own response as absent, and check for it in code rather than assuming it's there.
Some fields appear only on some listings. In the recorded response, the first listing has `estimates.zestimate` (13068300) but no `taxAssessment`, while the second has `taxAssessment` ( `taxAssessedValue` 949000, `taxAssessmentYear` "2025") but no `estimates` block. A parser that reads either one unguarded will fail on half the results. For how fields like these feed a valuation model, see [Real Estate Listing Data: Fields That Matter for Valuation](https://perceptlayer.com/blog/real-estate-listing-data-valuation-fields).
### Fields outside the listings
After the `listings` array, the `data` object carries paging and context fields. This is the tail of the same recorded response, trimmed with `…`:
```json
"count": 20,
"total_matching_count": 2058,
"page": 1,
"page_size": 20,
"listing_category_counts": [
{
"totalMatching": 56,
"listingCategory": "category2"
}
],
"freshness": [
"Based on information submitted to the MLS GRID as of 2026-10-21 06:24:36 PDT. …"
],
"paging_note": "page * page_size must not exceed 1000; up to 1000 rows come back in one request."
```
`count` is the number of listings in this page (20), and `total_matching_count` is how many properties matched the search (2,058 here). `freshness` holds the MLS as-of note, a timestamp for the underlying listing data, so store it next to your own pull time. `paging_note` states the paging limit covered in the Python section below.
## How do you fetch one property by ID?
Take the `zpid` from a search result and pass it to `/v1/zillow/property`. The endpoint has no required parameters and accepts a `zpid[]` list. Per-endpoint pages, such as [Zillow API: Property](https://perceptlayer.com/apis/zillow/property), list the parameters and let you try the call.
```bash
curl "https://api.perceptlayer.com/v1/zillow/property?zpid[]=2068074790" \
-H "X-API-Key: $API_KEY"
```
We haven't recorded a property response for this guide, so we won't show one. Run the call on your own key and inspect the JSON before you map fields.
The other Zillow endpoints follow the same pattern:
| Endpoint | Use it for | Credits |
| --- | --- | --- |
| `/v1/zillow/autocomplete` | Turn a typed place name into suggestions ( `query` required) | 1 |
| `/v1/zillow/photos` | Photos for one or more `zpid[]` | 1 |
| `/v1/zillow/photo` | One photo by `photo_id`, with optional `size` | 1 |
| `/v1/zillow/building` | A building by `slug`, `lot_id` or coordinates | 1 |
| `/v1/zillow/schools` | Schools by ID or bounding box | 1 |
| `/v1/zillow/market-data` | Market statistics ( `family` and `geography` required) | 1 |
## How do you call it from Python?
The same request in Python needs only `requests`. This script searches around the same Seattle point, then prints address, bedrooms and price for each listing. It reads the key from the environment and checks the status before parsing, so a failed call raises an error instead of returning bad data.
```python
import os
import requests
resp = requests.get(
"https://api.perceptlayer.com/v1/zillow/search",
headers={"X-API-Key": os.environ["API_KEY"]},
params={
"latitude": 47.6062,
"longitude": -122.3321,
"radius_mi": 5,
"listing_category": "category1",
"page_size": 20,
},
timeout=30,
)
resp.raise_for_status()
for item in resp.json()["data"]["listings"]:
print(
item.get("zpid"),
(item.get("address") or {}).get("streetAddress"),
item.get("bedrooms"),
(item.get("price") or {}).get("value"),
)
```
The `timeout=30` matters more than it looks. If the client gives up, the request may still have succeeded and been billed, because requests have no idempotency key. Check `X-Credits-Remaining` before you resend, and see [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) for a safe pattern.
To page through more results, increase `page` and keep `page_size` fixed, but mind the limit in the recorded response: `page * page_size` must not exceed 1000. With `page_size=20` you can reach page 50 and no further, and the recorded search matched 2,058 properties, more than one search can return. To cover a large area, split it into smaller searches (a tighter radius, a bounding box per neighbourhood, or price bands) rather than paging deeper. Each page is its own call and its own credit, so pick the smallest `page_size` that covers your need. [Paginate a Web Data API in Python](https://perceptlayer.com/blog/paginate-web-data-api-python) shows a safe page loop.
## What does it cost per 1,000 calls?
Every Zillow endpoint costs 1 credit per successful call, so 1,000 search calls use 1,000 credits. Failed calls cost nothing and come back with `X-Credits-Used: 0`. The free tier of 100 credits on signup, granted once, covers the first 100 calls. Beyond that, purchased credits last 12 months, with no subscription and no seats. The [credits docs](https://docs.perceptlayer.com/credits) and [pricing page](https://perceptlayer.com/pricing) have the detail.
| Plan | Credits | Search calls at 1 credit |
| --- | --- | --- |
| Free tier | 100, once | 100 |
| Starter | 10,000 | 10,000 |
| Growth | 200,000 | 200,000 |
| Scale | 1,000,000 | 1,000,000 |
A worked example: refreshing 10 search areas twice a day for 30 days is 10 × 2 × 30 = 600 calls × 1 credit = 600 credits. The free tier covers its first 5 days, and the Starter pack's 10,000 covers a year of it (12 × 600 = 7,200). A job making 10,000 calls a month uses 10,000 × 1 credit = 10,000 credits, which equals one Starter pack. Check [pricing](https://perceptlayer.com/pricing) for what each pack costs. If the same areas repeat, [caching API responses](https://perceptlayer.com/blog/cache-web-data-api-responses) cuts the credits you spend.
## What happens when a call fails?
A failed call returns an HTTP status and a JSON body shaped as `{"error": {"code", "message", "request_id"}}`, and it isn't billed. The codes you'll most likely meet are `invalid_api_key` (401), `insufficient_credits` (402), `invalid_parameters` (422), `rate_limited` (429) and `source_error` (502). The [errors docs](https://docs.perceptlayer.com/errors) list all of them.
Handle them by code, not by message text. Retry `rate_limited`, `source_error` and `temporarily_unavailable` (503) with a growing delay between attempts. The 429 and 503 responses carry a `Retry-After` header with the seconds to wait, so use it instead of guessing. A client timeout is different: with no response, you don't know the outcome, and requests have no idempotency key, so the call may have succeeded and been billed. Check `X-Credits-Remaining` before you resend. [Retry Web API Calls Without Paying Twice](https://perceptlayer.com/blog/retry-web-api-calls-without-paying-twice) covers this in detail. A 429 is the standard "too many requests" status, defined in [RFC 6585](https://www.rfc-editor.org/rfc/rfc6585#section-4) (2012). Fix `invalid_parameters` before you retry, since repeating the same request will fail the same way. See the [rate limits docs](https://docs.perceptlayer.com/rate-limits) for the limits on your key.
## Can an AI agent call these endpoints?
Yes. The MCP server at `https://perceptlayer.com/mcp` exposes `search_endpoints`, `get_endpoint` and `call_endpoint`, so an agent can find the Zillow search endpoint and call it without custom glue code. In Claude Code, add it with the command below, then ask for listings in a city. The [MCP docs](https://docs.perceptlayer.com/ai-agents) cover other clients.
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp --header "Authorization: Bearer $API_KEY"
```
Only successful calls are billed and failed calls cost nothing, so cap the number of calls a task may make. [AI Agent API Cost Control](https://perceptlayer.com/blog/ai-agent-web-data-costs) shows how. For more real estate sources, see the [real estate APIs](https://perceptlayer.com/verticals/real-estate), and for similar guides browse the [API guides](https://perceptlayer.com/blog/category/api-guides).
Ready to try it? [Get a free API key](https://perceptlayer.com/signup), run the Seattle search above, and check the [Zillow API page](https://perceptlayer.com/apis/zillow) for the other nine endpoints.
## APIs in this post
- [Zillow **1 credit per call** · 20 endpoints](https://perceptlayer.com/apis/zillow)
## Frequently asked questions
### Does Zillow have a public API for listings?
Zillow Group lists official APIs on its [developer site](https://www.zillowgroup.com/developers/), covering MLS listings, rentals feeds, public data and Zestimates, for the public and for partners. If you qualify for a program, use it. If you need a key-based search call that returns JSON now, the Perceptlayer Zillow API provides one.
### How much does one Zillow search call cost?
One credit per successful call, so 1,000 calls × 1 credit = 1,000 credits. Packs start at 10,000 credits (Starter), and [pricing](https://perceptlayer.com/pricing) shows what credits cost. The free tier includes 100 credits after you verify an email address, with no credit card. Failed calls return `X-Credits-Used: 0`.
### How do I search by area instead of a radius?
Use the bounding box: `north_latitude`, `south_latitude`, `east_longitude` and `west_longitude`. You can also pass `region_ids[]` with `region_id_type`, or a `polygon` string. All are optional parameters on `/v1/zillow/search`, and each search is one call and one credit.
### Can I filter by price and bedrooms?
Yes. Use `min_price` and `max_price` for price, and `min_beds`, `max_beds`, `min_baths` and `max_baths` for rooms. Add `living_area_min`, `lot_size_min` or `year_built_min` to cut further. Combine them in one request and you still pay one credit.
### Is the data complete and current?
Data is collected from publicly available sources and returned as found at the time of the call. We don't promise completeness or freshness beyond that. For anything time-sensitive, such as a price change, call again and compare against your stored copy.
### Should I build a Zillow scraper instead?
Only if you need a page this API doesn't cover. A Zillow scraper is yours to maintain: page markup changes, requests get blocked, and Zillow's terms of use apply to how you collect data. The search and property endpoints return named JSON fields for 1 credit per successful call, and failed calls cost nothing, so try them in the playground on the Zillow API page first.
zillow real estate listings property data api
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 15 Nov 2026 Perceptlayer 7 min read
## [Realtor.com API: Property Listings as JSON](https://perceptlayer.com/blog/realtor-com-api-listings-json)
Watch new Realtor.com listings with the search endpoint: list\_price, beds, sqft, list\_date and coordinates as JSON, at 1 credit per call.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 22 Sept 2026 Perceptlayer 6 min read
## [Realestate.com.au API: Australian Listings as JSON](https://perceptlayer.com/blog/realestate-com-au-api-listings)
Search realestate.com.au by location and channel (buy, rent, sold), then open each listing by URL. Parameters, a recorded Sydney response and the cost.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 17 Nov 2026 Perceptlayer 7 min read
## [Homes.com API: Listings and Neighborhoods as JSON](https://perceptlayer.com/blog/homes-com-api-listings-json)
Search Homes.com listings by location, beds and price at 1 credit a call: a recorded Austin search with price, sqft and list\_date, plus neighborhood lookups.
---
title: "Capterra API: Software Reviews and Comparisons as JSON"
description: "Find a product with products-search, pull its reviews filtered by country, company size and time used, and compare two products, at 1 credit per call."
url: https://perceptlayer.com/blog/capterra-api-software-reviews
---
[Blog](https://perceptlayer.com/blog) / [API guides](https://perceptlayer.com/blog/category/api-guides)
# Capterra API: Software Reviews and Comparisons as JSON
1 Jul 2026 Perceptlayer 7 min read
Capterra doesn't offer a public API for reading its software reviews. To get them as JSON, the Perceptlayer Capterra API has 10 GET endpoints at 1 credit per successful call: find a product with `/v1/capterra/products-search` ( `q`), read its reviews with `/v1/capterra/products-reviews` ( `id`), and put two products side by side with `/v1/capterra/compare` ( `product_a`, `product_b`). Reviews filter by country, company size, time used and minimum rating.
## Key takeaways
- The flow is `products-search` with `q` (up to 100 characters), then `products-detail` and `products-reviews` with the product `id`.
- `products-reviews` filters with `countries[]`, `company_size[]` (codes `A` to `I`), `time_used[]` ( `FreeTrial` to `MoreThan2Years`) and `overall_rating_ge`, and sorts by `most_helpful` or `most_recent`.
- `compare` takes two integer product IDs, `product_a` and `product_b`, with optional slugs.
- For a whole category, `categories-products` lists products by category `id`, sorted by `popularity`.
- All 10 endpoints cost 1 credit per successful call. Reviews for the top 20 products in a category at 5 pages each is 100 credits, plus the category pages.
## Does Capterra have an official API?
Not for reading reviews: we couldn't find a public API that returns Capterra's reviews to any developer who signs up. Ownership is also changing: in January 2026, G2 announced it had agreed to acquire Capterra, Software Advice and GetApp from Gartner, and said it would bring their data and offerings into its own platform ( [G2](https://company.g2.com/news/g2-acquires-capterra-software-advice-getapp), 2026). Vendor-side programmes may move as a result.
If you're a software vendor and want your own Capterra data, start with your Capterra account contact. If you need reviews, ratings and comparisons across products for competitive research or product work, the [Capterra API](https://perceptlayer.com/apis/capterra) returns them as JSON with one key. Data is collected from publicly available sources and returned as found at the time of the call.
## Which Capterra endpoints are there?
Ten GET endpoints, each 1 credit per successful call. Three find products (search, category listings and the full product list), three work on one product (detail, reviews, one review), one compares two products, and three browse the catalogue (categories, catalogue and vendors). The table shows each with its required parameters.
| Endpoint | Returns | Required |
| --- | --- | --- |
| [`/v1/capterra/products-search`](https://perceptlayer.com/apis/capterra/products-search) | Products matching a query | `q` |
| [`/v1/capterra/products-detail`](https://perceptlayer.com/apis/capterra/products-detail) | One product | `id` |
| [`/v1/capterra/products-reviews`](https://perceptlayer.com/apis/capterra/products-reviews) | A page of reviews | `id` |
| `/v1/capterra/products-reviews-detail` | One review | `id`, `reviewId` |
| [`/v1/capterra/compare`](https://perceptlayer.com/apis/capterra/compare) | Two products compared | `product_a`, `product_b` |
| [`/v1/capterra/categories-products`](https://perceptlayer.com/apis/capterra/categories-products) | Products in a category | `id` |
| `/v1/capterra/products` | The product list | none |
| [`/v1/capterra/categories`](https://perceptlayer.com/apis/capterra/categories) | Categories | none |
| [`/v1/capterra/catalog`](https://perceptlayer.com/apis/capterra/catalog) | Catalogue entries | none |
| `/v1/capterra/vendors` | Vendors | none |
The product endpoints accept an optional `slug` (up to 200 characters) next to the `id`. You don't need it to make a call, but storing both makes rows easier to read later.
## How do you find a product and its ID?
Call `GET /v1/capterra/products-search` with the product or vendor name as `q`. Add `page` and `limit` to page through matches. The results give you the product `id` the other endpoints take. This request searches for project management tools named Asana:
```bash
curl "https://api.perceptlayer.com/v1/capterra/products-search?q=asana&limit=5" \
-H "X-API-Key: $API_KEY"
```
Keys start with `sk_live_` and go in the `X-API-Key` header. [Get a free API key](https://perceptlayer.com/signup); the [authentication docs](https://docs.perceptlayer.com/authentication) cover the rest.
For a whole market rather than one product, use `GET /v1/capterra/categories-products` with a category `id` from `categories`, and `sort=popularity`. `categories` takes an optional `type` of `targets` or `super_industries`, and `products` takes `categoryIds[]`, `exclude[]` and `sortBy` ( `name` or `popularity`). The recorded `products` call, with `sortBy=popularity&limit=10&page=1`, shows what a product list returns. Its first entry, trimmed with `…`:
```json
{
"success": true,
"data": {
"products": [
{
"uuid": "9985c8b6-47d0-4328-b13d-a6d200b6686a",
"name": "Planview ProjectAdvantage",
"vendor": "Planview",
"published_on": ["Capterra", "GetApp", "SoftwareAdvice"],
"category_ids": ["13920971-cae5-47eb-8b98-47e5fb597970", "49d5abf4-bb03-4aed-a0fd-ce02288db64c", "4cadc6c5-d533-4af4-a9ac-a56ec6d5954c"],
"languages": ["de", "en", "es"],
"review_count": 72,
…
},
…
],
"page": 1,
"limit": 10,
"has_more": true
}
}
```
`review_count` tells you how many review pages a product is worth pulling, and `published_on` shows the product is listed on Capterra, GetApp and Software Advice. Products are identified by a `uuid` here, while `compare` takes integer IDs, so check in the playground on the [Capterra API page](https://perceptlayer.com/apis/capterra) which ID each endpoint expects. We haven't recorded the search, detail or reviews responses.
## How do you pull a product's reviews?
Call `GET /v1/capterra/products-reviews` with the product `id`. Everything else is optional: `page` for paging, `sort` for order, and four filters that narrow reviews to the reviewers you care about. A B2B review means more when you know who wrote it, so these filters are the useful part of the endpoint.
```bash
curl -G "https://api.perceptlayer.com/v1/capterra/products-reviews" \
-d id=$PRODUCT_ID -d sort=most_recent -d page=1 \
-d "countries[]=US" -d "time_used[]=MoreThan2Years" -d overall_rating_ge=1 \
-H "X-API-Key: $API_KEY"
```
| Parameter | Type | Notes |
| --- | --- | --- |
| `id` | string, required | Product ID from search |
| `slug` | string | Up to 200 characters |
| `page` | integer | Results page |
| `sort` | string | `most_helpful` or `most_recent` |
| `countries[]` | list of strings | Reviewer countries |
| `company_size[]` | list of strings | `A`, `B`, `C`, `D`, `E`, `F`, `G`, `H` or `I` |
| `time_used[]` | list of strings | `FreeTrial`, `LessThan6Months`, `LessThan12Months`, `LessThan2Years`, `MoreThan2Years` |
| `overall_rating_ge` | integer | Minimum overall rating |
The `company_size[]` codes are letters, and their bands aren't documented here, so map each letter to its band by trying it in the playground and reading the reviews it returns. The country code format isn't documented either; confirm it the same way. `time_used[]` is the one to reach for when you want reviews from long-term users rather than trial users: `MoreThan2Years` keeps only those. Filters don't make a review genuine, though. Fake and incentivised reviews are a known problem: the US Federal Trade Commission finalised a rule in 2024 banning fake reviews and rewards conditioned on a review's sentiment ( [FTC](https://www.ftc.gov/news-events/news/press-releases/2024/08/federal-trade-commission-announces-final-rule-banning-fake-reviews-testimonials), 2024), so look at rating distributions over time, not only averages.
To read one review in full, call `products-reviews-detail` with the product `id` and the `reviewId`.
## How do you compare two products?
Call `GET /v1/capterra/compare` with two product IDs as integers, `product_a` and `product_b`. The optional `slug_a` and `slug_b` take the slugs. This returns Capterra's comparison of the two, one call for the pair, which is cheaper than reconstructing it from two detail calls and two pages of reviews when all you need is the side-by-side.
```bash
curl "https://api.perceptlayer.com/v1/capterra/compare?product_a=$ID_A&product_b=$ID_B" \
-H "X-API-Key: $API_KEY"
```
Note the types: `compare` requires integers, while the other product endpoints take `id` as a string. If your IDs are stored as strings, they'll still work in the query string as long as they're digits; a non-numeric value fails with `invalid_parameters` (422) and costs nothing.
## How do you pull reviews for a whole category in Python?
List the category's products, then page through each product's reviews and save every page. The script below takes the product IDs as a list; fill it from `categories-products`, after checking in the playground which identifier `products-reviews` accepts as `id`. It sorts reviews `most_recent` so a later run can stop at reviews it already has.
```python
import json
import os
import requests
URL = "https://api.perceptlayer.com/v1/capterra/products-reviews"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
PRODUCT_IDS = ["PASTE_IDS_FROM_CATEGORIES_PRODUCTS"]
PAGES = 5
spent = 0
for pid in PRODUCT_IDS:
for page in range(1, PAGES + 1):
r = requests.get(URL, headers=HEADERS, timeout=60,
params={"id": pid, "page": page, "sort": "most_recent"})
if r.status_code != 200:
print(pid, page, r.json()["error"]["code"])
break
spent += int(r.headers["X-Credits-Used"])
with open(f"capterra-{pid}-p{page}.json", "w") as f:
json.dump(r.json(), f)
print("credits used:", spent)
```
We haven't run this script live for this article. Reviews are written by people, and the response carries what Capterra shows about each reviewer. Keep the rating, date, role, company size and text you need for analysis, and drop names unless you have a reason and a lawful basis to keep them.
## What does a category-wide review pull cost?
One credit per successful call, so the cost is pages of products plus pages of reviews. Take the 20 most popular products in a category, found in 1 to 2 `categories-products` pages, with 5 pages of reviews each. That's 2 + 20 × 5 = 102 credits. Add a detail call per product and 10 head-to-head comparisons, and it's 132.
| Step | Calls | Credits |
| --- | --- | --- |
| `categories-products`, 2 pages | 2 | 2 |
| `products-reviews`, 5 pages × 20 products | 100 | 100 |
| `products-detail` × 20 | 20 | 20 |
| `compare` × 10 pairs | 10 | 10 |
| **Total** | **132** | **132** |
A weekly refresh that reads only page 1 of `most_recent` reviews for the same 20 products is 20 × 4 = 80 credits a month. The first pull is 32 credits more than the 100 free credits on signup, and the weekly refresh needs a pack: a year of it, 960 credits, fits in the Starter pack's 10,000. Failed calls cost nothing. The [credits docs](https://docs.perceptlayer.com/credits) explain the balance, and [pricing](https://perceptlayer.com/pricing) has what credit packs cost. For app reviews alongside B2B ones, the [Google Play Store API guide](https://perceptlayer.com/blog/google-play-store-api) and the [Trustpilot reviews guide](https://perceptlayer.com/blog/trustpilot-reviews-api) cover two more sources.
To try it, run a product search in the playground on the [Capterra API page](https://perceptlayer.com/apis/capterra).
## APIs in this post
- [Capterra **1 credit per call** · 10 endpoints](https://perceptlayer.com/apis/capterra)
## Frequently asked questions
### How much does the Capterra API cost?
Each of the 10 endpoints costs 1 credit per successful call, and failed calls cost nothing. Reviews for 20 products at 5 pages each, plus 2 category pages, is 102 credits. Every verified account gets 100 free credits on signup, and the [pricing page](https://perceptlayer.com/pricing) has what credit packs cost beyond that.
### Can I filter reviews by company size?
Yes, with `company_size[]` on `products-reviews`. It takes letter codes from `A` to `I`, and you can repeat the parameter for several bands. The bands each letter stands for aren't documented here, so check them in the playground before you label your data, and store the code you filtered on with each row.
### Does the API return the reviewer's name?
Reviews include whatever Capterra displays about the reviewer, so check a page in the playground to see exactly which fields. For competitive research you rarely need a name. Drop anything that identifies a person, keep attributes such as company size, and don't use review data to contact reviewers.
### What is the difference between compare and two detail calls?
`compare` returns Capterra's comparison of two products in one call, 1 credit. Two `products-detail` calls cost 2 credits and give each product's full record. Use `compare` for a side-by-side summary and detail calls when you need everything about each product.
### What happens if a product ID is wrong?
The call fails with an HTTP status and a JSON error with a `code`, a `message` and a `request_id`, and `X-Credits-Used` is 0, so you pay nothing. For `compare`, a non-integer `product_a` or `product_b` fails with `invalid_parameters` (422). The [errors docs](https://docs.perceptlayer.com/errors) list every code.
capterra software reviews b2b software reviews saas
## More from the blog
1. [API guides](https://perceptlayer.com/blog/category/api-guides) 2 Nov 2026 Perceptlayer 8 min read
## [Capterra Scraper or API: What You Get](https://perceptlayer.com/blog/capterra-scraper-vs-api)
A Capterra scraper vs 1-credit endpoints: a recorded products page with uuid, vendor, category\_ids and review\_count, and the cost of a daily review-count watch.
2. [API guides](https://perceptlayer.com/blog/category/api-guides) 7 Nov 2026 Perceptlayer 8 min read
## [Tripadvisor Scraper or API: What You Get](https://perceptlayer.com/blog/tripadvisor-scraper-vs-api)
A Tripadvisor scraper vs three 1-credit endpoints: a recorded search with location\_id, type, rating and review\_count, and the cost per place tracked.
3. [API guides](https://perceptlayer.com/blog/category/api-guides) 30 Oct 2026 Perceptlayer 7 min read
## [Trustpilot Scraper or API: Ratings and Review History](https://perceptlayer.com/blog/trustpilot-scraper-vs-api)
A Trustpilot scraper vs a 1-credit company-reviews call: the recorded Amazon response, its star breakdown, and 2,340 pages × 1 credit for a full history.
---
title: "Verify Agent Answers with Live Search: A Grounding Pattern"
description: "Check a model's claim against Google Search and Google News JSON with two calls (2 credits), and handle stale or conflicting sources honestly."
url: https://perceptlayer.com/blog/ground-agent-answers-live-search
---
[Blog](https://perceptlayer.com/blog) / [AI agents](https://perceptlayer.com/blog/category/ai-agents)
# Verify Agent Answers with Live Search: A Grounding Pattern
1 Jul 2026 Updated 24 Oct 2026 Perceptlayer 8 min read
Grounding an LLM with search results means checking each factual claim in a draft answer against live sources before it reaches the user. Extract the claim, run one web search and one news search, hand the model only those results, and make it return a verdict with URLs and dates. Two calls cost 2 credits per claim, and the hard part is not the retrieval but deciding what to do when the sources are old or disagree.
## Key takeaways
- Treat grounding as a verification step after the draft, not only as context before it: one `/v1/google-search/search` call plus one `/v1/google-news/news` call per claim.
- Keep the date with every result. News results carry `iso_date`; web snippets sometimes start with a date, and some don't.
- Return one of five verdicts: supported, contradicted, outdated, conflicting or unverified. "Unverified" is a valid answer.
- Checking a claim costs 2 credits (2 calls × 1 credit). Failed calls cost nothing.
- Search results are evidence, not truth. A snippet can be truncated, old or wrong, and the pattern has to say so.
## What does grounding an LLM with search results mean?
Grounding means the model's answer is tied to retrieved sources that a reader can open, instead of resting on training data alone. Retrieval-augmented generation, introduced in [Lewis et al.'s 2020 paper](https://arxiv.org/abs/2005.11401), supplies documents to the model at generation time. Hallucination, where fluent output is not supported by any source, is surveyed in [Ji et al.'s 2022 review](https://arxiv.org/abs/2202.03629).
Most grounding guides retrieve first and generate second. That works for questions you know in advance. This article covers the other direction: the agent has already drafted an answer, and a second pass checks the claims in it. It's cheaper to reason about, because each check is small, bounded and has an explicit pass or fail.
If you want the retrieve-first version, read [RAG with live web data](https://perceptlayer.com/blog/rag-with-live-web-data). The two combine well: retrieve to write, verify before you send.
## Why check claims after the draft instead of before?
A draft shows you which claims the model actually made, so you only spend calls on those. Pre-retrieval fetches pages for the topic and hopes the right fact is in them. Post-draft verification queries the exact statement, and a miss is visible: no supporting result means the claim stays unverified.
It also separates two jobs. The first pass writes. The second pass acts as a reviewer that sees only the claim and the evidence, not the conversation, so it can't be talked into agreeing with the draft.
The cost is latency. You make a second round trip, and you'll want to run the two searches concurrently. If you hit the request rate, [concurrent requests under rate limits](https://perceptlayer.com/blog/concurrent-api-requests-python-rate-limit) covers the loop. Rates are counted per minute, and every response carries `RateLimit-Remaining` and `RateLimit-Reset`; the [rate limits](https://docs.perceptlayer.com/rate-limits) docs cover the rest.
## How does the pattern work step by step?
Five steps: pull checkable claims out of the draft, turn each into a search query, fetch web and news results, compact them to the fields the judge needs, and ask the model for a verdict that cites the evidence. The model never sees raw JSON, only a short list of titles, URLs, snippets, sources and dates.
1. **Extract claims.** Ask the model for atomic, checkable statements: names, numbers, dates, "latest" and "first" claims. Skip opinions.
2. **Write a query per claim.** Short and specific beats a pasted sentence.
3. **Fetch two views.** The [Search endpoint](https://perceptlayer.com/apis/google-search/search) returns web results; the [News endpoint](https://perceptlayer.com/apis/google-news/news) returns articles with a publication timestamp.
4. **Compact.** Keep title, link, snippet, source and date. Drop thumbnails, tokens and pagination. [Trimming API responses for LLM context](https://perceptlayer.com/blog/trim-api-responses-llm-context) shows how much that saves.
5. **Judge.** Force a verdict from a fixed list and require a URL for every verdict except "unverified".
### The evidence fetcher
This Python collects both result sets for one query. It uses only parameters from the endpoint tables: `query` and `hl` for search, `q` and `hl` for news.
```python
import os
import requests
BASE = "https://api.perceptlayer.com"
HEADERS = {"X-API-Key": os.environ["API_KEY"]}
def get(path, **params):
r = requests.get(BASE + path, headers=HEADERS, params=params, timeout=30)
if r.status_code in (429, 503):
wait = r.headers.get("Retry-After")
raise RuntimeError(f"retry after {wait}s")
r.raise_for_status()
return r.json()
def evidence(query):
web = get("/v1/google-search/search", query=query, hl="en")
news = get("/v1/google-news/news", q=query, hl="en")
return {
"web": [
{
"title": x.get("title"),
"url": x.get("link"),
"snippet": x.get("snippet"),
"source": x.get("source"),
}
for x in web.get("organic_results", [])
],
"news": [
{
"title": x.get("title"),
"url": x.get("link"),
"snippet": x.get("snippet"),
"source": (x.get("source") or {}).get("name"),
"date": x.get("iso_date"),
}
for x in news.get("news_results", [])
],
}
```
Authentication is the `X-API-Key` header ( [authentication](https://docs.perceptlayer.com/authentication)). A rate-limited (429) or temporarily unavailable (503) response carries `Retry-After` with the seconds to wait, and failed calls aren't billed. Production code should retry; [handling errors in Python](https://perceptlayer.com/blog/handle-web-data-api-errors-python) has the full version.
### The judge prompt
The prompt is where most grounding fails, so keep it strict:
```text
Claim: {claim}
Today's date: {today}
Evidence (web results and news results, each with source and date when known):
{evidence}
Using ONLY the evidence, return JSON:
{"verdict": "supported|contradicted|outdated|conflicting|unverified",
"reason": "one sentence",
"urls": ["the result URLs your verdict rests on"]}
Rules:
- If sources disagree, use "conflicting" and list both sides.
- If the evidence is newer than the claim implies, use "outdated".
- If no result addresses the claim, use "unverified". Do not guess.
- A snippet that ends in "..." may be cut off; do not infer what follows.
```
Pass today's date explicitly. Models don't reliably know it, and "outdated" is meaningless without it.
## What does a worked check look like?
Two checks, using excerpts of real recorded responses. In both, the claim is what a model might plausibly say; the evidence is what the API returned.
### Example 1: a stale "latest" claim
Suppose the draft says: "Gartner's most recent strategic technology trends report covers 2025." The recorded sample comes from a broader query, `q=technology`, which is enough to show the mechanics; in your agent you'd search for the claim's own wording. The news call:
```bash
curl "https://api.perceptlayer.com/v1/google-news/news?q=technology" \
-H "X-API-Key: $API_KEY"
```
The recorded response for that request includes this first result:
```json
{
"news_results": [
{
"position": 1,
"title": "Top Strategic Technology Trends for 2027",
"link": "https://www.gartner.com/en/articles/top-technology-trends-2027",
"snippet": "Explore Gartner's Top Strategic Technology Trends for 2027 — 10 trends that will shape autonomy, resilience and governance in the years...",
"iso_date": "2026-10-20T15:59:45+00:00",
…
"source": {
"name": "Gartner",
…
}
}
],
…
}
```
A Gartner page titled for 2027 and dated 2026-10-20 strongly suggests the draft's "most recent" claim is out of date as of 2026-10-24, since a 2027 report implies a newer one than 2025. The verdict is **outdated**, with the Gartner URL as the citation. It's an inference, not proof: the snippet is truncated and the title alone doesn't rule out something newer still, so a stricter pipeline would fetch the page before committing. The source is the publisher itself and the timestamp is machine-readable, which keeps the judge's guessing to a minimum.
### Example 2: a number that a snippet disputes
Now suppose the draft says: "Tim Raue, the Berlin restaurant, holds three Michelin stars." The search call is the one from the recorded sample:
```bash
curl "https://api.perceptlayer.com/v1/google-search/search?query=best+restaurants+in+Berlin&hl=en&safe=off" \
-H "X-API-Key: $API_KEY"
```
Two organic results from the recorded response:
```json
{
"organic_results": [
{
"position": 1,
"title": "The Best Restaurants in Berlin - Food Guide & Map",
"link": "https://andershusa.com/best-restaurants-berlin-germany-guide/",
"snippet": "Dec 3, 2025 — Tim Raue is the most internationally renowned restaurant in Berlin. It holds two Michelin stars, has been frequently ranked on The World's 50 ...",
"source": "Anders & Kaitlin",
…
},
{
"position": 2,
"title": "Restaurants - Berlin",
"link": "https://guide.michelin.com/us/en/berlin-region/berlin/restaurants",
"snippet": "Berlin and surroundings: 1-48 of 79 restaurants · POTS · Rutz · GOLVET · Bandol sur mer · Nobelhart & Schmutzig · Oukan · 136 · FACIL.",
"source": "MICHELIN Guide",
…
}
],
…
}
```
Result 1 says two stars, which differs from the draft's three. This article doesn't vouch for either number; the point is what the evidence says. That result is a travel blog, the snippet is dated Dec 3, 2025, and it's a secondary source. Result 2 is the Michelin Guide's own listing page, the kind of primary source you'd want, and its snippet doesn't mention stars at all.
An honest verdict here is **conflicting, leaning contradicted**: one dated secondary source disagrees with the draft, and the primary source's snippet neither confirms nor denies. Nobody has checked the Michelin page itself. A good pipeline doesn't quietly rewrite "three" to "two". It flags the claim, links both results, and, if the stakes justify it, fetches the Michelin page itself.
## Where does this pattern fail?
It fails in four predictable ways, and each one needs a decision in your code rather than a better prompt. Stale sources look authoritative, sources disagree, snippets are cut off, and ranking is not truth. Stating these in the output is part of the pattern; a verifier that always sounds certain is a hallucination generator with citations.
| Failure | What you see | What to do |
| --- | --- | --- |
| Stale source | A well-ranked result is months old; the web snippet has no date | Prefer news results with `iso_date` for time-sensitive claims. Return "outdated" or "unverified", never "supported", when the only match is undated |
| Conflicting sources | Two results give different numbers | Return "conflicting" with both URLs. Don't average, and don't pick the higher-ranked one |
| Truncated snippet | The text ends in `...` | Treat it as a lead, not a quote. Fetch the page if the claim hinges on the missing words |
| Rank is not truth | The top result is a blog; the primary source is third | Tell the judge to prefer primary sources (the company, the registry, the publisher) and to say which kind it relied on |
| No match | Neither call returns anything on the claim | "Unverified". Absence of results is not a contradiction |
Two limits are specific to the tools. News coverage depends on what Google News indexes, so a niche claim may have no news result at all. And data is returned as found at the time of the call: a result that's correct today can change tomorrow, so store the retrieval date next to each verdict.
## What does it cost per answer?
Each claim costs 2 credits: one Search call and one News call, 1 credit each. An answer with 5 checkable claims costs 5 × 2 = 10 credits, and an agent that verifies 1,000 such answers a month spends 10,000 credits. Failed calls cost nothing and return `X-Credits-Used: 0`.
The free tier gives 100 credits after you verify an email, which covers 50 claim checks, or 10 answers of 5 claims. Beyond that, credits come in prepaid packs starting at 10,000 credits; [pricing](https://perceptlayer.com/pricing) has what they cost, and the [credits](https://docs.perceptlayer.com/credits) docs cover how credits work.
To keep spend predictable, verify only claims that matter: numbers, dates, "latest", "first", names. Skip claims the user supplied and anything with no external referent. For caps and budgets across a whole agent, see [AI agent API cost control](https://perceptlayer.com/blog/ai-agent-web-data-costs), and [caching responses](https://perceptlayer.com/blog/cache-web-data-api-responses) helps when the same claim recurs.
## How do you give an agent this as a tool?
Expose the two calls as tools and let the agent choose, or wrap `evidence()` in one `verify_claim` tool of your own. The MCP server at `https://perceptlayer.com/mcp` offers `search_endpoints`, `get_endpoint` and `call_endpoint`. The first two only read the catalogue and cost nothing; `call_endpoint` runs an endpoint and spends its credits on success only.
For Claude Code, add the server with the command from the [AI agents docs](https://docs.perceptlayer.com/ai-agents):
```bash
claude mcp add --transport http perceptlayer https://perceptlayer.com/mcp --header "Authorization: Bearer $API_KEY"
```
A single wrapped tool is usually the better design for verification, because it fixes the query shape, the compaction and the two-call budget. Open-ended tool access makes sense when the agent must choose among many sources. The trade-offs are covered in [MCP vs function calling](https://perceptlayer.com/blog/mcp-vs-function-calling-web-data) and [tool schema design](https://perceptlayer.com/blog/agent-tool-schema-design-web-apis). For a full MCP walkthrough, see [Claude MCP web search](https://perceptlayer.com/blog/claude-agent-live-search-mcp).
Your next step: [get a free API key](https://perceptlayer.com/signup), run the News call from example 1 in the playground on the [Google News API](https://perceptlayer.com/apis/google-news) page, then try one claim from your own agent's last answer.
## APIs in this post
- [Google Search **1 credit per call** · 7 endpoints](https://perceptlayer.com/apis/google-search)
- [Google News **1 credit per call** · 9 endpoints](https://perceptlayer.com/apis/google-news)
## Frequently asked questions
### Does grounding with search results stop hallucinations?
It reduces unsupported claims but doesn't remove them. The model can still misread a snippet, cite a result that doesn't say what it claims, or accept a wrong source. Requiring a URL per verdict, a fixed verdict list and an explicit "unverified" option makes errors visible and checkable instead of hidden.
### Should I use Google Search or Google News for verification?
Use both. News results include `iso_date`, so they suit time-sensitive claims such as latest releases and recent events. Web results cover reference pages, primary sources and older facts, but snippets may carry no date. One call to each costs 2 credits. See the [Google Search API](https://perceptlayer.com/apis/google-search) and [Google News API](https://perceptlayer.com/apis/google-news).
### What happens if a verification call fails?
A failed call is not billed and returns `X-Credits-Used: 0`. For 429 and 503, wait the seconds in `Retry-After` and retry. Other failures return a JSON error with a code and `request_id`; see [errors](https://docs.perceptlayer.com/errors). If a lookup still fails, mark the claim unverified rather than passing it unchecked.
### Can I fetch the full page behind a result?
The Search and News endpoints return titles, links, snippets and dates, not page bodies. If a claim depends on text past a truncated snippet, fetch the linked page with your own HTTP client, or use another endpoint from the [catalogue](https://perceptlayer.com/apis) that fits that website. Keep the retrieval date with whatever you store.
### How many claims should I verify per answer?
Only the ones a wrong answer would hurt: figures, dates, names, and anything phrased as "latest" or "first". Each verified claim costs 2 credits, so 5 claims cost 10 credits. Verifying every sentence adds cost and latency without adding much, because most sentences aren't checkable facts.
grounding ai agents verification google search google news
## More from the blog
1. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 5 Sept 2026 Perceptlayer 7 min read
## [RAG with Live Web Data: When to Skip the Vector Store](https://perceptlayer.com/blog/rag-with-live-web-data)
Which RAG questions need a stored index and which need a fresh call. A per-query Google Search lookup costs 1 credit, with the latency trade-off.
2. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 24 Jul 2026 Perceptlayer 7 min read
## [Scheduled AI Agent Runs: Budgeting Credits per Run](https://perceptlayer.com/blog/scheduled-agent-credit-budget)
Cap an agent at N calls per run with a Python ledger that reads X-Credits-Used, plus the math for hourly and daily runs on 100 credits on signup.
3. [AI agents](https://perceptlayer.com/blog/category/ai-agents) 18 Jul 2026 Updated 10 Nov 2026 Perceptlayer 11 min read
## [LangChain Custom Tool for Live Web Data: Python Tutorial](https://perceptlayer.com/blog/langchain-custom-tool-web-data)
Build a LangChain tool in Python for Google Search and News: typed arguments, retries on 429, 502 and 503 only, and a per-run credit cap.
# Endpoints
Base URL https://api.perceptlayer.com. Send the key in the X-API-Key header. Credits are per successful call.
## 28Hse API
https://perceptlayer.com/apis/28hse
- GET /v1/28hse/agency: Agency. 1 credit. Params: id*, page.
- GET /v1/28hse/autocomplete: Autocomplete. 1 credit. Params: keyword*, mode.
- GET /v1/28hse/listing: Listing. 1 credit. Params: id*, mode*.
- GET /v1/28hse/search: Search. 1 credit. Params: mode*, page, bedrooms, price_range, area_type, area_range, estate_id, location, sort.
## 4zida API
https://perceptlayer.com/apis/4zida
- GET /v1/4zida/agency: Agency. 1 credit. Params: id*.
- GET /v1/4zida/autocomplete: Autocomplete. 1 credit. Params: q*, page.
- GET /v1/4zida/listing: Listing. 1 credit. Params: id*.
- GET /v1/4zida/place-children: Place Children. 1 credit. Params: id*.
- GET /v1/4zida/search: Search. 1 credit. Params: for*, type, place_ids[], min_price, max_price, min_area, max_area, min_price_per_m2, max_price_per_m2, min_floor, max_floor, rooms[], categories[], states[], furnished[], heating[], payment_terms[], advertiser_types[], registered, sort, page, elevator, terrace, yard, garage, parking_space, attic, basement, air_conditioning, pets_allowed, smoking_allowed, inhabitable_now, cctv, alarm_secured, asphalt_access, sewerage, power_line, phone_line, wheelchair_access, virtual_sightseeing, video_or_3d_tour, urgent, with_images, new_build.
## 591 API
https://perceptlayer.com/apis/591-house
- GET /v1/591-house/locations: Locations. 1 credit. Params: region_id, q.
- GET /v1/591-house/locations-suggest: Locations Suggest. 1 credit. Params: q*, region_id*.
- GET /v1/591-house/rent-listing: Rent Listing. 1 credit. Params: id*.
- GET /v1/591-house/rent-search: Rent Search. 1 credit. Params: region_id*, section_ids[], kind, price_min, price_max, area_min, area_max, keywords, shape[], layout[], sort, page.
- GET /v1/591-house/sale-listing: Sale Listing. 1 credit. Params: id*.
- GET /v1/591-house/sale-search: Sale Search. 1 credit. Params: region_id*, section_ids[], kind, price_min, price_max, area_min, area_max, shape[], layout[], bathrooms, age_max, keywords, sort, cursor.
## 99.co API
https://perceptlayer.com/apis/99co
- GET /v1/99co/agent: Agent. 1 credit. Params: cea_number*.
- GET /v1/99co/agents: Agents. 1 credit. Params: page, limit.
- GET /v1/99co/autocomplete: Autocomplete. 1 credit. Params: query*, listing_type, property_segments.
- GET /v1/99co/search: Search. 1 credit. Params: listing_type*, property_segments, main_category, location_type, location_id, min_price, max_price, bedrooms, bathrooms, min_area, max_area, sort_by, sort_order, page, limit.
- GET /v1/99co/transactions: Transactions. 1 credit. Params: development_id*, transaction_type*, page, limit.
## 99acres API
https://perceptlayer.com/apis/99acres
- GET /v1/99acres/city-listings: City Listings. 1 credit. Params: city*.
- GET /v1/99acres/filter-landings: Filter Landings. 1 credit. Params: slug*, page.
- GET /v1/99acres/listing: Listing. 1 credit. Params: spid*, slug.
- GET /v1/99acres/search: Search. 1 credit. Params: slug*, page.
## About You API
https://perceptlayer.com/apis/about-you
- GET /v1/about-you/product: Product. 1 credit. Params: product_id, url, country, language.
- GET /v1/about-you/search: Search. 1–3 credits. 1 credit, plus 1 with resolve_names and 1 with include_facets. Params: query, category, brand, color, size, size_system, min_price, max_price, sale_only, sort, page, limit, include_facets, resolve_names, country, language.
## adidas API
https://perceptlayer.com/apis/adidas
- GET /v1/adidas/product: Product. 1–10 credits. 10 credits with per-size stock, which include_stock turns on unless set to false; 1 credit without it. Params: product_code, url, country, include_stock.
- GET /v1/adidas/search: Search. 1 credit. Params: query, category, gender, size, color, price_min, price_max, sale_only, sort, page, country.
## Adondevivir API
https://perceptlayer.com/apis/adondevivir
- GET /v1/adondevivir/agency: Agency. 1 credit. Params: url, id, page.
- GET /v1/adondevivir/listing: Listing. 1 credit. Params: url, id.
- GET /v1/adondevivir/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/adondevivir/search: Search. 1 credit. Params: operation, type, location, min_price, max_price, currency, min_bedrooms, max_bedrooms, min_bathrooms, min_garages, min_area, max_area, q, address, sort, page.
## ADS-B History API
https://perceptlayer.com/apis/adsb-history
- GET /v1/adsb-history/aircraft-history: Aircraft History. 18 credits. Params: hex*, date*, include_track.
## Agoda API
https://perceptlayer.com/apis/agoda
- GET /v1/agoda/hotel: Hotel. 1 credit. Params: hotel_id*.
- GET /v1/agoda/reviews: Reviews. 1 credit. Params: hotel_id*, page, sort.
- GET /v1/agoda/rooms: Rooms. 1 credit. Params: check_in*, check_out*, adults, rooms, children_ages[], hotel_id*, city_id*, country_id*.
- GET /v1/agoda/search: Search. 1 credit. Params: check_in*, check_out*, adults, rooms, children_ages[], city_id*, currency, page.
- GET /v1/agoda/suggest: Suggest. 1 credit. Params: query*.
## Airbnb API
https://perceptlayer.com/apis/airbnb
- GET /v1/airbnb/listing: Listing. 1 credit. Params: listing_id*, checkin, checkout, adults.
- GET /v1/airbnb/reviews: Reviews. 1 credit. Params: listing_id*, limit, offset.
- GET /v1/airbnb/search: Search. 1 credit. Params: place*, checkin, checkout, adults, children, infants, pets, currency, price_max, room_type, cursor.
## Airportia API
https://perceptlayer.com/apis/airportia
- GET /v1/airportia/airport: Airport. 1 credit. Params: code*, mode, page.
- GET /v1/airportia/flight-history: Flight History. 1 credit. Params: query*, origin, destination.
## Alibaba API
https://perceptlayer.com/apis/alibaba
- GET /v1/alibaba/product: Product. 1 credit. Params: id, url.
- GET /v1/alibaba/search: Search. 1 credit. Params: query*, page, category, min_price, max_price, min_moq, max_moq, country, review_score, verified, sort.
- GET /v1/alibaba/supplier: Supplier. 1 credit. Params: id, url, subdomain.
## AliExpress API
https://perceptlayer.com/apis/aliexpress
- GET /v1/aliexpress/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/aliexpress/product: Product. 1 credit. Params: product_id*.
- GET /v1/aliexpress/product-description: Product Description. 1 credit. Params: description_ref*.
- GET /v1/aliexpress/product-reviews: Product Reviews. 1 credit. Params: product_id*, page*, page_size*, filter*.
- GET /v1/aliexpress/product-shipping: Product Shipping. 1 credit. Params: product_id*, country*.
- GET /v1/aliexpress/search: Search. 1 credit. Params: query*, page*, sort*, min_price, max_price, ship_from, filters[].
- GET /v1/aliexpress/store: Store. 1 credit. Params: seller_id*, store_id*.
- GET /v1/aliexpress/store-benefits: Store Benefits. 1 credit. Params: seller_id*, store_id*.
- GET /v1/aliexpress/store-products: Store Products. 1 credit. Params: seller_id*, store_id*.
## Allegro API
https://perceptlayer.com/apis/allegro
- GET /v1/allegro/categories: Categories. 1–20 credits. 1 credit for the top-level list, 20 for the tree under one category. Params: category, country.
- GET /v1/allegro/offer: Offer. 20 credits. Params: url, offer_id, country.
- GET /v1/allegro/reviews: Reviews. 1 credit. Params: product_id*, page, rating.
- GET /v1/allegro/search: Search. 20 credits. Params: query*, category, price_from, price_to, condition, sort, page, country, buy_now, smart, super_seller, seller_id.
## Amazon API
https://perceptlayer.com/apis/amazon
- GET /v1/amazon/autocomplete: Autocomplete. 1 credit. Params: domain*, prefix*, limit.
- GET /v1/amazon/best-sellers: Best Sellers. 1 credit. Params: category*, domain*, page.
- GET /v1/amazon/categories: Categories. 1 credit. Params: domain*, page, category*.
- GET /v1/amazon/category-products: Category Products. 1 credit. Params: domain*, page, node*, sort.
- GET /v1/amazon/customers-say: Customers Say. 1 credit. Params: asin*, domain*.
- GET /v1/amazon/deals: Deals. 1 credit. Params: domain*, start_index*, department, lightning.
- GET /v1/amazon/featured-reviews: Featured Reviews. 1 credit. Params: asin*, domain*.
- GET /v1/amazon/influencer: Influencer. 1 credit. Params: handle*, domain*.
- GET /v1/amazon/media-reviews: Media Reviews. 1 credit. Params: asin*, domain*.
- GET /v1/amazon/new-releases: New Releases. 1 credit. Params: category*, domain*, page.
- GET /v1/amazon/offers: Offers. 1 credit. Params: asin*, domain*, page, condition.
- GET /v1/amazon/product: Product. 1 credit. Params: asin*, domain.
- GET /v1/amazon/promotion: Promotion. 1 credit. Params: promotionId*, domain*, promotion_id*, page_token.
- GET /v1/amazon/rating-summary: Rating Summary. 1 credit. Params: asin*, domain*.
- GET /v1/amazon/search: Search. 1 credit. Params: query*, domain, page, sort, category, min_price, max_price, language, rh, dc, node.
- GET /v1/amazon/seller: Seller. 1 credit. Params: sellerId*, domain*, page, seller_id*.
- GET /v1/amazon/seller-products: Seller Products. 1 credit. Params: sellerId*, domain*, page, seller_id*.
- GET /v1/amazon/seller-reviews: Seller Reviews. 1 credit. Params: sellerId*, domain*, page, seller_id*, rating, period.
## Apartment List API
https://perceptlayer.com/apis/apartment-list
- GET /v1/apartment-list/listing: Listing. 1 credit. Params: slug, rental_id.
- GET /v1/apartment-list/location-autocomplete: Location Autocomplete. 1 credit. Params: q*, types[].
- GET /v1/apartment-list/search: Search. 1 credit. Params: location_id*, beds[], baths[], price_min, price_max, amenities[], sort, page, per_page.
## Apartments.com API
https://perceptlayer.com/apis/apartments-com
- GET /v1/apartments-com/colleges: Colleges. 1 credit. Params: ids[].
- GET /v1/apartments-com/locations: Locations. 1 credit. Params: query*, max_items, use.
- GET /v1/apartments-com/property: Property. 1 credit. Params: listing_key*.
- GET /v1/apartments-com/property-features: Property Features. 1 credit. Params: listing_key*.
- GET /v1/apartments-com/property-fees: Property Fees. 1 credit. Params: listing_key*.
- GET /v1/apartments-com/property-map: Property Map. 1 credit. Params: listing_key*.
- GET /v1/apartments-com/property-placards: Property Placards. 1 credit. Params: listing_keys[], geo_mid, geo_type.
- GET /v1/apartments-com/property-reviews: Property Reviews. 1 credit. Params: listing_key*, page_size.
- GET /v1/apartments-com/property-units: Property Units. 1 credit. Params: listing_key*, unit_key*.
- GET /v1/apartments-com/property-url: Property Url. 1 credit. Params: listing_key*.
- GET /v1/apartments-com/property-virtual-tour: Property Virtual Tour. 1 credit. Params: listing_key*, include_tour_details.
- GET /v1/apartments-com/property-walkscore: Property Walkscore. 1 credit. Params: listing_key*.
- GET /v1/apartments-com/renter-guides: Renter Guides. 1 credit. Params: kind*, slug, neighborhood, city, state.
- GET /v1/apartments-com/search: Search. 1 credit. Params: location, geo_mid, geo_type, property_type, min_rent, max_rent, min_beds, max_beds, pet_friendly, amenities[], bbox.
- GET /v1/apartments-com/sitemap-index: Sitemap Index. 1 credit. Params: sitemap.
- GET /v1/apartments-com/student-housing-locations: Student Housing Locations. 1 credit. Params: state*, city*, slug*.
## Apple App Store API
https://perceptlayer.com/apis/apple-app-store
- GET /v1/apple-app-store/apps-product: Apps Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/audiobooks-product: Audiobooks Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/books-product: Books Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/charts: Charts. 1 credit. Params: store, chart, genre, country, limit.
- GET /v1/apple-app-store/details: Details. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/developer: Developer. 1 credit. Params: artist_id, id, country.
- GET /v1/apple-app-store/movies-product: Movies Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/music-product: Music Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/podcasts-product: Podcasts Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/product: Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/product-reviews: Product Reviews. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
- GET /v1/apple-app-store/search: Search. 1 credit. Params: query*, store, country, limit.
- GET /v1/apple-app-store/tv-product: Tv Product. 1 credit. Params: id, product_id, store, country, season_id, num, offset, next_page_token.
## Apple Maps API
https://perceptlayer.com/apis/apple-maps
- GET /v1/apple-maps/place: Place. 1 credit. Params: muid, place_id, auid, locale.
- GET /v1/apple-maps/reviews: Reviews. 1 credit. Params: muid*, locale, page.
- GET /v1/apple-maps/search: Search. 1 credit. Params: q*, lat*, lon*, locale, radius_km.
## Aqar API
https://perceptlayer.com/apis/aqar
- GET /v1/aqar/agent: Agent. 1 credit. Params: user_id*, page, size.
- GET /v1/aqar/autocomplete: Autocomplete. 1 credit. Params: query*, city_id, category_id, limit.
- GET /v1/aqar/listing: Listing. 1 credit. Params: id, url.
- GET /v1/aqar/search: Search. 1 credit. Params: listing_type, property_type, category_id, city_id, district_id, min_price, max_price, min_area, max_area, min_beds, min_baths, min_living_rooms, min_street_width, max_age, furnished, rent_period, keyword, sort, page, size.
## Aqarmap API
https://perceptlayer.com/apis/aqarmap
- GET /v1/aqarmap/agent: Agent. 1 credit. Params: listing_id*, lang.
- GET /v1/aqarmap/agents: Agents. 1 credit. Params: location, section, property_type, limit, lang.
- GET /v1/aqarmap/compounds: Compounds. 1 credit. Params: q*, lang.
- GET /v1/aqarmap/listing: Listing. 1 credit. Params: id*, lang.
- GET /v1/aqarmap/listing-children: Listing Children. 1 credit. Params: listing_id*, lang.
- GET /v1/aqarmap/listing-valuation: Listing Valuation. 1 credit. Params: listing_id*, lang.
- GET /v1/aqarmap/location-stats: Location Stats. 1 credit. Params: location*, property_type.
- GET /v1/aqarmap/locations: Locations. 1 credit. Params: q*, lang.
- GET /v1/aqarmap/search: Search. 1 credit. Params: section, location, property_type, rooms, baths, price_min, price_max, area_min, area_max, finish_type, payment_method, owner_only, has_video, keyword, sort, page, limit, lang.
## Aramisauto API
https://perceptlayer.com/apis/aramisauto
- GET /v1/aramisauto/search: Search. 1 credit. Params: query, energy, make, model, mileage_min, mileage_max, sort, page, limit.
- GET /v1/aramisauto/vehicle: Vehicle. 1 credit. Params: vehicle_id*.
## Arbeitsagentur Jobs API
https://perceptlayer.com/apis/arbeitsagentur-jobs
- GET /v1/arbeitsagentur-jobs/job: Job. 1 credit. Params: refnr*.
- GET /v1/arbeitsagentur-jobs/locations: Locations. 1 credit. Params: plz, suchwort.
- GET /v1/arbeitsagentur-jobs/search: Search. 1 credit. Params: was, wo, berufsfeld, arbeitgeber, page, size, angebotsart, arbeitszeit, befristung, veroeffentlichtseit, umkreis, zeitarbeit, pav.
## Argenprop API
https://perceptlayer.com/apis/argenprop
- GET /v1/argenprop/agencies: Agencies. 1 credit. Params: query, page, rows.
- GET /v1/argenprop/agency: Agency. 1 credit. Params: id, slug.
- GET /v1/argenprop/listing: Listing. 1 credit. Params: id*.
- GET /v1/argenprop/locations-autocomplete: Locations Autocomplete. 1 credit. Params: q*.
- GET /v1/argenprop/search: Search. 1 credit. Params: operation, country, page, rows, sort, price_min, price_max, seller_type, price_availability, region, partido, property_type.
## Ashby API
https://perceptlayer.com/apis/ashby
- GET /v1/ashby/jobs: Jobs. 1 credit. Params: board*, q, location, department, team, workplace_type, employment_type, include_compensation, page, limit.
## ASOS API
https://perceptlayer.com/apis/asos
- GET /v1/asos/autocomplete: Autocomplete. 1 credit. Params: query*, store.
- GET /v1/asos/product: Product. 1 credit. Params: product_id, url, store.
- GET /v1/asos/reviews: Reviews. 1 credit. Params: product_id*, page, store.
- GET /v1/asos/search: Search. 1 credit. Params: query, category_id, page, sort, brand, colour, size, min_price, max_price, sale_only, store.
## athome API
https://perceptlayer.com/apis/athome
- GET /v1/athome/agency: Agency. 1 credit. Params: slug*, type.
- GET /v1/athome/autocomplete: Autocomplete. 1 credit. Params: keyword*, type, prefecture.
- GET /v1/athome/places: Places. 1 credit. Params: query*.
- GET /v1/athome/rent-detail: Rent Detail. 1 credit. Params: id*.
- GET /v1/athome/rent-search: Rent Search. 1 credit. Params: prefecture*, city, layouts, walk_max, age_max, page, per_page, property_type, rent_min, rent_max, area_min.
- GET /v1/athome/sale-detail: Sale Detail. 1 credit. Params: id*.
- GET /v1/athome/sale-search: Sale Search. 1 credit. Params: prefecture*, city, layouts, walk_max, age_max, page, per_page, price_min, price_max, area_min, area_max.
## Autohero API
https://perceptlayer.com/apis/autohero
- GET /v1/autohero/car: Car. 1 credit. Params: id*.
- GET /v1/autohero/search: Search. 1 credit. Params: country, brand, model, price_min, price_max, mileage_max, year_min, sort, limit, offset.
## AutoScout24 API
https://perceptlayer.com/apis/autoscout24
- GET /v1/autoscout24/dealer: Dealer. 1 credit. Params: market, dealer_slug*.
- GET /v1/autoscout24/dealer-inventory: Dealer Inventory. 1 credit. Params: market, dealer_slug*, page, limit.
- GET /v1/autoscout24/dealer-reviews: Dealer Reviews. 1 credit. Params: market, dealer_slug*.
- GET /v1/autoscout24/listing: Listing. 1 credit. Params: market, listing_id*.
- GET /v1/autoscout24/search: Search. 1 credit. Params: market, make_id, model_id, price_min, price_max, mileage_min, mileage_max, registration_year_min, registration_year_max, power_min, power_max, power_unit, fuel[], transmission[], body_type[], equipment[], seller_type, offer, usage_state[], zip, radius, sort, order, page, limit.
- GET /v1/autoscout24/taxonomy: Taxonomy. 1 credit. Params: market, make_id, include[].
## AutoTempest API
https://perceptlayer.com/apis/autotempest
- GET /v1/autotempest/makes: Makes. 1 credit.
- GET /v1/autotempest/models: Models. 1 credit. Params: make*.
- GET /v1/autotempest/search: Search. 1 credit. Params: make*, model, zip*, radius, sources[], sort, per_page, min_price, max_price, min_year, max_year, min_miles, max_miles, drive, fuel, body_style, cursor.
## AutoTrack.nl API
https://perceptlayer.com/apis/autotrack-nl
- GET /v1/autotrack-nl/dealers: Dealers. 1 credit. Params: dealerId*.
- GET /v1/autotrack-nl/dealers-listings: Dealers Listings. 1 credit. Params: dealerId*, pageNumber, pageSize, sortField, sortOrder, make_id[], fuel[], transmission[], body_type[], seller_type[], province[], listed_within_days, price_min, price_max, year_min, year_max, mileage_min, mileage_max, power_min, power_max.
- GET /v1/autotrack-nl/dealers-reviews: Dealers Reviews. 1 credit. Params: dealerId*.
- GET /v1/autotrack-nl/filters: Filters. 1 credit.
- GET /v1/autotrack-nl/kenteken: Kenteken. 1 credit. Params: plate*.
- GET /v1/autotrack-nl/listings: Listings. 1 credit. Params: advertentieId*.
- GET /v1/autotrack-nl/listings-media: Listings Media. 1 credit. Params: advertentieId*.
- GET /v1/autotrack-nl/listings-search: Listings Search. 1 credit. Params: pageNumber, pageSize, sortField, sortOrder, make_id[], fuel[], transmission[], body_type[], seller_type[], province[], listed_within_days, price_min, price_max, year_min, year_max, mileage_min, mileage_max, power_min, power_max.
## Autotrader API
https://perceptlayer.com/apis/autotrader
- GET /v1/autotrader/recent-listings: Recent Listings. 1 credit.
- GET /v1/autotrader/search-options: Search Options. 1 credit.
## AutoTrader UK API
https://perceptlayer.com/apis/autotrader-uk
- GET /v1/autotrader-uk/dealer: Dealer. 1 credit. Params: retailer_id*.
- GET /v1/autotrader-uk/dealer-listings: Dealer Listings. 1 credit. Params: postcode*, price_search_type, make, model, body_type, colour, transmission, seller_type, fuel_type[], min_price, max_price, min_year_manufactured, max_year_manufactured, min_mileage, max_mileage, distance, sort, page, retailer_id*.
- GET /v1/autotrader-uk/facets: Facets. 1 credit. Params: postcode*, price_search_type, facets[], make, model, sort.
- GET /v1/autotrader-uk/listing: Listing. 1 credit. Params: advert_id*.
- GET /v1/autotrader-uk/search: Search. 1 credit. Params: postcode*, price_search_type, make, model, body_type, colour, transmission, seller_type, fuel_type[], min_price, max_price, min_year_manufactured, max_year_manufactured, min_mileage, max_mileage, distance, sort, page.
- GET /v1/autotrader-uk/taxonomy: Taxonomy. 1 credit. Params: postcode*, make.
## AutoTrader.ca API
https://perceptlayer.com/apis/autotrader-ca
- GET /v1/autotrader-ca/listing: Listing. 1 credit. Params: id*.
- GET /v1/autotrader-ca/search: Search. 1 credit. Params: make, model, province, city, offer, price_from, price_to, year_from, year_to, km_from, km_to, seller_type, postal_code, radius, sort, desc, page.
## AutoUncle API
https://perceptlayer.com/apis/autouncle
- GET /v1/autouncle/car: Car. 1 credit. Params: id*, country*.
- GET /v1/autouncle/search: Search. 1 credit. Params: country*, brand, model, min_price, max_price, min_year, max_year, fuel_type[], page*.
## Autovit API
https://perceptlayer.com/apis/autovit
- GET /v1/autovit/dealer: Dealer. 1 credit. Params: dealer_id, url.
- GET /v1/autovit/listing: Listing. 1 credit. Params: listing_id, url.
- GET /v1/autovit/search: Search. 1 credit. Params: make, model, price_min, price_max, year_min, year_max, mileage_min, mileage_max, fuel[], gearbox[], sort, page.
- GET /v1/autovit/taxonomy: Taxonomy. 1 credit. Params: make.
## Baidu API
https://perceptlayer.com/apis/baidu
- GET /v1/baidu/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/baidu/developer-search: Developer Search. 1 credit. Params: query*.
- GET /v1/baidu/images: Images. 1 credit. Params: query*.
- GET /v1/baidu/maps: Maps. 1 credit. Params: query*, city*, page.
- GET /v1/baidu/news: News. 1 credit. Params: query*, page, period.
- GET /v1/baidu/search: Search. 1 credit. Params: query*.
- GET /v1/baidu/translation-suggestions: Translation Suggestions. 1 credit. Params: query*.
- GET /v1/baidu/trending: Trending. 1 credit. Params: query*.
## Bandcamp API
https://perceptlayer.com/apis/bandcamp
- GET /v1/bandcamp/album: Album. 1 credit. Params: url*.
- GET /v1/bandcamp/artist: Artist. 1 credit. Params: url*.
- GET /v1/bandcamp/discover: Discover. 1 credit. Params: cursor, size.
## Batdongsan.com.vn API
https://perceptlayer.com/apis/batdongsan
- GET /v1/batdongsan/agent: Agent. 1 credit. Params: agent_id*.
- GET /v1/batdongsan/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/batdongsan/listing: Listing. 1 credit. Params: id*.
- GET /v1/batdongsan/map-markers: Map Markers. 1 credit. Params: listing_type, city*, north_east_lat*, north_east_lng*, south_west_lat*, south_west_lng*.
- GET /v1/batdongsan/price-history: Price History. 1 credit. Params: id*.
- GET /v1/batdongsan/search: Search. 1 credit. Params: listing_type, city*, category, min_price, max_price, min_area, max_area, bedrooms, bathrooms, frontage_width, road_width, location_id, location_type, verified, pro_agent, sort, page, per_page, legality, interior, floors, direction, balcony_direction.
- GET /v1/batdongsan/similar: Similar. 1 credit. Params: id*.
- GET /v1/batdongsan/top-agents: Top Agents. 1 credit. Params: city*.
## Bayut API
https://perceptlayer.com/apis/bayut
- GET /v1/bayut/agency: Agency. 1 credit. Params: query, external_id.
- GET /v1/bayut/agency-listings: Agency Listings. 1 credit. Params: agency_external_id*, purpose, sort, page, limit.
- GET /v1/bayut/listing: Listing. 1 credit. Params: external_id*.
- GET /v1/bayut/locations: Locations. 1 credit. Params: query*, level, page, limit.
- GET /v1/bayut/search: Search. 1 credit. Params: query, purpose, price_min, price_max, rooms, baths, area_min, area_max, location_external_id[], category_external_id, sort, page, limit.
## Behance API
https://perceptlayer.com/apis/behance
- GET /v1/behance/gallery: Gallery. 1 credit. Params: field*, search.
- GET /v1/behance/project: Project. 1 credit. Params: id*, slug.
- GET /v1/behance/search: Search. 1 credit. Params: search*, sort.
- GET /v1/behance/user: User. 1 credit. Params: username*.
## Bezrealitky API
https://perceptlayer.com/apis/bezrealitky
- GET /v1/bezrealitky/autocomplete: Autocomplete. 1 credit. Params: q*, size, from.
- GET /v1/bezrealitky/listing: Listing. 1 credit. Params: id, url, listing_id*.
- GET /v1/bezrealitky/search: Search. 1 credit. Params: offer_type, estate_type[], land_type[], region_ids[], bedrooms[], disposition[], ownership[], condition[], construction[], equipped[], available_from, query, bbox, polygon, sort, page, per_page, balcony, loggia, terrace, cellar, pet_friendly, parking, garage, lift, barrier_free, low_energy, roommate, discounted_only, include_short_term, price_min, price_max, area_min, area_max, land_area_min, land_area_max.
## Bien'ici API
https://perceptlayer.com/apis/bienici
- GET /v1/bienici/agency-listings: Agency Listings. 1 credit. Params: import_account_id*, transaction_type, property_type[], page, size.
- GET /v1/bienici/listing: Listing. 1 credit. Params: ad_id*.
- GET /v1/bienici/locations: Locations. 1 credit. Params: query*, type.
- GET /v1/bienici/place: Place. 1 credit. Params: query*, type.
- GET /v1/bienici/place-details: Place Details. 1 credit. Params: department*.
- GET /v1/bienici/programme-units: Programme Units. 1 credit. Params: ad_id*.
- GET /v1/bienici/search: Search. 1 credit. Params: transaction_type, property_type[], zone_ids[], postal_code[], min_price, max_price, min_area, max_area, min_bedrooms, max_bedrooms, min_rooms, max_rooms, min_garden_area, max_garden_area, energy_classification, on_the_market, new_only, sort, sort_order, page, size, is_preview, is_on_last_floor, has_3d_model, is_ground_floor, is_not_ground_floor, has_pool, has_balcony, has_terrace, has_balcony_or_terrace, has_cellar, has_parking, has_fire_place, has_door_code, has_intercom, has_garden, has_elevator, work_to_do, no_work_to_do, single_storey_house, is_disabled_people_friendly, flat_sharing, is_building_plot, is_exclusive_sale_mandate, has_caretaker, is_duplex, has_separate_toilet, is_furnished, is_not_furnished, has_photo, is_eligible_for_denormandie_law, exportable_ad, is_in_student_residence, is_in_senior_residence, is_in_tourism_residence, is_in_managed_residence, is_not_in_residence, is_not_life_annuity_sale, is_life_annuity_sale_only, is_not_property_without_usufruct, is_property_without_usufruct_only, is_promoted_new_property, has_no_photo, has_no_address, has_address, has_no_price, is_promoted_as_exclusive, has_to_be_built, has_not_to_be_built.
## Bilbasen API
https://perceptlayer.com/apis/bilbasen
- GET /v1/bilbasen/dealers-listings: Dealers Listings. 1 credit. Params: seller_id*, page, page_size.
- GET /v1/bilbasen/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/bilbasen/metadata: Metadata. 1 credit.
- GET /v1/bilbasen/search: Search. 1 credit. Params: category, make, model, year_from, year_to, price_from, price_to, mileage_from, mileage_to, fuel, body_type, horse_power_from, horse_power_to, consumption_from, consumption_to, photo_ads, sort, page, page_size.
## Bilibili API
https://perceptlayer.com/apis/bilibili
- GET /v1/bilibili/comments: Comments. 1 credit. Params: type*, oid*, sort, pn, ps.
- GET /v1/bilibili/search: Search. 1 credit. Params: search_type*, keyword*, page, order, duration, tids.
- GET /v1/bilibili/user: User. 1 credit. Params: mid*.
- GET /v1/bilibili/user-videos: User Videos. 1 credit. Params: vmid*, order, pn, ps.
- GET /v1/bilibili/video: Video. 1 credit. Params: bvid, aid.
- GET /v1/bilibili/video-tags: Video Tags. 1 credit. Params: bvid*.
## Billiger.de API
https://perceptlayer.com/apis/billiger
- GET /v1/billiger/baseproduct: Baseproduct. 1 credit. Params: baseproduct_id*.
- GET /v1/billiger/offers: Offers. 1 credit. Params: product_id*, page_no, page, page_size, product_offers_sorting, sort, product_offers_sorting_direction, direction, product_offers_group_by_shop, group_by_shop, all, offer_conditions.
- GET /v1/billiger/product: Product. 1 credit. Params: product_id*.
- GET /v1/billiger/search: Search. 1 credit. Params: query*, q, page_no, page, page_size, sort, cat, doctype, filters[]*, fuzzy.
- GET /v1/billiger/shop: Shop. 1 credit. Params: shop_id*.
## Bing API
https://perceptlayer.com/apis/bing
- GET /v1/bing/autocomplete: Autocomplete. 1 credit. Params: query*, mkt, cc, setlang.
- GET /v1/bing/images: Images. 1 credit. Params: query*, mkt, cc, setlang, page, size, layout, type, color, freshness, license.
- GET /v1/bing/maps: Maps. 1 credit. Params: query*, mkt, cc, setlang, limit.
- GET /v1/bing/news: News. 1 credit. Params: query*, mkt, cc, setlang, page, freshness.
- GET /v1/bing/product: Product. 1 credit. Params: query*, mkt, cc, setlang, product_token*.
- GET /v1/bing/reverse-image: Reverse Image. 1 credit. Params: image_url*, mkt, cc, setlang.
- GET /v1/bing/search: Search. 1 credit. Params: query*, page, num, site, filetype, safe, hl, include_html.
- GET /v1/bing/shopping: Shopping. 1 credit. Params: query*, mkt, cc, setlang, page.
- GET /v1/bing/suggestions: Suggestions. 1 credit. Params: query*, mkt, cc, setlang.
- GET /v1/bing/videos: Videos. 1 credit. Params: query*, mkt, cc, setlang, page, freshness.
## Blibli API
https://perceptlayer.com/apis/blibli
- GET /v1/blibli/product: Product. 1 credit. Params: id*, item_sku.
- GET /v1/blibli/reviews: Reviews. 1 credit. Params: product_sku*, page.
- GET /v1/blibli/search: Search. 1 credit. Params: query*, page, sort, min_price, max_price, min_rating, location.
- GET /v1/blibli/shop: Shop. 1 credit. Params: code*, page.
## Blocket Bil API
https://perceptlayer.com/apis/blocket-bil
- GET /v1/blocket-bil/listing: Listing. 1 credit. Params: id*.
- GET /v1/blocket-bil/recommendations: Recommendations. 1 credit. Params: ad_id*.
- GET /v1/blocket-bil/search: Search. 1 credit. Params: page, lim, sort, variant, location, sales_form[], fuel, price_from, price_to, year_from, year_to, mileage_from, mileage_to, body_type, transmission, org_id.
## Blocket Bostad API
https://perceptlayer.com/apis/blocket-bostad
- GET /v1/blocket-bostad/landlord: Landlord. 1 credit. Params: uid*.
- GET /v1/blocket-bostad/listing: Listing. 1 credit. Params: id*.
- GET /v1/blocket-bostad/location-autocomplete: Location Autocomplete. 1 credit. Params: q*.
- GET /v1/blocket-bostad/search: Search. 1 credit. Params: area, min_rent, max_rent, min_rooms, max_rooms, min_size, max_size, min_bedrooms, home_type, shared, furnished, pets, smoking, wheelchair_accessible, first_hand, student_home, senior_home, corporate_home, sort, direction, limit, page.
## Bluesky API
https://perceptlayer.com/apis/bluesky
- GET /v1/bluesky/followers: Followers. 1 credit. Params: actor*, limit, cursor, sort.
- GET /v1/bluesky/following: Following. 1 credit. Params: actor*, limit, cursor, sort.
- GET /v1/bluesky/likes: Likes. 1 credit. Params: uri*, limit, cursor.
- GET /v1/bluesky/posts: Posts. 1 credit. Params: uris[].
- GET /v1/bluesky/profile: Profile. 1 credit. Params: actor*.
- GET /v1/bluesky/profiles: Profiles. 1 credit. Params: actors[].
- GET /v1/bluesky/quotes: Quotes. 1 credit. Params: uri*, limit, cursor.
- GET /v1/bluesky/relationships: Relationships. 1 credit. Params: actor*, others[]*.
- GET /v1/bluesky/reposts: Reposts. 1 credit. Params: uri*, limit, cursor.
- GET /v1/bluesky/resolve-handle: Resolve Handle. 1 credit. Params: handle*.
- GET /v1/bluesky/search-posts: Search Posts. 1 credit. Params: q, query, version*, limit, cursor, sort, author, lang, domain, url, since, until, authors[], hashtags[], domains[], urls[], languages[], embeddedAtUris[], tag[], excludeAuthors[], excludeHashtags[], excludeMentions[], excludeDomains[], excludeUrls[], excludeLanguages[], excludeEmbeddedAtUris[], mentions[], allTime, hasMedia, hasVideo, repliesOnly, excludeReplies, following.
- GET /v1/bluesky/search-users: Search Users. 1 credit. Params: q*, limit, cursor.
- GET /v1/bluesky/thread: Thread. 1 credit. Params: uri*, version*, depth, parentHeight, branchingFactor, below, above.
- GET /v1/bluesky/typeahead-users: Typeahead Users. 1 credit. Params: q*, limit.
- GET /v1/bluesky/user-posts: User Posts. 1 credit. Params: actor*, limit, cursor, filter, includePins.
## bol.com API
https://perceptlayer.com/apis/bol
- GET /v1/bol/autocomplete: Autocomplete. 3 credits. Params: q*, country, language.
- GET /v1/bol/offers: Offers. 3 credits. Params: id, url, slug, country, language, condition.
- GET /v1/bol/product: Product. 7 credits. Params: id, url, slug, country, language.
- GET /v1/bol/reviews: Reviews. 7 credits. Params: id, url, slug, country, language.
- GET /v1/bol/search: Search. 9 credits. Params: q*, page, sort, category, facet_ids, min_price, max_price, country, language.
## Boliga API
https://perceptlayer.com/apis/boliga
- GET /v1/boliga/listing: Listing. 1 credit. Params: id*.
- GET /v1/boliga/search: Search. 1 credit. Params: page, page_size, property_type, municipality, zip_codes, price_min, price_max, size_min, size_max, rooms_min, rooms_max, build_year_min, build_year_max, sort.
- GET /v1/boliga/sold: Sold. 1 credit. Params: page, page_size, street, zip_from, zip_to, municipality, property_type, sales_year_min, sales_year_max, sort.
## BoligPortal API
https://perceptlayer.com/apis/boligportal
- GET /v1/boligportal/address-autocomplete: Address Autocomplete. 1 credit. Params: q*, container.
- GET /v1/boligportal/count: Count. 1 credit. Params: location, district, area, street, type, min_rooms, max_rooms, min_size, max_size, min_rent, max_rent, min_rental_period, available_before, min_lat, max_lat, min_lng, max_lng, pet_friendly, furnished, balcony, parking, elevator, shareable, student_only, senior_friendly, social_housing, newbuild, electric_charging_station, dishwasher, washing_machine, dryer.
- GET /v1/boligportal/listings: Listings. 1 credit. Params: ids*.
- GET /v1/boligportal/map: Map. 1 credit. Params: location, district, area, street, type, min_rooms, max_rooms, min_size, max_size, min_rent, max_rent, min_rental_period, available_before, min_lat*, max_lat*, min_lng*, max_lng*, pet_friendly, furnished, balcony, parking, elevator, shareable, student_only, senior_friendly, social_housing, newbuild, electric_charging_station, dishwasher, washing_machine, dryer.
- GET /v1/boligportal/postal-code: Postal Code. 1 credit. Params: code*.
- GET /v1/boligportal/price-histogram: Price Histogram. 1 credit. Params: location, district, area, street, type, min_rooms, max_rooms, min_size, max_size, min_rental_period, available_before, min_lat, max_lat, min_lng, max_lng, pet_friendly, furnished, balcony, parking, elevator, shareable, student_only, senior_friendly, social_housing, newbuild, electric_charging_station, dishwasher, washing_machine, dryer.
- GET /v1/boligportal/search: Search. 1 credit. Params: location, district, area, street, type, min_rooms, max_rooms, min_size, max_size, min_rent, max_rent, min_rental_period, available_before, min_lat, max_lat, min_lng, max_lng, pet_friendly, furnished, balcony, parking, elevator, shareable, student_only, senior_friendly, social_housing, newbuild, electric_charging_station, dishwasher, washing_machine, dryer, order, page.
## Boligsiden API
https://perceptlayer.com/apis/boligsiden
- GET /v1/boligsiden/address: Address. 1 credit. Params: id*.
- GET /v1/boligsiden/agencies: Agencies. 1 credit. Params: location_name*, location_type, address_type, sort_by, sort_ascending, page, per_page.
- GET /v1/boligsiden/agency: Agency. 1 credit. Params: id*.
- GET /v1/boligsiden/foreclosures: Foreclosures. 1 credit. Params: page, per_page, sort_ascending, sort_by.
- GET /v1/boligsiden/listing: Listing. 1 credit. Params: id*.
- GET /v1/boligsiden/locations: Locations. 1 credit. Params: q*, listing_type, address_types[].
- GET /v1/boligsiden/previews: Previews. 1 credit. Params: page, per_page, sort_ascending, zip_codes[], cities[], municipalities[], provinces[], address_types[], sort_by, price_min, price_max, rooms_min, area_min, area_max.
- GET /v1/boligsiden/price-history: Price History. 1 credit. Params: id*.
- GET /v1/boligsiden/reference: Reference. 1 credit. Params: type*.
- GET /v1/boligsiden/search: Search. 1 credit. Params: page, per_page, sort_ascending, zip_codes[], cities[], municipalities[], provinces[], address_types[], listing_type, sort_by, price_min, price_max, rent_min, rent_max, deposit_min, deposit_max, rooms_min, rooms_max, area_min, area_max, lot_area_min, lot_area_max, floor_min, floor_max, monthly_expense_min, monthly_expense_max, year_built_from, year_built_to, energy_labels[], free_text, realtor_id, balcony, terrace, elevator, price_drop, pets_allowed.
## Booking.com API
https://perceptlayer.com/apis/booking
- POST /v1/booking/bulk-prices: Bulk Prices. 1 credit. Params: searches*, debug.
- GET /v1/booking/destinations: Destinations. 1 credit. Params: q*, lang, currency.
- GET /v1/booking/facilities: Facilities. 1 credit. Params: url, country, slug, checkin, checkout, group_adults, group_children, no_rooms, lang, currency.
- GET /v1/booking/hotel: Hotel. 1 credit. Params: url, country, slug.
- GET /v1/booking/photos: Photos. 1 credit. Params: url, country, slug, checkin, checkout, group_adults, group_children, no_rooms, lang, currency.
- GET /v1/booking/prices: Prices. 1 credit. Params: ss*, checkin*, checkout*, group_adults, group_children, no_rooms, dest_id, dest_type, lang, currency.
- GET /v1/booking/review-scores: Review Scores. 1 credit. Params: url, country, slug, checkin, checkout, group_adults, group_children, no_rooms, lang, currency.
- GET /v1/booking/reviews: Reviews. 1 credit. Params: url, country, slug, lang, currency, page, limit, sort.
- GET /v1/booking/rooms: Rooms. 1 credit. Params: url, country, slug, checkin, checkout, group_adults, group_children, no_rooms, lang, currency.
- GET /v1/booking/search: Search. 1 credit. Params: ss*, checkin, checkout, group_adults, group_children, no_rooms, dest_id, dest_type, lang, currency.
- GET /v1/booking/search-by-url: Search By Url. 1 credit. Params: url*.
## Booli API
https://perceptlayer.com/apis/booli
- GET /v1/booli/area-statistics: Area Statistics. 1 credit. Params: area_id*, object_type.
- GET /v1/booli/areas: Areas. 1 credit. Params: query, ids.
- GET /v1/booli/filters: Filters. 1 credit. Params: type.
- GET /v1/booli/listing: Listing. 1 credit. Params: booli_id, residence_id.
- GET /v1/booli/search: Search. 1 credit. Params: area_ids*, sort, ascending, page, limit, object_type, amenities, extend_areas, floor, days_active, showing_start_relative, max_rent, max_distance_to_water, show_only, is_new_construction, upcoming_sale, min_rooms, max_rooms, min_living_area, max_living_area, min_plot_area, max_plot_area, min_construction_year, max_construction_year, min_list_price, max_list_price, min_list_sqm_price, max_list_sqm_price.
- GET /v1/booli/sold: Sold. 1 credit. Params: area_ids*, sort, ascending, page, limit, object_type, amenities, extend_areas, min_sold_date, max_sold_date, min_rooms, max_rooms, min_living_area, max_living_area, min_plot_area, max_plot_area, min_construction_year, max_construction_year, min_sold_price, max_sold_price, min_sold_sqm_price, max_sold_sqm_price.
- GET /v1/booli/sold-properties: Sold Properties. 1 credit. Params: booli_id, residence_id.
## Bproperty API
https://perceptlayer.com/apis/bproperty
- GET /v1/bproperty/agent: Agent. 1 credit. Params: id*.
- GET /v1/bproperty/categories: Categories. 1 credit. Params: type.
- GET /v1/bproperty/cities: Cities. 1 credit.
- GET /v1/bproperty/features: Features. 1 credit.
- GET /v1/bproperty/listing: Listing. 1 credit. Params: slug, id.
- GET /v1/bproperty/location-autocomplete: Location Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/bproperty/search: Search. 1 credit. Params: status*, type, category, area, city, agent_id, q, min_price, max_price, bedrooms, bathrooms, verified, featured, min_lat, max_lat, min_lng, max_lng, sort, page, per_page.
## Brave Search API
https://perceptlayer.com/apis/brave
- GET /v1/brave/search: Search. 1 credit. Params: query*, language, page, include_html, q.
## Bring a Trailer API
https://perceptlayer.com/apis/bring-a-trailer
- GET /v1/bring-a-trailer/auctions-filters: Auctions Filters. 1 credit.
- GET /v1/bring-a-trailer/auctions-search: Auctions Search. 1 credit. Params: auction_status, sale_status, sort, page, per_page, make_or_model, category, era, origin, location_country, minimum_year, maximum_year, minimum_bid, maximum_bid, auction_type, range, zip_code, user_lat, user_lon, maximum_distance, s.
- GET /v1/bring-a-trailer/bids: Bids. 1 credit.
- GET /v1/bring-a-trailer/listings: Listings. 1 credit. Params: id*.
## Capterra API
https://perceptlayer.com/apis/capterra
- GET /v1/capterra/catalog: Catalog. 1 credit. Params: type, page, limit, offset.
- GET /v1/capterra/categories: Categories. 1 credit. Params: type.
- GET /v1/capterra/categories-products: Categories Products. 1 credit. Params: id*, slug, page, sort.
- GET /v1/capterra/compare: Compare. 1 credit. Params: product_a*, product_b*, slug_a, slug_b.
- GET /v1/capterra/products: Products. 1 credit. Params: page, limit, sortBy, categoryIds[], exclude[].
- GET /v1/capterra/products-detail: Products Detail. 1 credit. Params: id*, slug.
- GET /v1/capterra/products-reviews: Products Reviews. 1 credit. Params: id*, slug, page, sort, countries[], company_size[], time_used[], overall_rating_ge.
- GET /v1/capterra/products-reviews-detail: Products Reviews Detail. 1 credit. Params: id*, reviewId*, slug.
- GET /v1/capterra/products-search: Products Search. 1 credit. Params: q*, page, limit.
- GET /v1/capterra/vendors: Vendors. 1 credit. Params: type, limit, offset.
## CarDekho API
https://perceptlayer.com/apis/cardekho
- GET /v1/cardekho/cities: Cities. 1 credit. Params: q*.
- GET /v1/cardekho/makes: Makes. 1 credit.
- GET /v1/cardekho/models: Models. 1 credit. Params: brand*, model*.
- GET /v1/cardekho/new-cars: New Cars. 1 credit. Params: brand*, model*.
- GET /v1/cardekho/new-cars-dealers: New Cars Dealers. 1 credit. Params: brand*, model*.
- GET /v1/cardekho/new-cars-price: New Cars Price. 1 credit. Params: model_slug*, brand*, model*.
- GET /v1/cardekho/used-cars: Used Cars. 1 credit. Params: city, make, model, price_min, price_max, year_min, year_max, km_max, fuel, transmission, body_type, owner, seats, sort, sort_direction, page.
- GET /v1/cardekho/used-cars-dealers: Used Cars Dealers. 1 credit. Params: city_id, latitude, longitude.
- GET /v1/cardekho/used-cars-detail: Used Cars Detail. 1 credit. Params: used_car_sku_id*, city.
- GET /v1/cardekho/used-cars-filters: Used Cars Filters. 1 credit.
- GET /v1/cardekho/used-cars-gallery: Used Cars Gallery. 1 credit. Params: sku_ids[].
- GET /v1/cardekho/used-cars-seller: Used Cars Seller. 1 credit. Params: used_car_sku_id*, city.
## CarGurus API
https://perceptlayer.com/apis/cargurus
- GET /v1/cargurus/dealer: Dealer. 1 credit. Params: service_provider_id*.
- GET /v1/cargurus/makes: Makes. 1 credit. Params: locale, country_code, origin, device_platform.
- GET /v1/cargurus/models: Models. 1 credit. Params: locale, country_code, origin, device_platform, make_id*.
- GET /v1/cargurus/search: Search. 1 credit. Params: make_model_trim_paths, price_min, price_max, distance, sort, sort_direction, page.
## CarMax API
https://perceptlayer.com/apis/carmax
- GET /v1/carmax/filters: Filters. 1 credit.
- GET /v1/carmax/media: Media. 1 credit. Params: stockNumber*.
- GET /v1/carmax/search: Search. 1 credit. Params: make, model, year, mileage, price, sort, zip.
- GET /v1/carmax/store: Store. 1 credit. Params: storeId*.
- GET /v1/carmax/taxonomy: Taxonomy. 1 credit.
## Cars & Bids API
https://perceptlayer.com/apis/cars-and-bids
- GET /v1/cars-and-bids/auction: Auction. 1 credit. Params: id*.
- GET /v1/cars-and-bids/auction-state: Auction State. 1 credit. Params: id*.
- GET /v1/cars-and-bids/search: Search. 1 credit. Params: status, limit, offset, search, make_slug, model_slug, start_year, end_year, sort, transmission, body_style.
## Cars.com API
https://perceptlayer.com/apis/cars-com
- GET /v1/cars-com/dealer: Dealer. 1 credit. Params: listing_id*, zip*.
- GET /v1/cars-com/facets: Facets. 1 credit. Params: zip*.
- GET /v1/cars-com/listing: Listing. 1 credit. Params: listing_id*, zip*.
- GET /v1/cars-com/media: Media. 1 credit. Params: listing_id*, zip*.
- GET /v1/cars-com/model-reviews: Model Reviews. 1 credit. Params: listing_id*, zip*.
- GET /v1/cars-com/price-eval: Price Eval. 1 credit. Params: zip*, radius_miles*, no_accidents, sort*, page*, page_size*.
- GET /v1/cars-com/search: Search. 1 credit. Params: zip*, radius_miles*, makes[], models[], stock_type*, year_min, year_max, fuel_slugs[], transmission_slugs[], seller_type[], sort*, page*, page_size*.
- GET /v1/cars-com/taxonomy: Taxonomy. 1 credit.
## Cars24 API
https://perceptlayer.com/apis/cars24
- GET /v1/cars24/cities: Cities. 1 credit. Params: q.
- GET /v1/cars24/filters: Filters. 1 credit. Params: make, model, year_min, year_max, price_min, price_max, km_min, km_max, fuel, transmission, body_type, color, owners, seats, business_vertical, hub, city_id, view.
- GET /v1/cars24/hubs: Hubs. 1 credit. Params: city_id, code.
- GET /v1/cars24/listing: Listing. 1 credit. Params: id*.
- GET /v1/cars24/locations: Locations. 1 credit. Params: pincode, city_id.
- GET /v1/cars24/makes: Makes. 1 credit. Params: view, city_id.
- GET /v1/cars24/search: Search. 1 credit. Params: make, model, year_min, year_max, price_min, price_max, km_min, km_max, fuel, transmission, body_type, color, owners, seats, business_vertical, hub, city_id, sort, page, size, cursor, lat, lon, nearby.
- GET /v1/cars24/suggestions: Suggestions. 1 credit. Params: q*.
## Carsales API
https://perceptlayer.com/apis/carsales
- GET /v1/carsales/dealer-stock: Dealer Stock. 1 credit. Params: condition, make, model, state, body_style, transmission, keyword, year_min, year_max, price_min, price_max, odometer_min, odometer_max, limit.
- GET /v1/carsales/facets: Facets. 1 credit. Params: condition, make, model, state, body_style, transmission, keyword, year_min, year_max, price_min, price_max, odometer_min, odometer_max, level, q.
- GET /v1/carsales/listing: Listing. 1 credit. Params: id*.
- GET /v1/carsales/search: Search. 1 credit. Params: condition, make, model, state, body_style, transmission, keyword, year_min, year_max, price_min, price_max, odometer_min, odometer_max, seller_type, sort, limit.
- GET /v1/carsales/taxonomy: Taxonomy. 1 credit. Params: condition, make.
- GET /v1/carsales/valuation: Valuation. 1 credit. Params: make*, model*, year*.
## Carvana API
https://perceptlayer.com/apis/carvana
- GET /v1/carvana/delivery: Delivery. 1 credit. Params: zip5*.
- POST /v1/carvana/facets: Facets. 1 credit. Params: filters*.
- POST /v1/carvana/listing: Listing. 1 credit. Params: filters*, pagination, sortBy.
- GET /v1/carvana/media: Media. 1 credit. Params: vehicleId*.
- POST /v1/carvana/search: Search. 1 credit. Params: pagination, filters*, sortBy, zip5, requestedFeatures, browserCookieId, searchSessionId.
- GET /v1/carvana/suggest: Suggest. 1 credit. Params: query*.
- POST /v1/carvana/taxonomy: Taxonomy. 1 credit. Params: filters*.
## Carwow API
https://perceptlayer.com/apis/carwow
- GET /v1/carwow/listing: Listing. 1 credit. Params: id*.
- GET /v1/carwow/model: Model. 1 credit. Params: brand*, model*.
- GET /v1/carwow/search: Search. 1 credit. Params: brand, model, fuel, transmission, page.
## Casa Sapo API
https://perceptlayer.com/apis/casa-sapo
- GET /v1/casa-sapo/agencies: Agencies. 1 credit. Params: page.
- GET /v1/casa-sapo/agency: Agency. 1 credit. Params: id*.
- GET /v1/casa-sapo/agency-listings: Agency Listings. 1 credit. Params: id*, page.
- GET /v1/casa-sapo/listing: Listing. 1 credit. Params: id*.
- GET /v1/casa-sapo/locations: Locations. 1 credit. Params: query*.
- GET /v1/casa-sapo/search: Search. 1 credit. Params: operation*, property_type, location, bedrooms, sort, price_min, price_max, area_min, area_max, seller_type, page.
## Casa.it API
https://perceptlayer.com/apis/casa-it
- GET /v1/casa-it/listing: Listing. 1 credit. Params: id*.
- GET /v1/casa-it/locations: Locations. 1 credit. Params: query*.
- GET /v1/casa-it/search: Search. 1 credit. Params: transaction*, location*, page, price_min, price_max, rooms.
## Cdiscount API
https://perceptlayer.com/apis/cdiscount
- GET /v1/cdiscount/offers: Offers. 1 credit. Params: mode*, offer_id, unit_price, product_id, seller_id.
- GET /v1/cdiscount/product: Product. 1 credit. Params: url, id.
- GET /v1/cdiscount/reviews: Reviews. 1 credit. Params: url, id, page.
- GET /v1/cdiscount/search: Search. 1 credit. Params: query*, category, min_price, max_price, sort, page.
- GET /v1/cdiscount/suggest: Suggest. 1 credit. Params: query*, limit.
## Centaline Property API
https://perceptlayer.com/apis/centaline
- GET /v1/centaline/agent: Agent. 1 credit. Params: agent_no*, lang.
- GET /v1/centaline/agent-listings: Agent Listings. 1 credit. Params: agent_no*, listing_type*, lang, page, size, sort, order.
- GET /v1/centaline/agents: Agents. 1 credit. Params: keyword, page, lang.
- GET /v1/centaline/autocomplete: Autocomplete. 1 credit. Params: keyword*, listing_type, size, lang.
- GET /v1/centaline/branches: Branches. 1 credit. Params: keyword, page, size, lang.
- GET /v1/centaline/filter-options: Filter Options. 1 credit. Params: listing_type, lang.
- GET /v1/centaline/listing: Listing. 1 credit. Params: ref_no*, details, lang.
- GET /v1/centaline/search: Search. 1 credit. Params: listing_type*, lang, page, size, sort, order, price_min, price_max, area_min, area_max, building_age_min, building_age_max, bedrooms, property_type, location, agent_no, mtr_walk_minutes, views, features, facilities, developers, topics, floors.
## Centris API
https://perceptlayer.com/apis/centris
- GET /v1/centris/broker: Broker. 1 credit. Params: code*.
- GET /v1/centris/broker-autocomplete: Broker Autocomplete. 1 credit. Params: query*.
- GET /v1/centris/brokers: Brokers. 1 credit. Params: name, agency, page.
- GET /v1/centris/listing: Listing. 1 credit. Params: mls*.
- GET /v1/centris/listing-photos: Listing Photos. 1 credit. Params: mls*.
- GET /v1/centris/locations: Locations. 1 credit. Params: query*.
- GET /v1/centris/search: Search. 1 credit. Params: transaction_type, property_type, building_type, min_price, max_price, bedrooms, bathrooms, parking, garage, pool, location_id, location_type, broker_id, sort, page.
## Chewy API
https://perceptlayer.com/apis/chewy
- GET /v1/chewy/search: Search. 1 credit. Params: group_id*, page*, sort*, count*.
- GET /v1/chewy/sitemap: Sitemap. 1 credit.
## CHINTAI API
https://perceptlayer.com/apis/chintai
- GET /v1/chintai/agency: Agency. 1 credit. Params: id*.
- GET /v1/chintai/agency-listings: Agency Listings. 1 credit. Params: id*, sort, page.
- GET /v1/chintai/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/chintai/listing: Listing. 1 credit. Params: id*.
- GET /v1/chintai/locations: Locations. 1 credit. Params: level, prefecture.
- GET /v1/chintai/search: Search. 1 credit. Params: prefecture*, city, line, type, min_rent, max_rent, min_area, max_area, layouts, walk_minutes, max_age_years, sort, page.
## Chrome Web Store API
https://perceptlayer.com/apis/chrome-web-store
- GET /v1/chrome-web-store/app: App. 1 credit. Params: id*, hl.
- GET /v1/chrome-web-store/reviews: Reviews. 1 credit. Params: id*, sort, token.
- GET /v1/chrome-web-store/search: Search. 1 credit. Params: q, category, hl, page, token.
## Chrono24 API
https://perceptlayer.com/apis/chrono24
- GET /v1/chrono24/dealer-reviews: Dealer Reviews. 1 credit. Params: dealer_id*, page, size, country.
- GET /v1/chrono24/listing: Listing. 1 credit. Params: id, url, country.
- GET /v1/chrono24/suggest: Suggest. 1 credit. Params: query*, country.
## Ciencuadras API
https://perceptlayer.com/apis/ciencuadras
- GET /v1/ciencuadras/agency: Agency. 1 credit. Params: agency_id*, order, page, per_page.
- GET /v1/ciencuadras/autocomplete: Autocomplete. 1 credit. Params: q*, transaction, size.
- GET /v1/ciencuadras/property: Property. 1 credit. Params: url*.
- GET /v1/ciencuadras/search: Search. 1 credit. Params: transaction*, department, city, locality, neighborhood, property_type[], bedrooms[], bathrooms[], garages[], stratum[], min_price, max_price, min_area, max_area, project, include_map, sort, order, page, per_page.
## Coches.net API
https://perceptlayer.com/apis/coches-net
- GET /v1/coches-net/dealer: Dealer. 1 credit. Params: slug*.
- GET /v1/coches-net/dealer-listings: Dealer Listings. 1 credit. Params: slug*, page.
- GET /v1/coches-net/listing: Listing. 1 credit. Params: path*.
- GET /v1/coches-net/makes: Makes. 1 credit. Params: make_id.
- GET /v1/coches-net/search: Search. 1 credit. Params: q, make_id, model_id, province_id, price_min, price_max, mileage_min, mileage_max, year_min, year_max, fuel, body_type, transmission, seller_type, offer_type, certified, has_photo, sort, order, page.
## CoinGecko API
https://perceptlayer.com/apis/coingecko
- GET /v1/coingecko/coin: Coin. 1 credit. Params: id*, currency.
- GET /v1/coingecko/exchanges: Exchanges. 1 credit. Params: page, per_page.
- GET /v1/coingecko/history: History. 1 credit. Params: id*, days, currency.
- GET /v1/coingecko/listings: Listings. 1 credit. Params: page, per_page, currency, order, category.
- GET /v1/coingecko/markets: Markets. 1 credit. Params: id*, page, currency.
- GET /v1/coingecko/search: Search. 1 credit. Params: page, per_page, q*.
- GET /v1/coingecko/trending: Trending. 1 credit. Params: currency.
## CoinMarketCap API
https://perceptlayer.com/apis/coinmarketcap
- GET /v1/coinmarketcap/coin: Coin. 1 credit. Params: id, slug, currency.
- GET /v1/coinmarketcap/exchanges: Exchanges. 1 credit. Params: page, per_page, sort, order.
- GET /v1/coinmarketcap/history: History. 1 credit. Params: id*, range, interval, currency.
- GET /v1/coinmarketcap/listings: Listings. 1 credit. Params: page, per_page, sort, order, currency.
- GET /v1/coinmarketcap/markets: Markets. 1 credit. Params: page, per_page, id*, sort, category, currency.
- GET /v1/coinmarketcap/search: Search. 1 credit. Params: page, per_page, q*.
- GET /v1/coinmarketcap/trending: Trending. 1 credit. Params: page, per_page, interval, currency.
## Condos.ca API
https://perceptlayer.com/apis/condos-ca
- GET /v1/condos-ca/agent: Agent. 1 credit. Params: url*.
- GET /v1/condos-ca/agents: Agents. 1 credit. Params: query*, limit, page.
- GET /v1/condos-ca/autocomplete: Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/condos-ca/buildings: Buildings. 1 credit. Params: query, id, limit, page.
- GET /v1/condos-ca/listing: Listing. 1 credit. Params: mls_number*.
- GET /v1/condos-ca/search: Search. 1 credit. Params: area_id*, area_type*, mode, min_price, max_price, beds, min_baths, min_sqft, max_sqft, home_type, property_type, parking, locker, balcony, furnished, exposure, amenities, max_maintenance_fee, max_building_age, max_days_on_market, min_photos, sort, page, per_page.
## ConsumerAffairs API
https://perceptlayer.com/apis/consumeraffairs
- GET /v1/consumeraffairs/search: Search. 1 credit. Params: query*, page.
## Copart API
https://perceptlayer.com/apis/copart
- GET /v1/copart/lots-detail: Lots Detail. 1 credit. Params: lot_number*.
- GET /v1/copart/lots-filters: Lots Filters. 1 credit. Params: make, model, year_from, year_to, damage, title_group, yard, odometer_max, buy_it_now.
- GET /v1/copart/lots-images: Lots Images. 1 credit. Params: lot_number*.
- GET /v1/copart/lots-search: Lots Search. 1 credit. Params: make, model, year_from, year_to, damage, title_group, yard, odometer_max, buy_it_now, q, page, per_page.
## Costco API
https://perceptlayer.com/apis/costco
- GET /v1/costco/autocomplete: Autocomplete. 1 credit. Params: country, locale, query*.
- GET /v1/costco/product: Product. 1 credit. Params: country, locale, id*, warehouse.
- GET /v1/costco/product-price: Product Price. 1 credit. Params: country, locale, item*, warehouses[].
- GET /v1/costco/reviews: Reviews. 1 credit. Params: country, product_id*, page, per_page, sort, rating, max_rating, locale.
- GET /v1/costco/reviews-summary: Reviews Summary. 1 credit. Params: country, product_id*.
- GET /v1/costco/search: Search. 1 credit. Params: country, locale, query*, page, per_page, sort, brand[], min_rating, min_price, max_price, category, in_stock, warehouse.
- GET /v1/costco/warehouse: Warehouse. 1 credit. Params: id*, locale, include_gas.
- GET /v1/costco/warehouses: Warehouses. 1 credit. Params: locale, latitude, longitude, postal_code, page, per_page.
## Craigslist API
https://perceptlayer.com/apis/craigslist
- GET /v1/craigslist/categories: Categories. 1 credit. Params: query.
- GET /v1/craigslist/posting: Posting. 1 credit. Params: id*.
- GET /v1/craigslist/search: Search. 1 credit. Params: site, subarea, category, query, min_price, max_price, sort, page.
- GET /v1/craigslist/sites: Sites. 1 credit. Params: country, query.
## Crexi API
https://perceptlayer.com/apis/crexi
- GET /v1/crexi/auction: Auction. 1 credit. Params: id*.
- GET /v1/crexi/lease-listing: Lease Listing. 1 credit. Params: id*.
- GET /v1/crexi/lease-search: Lease Search. 1 credit. Params: location, property_type, min_rate, max_rate, sort, order, page, per_page.
- GET /v1/crexi/lease-spaces: Lease Spaces. 1 credit. Params: id*.
- GET /v1/crexi/listing: Listing. 1 credit. Params: id*.
- GET /v1/crexi/search: Search. 1 credit. Params: state, property_type, trading_status, min_price, max_price, min_cap_rate, min_latitude, max_latitude, min_longitude, max_longitude, include_unpriced, sort, order, page, per_page.
## Dabang API
https://perceptlayer.com/apis/dabang
- GET /v1/dabang/agent: Agent. 1 credit. Params: id*.
- GET /v1/dabang/agents: Agents. 1 credit. Params: lat*, lng*, radius_km, page.
- GET /v1/dabang/autocomplete: Autocomplete. 1 credit. Params: q*, types[].
- GET /v1/dabang/listing: Listing. 1 credit. Params: id*.
- GET /v1/dabang/search: Search. 1 credit. Params: property_type*, sales_type, lat, lng, radius_km, region_code, subway_id, university_id, deposit_min, deposit_max, rent_min, rent_max, price_min, price_max, size_min, size_max, floor[], room_type[], deal_type, building_age_min, building_age_max, household_min, household_max, parking_num_min, elevator, parking, short_lease, duplex, pano, has_take_tenant, page.
## Daft.ie API
https://perceptlayer.com/apis/daft-ie
- GET /v1/daft-ie/agents: Agents. 1 credit. Params: section*, ad_state, sort.
- GET /v1/daft-ie/discovery: Discovery. 1 credit.
- GET /v1/daft-ie/filters: Filters. 1 credit. Params: section*.
- GET /v1/daft-ie/geocode: Geocode. 1 credit. Params: query*.
- GET /v1/daft-ie/listing: Listing. 1 credit. Params: id*.
- GET /v1/daft-ie/locations: Locations. 1 credit. Params: mode, query, id.
- GET /v1/daft-ie/search: Search. 1 credit. Params: section*, ad_state, sort, page, per_page, price_min, price_max, min_beds, max_beds, min_bathrooms, property_type, facility, first_publish_date, keyword, lat, lon, radius, north, south, east, west.
## Dailymotion API
https://perceptlayer.com/apis/dailymotion
- GET /v1/dailymotion/channel: Channel. 1 credit. Params: id*, fields, include, page, limit, sort.
- GET /v1/dailymotion/search: Search. 1 credit. Params: search*, fields, page, limit, sort, filters, channel, tags, languages, country, created_after, created_before, list, user.
- GET /v1/dailymotion/trending: Trending. 1 credit. Params: sort, fields, page, limit, list.
- GET /v1/dailymotion/video: Video. 1 credit. Params: id*, fields.
## Das Örtliche API
https://perceptlayer.com/apis/dasoertliche
- GET /v1/dasoertliche/business: Business. 1 credit. Params: id*.
- GET /v1/dasoertliche/search: Search. 1 credit. Params: query*, location*, page.
## DBA API
https://perceptlayer.com/apis/dba
- GET /v1/dba/listing: Listing. 1 credit. Params: id*.
- GET /v1/dba/search: Search. 1 credit. Params: query, category, price_from, price_to, sort, page, location, condition[], dealer_segment, trade_type, shipping_types, published.
## DDproperty API
https://perceptlayer.com/apis/ddproperty
- GET /v1/ddproperty/agent: Agent. 1 credit. Params: id, url.
- GET /v1/ddproperty/autocomplete: Autocomplete. 1 credit. Params: query*, locale, limit.
- GET /v1/ddproperty/listing: Listing. 1 credit. Params: id, url, listing_type.
- GET /v1/ddproperty/search: Search. 1 credit. Params: listing_type, region_code, district_code, area_code, property_id, keyword, property_type, min_price, max_price, bedrooms, bathrooms, min_size, max_size, sort, page.
## Depop API
https://perceptlayer.com/apis/depop
- GET /v1/depop/brands: Brands. 1 credit. Params: letter, slug, query, limit, offset.
- GET /v1/depop/categories: Categories. 1 credit. Params: view*.
- GET /v1/depop/facets: Facets. 1 credit. Params: query*, country.
- GET /v1/depop/markets: Markets. 1 credit.
- GET /v1/depop/product: Product. 1 credit. Params: product_id*.
- GET /v1/depop/product-extended: Product Extended. 1 credit. Params: slug*.
- GET /v1/depop/product-similar: Product Similar. 1 credit. Params: product_id*, country, limit.
- GET /v1/depop/search: Search. 1 credit. Params: query*, country, limit, cursor, sort, condition, brands, colours, variants, product_types, groups, gender, is_kids, price_min, price_max, discounted, discount_types, min_discount, max_discount.
- GET /v1/depop/shipping-providers: Shipping Providers. 1 credit. Params: country.
- GET /v1/depop/shop: Shop. 1 credit. Params: seller_id, username.
- GET /v1/depop/shop-aggregates: Shop Aggregates. 1 credit. Params: seller_id*.
- GET /v1/depop/shop-feedback: Shop Feedback. 1 credit. Params: seller_id*, role*, limit, offset.
- GET /v1/depop/shop-likes: Shop Likes. 1 credit. Params: seller_id*, limit, cursor.
- GET /v1/depop/shop-products: Shop Products. 1 credit. Params: seller_id*, limit, cursor, ranking.
- GET /v1/depop/shop-sold: Shop Sold. 1 credit. Params: seller_id*, limit, cursor.
- GET /v1/depop/sizes: Sizes. 1 credit.
- GET /v1/depop/suggestions: Suggestions. 1 credit. Params: query*.
- GET /v1/depop/users-search: Users Search. 1 credit. Params: query*.
## derStandard Immobilien API
https://perceptlayer.com/apis/der-standard-immobilien
- GET /v1/der-standard-immobilien/agency: Agency. 1 credit. Params: company_id*, tenure, property_type, sort, page.
- GET /v1/der-standard-immobilien/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/der-standard-immobilien/listing: Listing. 1 credit. Params: id*.
- GET /v1/der-standard-immobilien/search: Search. 1 credit. Params: tenure*, location, osm_ids, property_type, price_min, price_max, area_min, area_max, rooms_min, building_type, property_subtype, amenities, q, company_id, sort, page.
- GET /v1/der-standard-immobilien/similar: Similar. 1 credit. Params: id*.
## DeviantArt API
https://perceptlayer.com/apis/deviantart
- GET /v1/deviantart/deviation: Deviation. 1 credit. Params: username*, deviation_id*.
- GET /v1/deviantart/gallery: Gallery. 1 credit. Params: username*, offset.
- GET /v1/deviantart/search: Search. 1 credit. Params: q*, sort, cursor.
- GET /v1/deviantart/user: User. 1 credit. Params: username*.
## Dice API
https://perceptlayer.com/apis/dice
- GET /v1/dice/job: Job. 1 credit. Params: id*.
- GET /v1/dice/search: Search. 1 credit. Params: query*, location, radius, employment_type[], workplace_type[], posted_date, easy_apply, willing_to_sponsor, page, limit.
## Discogs API
https://perceptlayer.com/apis/discogs
- GET /v1/discogs/marketplace: Marketplace. 1 credit. Params: release_id*, condition, sleeve_condition, currency, ships_from, limit, cursor.
- GET /v1/discogs/release: Release. 1–2 credits. 1 credit, plus 1 when include_sales_stats returns sales statistics. Params: id*, currency, include_sales_stats.
- GET /v1/discogs/search: Search. 1 credit. Params: q, type, format, genre, style, year, country, page, per_page.
## Doctolib API
https://perceptlayer.com/apis/doctolib
- GET /v1/doctolib/practitioner: Practitioner. 1 credit. Params: slug*, visit_motive_id, agenda_ids[], practice_id.
- GET /v1/doctolib/search: Search. 1 credit. Params: specialty*, location*, insurance_type, page.
## Domain Availability API
https://perceptlayer.com/apis/domain-availability
- GET /v1/domain-availability/domains-availability: Domains Availability. 1 credit. Params: domain*.
## Domain.com.au API
https://perceptlayer.com/apis/domain-com-au
- GET /v1/domain-com-au/agency: Agency. 1 credit. Params: slug*.
- GET /v1/domain-com-au/agent: Agent. 1 credit. Params: slug*.
- GET /v1/domain-com-au/agents: Agents. 1 credit. Params: suburb, suburbs[], suburb_slugs[], page, page_size.
- GET /v1/domain-com-au/auction-results: Auction Results. 1 credit. Params: city*.
- GET /v1/domain-com-au/locations: Locations. 1 credit. Params: q*, channel, mode, suburb_slug, page_size.
- GET /v1/domain-com-au/property: Property. 1 credit. Params: listing_id, slug.
- GET /v1/domain-com-au/search: Search. 1 credit. Params: mode*, suburb, suburbs[], region, state, postcode, page, property_types[], listing_attributes[], min_bedrooms, max_bedrooms, min_bathrooms, max_bathrooms, min_carspaces, max_carspaces, min_price, max_price, min_land_area, max_land_area, sold_date_range.
- GET /v1/domain-com-au/suburb-insights: Suburb Insights. 1 credit. Params: slug, top_left[latitude], top_left[longitude], bottom_right[latitude], bottom_right[longitude], bedrooms*, property_type*.
## DoorDash API
https://perceptlayer.com/apis/doordash
- GET /v1/doordash/store: Store. 1–11 credits. 1 credit, plus 1 for each of the first 10 items whose options load with include_options; at most 11. Params: store*, include_options.
- GET /v1/doordash/stores: Stores. 1 credit. Params: query*, lat*, lng*, cursor, sort, min_rating, price_range[], open_now.
## Dot Property API
https://perceptlayer.com/apis/dotproperty
- GET /v1/dotproperty/agent: Agent. 1 credit. Params: id*, slug.
- GET /v1/dotproperty/agents: Agents. 1 credit. Params: page, per_page.
- GET /v1/dotproperty/autocomplete: Autocomplete. 1 credit. Params: query*, listing_category.
- GET /v1/dotproperty/filter-options: Filter Options. 1 credit.
- GET /v1/dotproperty/listing: Listing. 1 credit. Params: id*.
- GET /v1/dotproperty/search: Search. 1 credit. Params: transaction_type, location, property_type[], min_price, max_price, min_price_per_sqm, max_price_per_sqm, bedrooms, min_bedrooms, max_bedrooms, bathrooms, min_bathrooms, max_bathrooms, project_id, agent_id, pets, views[], features[], listed_by, sort, order, page.
## Dribbble API
https://perceptlayer.com/apis/dribbble
- GET /v1/dribbble/popular: Popular. 1 credit. Params: category*, page, per_page.
- GET /v1/dribbble/search: Search. 1 credit. Params: query*.
- GET /v1/dribbble/shot: Shot. 1 credit. Params: id*, slug.
- GET /v1/dribbble/user: User. 1 credit. Params: username*, page, per_page.
## Dubizzle API
https://perceptlayer.com/apis/dubizzle
- GET /v1/dubizzle/classified-search: Classified Search. 1 credit. Params: query, emirate, price_min, price_max, page, limit, category.
- GET /v1/dubizzle/facets: Facets. 1 credit. Params: vertical*, purpose, segment, query, emirate, category, price_min, price_max.
- GET /v1/dubizzle/listing: Listing. 1 credit. Params: id*, vertical*.
- GET /v1/dubizzle/motors-search: Motors Search. 1 credit. Params: query, emirate, price_min, price_max, page, limit, category, year_min, year_max, kilometers_min, kilometers_max, seller_type, sort.
- GET /v1/dubizzle/property-search: Property Search. 1 credit. Params: query, emirate, price_min, price_max, page, limit, purpose, segment, category, bedrooms_min, bedrooms_max, size_min, size_max, furnished, sort.
## DuckDuckGo API
https://perceptlayer.com/apis/duckduckgo
- GET /v1/duckduckgo/maps: Maps. 1 credit. Params: q*, lat, lon, bbox, country, l, limit.
- GET /v1/duckduckgo/news: News. 1 credit. Params: q*, start, region, safe, freshness, date_from.
- GET /v1/duckduckgo/search: Search. 1 credit. Params: q*, kl, df, safe, start.
## eBay API
https://perceptlayer.com/apis/ebay
- GET /v1/ebay/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/ebay/categories: Categories. 1 credit. Params: site, parent, depth.
- GET /v1/ebay/item: Item. 1 credit. Params: item_id*.
- GET /v1/ebay/product-reviews: Product Reviews. 1 credit. Params: epid*, page, sort, rating.
- GET /v1/ebay/seller: Seller. 1 credit. Params: username*, site.
- GET /v1/ebay/seller-feedback: Seller Feedback. 1 credit. Params: username*, site, role, period, rating, include_automated, sort, page, per_page.
## Economy Car Rentals API
https://perceptlayer.com/apis/economy-car-rentals
- GET /v1/economy-car-rentals/autocomplete: Autocomplete. 1 credit. Params: query*, limit, language_id.
## EdgeProp API
https://perceptlayer.com/apis/edgeprop
- GET /v1/edgeprop/search: Search. 1 credit. Params: listing_type*, category, min_price, max_price, bedrooms, bathrooms, min_area, max_area, page.
## Edmunds API
https://perceptlayer.com/apis/edmunds
- GET /v1/edmunds/catalog-makes: Catalog Makes. 1 credit.
- GET /v1/edmunds/catalog-model-years: Catalog Model Years. 1 credit. Params: make*, model*.
- GET /v1/edmunds/catalog-submodels: Catalog Submodels. 1 credit. Params: make*, model*, year, page, per_page.
- GET /v1/edmunds/inventory-listing: Inventory Listing. 1 credit. Params: vin*.
- GET /v1/edmunds/inventory-search: Inventory Search. 1 credit. Params: make*, model*, zip*, type, radius, page, per_page.
- GET /v1/edmunds/reviews-customer: Reviews Customer. 1 credit. Params: submodel_id*, page, per_page, sort.
- GET /v1/edmunds/reviews-editorial: Reviews Editorial. 1 credit. Params: make*, model*, year*, submodel*.
- GET /v1/edmunds/tmv-new: Tmv New. 1 credit. Params: style_id*, zip*.
- GET /v1/edmunds/tmv-used: Tmv Used. 1 credit. Params: style_id*, zip*, mileage*, condition.
## Emlakjet API
https://perceptlayer.com/apis/emlakjet
- GET /v1/emlakjet/agencies: Agencies. 1 credit. Params: location*, page.
- GET /v1/emlakjet/agency: Agency. 1 credit. Params: id*.
- GET /v1/emlakjet/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/emlakjet/listing: Listing. 1 credit. Params: id*.
- GET /v1/emlakjet/locations: Locations. 1 credit. Params: level, id.
- GET /v1/emlakjet/search: Search. 1 credit. Params: trade*, type, location, min_price, max_price, min_area, max_area, rooms, bathrooms, sort, page.
## Encuentra24 API
https://perceptlayer.com/apis/encuentra24
- GET /v1/encuentra24/agent: Agent. 1 credit. Params: id*, country, page.
- GET /v1/encuentra24/autocomplete: Autocomplete. 1 credit. Params: query*, country, limit.
- GET /v1/encuentra24/listing: Listing. 1 credit. Params: link, id, country.
- GET /v1/encuentra24/property-types: Property Types. 1 credit. Params: listing_type.
- GET /v1/encuentra24/search: Search. 1 credit. Params: country, listing_type, property_type, region, keyword, min_price, max_price, min_bedrooms, max_bedrooms, min_bathrooms, max_bathrooms, min_area, max_area, posted_within_days, sort, page.
## Etsy API
https://perceptlayer.com/apis/etsy
- GET /v1/etsy/product: Product. 10 credits. Params: url, listing_id.
## Etuovi API
https://perceptlayer.com/apis/etuovi
- GET /v1/etuovi/agencies: Agencies. 1 credit. Params: location, name.
- GET /v1/etuovi/agency: Agency. 1 credit. Params: id*, include_listings, listing_type, property_type, page, per_page.
- GET /v1/etuovi/agent: Agent. 1 credit. Params: realtor_id*, include_listings.
- GET /v1/etuovi/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/etuovi/listing: Listing. 1 credit. Params: id*, listing_type.
- GET /v1/etuovi/search: Search. 1 credit. Params: listing_type, location, location_type, location_code, property_type, residential_type[], room_counts[], min_price, max_price, min_area, max_area, min_year, max_year, agency_id, sort, page, per_page.
## Eventbrite API
https://perceptlayer.com/apis/eventbrite
- GET /v1/eventbrite/categories: Categories. 1 credit.
- GET /v1/eventbrite/city-browse: City Browse. 1 credit. Params: place_id*, exclude_buckets.
- GET /v1/eventbrite/collections: Collections. 1 credit.
- GET /v1/eventbrite/collections-events: Collections Events. 1 credit. Params: collectionId*.
- GET /v1/eventbrite/event: Event. 1 credit. Params: eventId*.
- GET /v1/eventbrite/event-organizer-events: Event Organizer Events. 1 credit. Params: eventId*.
- GET /v1/eventbrite/event-related: Event Related. 1 credit. Params: eventId*.
- GET /v1/eventbrite/event-tickets: Event Tickets. 1 credit. Params: eventId*.
- GET /v1/eventbrite/event-urgency: Event Urgency. 1 credit. Params: eventId*.
- GET /v1/eventbrite/formats: Formats. 1 credit.
- GET /v1/eventbrite/organizer: Organizer. 1 credit. Params: organizerId*.
- GET /v1/eventbrite/organizer-events: Organizer Events. 1 credit. Params: organizerId*.
- GET /v1/eventbrite/organizer-quality: Organizer Quality. 1 credit. Params: organizerId*.
- GET /v1/eventbrite/organizer-stats: Organizer Stats. 1 credit. Params: organizerId*.
- GET /v1/eventbrite/place: Place. 1 credit. Params: latitude, longitude, google_place_id.
- GET /v1/eventbrite/places: Places. 1 credit. Params: q*.
- GET /v1/eventbrite/search: Search. 1 credit.
- GET /v1/eventbrite/series: Series. 1 credit. Params: seriesId*.
- GET /v1/eventbrite/series-events: Series Events. 1 credit. Params: seriesId*.
- GET /v1/eventbrite/subcategories: Subcategories. 1 credit.
- GET /v1/eventbrite/trending: Trending. 1 credit. Params: location*.
- GET /v1/eventbrite/venues: Venues. 1 credit. Params: q*.
## Expedia API
https://perceptlayer.com/apis/expedia
- GET /v1/expedia/destinations: Destinations. 1 credit. Params: query*, limit.
- GET /v1/expedia/hotels-detail: Hotels Detail. 1 credit. Params: check_in, check_out, adults, property_id*.
- GET /v1/expedia/hotels-rooms: Hotels Rooms. 1 credit. Params: check_in*, check_out*, adults, children, property_id*.
- GET /v1/expedia/hotels-search: Hotels Search. 1 credit. Params: check_in*, check_out*, adults, children, region_id*, region_name, sort, limit, offset.
## Facebook API
https://perceptlayer.com/apis/facebook
- GET /v1/facebook/event: Event. 1 credit. Params: event_id*.
- GET /v1/facebook/event-post: Event Post. 1 credit. Params: permalink*.
- GET /v1/facebook/events: Events. 1 credit. Params: query*, location.
- GET /v1/facebook/group: Group. 1 credit. Params: group_id*.
- GET /v1/facebook/group-posts: Group Posts. 1 credit. Params: group_id*.
- GET /v1/facebook/marketplace-browse: Marketplace Browse. 1 credit. Params: location.
- GET /v1/facebook/marketplace-item: Marketplace Item. 1 credit. Params: listing_id*.
- GET /v1/facebook/marketplace-search: Marketplace Search. 1 credit. Params: query, location.
- GET /v1/facebook/page: Page. 1 credit. Params: handle*.
- GET /v1/facebook/page-about: Page About. 1 credit. Params: handle*.
- GET /v1/facebook/page-events: Page Events. 1 credit. Params: handle*.
- GET /v1/facebook/photo: Photo. 1 credit. Params: photo*.
- GET /v1/facebook/photos: Photos. 1 credit. Params: handle*.
- GET /v1/facebook/post: Post. 1 credit. Params: permalink*.
- GET /v1/facebook/profile: Profile. 1 credit. Params: handle*.
- GET /v1/facebook/profile-about: Profile About. 1 credit. Params: handle*.
- GET /v1/facebook/profile-feed: Profile Feed. 1 credit. Params: handle*.
- GET /v1/facebook/reel: Reel. 1 credit. Params: permalink*.
- GET /v1/facebook/reels: Reels. 1 credit. Params: handle*.
- GET /v1/facebook/search-profiles: Search Profiles. 1 credit. Params: query*, limit.
- GET /v1/facebook/videos: Videos. 1 credit. Params: handle*.
## Facebook Ad Library API
https://perceptlayer.com/apis/facebook-ad-library
- GET /v1/facebook-ad-library/ad-details: Ad Details. 1 credit. Params: ad_archive_id*, page_id*, country.
- GET /v1/facebook-ad-library/advertisers: Advertisers. 1 credit. Params: query*, country, ad_type.
- GET /v1/facebook-ad-library/eu-report: Eu Report. 1 credit. Params: section*, country, time_preset.
- GET /v1/facebook-ad-library/filters: Filters. 1 credit. Params: query, country, ad_type.
- GET /v1/facebook-ad-library/search: Search. 1 credit. Params: query, page_id, country, ad_type, media_type, active_status, publisher_platforms[], start_date, cursor.
## Farfetch API
https://perceptlayer.com/apis/farfetch
- GET /v1/farfetch/product: Product. 1 credit. Params: country, currency, id, url.
- GET /v1/farfetch/search: Search. 1 credit. Params: country, currency, query, designer[], category[], gender, size[], color[], price_min, price_max, sale_only, sort, page, page_size.
## Fincaraiz API
https://perceptlayer.com/apis/fincaraiz
- GET /v1/fincaraiz/agencies: Agencies. 1 credit.
- GET /v1/fincaraiz/agency: Agency. 1 credit. Params: id*.
- GET /v1/fincaraiz/agency-properties: Agency Properties. 1 credit. Params: operation_type_id, property_type_id, minPrice, maxPrice, m2Min, m2Max, bedrooms, bathrooms, rooms, stratum, privateOwner, order, owner_id, rows, page, locations.
- GET /v1/fincaraiz/available-filters: Available Filters. 1 credit.
- GET /v1/fincaraiz/fast-search: Fast Search. 1 credit. Params: operation_type_id, property_type_id, minPrice, maxPrice, m2Min, m2Max, bedrooms, bathrooms, rooms, stratum, privateOwner, order, owner_id, rows, page, locations.
- GET /v1/fincaraiz/location: Location. 1 credit. Params: id*, type.
- GET /v1/fincaraiz/location-autocomplete: Location Autocomplete. 1 credit. Params: term*.
- GET /v1/fincaraiz/location-geometry: Location Geometry. 1 credit. Params: ids*.
- GET /v1/fincaraiz/location-vocabulary: Location Vocabulary. 1 credit. Params: estate_id.
- GET /v1/fincaraiz/map-pins: Map Pins. 1 credit. Params: operation_type_id, property_type_id, minPrice, maxPrice, m2Min, m2Max, bedrooms, bathrooms, rooms, stratum, privateOwner, order, owner_id, rows, page, locations.
- GET /v1/fincaraiz/market-data: Market Data. 1 credit. Params: operation_type_id, property_type_id, minPrice, maxPrice, m2Min, m2Max, bedrooms, bathrooms, rooms, stratum, privateOwner, order, owner_id, rows, page, locations.
- GET /v1/fincaraiz/project: Project. 1 credit. Params: id, ref, type, page, per_page.
- GET /v1/fincaraiz/projects: Projects. 1 credit. Params: id, ref, type, page, per_page.
- GET /v1/fincaraiz/property: Property. 1 credit. Params: id*.
- GET /v1/fincaraiz/route-resolver: Route Resolver. 1 credit. Params: url*.
- GET /v1/fincaraiz/search: Search. 1 credit. Params: operation_type_id, property_type_id, minPrice, maxPrice, m2Min, m2Max, bedrooms, bathrooms, rooms, stratum, privateOwner, order, owner_id, rows, page, locations.
- GET /v1/fincaraiz/seasons: Seasons. 1 credit. Params: property_id*.
- GET /v1/fincaraiz/seo-meta: Seo Meta. 1 credit. Params: path*.
- GET /v1/fincaraiz/similar-properties: Similar Properties. 1 credit. Params: id*, rows, page, is_project.
- GET /v1/fincaraiz/taxonomy: Taxonomy. 1 credit.
## FINN API
https://perceptlayer.com/apis/finn
- GET /v1/finn/torget-listing: Torget Listing. 1 credit. Params: ad_id*.
- GET /v1/finn/torget-search: Torget Search. 1 credit. Params: q, page, rows, sort, category, price_from, price_to, condition, trade_type, dealer_segment, location, published.
## FINN Bil API
https://perceptlayer.com/apis/finn-bil
- GET /v1/finn-bil/dealer: Dealer. 1 credit. Params: dealer_id*, slug.
- GET /v1/finn-bil/dealer-inventory: Dealer Inventory. 1 credit. Params: dealer_id*, page, rows.
- GET /v1/finn-bil/listing: Listing. 1 credit. Params: ad_id*.
- GET /v1/finn-bil/makes: Makes. 1 credit.
- GET /v1/finn-bil/makes-models: Makes Models. 1 credit. Params: make*.
- GET /v1/finn-bil/search: Search. 1 credit. Params: sort, rows, page, q, variant, location, price_from, price_to, year_from, year_to, mileage_from, mileage_to, fuel, body_type, transmission, dealer_segment, sales_form, wheel_drive, engine_effect_from, engine_effect_to, car_equipment, exterior_colour, seats_from, seats_to, registration_class, warranty_insurance, car_condition, wheel_sets, max_trailer_weight_from, max_trailer_weight_to, published, smooth_trade.
## Fiverr API
https://perceptlayer.com/apis/fiverr
- GET /v1/fiverr/gig: Gig. 1 credit. Params: id*.
- GET /v1/fiverr/reviews: Reviews. 1 credit. Params: gig*, page.
- GET /v1/fiverr/search: Search. 1 credit. Params: query, category, price, delivery, seller_level, page.
## Flatmates API
https://perceptlayer.com/apis/flatmates
- GET /v1/flatmates/listing: Listing. 1 credit. Params: url, id, slug.
- GET /v1/flatmates/location-autocomplete: Location Autocomplete. 1 credit. Params: query*, type, limit.
- GET /v1/flatmates/search: Search. 1 credit. Params: location*, page, sort, property_type, bathroom_type, min_budget, max_budget, stay_length, room_type, gender, furnishings, parking, bills_included, preferences.
## Flickr API
https://perceptlayer.com/apis/flickr
- GET /v1/flickr/group: Group. 1 credit. Params: group_id*, page, per_page, tags.
- GET /v1/flickr/photo: Photo. 1 credit. Params: photo_id*.
- GET /v1/flickr/search: Search. 1 credit. Params: text*, page, per_page, sort, tags, user_id, group_id, license, safe_search, content_type.
- GET /v1/flickr/user: User. 1 credit. Params: user_id*, page, per_page.
## FlightAware API
https://perceptlayer.com/apis/flightaware
- GET /v1/flightaware/airport: Airport. 1 credit. Params: code*, mode.
- GET /v1/flightaware/flight: Flight. 2–10 credits. 2 credits for a flight from the last 14 days, 10 for an older one. A flight that isn't found costs nothing. Params: ident*, date*, fetch_by, origin, destination, time, track.
- GET /v1/flightaware/flight-history: Flight History. 1 credit. Params: ident*, fetch_by.
## Flightradar24 API
https://perceptlayer.com/apis/flightradar24
- GET /v1/flightradar24/airport: Airport. 1 credit. Params: code*, mode, limit, page, timestamp.
- GET /v1/flightradar24/disruptions: Disruptions. 1 credit.
- GET /v1/flightradar24/flight: Flight. 1 credit. Params: flight_id*, trail.
- GET /v1/flightradar24/flight-history: Flight History. 1 credit. Params: query*, fetch_by, limit, page, date.
- GET /v1/flightradar24/flights: Flights. 1 credit. Params: bounds, bounds_order, zone, airline, type, reg, callsign, flight, airport, limit, include_ground.
- GET /v1/flightradar24/search: Search. 1 credit. Params: query*, limit.
## FlightStats API
https://perceptlayer.com/apis/flightstats
- GET /v1/flightstats/airport: Airport. 2–12 credits. 2 credits for a board with flights, plus 1 for each row completed with detail=true, at most 10. Params: iata*, mode, date, hour, hours, carrier, limit, detail.
- GET /v1/flightstats/flight: Flight. 1 credit. Params: carrier*, flight_number*, date*, include.
- GET /v1/flightstats/search: Search. 1 credit. Params: query*, type*.
## Flipkart API
https://perceptlayer.com/apis/flipkart
- GET /v1/flipkart/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/flipkart/delivery: Delivery. 1 credit. Params: pid, url, pincode*.
- GET /v1/flipkart/offers: Offers. 1 credit. Params: pid, url.
- GET /v1/flipkart/product: Product. 1 credit. Params: pid, url.
- GET /v1/flipkart/reviews: Reviews. 1 credit. Params: pid, url, sort, page, per_page.
- GET /v1/flipkart/search: Search. 1 credit. Params: query, category, brand, min_price, max_price, sort, page.
## FlixBus API
https://perceptlayer.com/apis/flixbus
- GET /v1/flixbus/calendar: Calendar. 1 credit. Params: from_city_id*, to_city_id*, adults, currency, start_date*, days.
- GET /v1/flixbus/cities: Cities. 1 credit. Params: query*.
- GET /v1/flixbus/city: City. 1 credit. Params: city_id*.
- GET /v1/flixbus/city-catalog: City Catalog. 1 credit. Params: limit, offset.
- GET /v1/flixbus/routes: Routes. 1 credit. Params: city_id*, limit.
- GET /v1/flixbus/search: Search. 1 credit. Params: from_city_id*, to_city_id*, adults, currency, departure_date*, return_date, sort, max_price, max_transfers, departure_after, departure_before.
- GET /v1/flixbus/station: Station. 1 credit. Params: station_id*.
- GET /v1/flixbus/stations: Stations. 1 credit. Params: query*.
- GET /v1/flixbus/trip: Trip. 1 credit. Params: trip_id*.
## Fotocasa API
https://perceptlayer.com/apis/fotocasa
- GET /v1/fotocasa/agency: Agency. 1 credit. Params: client_id, slug, property_type, transaction_type, location[], page, size.
- GET /v1/fotocasa/listing: Listing. 1 credit. Params: path*.
- GET /v1/fotocasa/locations: Locations. 1 credit. Params: query*, variant, property_type, transaction_type.
- GET /v1/fotocasa/map-search: Map Search. 1 credit. Params: property_type, transaction_type, location[], page, size, sort, sort_order_desc, new_construction, latitude*, longitude*.
- GET /v1/fotocasa/polygons: Polygons. 1 credit. Params: level*, code*.
- GET /v1/fotocasa/price-index: Price Index. 1 credit.
- GET /v1/fotocasa/search: Search. 1 credit. Params: property_type, transaction_type, location[], page, size, sort, sort_order_desc, new_construction, latitude, longitude.
## Fresha API
https://perceptlayer.com/apis/fresha
- GET /v1/fresha/reviews: Reviews. 1 credit. Params: id*, page.
- GET /v1/fresha/search: Search. 1 credit. Params: treatment*, location*, page.
- GET /v1/fresha/venue: Venue. 1 credit. Params: id*.
## Funda API
https://perceptlayer.com/apis/funda
- GET /v1/funda/broker: Broker. 1 credit. Params: broker_id*.
- GET /v1/funda/broker-listings: Broker Listings. 1 credit. Params: broker_id*, type, page, limit.
- GET /v1/funda/broker-reviews: Broker Reviews. 1 credit. Params: broker_id*.
- GET /v1/funda/listing: Listing. 1 credit. Params: id, id_type, url.
- GET /v1/funda/listing-similar: Listing Similar. 1 credit. Params: id*.
- GET /v1/funda/listings-index: Listings Index. 1 credit. Params: offering*, page, limit.
## G2 API
https://perceptlayer.com/apis/g2
- GET /v1/g2/categories: Categories. 1 credit.
- GET /v1/g2/categories-grid: Categories Grid. 1 credit. Params: slug*, company_size.
- GET /v1/g2/compare: Compare. 1 credit. Params: a*, b*.
- GET /v1/g2/products: Products. 1 credit. Params: slug*, include[].
- GET /v1/g2/products-alternatives: Products Alternatives. 1 credit. Params: slug*.
- GET /v1/g2/products-features: Products Features. 1 credit. Params: slug*.
- GET /v1/g2/products-pricing: Products Pricing. 1 credit. Params: slug*.
- GET /v1/g2/reviews: Reviews. 1 credit. Params: slug*, stars[], company_size[], coverage, page, sort, role[], industry[], region[], category_id[].
- GET /v1/g2/search: Search. 1 credit. Params: query*, page, order, star_rating[], category_id[].
- GET /v1/g2/sellers: Sellers. 1 credit. Params: slug*.
- GET /v1/g2/suggest: Suggest. 1 credit. Params: query*, limit.
## GasBuddy API
https://perceptlayer.com/apis/gasbuddy
- GET /v1/gasbuddy/station: Station. 1 credit. Params: id*.
- GET /v1/gasbuddy/stations: Stations. 1 credit. Params: search, lat, lng, fuel, brand_id, maxAge, cursor.
## Geizhals API
https://perceptlayer.com/apis/geizhals
- GET /v1/geizhals/price-history: Price History. 1 credit. Params: product_id*, days, loc.
- GET /v1/geizhals/product: Product. 1 credit. Params: product_id*, loc, lang, offers, merchant_details, reviews, videos.
- GET /v1/geizhals/search: Search. 1 credit. Params: query*, loc, lang, page, pagesize, sort, category, manufacturer.
## Gelbe Seiten API
https://perceptlayer.com/apis/gelbeseiten
- GET /v1/gelbeseiten/business: Business. 1 credit. Params: id*.
- GET /v1/gelbeseiten/search: Search. 1 credit. Params: query*, location*, page, radius, sort.
## Genius API
https://perceptlayer.com/apis/genius
- GET /v1/genius/album: Album. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/album-autocomplete: Album Autocomplete. 1 credit. Params: q*.
- GET /v1/genius/album-leaderboard: Album Leaderboard. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/album-page: Album Page. 1 credit. Params: path*.
- GET /v1/genius/album-tracks: Album Tracks. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/annotation: Annotation. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/annotation-edits: Annotation Edits. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/annotation-versions: Annotation Versions. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/artist: Artist. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/artist-albums: Artist Albums. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/artist-autocomplete: Artist Autocomplete. 1 credit. Params: q*.
- GET /v1/genius/artist-leaderboard: Artist Leaderboard. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/artist-songs: Artist Songs. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/chart: Chart. 1 credit. Params: type, chart_genre, time_period, page, per_page.
- GET /v1/genius/chart-state: Chart State. 1 credit. Params: model*, id*.
- GET /v1/genius/hot: Hot. 1 credit. Params: page, per_page.
- GET /v1/genius/lookup: Lookup. 1 credit. Params: url*.
- GET /v1/genius/referent: Referent. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/referents: Referents. 1 credit. Params: song_id*, page, per_page.
- GET /v1/genius/referents-multi: Referents Multi. 1 credit. Params: ids*.
- GET /v1/genius/search: Search. 1 credit. Params: q*, type, page, per_page.
- GET /v1/genius/song: Song. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/song-contributors: Song Contributors. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/song-page: Song Page. 1 credit. Params: path*.
- GET /v1/genius/song-recommendations: Song Recommendations. 1 credit. Params: id*, q, sort, page, per_page.
- GET /v1/genius/videos: Videos. 1 credit. Params: artist_id, album_id, page.
## Getaround API
https://perceptlayer.com/apis/getaround
- GET /v1/getaround/car: Car. 1 credit. Params: path*, domain*, id.
- GET /v1/getaround/search: Search. 1 credit. Params: domain*, latitude, longitude, address, poi_id, start_date*, end_date*, start_time, end_time, price_min, page*.
## GetYourGuide API
https://perceptlayer.com/apis/getyourguide
- GET /v1/getyourguide/activity: Activity. 1 credit. Params: activity_id*, currency*, language*.
- GET /v1/getyourguide/reviews: Reviews. 1 credit. Params: activity_id*, offset*, limit*, language*.
- GET /v1/getyourguide/search: Search. 1 credit. Params: q*, page*, sort*, location_id, currency*, language*.
## GitHub API
https://perceptlayer.com/apis/github
- GET /v1/github/repository: Repository. 1 credit. Params: owner*, repo*.
- GET /v1/github/repository-activity: Repository Activity. 1 credit. Params: owner*, repo*.
- GET /v1/github/repository-branches: Repository Branches. 1 credit. Params: owner*, repo*, page, per_page.
- GET /v1/github/repository-commits: Repository Commits. 1 credit. Params: owner*, repo*, page, per_page, sha, path, author, since, until.
- GET /v1/github/repository-compare-commits: Repository Compare Commits. 1 credit. Params: owner*, repo*, base*, head*.
- GET /v1/github/repository-compare-files: Repository Compare Files. 1 credit. Params: owner*, repo*, base*, head*.
- GET /v1/github/repository-compare-patch: Repository Compare Patch. 1 credit. Params: owner*, repo*, base*, head*.
- GET /v1/github/repository-contributors: Repository Contributors. 1 credit. Params: owner*, repo*, page, per_page, anon.
- GET /v1/github/repository-files: Repository Files. 1 credit. Params: owner*, repo*, path, ref.
- GET /v1/github/repository-files-at-ref: Repository Files At Ref. 1 credit. Params: owner*, repo*, ref*.
- GET /v1/github/repository-issues: Repository Issues. 1 credit. Params: owner*, repo*, page, per_page, state, sort, direction, labels, since.
- GET /v1/github/repository-issues-comments: Repository Issues Comments. 1 credit. Params: number*, owner*, repo*, page, per_page.
- GET /v1/github/repository-languages: Repository Languages. 1 credit. Params: owner*, repo*.
- GET /v1/github/repository-pulls: Repository Pulls. 1 credit. Params: number*, owner*, repo*.
- GET /v1/github/repository-raw-file: Repository Raw File. 1 credit. Params: owner*, repo*, path*, ref*.
- GET /v1/github/repository-readme: Repository Readme. 1 credit. Params: owner*, repo*, ref.
- GET /v1/github/repository-releases: Repository Releases. 1 credit. Params: owner*, repo*, page, per_page.
- GET /v1/github/repository-tags: Repository Tags. 1 credit. Params: owner*, repo*, page, per_page.
- GET /v1/github/repository-tree: Repository Tree. 1 credit. Params: owner*, repo*, ref, recursive.
- GET /v1/github/search-repositories: Search Repositories. 1 credit. Params: q*, sort, order, page, per_page.
- GET /v1/github/trending-developers: Trending Developers. 1 credit. Params: language, since, spoken_language_code.
- GET /v1/github/trending-repositories: Trending Repositories. 1 credit. Params: language, since, spoken_language_code.
- GET /v1/github/user: User. 1 credit. Params: username*.
- GET /v1/github/user-activity: User Activity. 1 credit. Params: username*.
- GET /v1/github/user-contributions: User Contributions. 1 credit. Params: username*, to.
- GET /v1/github/user-counts: User Counts. 1 credit. Params: username*.
- GET /v1/github/user-events: User Events. 1 credit. Params: username*, page, per_page.
- GET /v1/github/user-followers: User Followers. 1 credit. Params: username*, page, per_page.
- GET /v1/github/user-following: User Following. 1 credit. Params: username*, page, per_page.
- GET /v1/github/user-repositories: User Repositories. 1 credit. Params: username*, page, per_page, sort, direction, type.
- GET /v1/github/user-starred: User Starred. 1 credit. Params: username*, page, per_page.
- GET /v1/github/user-tabs: User Tabs. 1 credit. Params: username*, tab, page.
## Glassdoor API
https://perceptlayer.com/apis/glassdoor
- GET /v1/glassdoor/companies-autocomplete: Companies Autocomplete. 1 credit. Params: query*.
- GET /v1/glassdoor/companies-benefits: Companies Benefits. 1 credit. Params: employer_id*.
- GET /v1/glassdoor/companies-interviews: Companies Interviews. 1 credit. Params: employer_id*, page, job_title, experience.
- GET /v1/glassdoor/companies-jobs: Companies Jobs. 1 credit. Params: employer_id*, keyword, cursor, location_id, location_type, from_age, remote_only, easy_apply_only, min_salary, max_salary.
- GET /v1/glassdoor/companies-overview: Companies Overview. 1 credit. Params: employer_id*.
- GET /v1/glassdoor/companies-photos: Companies Photos. 1 credit. Params: employer_id*, page, limit.
- GET /v1/glassdoor/companies-reviews: Companies Reviews. 1 credit. Params: employer_id*, page, limit.
- GET /v1/glassdoor/companies-search: Companies Search. 1 credit. Params: query*, page, limit.
- GET /v1/glassdoor/jobs-details: Jobs Details. 1 credit. Params: listing_id*.
- GET /v1/glassdoor/jobs-search: Jobs Search. 1 credit. Params: keyword*, cursor.
- GET /v1/glassdoor/locations-search: Locations Search. 1 credit. Params: query*.
- GET /v1/glassdoor/salaries: Salaries. 1 credit. Params: job_title*, employer_id, page, limit.
- GET /v1/glassdoor/salaries-estimate: Salaries Estimate. 1 credit. Params: job_title*, country_id, state_id, metro_id, city_id, years_of_experience.
## Gmarket API
https://perceptlayer.com/apis/gmarket
- GET /v1/gmarket/product: Product. 1 credit. Params: id, url.
- GET /v1/gmarket/search: Search. 1 credit. Params: query*, min_price, max_price, sort, page, oversea, big_smile.
## GOAT API
https://perceptlayer.com/apis/goat
- GET /v1/goat/product: Product. 1 credit. Params: url, slug, id, market.
- GET /v1/goat/search: Search. 1 credit. Params: query, brand, category, gender, size, condition, price_min, price_max, instant_ship, under_retail, sale, sort, page, market, include_facets.
## GoodFirms API
https://perceptlayer.com/apis/goodfirms
- GET /v1/goodfirms/company: Company. 1 credit. Params: slug*.
- GET /v1/goodfirms/reviews: Reviews. 1 credit. Params: slug*, page.
- GET /v1/goodfirms/search: Search. 1 credit. Params: country, page.
## Goodreads API
https://perceptlayer.com/apis/goodreads
- GET /v1/goodreads/author: Author. 1 credit. Params: id*.
- GET /v1/goodreads/book: Book. 1 credit. Params: id*.
- GET /v1/goodreads/reviews: Reviews. 1 credit. Params: id*, limit, after.
- GET /v1/goodreads/search: Search. 1 credit. Params: query*, page.
## Google Ads Transparency API
https://perceptlayer.com/apis/google-ads-transparency
- GET /v1/google-ads-transparency/ad: Ad. 1 credit. Params: advertiser_id*, creative_id*.
- GET /v1/google-ads-transparency/ads: Ads. 1 credit. Params: advertiser_id, domain, format, region, date_from, date_to, page_size, page_token.
- GET /v1/google-ads-transparency/advertisers: Advertisers. 1 credit. Params: q*, query, limit, resolve_domain.
## Google Books API
https://perceptlayer.com/apis/google-books
- GET /v1/google-books/isbn: Isbn. 1 credit. Params: isbn*.
- GET /v1/google-books/search: Search. 1 credit. Params: q, author, title, publisher, subject, isbn, free_only, page, limit, language, lang, lr, langRestrict, print_type, printType, ebooks, filter, sort, orderby, country.
- GET /v1/google-books/volume: Volume. 1 credit. Params: id*.
## Google Events API
https://perceptlayer.com/apis/google-events
- GET /v1/google-events/details: Details. 1 credit. Params: event_token*.
- GET /v1/google-events/search: Search. 1 credit. Params: q*, hl, gl, location, uule, htichips, start.
## Google Finance API
https://perceptlayer.com/apis/google-finance
- GET /v1/google-finance/historical: Historical. 1 credit. Params: symbol*, exchange, range, start_date, end_date, interval, hl, gl.
- GET /v1/google-finance/indices: Indices. 1 credit. Params: indices, hl, gl.
- GET /v1/google-finance/intraday: Intraday. 1 credit. Params: symbol*, exchange, hl, gl.
- GET /v1/google-finance/markets: Markets. 1 credit. Params: hl, gl, trend, index_market.
- GET /v1/google-finance/quote: Quote. 1 credit. Params: symbol*, exchange, period_type, hl, gl.
- GET /v1/google-finance/search: Search. 1 credit. Params: q*, hl, gl.
## Google Flights API
https://perceptlayer.com/apis/google-flights
- GET /v1/google-flights/airlines: Airlines. 1 credit.
- GET /v1/google-flights/airports: Airports. 1 credit.
- GET /v1/google-flights/autocomplete: Autocomplete. 1 credit. Params: q*, hl, gl.
- GET /v1/google-flights/booking-details: Booking Details. 1 credit. Params: booking_token*, origin*, destination*, departure_date*, airline*, flight_number*, adults, children, infants_in_seat, infants_on_lap, cabin_class, hl, gl, currency.
- GET /v1/google-flights/calendar: Calendar. 1 credit. Params: origin*, destination*, outbound_date_start*, outbound_date_end*, return_date, trip_length, travel_class, adults, currency, gl, hl.
- GET /v1/google-flights/date-range: Date Range. 1 credit. Params: origin*, destination*, adults, children, infants_in_seat, infants_on_lap, cabin_class, exclude_basic, max_stops, hl, gl, currency, outbound_times, bags, api_version, from_date*, to_date*, trip_duration.
- GET /v1/google-flights/deals: Deals. 1 credit. Params: departure_id*, arrival_area, travel_class, currency, gl, hl.
- GET /v1/google-flights/one-way: One Way. 1 credit. Params: origin*, destination*, adults, children, infants_in_seat, infants_on_lap, cabin_class, exclude_basic, max_stops, hl, gl, currency, outbound_times, bags, departure_date*, sort_by, airlines[], include_baggage, departure_time_min, departure_time_max, arrival_time_min, arrival_time_max, max_duration_minutes, max_price.
- GET /v1/google-flights/round-trip: Round Trip. 1 credit. Params: origin*, destination*, adults, children, infants_in_seat, infants_on_lap, cabin_class, exclude_basic, max_stops, hl, gl, currency, bags, api_version, departure_date*, return_date*, sort_by, airlines[], include_baggage, departure_token, departure_time_min, departure_time_max, arrival_time_min, arrival_time_max, max_duration_minutes, max_price.
## Google Forums API
https://perceptlayer.com/apis/google-forums
- GET /v1/google-forums/search: Search. 1 credit. Params: query*, hl, gl, google_domain, start, page, num.
## Google Hotels API
https://perceptlayer.com/apis/google-hotels
- GET /v1/google-hotels/autocomplete: Autocomplete. 1 credit. Params: q*, hl, gl, currency, type.
- GET /v1/google-hotels/photos: Photos. 1 credit. Params: property_token*, category, next_page_token, hl, gl.
- GET /v1/google-hotels/price-calendar: Price Calendar. 1 credit. Params: property_token*, check_in_start*, check_in_end*, nights, adults, currency, hl, gl.
- GET /v1/google-hotels/reviews: Reviews. 1 credit. Params: property_token*, hl, gl, category_token, next_page_token.
- GET /v1/google-hotels/search: Search. 1 credit. Params: engine, q*, check_in_date*, check_out_date*, adults, children, currency, gl, hl, sort_by, min_price, max_price, hotel_class, free_cancellation, children_ages[], rating, amenities[], vacation_rentals, eco_certified, special_offers, property_types[], brands[], bedrooms, bathrooms, next_page_token, property_token.
## Google Images API
https://perceptlayer.com/apis/google-images
- GET /v1/google-images/images: Images. 1 credit. Params: q*, hl, gl, imgsz, imgtype, imgcolor, imgar, tbs, safe, page.
## Google Jobs API
https://perceptlayer.com/apis/google-jobs
- GET /v1/google-jobs/search: Search. 1 credit. Params: q, next_page_token, uule, lrad, uds, date_posted, job_type, hl, gl, google_domain.
## Google Lens API
https://perceptlayer.com/apis/google-lens
- GET /v1/google-lens/lens: Lens. 1 credit. Params: url*, q, type.
- POST /v1/google-lens/upload: Upload. 1 credit. Params: image, image_base64, q, type.
## Google Local API
https://perceptlayer.com/apis/google-local
- GET /v1/google-local/search: Search. 1 credit. Params: query*, hl*, gl*, location, google_domain, start.
## Google Local Services API
https://perceptlayer.com/apis/google-local-services
- GET /v1/google-local-services/search: Search. 1 credit. Params: q*, hl, gl.
## Google Maps API
https://perceptlayer.com/apis/google-maps
- GET /v1/google-maps/advanced-search: Advanced Search. 1 credit. Params: query*, lon, lat, zoom*, limit, page, hl, gl, google_domain, fields.
- GET /v1/google-maps/autocomplete: Autocomplete. 1 credit. Params: query, q, hl, gl, ll, google_domain.
- GET /v1/google-maps/business-details: Business Details. 1 credit. Params: business_id*, hl, gl.
- GET /v1/google-maps/contributor-reviews: Contributor Reviews. 1 credit. Params: contributor_id*, hl, gl.
- GET /v1/google-maps/directions: Directions. 1 credit. Params: origin*, destination*, mode, hl, gl.
- GET /v1/google-maps/photo-meta: Photo Meta. 1 credit. Params: data_id*, business_id, hl, gl.
- GET /v1/google-maps/photos: Photos. 1 credit. Params: business_id*, page, limit.
- GET /v1/google-maps/popular-times: Popular Times. 1 credit. Params: business_id, place_id, q.
- GET /v1/google-maps/posts: Posts. 1 credit. Params: data_id*, next_page_token, hl, gl.
- GET /v1/google-maps/review: Review. 1 credit. Params: review_id*, business_id*.
- GET /v1/google-maps/reviews: Reviews. 1–50 credits. 1 credit per page of reviews fetched; pages sets how many, up to 50. Params: business_id*, page, pages, search, sort, limit, hl, gl.
- GET /v1/google-maps/simple-search: Simple Search. 1 credit. Params: query*, hl, gl, google_domain, limit, page, fields.
## Google News API
https://perceptlayer.com/apis/google-news
- GET /v1/google-news/decode: Decode. 1 credit. Params: article_id, url, hl, gl.
- GET /v1/google-news/headlines: Headlines. 1 credit. Params: hl, gl.
- GET /v1/google-news/local: Local. 1 credit. Params: city*, hl, gl.
- GET /v1/google-news/news: News. 1 credit. Params: q, gl, hl, topic_token, kgmid, publication_token, section_token, story_token, so, start, page.
- GET /v1/google-news/publication: Publication. 1 credit. Params: domain, publication_token, hl, gl.
- GET /v1/google-news/search: Search. 1 credit. Params: q*, when, after, before, hl, gl.
- GET /v1/google-news/stories: Stories. 1 credit. Params: topic, topic_token, hl, gl.
- GET /v1/google-news/story: Story. 1 credit. Params: story_token*, hl*, gl*.
- GET /v1/google-news/topic: Topic. 1 credit. Params: topic, topic_token, hl, gl.
## Google Patents API
https://perceptlayer.com/apis/google-patents
- GET /v1/google-patents/details: Details. 1 credit. Params: patent_id*.
- GET /v1/google-patents/search: Search. 1 credit. Params: q*, page, num, sort, before, after, country, language, status, type, inventor, assignee.
## Google Play API
https://perceptlayer.com/apis/google-play
- GET /v1/google-play/apps-product: Apps Product. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/audiobooks-product: Audiobooks Product. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/books: Books. 1 credit. Params: cluster, hl, gl.
- GET /v1/google-play/books-product: Books Product. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/charts: Charts. 1 credit. Params: chart, category, num, hl, gl.
- GET /v1/google-play/details: Details. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/developer: Developer. 1 credit. Params: developer_id*, page_token, hl, gl.
- GET /v1/google-play/movies: Movies. 1 credit. Params: cluster, hl, gl.
- GET /v1/google-play/movies-product: Movies Product. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/product: Product. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/product-reviews: Product Reviews. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
- GET /v1/google-play/search: Search. 1 credit. Params: q*, store, hl, gl, price.
- GET /v1/google-play/similar: Similar. 1 credit. Params: product_id*, page_token, hl, gl.
- GET /v1/google-play/tv-product: Tv Product. 1 credit. Params: id, product_id, url, hl, gl, store, season_id, all_reviews, platform, rating, sort_by, num, next_page_token.
## Google Related Questions API
https://perceptlayer.com/apis/google-related-questions
- GET /v1/google-related-questions/related-questions: Related Questions. 1 credit. Params: q, next_page_token, hl, gl.
## Google Scholar API
https://perceptlayer.com/apis/google-scholar
- GET /v1/google-scholar/author: Author. 1 credit. Params: user*, hl, num, start, sort.
- GET /v1/google-scholar/author-citation: Author Citation. 1 credit. Params: user*, citation_id*, hl.
- GET /v1/google-scholar/author-co-authors: Author Co Authors. 1 credit. Params: user*, hl.
- GET /v1/google-scholar/cite: Cite. 1 credit. Params: q*, hl.
- GET /v1/google-scholar/search: Search. 1 credit. Params: q, hl, start, num, as_ylo, as_yhi, scisbd, cites, cluster.
## Google Search API
https://perceptlayer.com/apis/google-search
- GET /v1/google-search/google-ai-mode-search: Google Ai Mode Search. 1 credit. Params: q*, hl, gl, google_domain, uule, follow_up_token.
- GET /v1/google-search/search: Search. 1–2 credits. 1 credit, plus 1 with proxy_country. Params: query*, location, uule, google_domain, gl, cr, hl, lr, ludocid, lsig, kgmid, si, ibp, uds, oq, sclient, gs_lp, tbs, as_qdr, safe, nfpr, filter, tbm, udm, start, include_thumbnails, page, amount, device, proxy_country.
- GET /v1/google-search/search-advanced: Search Advanced. 1–3 credits. 1 credit, plus 1 with proxy_country and 1 with fetch_ai_overview. Params: query*, location, uule, google_domain, gl, cr, hl, lr, ludocid, lsig, kgmid, si, ibp, uds, oq, sclient, gs_lp, tbs, as_qdr, safe, nfpr, filter, tbm, udm, start, include_thumbnails, page, amount, device, proxy_country, fetch_ai_overview.
- GET /v1/google-search/search-advanced-place: Search Advanced Place. 1 credit. Params: detail_url, svid, hl, gl.
- GET /v1/google-search/search-ai-overview: Search Ai Overview. 1 credit. Params: query*, hl, gl, google_domain, uule.
- GET /v1/google-search/search-light: Search Light. 1 credit. Params: query*, num, start, page, hl, lr, gl, cr, safe, dateRestrict, sort, filter, rights.
- GET /v1/google-search/search-light-autocomplete: Search Light Autocomplete. 1 credit. Params: query*, hl, limit.
## Google Shopping API
https://perceptlayer.com/apis/google-shopping
- GET /v1/google-shopping/filters: Filters. 2 credits. Params: q*, gl, hl, shoprs.
- GET /v1/google-shopping/merchant-urls: Merchant Urls. 2 credits. Params: product_id, catalog_id, gpcid, headline_offer_docid, gl, hl, offer_ids.
- GET /v1/google-shopping/product: Product. 2 credits. Params: product_id, catalog_id, gpcid, headline_offer_docid, gl, hl.
- GET /v1/google-shopping/search: Search. 1 credit. Params: q*, gl, hl, location, uule, start, device, small_business, shoprs.
## Google Short Videos API
https://perceptlayer.com/apis/google-short-videos
- GET /v1/google-short-videos/search: Search. 1 credit. Params: query*, hl, gl, google_domain, start, page.
## Google Sports API
https://perceptlayer.com/apis/google-sports
- GET /v1/google-sports/search: Search. 1 credit. Params: q*, hl, gl.
## Google Translate API
https://perceptlayer.com/apis/google-translate
- GET /v1/google-translate/translate: Translate. 1 credit. Params: source*, text*, target*.
## Google Travel Explore API
https://perceptlayer.com/apis/google-travel-explore
- GET /v1/google-travel-explore/flights-explore: Flights Explore. 1 credit. Params: departure_id*, type, travel_class, adults, children, infants, gl, hl, max_price.
## Google Trends API
https://perceptlayer.com/apis/google-trends
- GET /v1/google-trends/autocomplete: Autocomplete. 1 credit. Params: q*, geo, hl.
- GET /v1/google-trends/interest: Interest. 1 credit. Params: q*, geo, time_range, hl, search_type.
- GET /v1/google-trends/interest-by-region: Interest By Region. 1 credit. Params: q*, geo, region, date, cat, gprop, tz, hl.
- GET /v1/google-trends/related: Related. 1 credit. Params: q*, geo, time_range, hl, search_type.
- GET /v1/google-trends/trending-now: Trending Now. 1 credit. Params: geo*, hl, hours, num_news, only_active, sort, category_id.
## Google Videos API
https://perceptlayer.com/apis/google-video
- GET /v1/google-video/videos: Videos. 1 credit. Params: q*, location, uule, google_domain, gl, hl, lr, tbs, safe, nfpr, filter, start, page.
## Goplaceit API
https://perceptlayer.com/apis/goplaceit
- GET /v1/goplaceit/agency: Agency. 1 credit. Params: id*.
- GET /v1/goplaceit/agency-listings: Agency Listings. 1 credit. Params: id*, page, per_page.
- GET /v1/goplaceit/currencies: Currencies. 1 credit.
- GET /v1/goplaceit/listing: Listing. 1 credit. Params: id*, entity_type.
- GET /v1/goplaceit/location-autocomplete: Location Autocomplete. 1 credit. Params: q*, country*, region, limit.
- GET /v1/goplaceit/locations: Locations. 1 credit. Params: country, region, province, commune, children.
- GET /v1/goplaceit/search: Search. 1 credit. Params: country*, mode*, property_type, entity_type, region, commune, neighborhood, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, area_min, area_max, price_min, price_max, currency, sort, page, per_page.
## Grailed API
https://perceptlayer.com/apis/grailed
- GET /v1/grailed/designers: Designers. 1 credit. Params: query*, limit.
- GET /v1/grailed/listing: Listing. 1 credit. Params: id, url.
- GET /v1/grailed/search: Search. 1 credit. Params: query, designer[], category[], department, size[], condition[], price_min, price_max, location[], status, sort, page.
- GET /v1/grailed/user: User. 1 credit. Params: username*, status, page, include[].
## Gratka API
https://perceptlayer.com/apis/gratka
- GET /v1/gratka/location-autocomplete: Location Autocomplete. 1 credit. Params: query*.
- GET /v1/gratka/search: Search. 1 credit. Params: type, transaction, location, district, price_min, price_max, area_min, area_max, rooms, sort, page.
## Green-Acres API
https://perceptlayer.com/apis/green-acres
- GET /v1/green-acres/agency: Agency. 1 credit. Params: agency_key, slug, url.
- GET /v1/green-acres/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/green-acres/listing: Listing. 1 credit. Params: url, id, city_slug.
- GET /v1/green-acres/search: Search. 1 credit. Params: location*, property_type, sort, page, price_min, price_max, living_area_min, living_area_max, land_area_min, land_area_max, rooms_min, rooms_max, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max.
## Greenhouse API
https://perceptlayer.com/apis/greenhouse
- GET /v1/greenhouse/job: Job. 1 credit. Params: board*, job_id*.
- GET /v1/greenhouse/jobs: Jobs. 1 credit. Params: board*, q, location, page, limit, include_content.
## Gumtree API
https://perceptlayer.com/apis/gumtree
- GET /v1/gumtree/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/gumtree/categories: Categories. 1 credit.
- GET /v1/gumtree/listing: Listing. 1 credit. Params: id*.
- GET /v1/gumtree/location: Location. 1 credit. Params: latitude*, longitude*.
- GET /v1/gumtree/search: Search. 1 credit. Params: query, category_id, page, size, min_price, max_price, location_id, location_type, distance, sort.
## H&M API
https://perceptlayer.com/apis/hm
- GET /v1/hm/product: Product. 1 credit. Params: article_id, url, locale.
- GET /v1/hm/search: Search. 1 credit. Params: query, category, locale, page, sort, filters.
## Habitaclia API
https://perceptlayer.com/apis/habitaclia
- GET /v1/habitaclia/listing: Listing. 1 credit. Params: id*.
- GET /v1/habitaclia/locations: Locations. 1 credit. Params: query*, property_type*, transaction_type.
- GET /v1/habitaclia/publisher: Publisher. 1 credit. Params: publisher_id*, page, page_size.
- GET /v1/habitaclia/search: Search. 1 credit. Params: transaction_type*, property_type*, code*, layer_id*, page, page_size, sort_by, min_price, max_price, min_rooms, min_bathrooms, features[], is_private.
## Hacker News API
https://perceptlayer.com/apis/hacker-news
- GET /v1/hacker-news/item: Item. 1 credit. Params: id*, comments.
- GET /v1/hacker-news/search: Search. 1 credit. Params: query*, type, sort, page, per_page, date_from, date_to.
- GET /v1/hacker-news/stories: Stories. 1 credit. Params: type, page, per_page.
- GET /v1/hacker-news/user: User. 1 credit. Params: id*, submissions.
## Halo Oglasi API
https://perceptlayer.com/apis/halo-oglasi
- GET /v1/halo-oglasi/agency: Agency. 1 credit. Params: route*.
- GET /v1/halo-oglasi/agency-ads: Agency Ads. 1 credit. Params: advertiser_id*, listing_type, property_type, min_price, max_price, min_area, max_area, min_rooms, max_rooms, advertiser_type, building_type, location_ids[], sort, page, condition_ids[], furnishing_ids[], heating_ids[], feature_ids[].
- GET /v1/halo-oglasi/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/halo-oglasi/listing: Listing. 1 credit. Params: url*.
- GET /v1/halo-oglasi/search: Search. 1 credit. Params: listing_type, property_type, min_price, max_price, min_area, max_area, min_rooms, max_rooms, advertiser_type, building_type, location_ids[], sort, page, condition_ids[], furnishing_ids[], heating_ids[], feature_ids[].
## Hemnet API
https://perceptlayer.com/apis/hemnet
- GET /v1/hemnet/address-search: Address Search. 1 credit. Params: query*.
- GET /v1/hemnet/agencies: Agencies. 1 credit. Params: location_ids, sort, limit, offset.
- GET /v1/hemnet/agency: Agency. 1 credit. Params: id*, months.
- GET /v1/hemnet/brf: Brf. 1 credit. Params: id*.
- GET /v1/hemnet/broker: Broker. 1 credit. Params: id*, months.
- GET /v1/hemnet/brokers: Brokers. 1 credit. Params: query, location_ids, sort, limit, offset.
- GET /v1/hemnet/cards: Cards. 1 credit. Params: ids[]*.
- GET /v1/hemnet/counts: Counts. 1 credit. Params: for_sale_location_ids, upcoming_location_ids, sold_location_ids.
- GET /v1/hemnet/listing: Listing. 1 credit. Params: id*, images_limit.
- GET /v1/hemnet/locations: Locations. 1 credit. Params: query*, limit, types.
- GET /v1/hemnet/map: Map. 1 credit. Params: mode, family, location_ids, expand_locations, geometries, limit.
- GET /v1/hemnet/media: Media. 1 credit. Params: id*, limit, offset.
- GET /v1/hemnet/price-history: Price History. 1 credit. Params: id*, similar_limit.
- GET /v1/hemnet/project-units: Project Units. 1 credit. Params: id*, limit, offset, featured.
- GET /v1/hemnet/sale-timeline: Sale Timeline. 1 credit. Params: id*, similar_limit.
- GET /v1/hemnet/search: Search. 1 credit. Params: q, location_ids, location_slugs, housing_form_groups, price_min, price_max, fee_min, fee_max, living_area_min, living_area_max, rooms_min, rooms_max, land_area_min, land_area_max, square_meter_price_min, square_meter_price_max, tags, construction_year_min, construction_year_max, new_construction, expand_locations, sort, offset, limit.
- GET /v1/hemnet/similar: Similar. 1 credit. Params: id*, limit.
- GET /v1/hemnet/sold: Sold. 1 credit. Params: location_ids, location_slugs, housing_form_groups, price_min, price_max, fee_min, fee_max, living_area_min, living_area_max, rooms_min, rooms_max, land_area_min, land_area_max, square_meter_price_min, square_meter_price_max, expand_locations, sort, offset, limit.
- GET /v1/hemnet/sold-property: Sold Property. 1 credit. Params: id*, images_limit.
- GET /v1/hemnet/toplist: Toplist. 1 credit. Params: categories.
- GET /v1/hemnet/upcoming: Upcoming. 1 credit. Params: q, location_ids, location_slugs, housing_form_groups, price_min, price_max, fee_min, fee_max, living_area_min, living_area_max, rooms_min, rooms_max, land_area_min, land_area_max, square_meter_price_min, square_meter_price_max, tags, construction_year_min, construction_year_max, new_construction, expand_locations, offset, limit.
## Hepsiburada API
https://perceptlayer.com/apis/hepsiburada
- GET /v1/hepsiburada/categories: Categories. 1 credit. Params: query*, brand.
- GET /v1/hepsiburada/offers: Offers. 1 credit. Params: id*.
- GET /v1/hepsiburada/product: Product. 1 credit. Params: id, url.
- GET /v1/hepsiburada/reviews: Reviews. 1 credit. Params: id*, page, stars, sort, direction.
- GET /v1/hepsiburada/search: Search. 1 credit. Params: query*, page, brand, category.
## Hepsiemlak API
https://perceptlayer.com/apis/hepsiemlak
- GET /v1/hepsiemlak/agency: Agency. 1 credit. Params: agency_id*, property_class, listing_type, page, per_page.
- GET /v1/hepsiemlak/agency-licence: Agency Licence. 1 credit. Params: agency_id*.
- GET /v1/hepsiemlak/autocomplete: Autocomplete. 1 credit. Params: query*, types[], limit.
- GET /v1/hepsiemlak/filters: Filters. 1 credit. Params: property_class, listing_type, city, county[].
- GET /v1/hepsiemlak/listing: Listing. 1 credit. Params: id*.
- GET /v1/hepsiemlak/listings: Listings. 1 credit. Params: ids[], with_description.
- GET /v1/hepsiemlak/locations: Locations. 1 credit. Params: city_id, county_id.
- GET /v1/hepsiemlak/map: Map. 1 credit. Params: property_class, listing_type, property_type[], city, county[], district[], area[], rooms[], bathrooms[], building_age[], floors[], heating[], owner_type[], usage_status[], media[], listing_date, furnish_status, keyword, agency_id, page, per_page, furnished, balcony, elevator, garden, parking, within_complex, loan_eligible, barter, has_campaign, price_min, price_max, area_min, area_max, net_area_min, net_area_max, top_left*, bottom_right*.
- GET /v1/hepsiemlak/price-index: Price Index. 1 credit. Params: city_id*, county_id, district_id.
- GET /v1/hepsiemlak/project: Project. 1 credit. Params: id*.
- GET /v1/hepsiemlak/projects: Projects. 1 credit. Params: city, county[], page, per_page.
- GET /v1/hepsiemlak/search: Search. 1 credit. Params: property_class, listing_type, property_type[], city, county[], district[], area[], rooms[], bathrooms[], building_age[], floors[], heating[], owner_type[], usage_status[], media[], listing_date, furnish_status, keyword, agency_id, sort, page, per_page, furnished, balcony, elevator, garden, parking, within_complex, loan_eligible, barter, has_campaign, price_min, price_max, area_min, area_max, net_area_min, net_area_max.
- GET /v1/hepsiemlak/similar: Similar. 1 credit. Params: id*.
## heycar API
https://perceptlayer.com/apis/heycar
- GET /v1/heycar/dealer: Dealer. 1 credit. Params: dealer_id*, page, size, sort.
- GET /v1/heycar/listing: Listing. 1 credit. Params: id, heycar_id.
- GET /v1/heycar/search: Search. 1 credit. Params: page, size, sort, make, model, price_min, price_max, mileage_max, fuel_type, body_type, gearbox, lat, lon.
## HolidayCheck API
https://perceptlayer.com/apis/holidaycheck
- GET /v1/holidaycheck/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/holidaycheck/hotel: Hotel. 1 credit. Params: hotel_id*.
- GET /v1/holidaycheck/hotels: Hotels. 1 credit. Params: destination_id*, limit, offset.
- GET /v1/holidaycheck/reviews: Reviews. 1 credit. Params: hotel_id*, limit, offset.
## Holidu API
https://perceptlayer.com/apis/holidu
- GET /v1/holidu/autocomplete: Autocomplete. 1 credit. Params: query*, market.
- GET /v1/holidu/availability-bulk: Availability Bulk. 1 credit. Params: offer_ids[], check_in*, check_out*, adults, children_ages[], market.
- GET /v1/holidu/filters: Filters. 1 credit. Params: query*, market.
- GET /v1/holidu/property: Property. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-audience-highlights: Property Audience Highlights. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-availability: Property Availability. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-description: Property Description. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-holidu-check: Property Holidu Check. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-multiunit: Property Multiunit. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-offers: Property Offers. 1 credit. Params: group_id*, query*, check_in, check_out, adults, children_ages[], market.
- GET /v1/holidu/property-pois: Property Pois. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-prices: Property Prices. 1 credit. Params: offer_id*, check_in*, check_out*, adults, children_ages[], market.
- GET /v1/holidu/property-review: Property Review. 1 credit. Params: review_id*, offer_id*, market.
- GET /v1/holidu/property-review-extracts: Property Review Extracts. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/property-reviews: Property Reviews. 1 credit. Params: page, page_size, offer_id*, market.
- GET /v1/holidu/recommendations: Recommendations. 1 credit. Params: offer_id*, market.
- GET /v1/holidu/regions-themes: Regions Themes. 1 credit. Params: region_id*, market.
- GET /v1/holidu/route-meta: Route Meta. 1 credit. Params: href*, market.
- GET /v1/holidu/search: Search. 1 credit. Params: query, ne_lat, ne_lng, sw_lat, sw_lng, property_type[], bedrooms, rating, amenities[], min_price, max_price, page, sort, order, check_in, check_out, adults, children_ages[], market.
- GET /v1/holidu/smart-filters: Smart Filters. 1 credit. Params: query*, market.
## Homegate API
https://perceptlayer.com/apis/homegate
- GET /v1/homegate/listing: Listing. 1 credit. Params: id*.
- GET /v1/homegate/locations: Locations. 1 credit. Params: name, ids, lang, from, size.
- GET /v1/homegate/search: Search. 1 credit. Params: offer_type, location*, page, size.
## Homely API
https://perceptlayer.com/apis/homely
- GET /v1/homely/listing: Listing. 1 credit. Params: id*.
- GET /v1/homely/location-autocomplete: Location Autocomplete. 1 credit. Params: q*.
- GET /v1/homely/office: Office. 1 credit. Params: id*.
- GET /v1/homely/search: Search. 1 credit. Params: mode*, location, postcode, property_types[], beds_min, baths_min, cars_min, price_min, price_max, land_size_min, land_size_max, sort, page, per_page.
## homes.co.nz API
https://perceptlayer.com/apis/homes-co-nz
- GET /v1/homes-co-nz/agency: Agency. 1 credit. Params: id*.
- GET /v1/homes-co-nz/agent: Agent. 1 credit. Params: id*.
- GET /v1/homes-co-nz/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/homes-co-nz/listing: Listing. 1 credit. Params: id, url.
- GET /v1/homes-co-nz/property: Property. 1 credit. Params: property_id*, month_limit.
- GET /v1/homes-co-nz/search: Search. 1 credit. Params: type*, q, bbox, polyline, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, price_min, price_max, date_min, date_max, sort, page, per_page.
## Homes.com API
https://perceptlayer.com/apis/homes-com
- GET /v1/homes-com/agent: Agent. 1 credit. Params: id*.
- GET /v1/homes-com/agent-autocomplete: Agent Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/homes-com/autocomplete: Autocomplete. 1 credit. Params: query*, limit, type, listing_type.
- GET /v1/homes-com/listing: Listing. 1 credit. Params: id, url.
- GET /v1/homes-com/neighborhood: Neighborhood. 1 credit. Params: id*.
- GET /v1/homes-com/school: School. 1 credit. Params: id*.
- GET /v1/homes-com/search: Search. 1 credit. Params: location, location_id, bounding_box, listing_type, status, open_houses, min_price, max_price, min_beds, max_beds, min_baths, max_baths, min_sqft, max_sqft, min_year_built, max_year_built, property_type[], sort, page, per_page, facets.
## HomeToGo API
https://perceptlayer.com/apis/hometogo
- GET /v1/hometogo/filters: Filters. 1 credit. Params: location_id, destination.
- GET /v1/hometogo/nearby: Nearby. 1 credit. Params: offer_id*.
- GET /v1/hometogo/offer: Offer. 1 credit. Params: check_in, check_out, adults, children, currency, offer_id*.
- GET /v1/hometogo/price-histogram: Price Histogram. 1 credit. Params: location_id, destination, check_in*, check_out*, adults, children, currency.
- GET /v1/hometogo/providers: Providers. 1 credit. Params: check_in, check_out, adults, children, currency, offer_id*.
- GET /v1/hometogo/reviews: Reviews. 1 credit. Params: offer_id*, limit, offset.
- GET /v1/hometogo/search: Search. 1 credit. Params: location_id, destination, check_in*, check_out*, adults, children, currency, limit, offset, page, sort, min_price, max_price, type[], bedrooms, bathrooms, amenities[], rating, sale_type.
- GET /v1/hometogo/suggest: Suggest. 1 credit. Params: query*.
## Hostelworld API
https://perceptlayer.com/apis/hostelworld
- GET /v1/hostelworld/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/hostelworld/availability: Availability. 1 credit. Params: property_id*, check_in*, nights, guests, currency.
- GET /v1/hostelworld/property: Property. 1 credit. Params: property_id*, currency.
- GET /v1/hostelworld/reviews: Reviews. 1 credit. Params: property_id*, page, per_page, sort.
- GET /v1/hostelworld/search: Search. 1 credit. Params: city_id*, check_in, nights, guests, currency, sort, page, per_page.
## HotPads API
https://perceptlayer.com/apis/hotpads
- GET /v1/hotpads/listing: Listing. 1 credit. Params: id*.
- GET /v1/hotpads/search: Search. 1 credit. Params: area*, type, beds, min_price, max_price, page.
## HouseSigma API
https://perceptlayer.com/apis/housesigma
- GET /v1/housesigma/listing: Listing. 1 credit. Params: id*.
- GET /v1/housesigma/locations: Locations. 1 credit. Params: q*, province.
- GET /v1/housesigma/market: Market. 1 credit. Params: municipality_id*, province.
- GET /v1/housesigma/nearby: Nearby. 1 credit. Params: id*.
- GET /v1/housesigma/search: Search. 1 credit. Params: municipality_id*, community_id, operation, province, type, price_min, price_max, bedrooms, bathrooms, garage, area_min, area_max, lot_min, lot_max, listing_days, keyword, sort, page.
## Housing.com API
https://perceptlayer.com/apis/housing-com
- GET /v1/housing-com/agent: Agent. 1 credit. Params: id*.
- GET /v1/housing-com/agent-listings: Agent Listings. 1 credit. Params: listings_hash*, service, page.
- GET /v1/housing-com/autocomplete: Autocomplete. 1 credit. Params: query*, city*, limit.
- GET /v1/housing-com/cities: Cities. 1 credit. Params: service, query.
- GET /v1/housing-com/listing: Listing. 1 credit. Params: id*, type*.
- GET /v1/housing-com/search: Search. 1 credit. Params: service*, city*, location, canonical, price_min, price_max, area_min, area_max, bedrooms[], property_type[], furnishing[], listed_by[], added_within_days, sort, order, page.
## Houzz API
https://perceptlayer.com/apis/houzz
- GET /v1/houzz/pro: Pro. 1 credit. Params: id, profile_id, url.
- GET /v1/houzz/reviews: Reviews. 1 credit. Params: user_id*, pro_id*, page, limit, sort, search.
## Hybel API
https://perceptlayer.com/apis/hybel
- GET /v1/hybel/listing: Listing. 1 credit. Params: id*.
- GET /v1/hybel/location-autocomplete: Location Autocomplete. 1 credit. Params: q*, include_districts.
- GET /v1/hybel/search: Search. 1 credit. Params: place*, min_rent, max_rent, home_type, rooms, rent_period, available_from, available_to, district, sort, page, student_housing, balcony, pets_allowed, parking, elevator, internet_included, furnished.
## IAAI API
https://perceptlayer.com/apis/iaai
- GET /v1/iaai/search: Search. 1 credit. Params: query, make, model, year, year_from, year_to, odometer_from, odometer_to, damage, sort, order, page, per_page.
- GET /v1/iaai/vehicle: Vehicle. 1 credit. Params: id*.
## Idealista API
https://perceptlayer.com/apis/idealista
- GET /v1/idealista/agency: Agency. 1 credit. Params: country*, microsite_short_name*.
- POST /v1/idealista/deeplink-build: Deeplink Build. 1 credit. Params: country*, location_id*, operation, property_type, locale.
- GET /v1/idealista/deeplink-parse: Deeplink Parse. 1 credit. Params: country*, url*, locale.
- GET /v1/idealista/filters: Filters. 1 credit. Params: country*, operation*, property_type*, location_id*, locale, quality, gallery.
- GET /v1/idealista/home: Home. 1 credit. Params: country*, locale, quality.
- GET /v1/idealista/listing: Listing. 1 credit. Params: country*, ad_id*, include[], typology, from_date, to_date, guests, quality, locale, language, max_items.
- GET /v1/idealista/listing-multimedia: Listing Multimedia. 1 credit. Params: country*, ad_id*, quality, language.
- GET /v1/idealista/listing-stats: Listing Stats. 1 credit. Params: country*, ad_id*, language.
- GET /v1/idealista/location: Location. 1 credit. Params: country*, location_id*.
- GET /v1/idealista/locations: Locations. 1 credit. Params: country*, mode*, prefix, coordinates, property_type, operation, locale, language, filter, location_id.
- GET /v1/idealista/map-georeach: Map Georeach. 1 credit. Params: country*, operation*, property_type*, location_id, center, distance, max_items, num_page, order, sort, quality, gallery, locale, microsite_short_name, chalet, current_occupation_type, auction, home_type, bank_offer, advertiser_type, min_price, max_price, min_size, max_size, min_rooms, max_rooms, shape.
- GET /v1/idealista/map-multizone: Map Multizone. 1 credit. Params: country*.
- GET /v1/idealista/map-search: Map Search. 1 credit. Params: country*, operation*, property_type*, location_id, center, distance, max_items, num_page, order, sort, quality, gallery, locale, microsite_short_name, chalet, current_occupation_type, auction, home_type, bank_offer, advertiser_type, min_price, max_price, min_size, max_size, min_rooms, max_rooms, shape, mode*.
- POST /v1/idealista/map-simplify: Map Simplify. 1 credit. Params: country*, shape*.
- GET /v1/idealista/map-static: Map Static. 1 credit. Params: country*, location_id*, aspect_ratio.
- GET /v1/idealista/map-tiles: Map Tiles. 1 credit. Params: country*, operation*, property_type*, location_id, center, distance, max_items, num_page, order, sort, quality, gallery, locale, microsite_short_name, chalet, current_occupation_type, auction, home_type, bank_offer, advertiser_type, min_price, max_price, min_size, max_size, min_rooms, max_rooms, shape, z*, x*, y*.
- GET /v1/idealista/map-zoi: Map Zoi. 1 credit. Params: country*, slug*, language.
- GET /v1/idealista/news: News. 1 credit. Params: country*.
- GET /v1/idealista/phones-prefixes: Phones Prefixes. 1 credit. Params: country*, language*.
- GET /v1/idealista/search: Search. 1 credit. Params: country*, operation*, property_type*, location_id, center, distance, max_items, num_page, order, sort, quality, gallery, locale, microsite_short_name, chalet, current_occupation_type, auction, home_type, bank_offer, advertiser_type, min_price, max_price, min_size, max_size, min_rooms, max_rooms, shape.
- POST /v1/idealista/shorturis: Shorturis. 1 credit. Params: country*, direction*, location_id, operation, property_type, locale, short_uris.
- GET /v1/idealista/vacation-calendar: Vacation Calendar. 1 credit. Params: country*, ad_id*, include[], from_date, to_date, guests.
## Idealo API
https://perceptlayer.com/apis/idealo
- GET /v1/idealo/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/idealo/brand-products: Brand Products. 1 credit. Params: brand_id, brand, page, sort, filters[], item_states[], price_min, price_max.
- GET /v1/idealo/categories: Categories. 1 credit.
- GET /v1/idealo/deals: Deals. 1 credit. Params: category_id*, deal_type, page, sort, filters[], price_min, price_max.
- GET /v1/idealo/international-prices: International Prices. 1 credit. Params: product_id*.
- GET /v1/idealo/offers: Offers. 1 credit. Params: product_id*, page, all, include_shop_ratings.
- GET /v1/idealo/product: Product. 1 credit. Params: product_id*.
- GET /v1/idealo/products: Products. 1 credit. Params: ids[].
- GET /v1/idealo/reviews: Reviews. 1 credit. Params: product_id*, page.
- GET /v1/idealo/search: Search. 1 credit. Params: query, category_id, page, sort, filters[], item_states[], price_min, price_max.
- GET /v1/idealo/shop: Shop. 1 credit. Params: shop_id*.
- GET /v1/idealo/shop-products: Shop Products. 1 credit. Params: shop_id*, category_id*, page, sort, filters[], item_states[], price_min, price_max.
- GET /v1/idealo/trending: Trending. 1 credit.
## IKEA API
https://perceptlayer.com/apis/ikea
- GET /v1/ikea/product: Product. 1 credit. Params: item_number, url, country, store_id.
- GET /v1/ikea/search: Search. 1 credit. Params: query*, page, country, store_id, sort.
- GET /v1/ikea/stores: Stores. 1 credit. Params: country.
## Imgur API
https://perceptlayer.com/apis/imgur
- GET /v1/imgur/post: Post. 1 credit. Params: id*.
- GET /v1/imgur/search: Search. 1 credit. Params: q*, page, sort.
- GET /v1/imgur/tag: Tag. 1 credit. Params: tag*, page, window.
- GET /v1/imgur/user: User. 1 credit. Params: username*, page.
- GET /v1/imgur/viral: Viral. 1 credit. Params: page, sort.
## ImmobilienScout24 API
https://perceptlayer.com/apis/immobilienscout24
- GET /v1/immobilienscout24/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/immobilienscout24/price-insights: Price Insights. 1 credit. Params: location*.
- GET /v1/immobilienscout24/property: Property. 1 credit. Params: id*.
- GET /v1/immobilienscout24/search: Search. 1 credit. Params: location*, type, price_min, price_max, rooms_min, rooms_max, size_min, size_max, page, per_page.
## ImmobilienScout24 Austria API
https://perceptlayer.com/apis/immobilienscout24-at
- GET /v1/immobilienscout24-at/immoscout24-at-agency: Immoscout24 At Agency. 1 credit. Params: cwid*, path.
- GET /v1/immobilienscout24-at/immoscout24-at-agency-directory: Immoscout24 At Agency Directory. 1 credit. Params: region, page.
- GET /v1/immobilienscout24-at/immoscout24-at-agency-listings: Immoscout24 At Agency Listings. 1 credit. Params: cwid*, type, size, from.
- GET /v1/immobilienscout24-at/immoscout24-at-autocomplete: Immoscout24 At Autocomplete. 1 credit. Params: term*, level.
- GET /v1/immobilienscout24-at/immoscout24-at-facets: Immoscout24 At Facets. 1 credit. Params: region, keywords, zip_code, shape_id, sort, transfer_type, use_type, estate_type, estate_detail_type, condition_type, condition_age, outdoor_spaces, accessibility, bathroom, construction_method, facilities, lift, furnishing, transit_line_types, price_from, price_to, rooms_from, rooms_to, area_from, area_to, plot_area_from, plot_area_to, price_per_sqm_from, price_per_sqm_to, parking_spaces, has_commission, is_developer_project, is_forced_sale, is_investment_property, is_private_insertion, is_shortterm_rentable, is_social_housing, is_suitable_as_holiday_home, requires_financial_contribution.
- GET /v1/immobilienscout24-at/immoscout24-at-locations: Immoscout24 At Locations. 1 credit. Params: id.
- GET /v1/immobilienscout24-at/immoscout24-at-map-markers: Immoscout24 At Map Markers. 1 credit. Params: region, keywords, zip_code, shape_id, sort, transfer_type, use_type, estate_type, estate_detail_type, condition_type, condition_age, outdoor_spaces, accessibility, bathroom, construction_method, facilities, lift, furnishing, transit_line_types, price_from, price_to, rooms_from, rooms_to, area_from, area_to, plot_area_from, plot_area_to, price_per_sqm_from, price_per_sqm_to, parking_spaces, has_commission, is_developer_project, is_forced_sale, is_investment_property, is_private_insertion, is_shortterm_rentable, is_social_housing, is_suitable_as_holiday_home, requires_financial_contribution, bottom_left_lat*, bottom_left_lon*, top_right_lat*, top_right_lon*, zoom.
- GET /v1/immobilienscout24-at/immoscout24-at-price-insights: Immoscout24 At Price Insights. 1 credit. Params: id*.
- GET /v1/immobilienscout24-at/immoscout24-at-properties: Immoscout24 At Properties. 1 credit. Params: ids[], ids*.
- GET /v1/immobilienscout24-at/immoscout24-at-property: Immoscout24 At Property. 1 credit. Params: id*.
- GET /v1/immobilienscout24-at/immoscout24-at-search: Immoscout24 At Search. 1 credit. Params: region, keywords, zip_code, shape_id, sort, transfer_type, use_type, estate_type, estate_detail_type, condition_type, condition_age, outdoor_spaces, accessibility, bathroom, construction_method, facilities, lift, furnishing, transit_line_types, price_from, price_to, rooms_from, rooms_to, area_from, area_to, plot_area_from, plot_area_to, price_per_sqm_from, price_per_sqm_to, parking_spaces, has_commission, is_developer_project, is_forced_sale, is_investment_property, is_private_insertion, is_shortterm_rentable, is_social_housing, is_suitable_as_holiday_home, requires_financial_contribution, size, from.
- GET /v1/immobilienscout24-at/immoscout24-at-search-parse: Immoscout24 At Search Parse. 1 credit. Params: query*.
- GET /v1/immobilienscout24-at/immoscout24-at-search-relax: Immoscout24 At Search Relax. 1 credit. Params: region, keywords, zip_code, shape_id, sort, transfer_type, use_type, estate_type, estate_detail_type, condition_type, condition_age, outdoor_spaces, accessibility, bathroom, construction_method, facilities, lift, furnishing, transit_line_types, price_from, price_to, rooms_from, rooms_to, area_from, area_to, plot_area_from, plot_area_to, price_per_sqm_from, price_per_sqm_to, parking_spaces, has_commission, is_developer_project, is_forced_sale, is_investment_property, is_private_insertion, is_shortterm_rentable, is_social_housing, is_suitable_as_holiday_home, requires_financial_contribution.
- GET /v1/immobilienscout24-at/immoscout24-at-search-url: Immoscout24 At Search Url. 1 credit. Params: region, keywords, zip_code, shape_id, sort, transfer_type, use_type, estate_type, estate_detail_type, condition_type, condition_age, outdoor_spaces, accessibility, bathroom, construction_method, facilities, lift, furnishing, transit_line_types, price_from, price_to, rooms_from, rooms_to, area_from, area_to, plot_area_from, plot_area_to, price_per_sqm_from, price_per_sqm_to, parking_spaces, has_commission, is_developer_project, is_forced_sale, is_investment_property, is_private_insertion, is_shortterm_rentable, is_social_housing, is_suitable_as_holiday_home, requires_financial_contribution.
- GET /v1/immobilienscout24-at/immoscout24-at-similar: Immoscout24 At Similar. 1 credit. Params: id*, size.
## immobilier.notaires.fr API
https://perceptlayer.com/apis/notaires-immo
- GET /v1/notaires-immo/agency: Agency. 1 credit. Params: crpcen*.
- GET /v1/notaires-immo/autocomplete: Autocomplete. 1 credit. Params: q*, kind, size.
- GET /v1/notaires-immo/listing: Listing. 1 credit. Params: annonce_id*.
- GET /v1/notaires-immo/listing-contact: Listing Contact. 1 credit. Params: annonce_id*.
- GET /v1/notaires-immo/locality: Locality. 1 credit. Params: id*.
- GET /v1/notaires-immo/locality-group: Locality Group. 1 credit. Params: id*.
- GET /v1/notaires-immo/search: Search. 1 credit. Params: transaction, locality, department, radius_km, min_price, max_price, min_surface, max_surface, rooms, min_rooms, max_rooms, bedrooms, min_bedrooms, max_bedrooms, property_type, viager, crpcen, reference, sort, page, per_page.
## ImmoScout24 Switzerland API
https://perceptlayer.com/apis/immoscout24-ch
- GET /v1/immoscout24-ch/flatfox-listing: Flatfox Listing. 1 credit. Params: pk[], organization, limit, offset.
- GET /v1/immoscout24-ch/flatfox-search: Flatfox Search. 1 credit. Params: north*, south*, east*, west*, offer_type, object_category, min_price, max_price, min_rooms, organization, max_count.
- GET /v1/immoscout24-ch/listing: Listing. 1 credit. Params: id*, lang.
- GET /v1/immoscout24-ch/locations: Locations. 1 credit. Params: name, ids, house_pk, lang, from, size.
- GET /v1/immoscout24-ch/price-statistics: Price Statistics. 1 credit. Params: level_id*, level, operation, kpi_type, category, years.
- GET /v1/immoscout24-ch/search: Search. 1 credit. Params: offer_type, property_type, geo_tags[], min_price, max_price, min_rooms, max_rooms, min_area, balcony, elevator, lister_id, semantic_query, sort_by, sort_direction, lang, page, size.
## Immovlan API
https://perceptlayer.com/apis/immovlan
- GET /v1/immovlan/agency: Agency. 1 credit. Params: id*.
- GET /v1/immovlan/agency-listings: Agency Listings. 1 credit. Params: transaction, agency_id*, sort, order, page, property_type[], property_subtype[], epc_rating[], tag[], facade[], state[], seller_type[], municipal[], town[], province[], region[], price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, area_min, area_max, plot_area_min, plot_area_max.
- GET /v1/immovlan/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/immovlan/listing: Listing. 1 credit. Params: id*.
- GET /v1/immovlan/search: Search. 1 credit. Params: transaction*, agency_id, sort, order, page, property_type[], property_subtype[], epc_rating[], tag[], facade[], state[], seller_type[], municipal[], town[], province[], region[], price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, area_min, area_max, plot_area_min, plot_area_max.
## Immoweb API
https://perceptlayer.com/apis/immoweb
- GET /v1/immoweb/agencies: Agencies. 1 credit. Params: byGroup, language.
- GET /v1/immoweb/count: Count. 1 credit. Params: transactionTypes*, propertyTypes, constructionTypes, buildingConditions, gardenOrientations, epcScores, priceType, sort, language, minPrice, maxPrice, minSurface, maxBedroomCount, minConstructionYear, minParkingPlaces, maxDaysSinceActivation, customerIds, postalCodes, provinces, districts, hasGarden, hasLift, hasSwimmingPool, hasPictures, hasVirtualTourOr360, isNewlyBuilt, isSoldOrRented, isFurnished, isImmediatelyAvailable, isAPublicSale, isALifeAnnuitySale, isAnInvestmentProperty, isUnderOption, isAWorkSpaceProperty, areBigPetsAllowed, isConstructionPermitObtained.
- GET /v1/immoweb/discovery: Discovery. 1 credit. Params: module*, transactionTypes, language.
- GET /v1/immoweb/geo: Geo. 1 credit. Params: level*, language.
- GET /v1/immoweb/listing: Listing. 1 credit. Params: id*, language.
- GET /v1/immoweb/locations: Locations. 1 credit. Params: input*, language, types, maxResults.
- GET /v1/immoweb/search: Search. 1 credit. Params: transactionTypes*, propertyTypes, constructionTypes, buildingConditions, gardenOrientations, epcScores, priceType, sort, language, minPrice, maxPrice, minSurface, maxBedroomCount, minConstructionYear, minParkingPlaces, maxDaysSinceActivation, customerIds, postalCodes, provinces, districts, hasGarden, hasLift, hasSwimmingPool, hasPictures, hasVirtualTourOr360, isNewlyBuilt, isSoldOrRented, isFurnished, isImmediatelyAvailable, isAPublicSale, isALifeAnnuitySale, isAnInvestmentProperty, isUnderOption, isAWorkSpaceProperty, areBigPetsAllowed, isConstructionPermitObtained, range.
- GET /v1/immoweb/stats: Stats. 1 credit. Params: id*.
## Immowelt API
https://perceptlayer.com/apis/immowelt
- GET /v1/immowelt/count: Count. 1 credit. Params: place_id*, distribution, estate_type.
- GET /v1/immowelt/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/immowelt/places-data: Places Data. 1 credit. Params: place_ids[]*, parent_types[]*.
- GET /v1/immowelt/places-hierarchy: Places Hierarchy. 1 credit. Params: place_id*.
- GET /v1/immowelt/property: Property. 1 credit. Params: id*.
- GET /v1/immowelt/search: Search. 1 credit. Params: location*, type, price_min, price_max, rooms_min, rooms_max, size_min, size_max, page, per_page.
## Imobiliare.ro API
https://perceptlayer.com/apis/imobiliare-ro
- GET /v1/imobiliare-ro/agency: Agency. 1 credit. Params: url, slug, id, kind.
- GET /v1/imobiliare-ro/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/imobiliare-ro/listing: Listing. 1 credit. Params: id, url.
- GET /v1/imobiliare-ro/search: Search. 1 credit. Params: type*, property_type, page, location, price_min, price_max, currency, keyword, sort, rooms, bathrooms, amenities, building_stage, floor, partitioning, comfort, nearby, features.
## imot.bg API
https://perceptlayer.com/apis/imot-bg
- GET /v1/imot-bg/agencies: Agencies. 1 credit. Params: query, sort.
- GET /v1/imot-bg/agency: Agency. 1 credit. Params: agency*, deal, page.
- GET /v1/imot-bg/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/imot-bg/listing: Listing. 1 credit. Params: id, url.
- GET /v1/imot-bg/search: Search. 1 credit. Params: location, location_id, deal, property_type, bedrooms, min_price, max_price, min_area, max_area, sort, page.
## Imovelweb API
https://perceptlayer.com/apis/imovelweb
- GET /v1/imovelweb/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/imovelweb/development: Development. 1 credit. Params: id*.
- GET /v1/imovelweb/listing: Listing. 1 credit. Params: id*.
- GET /v1/imovelweb/polygon: Polygon. 1 credit. Params: location*.
- GET /v1/imovelweb/search: Search. 1 credit. Params: location, listing_type, property_type, property_subtype, seller_type, keyword, feature, age_min, age_max, published_within, development_only, sort, page, per_page, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, garages_min, garages_max, price_min, price_max, area_min, area_max, covered_area_min, covered_area_max.
- GET /v1/imovelweb/similar: Similar. 1 credit. Params: id*.
## Imovirtual API
https://perceptlayer.com/apis/imovirtual
- GET /v1/imovirtual/agency: Agency. 1 credit. Params: agency*.
- GET /v1/imovirtual/agency-listings: Agency Listings. 1 credit. Params: agency*, page.
- GET /v1/imovirtual/categories: Categories. 1 credit.
- GET /v1/imovirtual/listing: Listing. 1 credit. Params: slug*.
- GET /v1/imovirtual/locations: Locations. 1 credit. Params: query*.
- GET /v1/imovirtual/search: Search. 1 credit. Params: transaction*, estate*, location, page, limit, priceMin, priceMax, areaMin, areaMax.
## Impressum Extraction API
https://perceptlayer.com/apis/impressum-extraction
- GET /v1/impressum-extraction/web-scraper-impressum: Web Scraper Impressum. 1 credit. Params: domain*, fields*, language.
## Indeed API
https://perceptlayer.com/apis/indeed
- GET /v1/indeed/autocomplete: Autocomplete. 1 credit. Params: q*, type, country*, language, count.
- GET /v1/indeed/companies-jobs: Companies Jobs. 1 credit. Params: company, employer_key, country, limit, cursor.
- GET /v1/indeed/companies-profile: Companies Profile. 1 credit. Params: company, employer_key, country.
- GET /v1/indeed/companies-reviews: Companies Reviews. 1 credit. Params: company*, country, start, sort, fcountry, ftopic, fjobtitle.
- GET /v1/indeed/companies-salaries: Companies Salaries. 1 credit. Params: company*, country, job_category.
- GET /v1/indeed/companies-search: Companies Search. 1 credit. Params: q*, country.
- GET /v1/indeed/jobs: Jobs. 1 credit. Params: query*, location, country, radius, radius_unit, job_type, sort, limit, cursor, hl, gl.
- GET /v1/indeed/jobs-details: Jobs Details. 1 credit. Params: job_key*, country.
- GET /v1/indeed/salaries-estimate: Salaries Estimate. 1 credit. Params: title*, location*, country.
## InfoCasas API
https://perceptlayer.com/apis/infocasas
- GET /v1/infocasas/agency: Agency. 1 credit. Params: id*, country.
- GET /v1/infocasas/agency-properties: Agency Properties. 1 credit. Params: owner_id*, country, operation_type_id, property_type_id, minPrice, maxPrice, currencyID, m2Min, m2Max, bedrooms, bedroomsExact, bathrooms, bathroomsExact, order, rows, page, locations.
- GET /v1/infocasas/location-autocomplete: Location Autocomplete. 1 credit. Params: term*, country.
- GET /v1/infocasas/property: Property. 1 credit. Params: id, code, country.
- GET /v1/infocasas/search: Search. 1 credit. Params: country, operation_type_id, property_type_id, minPrice, maxPrice, currencyID, m2Min, m2Max, bedrooms, bedroomsExact, bathrooms, bathroomsExact, order, rows, page, locations.
## InfoJobs API
https://perceptlayer.com/apis/infojobs
- GET /v1/infojobs/facets: Facets. 1 credit. Params: keyword, provinceIds, categoryIds, teleworkingIds, contractTypeIds, workdayIds.
- GET /v1/infojobs/search: Search. 1 credit. Params: keyword, provinceIds, categoryIds, teleworkingIds, contractTypeIds, workdayIds, page, sortBy, sinceDate.
## Inmuebles24 API
https://perceptlayer.com/apis/inmuebles24
- GET /v1/inmuebles24/developers: Developers. 1 credit. Params: operation, type, location, min_price, max_price, bathrooms, bedrooms, garages, seller_type, room_type, services, outside, general, keyword, sort, page.
- GET /v1/inmuebles24/filters: Filters. 1 credit.
- GET /v1/inmuebles24/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/inmuebles24/property-types: Property Types. 1 credit.
- GET /v1/inmuebles24/search: Search. 1 credit. Params: operation, type, location, min_price, max_price, bathrooms, bedrooms, garages, seller_type, room_type, services, outside, general, keyword, sort, page.
## Instacart API
https://perceptlayer.com/apis/instacart
- GET /v1/instacart/product: Product. 1 credit. Params: id*, retailer, zip.
- GET /v1/instacart/search: Search. 1 credit. Params: query*, retailer, zip, page.
- GET /v1/instacart/stores: Stores. 1 credit. Params: zip*.
## Instagram API
https://perceptlayer.com/apis/instagram
- GET /v1/instagram/audio-reels: Audio Reels. 1 credit. Params: audio_id*, max_id.
- GET /v1/instagram/hashtags-search: Hashtags Search. 1 credit. Params: q*.
- GET /v1/instagram/post: Post. 1 credit. Params: url, shortcode.
- GET /v1/instagram/post-comments: Post Comments. 1 credit. Params: shortcode*, max_id.
- GET /v1/instagram/search-popular: Search Popular. 1 credit. Params: q*.
- GET /v1/instagram/user: User. 1 credit. Params: username*.
- GET /v1/instagram/user-basic: User Basic. 1 credit. Params: user_id*.
- GET /v1/instagram/user-embed: User Embed. 1 credit. Params: username*.
- GET /v1/instagram/user-highlights: User Highlights. 1 credit. Params: highlight_id*.
- GET /v1/instagram/user-posts: User Posts. 1 credit. Params: username*, max_id.
- GET /v1/instagram/user-reels: User Reels. 1 credit. Params: username, user_id, max_id.
- GET /v1/instagram/user-v2: User V2. 1 credit. Params: username*.
## Invaluable API
https://perceptlayer.com/apis/invaluable
- GET /v1/invaluable/auction: Auction. 1 credit. Params: id*, page, size.
- GET /v1/invaluable/lot: Lot. 1 credit. Params: id*.
- GET /v1/invaluable/search: Search. 1 credit. Params: query*, status, page, hitsPerPage, sort.
## iProperty API
https://perceptlayer.com/apis/iproperty
- GET /v1/iproperty/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/iproperty/listing: Listing. 1 credit. Params: id, url.
- GET /v1/iproperty/search: Search. 1 credit. Params: listing_type, location, page, bedrooms, bathrooms, car_park, min_price, max_price, min_size, max_size, property_type, commercial, furnishing, room_type, tenure, floor_level, keyword, posted_within, agent_id, sort, order.
## Jameda API
https://perceptlayer.com/apis/jameda
- GET /v1/jameda/autocomplete-location: Autocomplete Location. 1 credit. Params: q, query.
- GET /v1/jameda/autocomplete-service: Autocomplete Service. 1 credit. Params: q, query.
- GET /v1/jameda/doctor-details: Doctor Details. 1 credit. Params: doctor_url*.
- GET /v1/jameda/reviews: Reviews. 1 credit. Params: doctor_url*, page, sort, rating, sentiment, per_page.
- GET /v1/jameda/search: Search. 1 credit. Params: q*, loc, page, per_page.
## Just Eat Takeaway.com API
https://perceptlayer.com/apis/just-eat-takeaway
- GET /v1/just-eat-takeaway/allergens: Allergens. 1 credit. Params: country*, restaurant_id*, product_id*.
- GET /v1/just-eat-takeaway/menu: Menu. 1 credit. Params: country*, slug*.
- GET /v1/just-eat-takeaway/restaurants: Restaurants. 1 credit. Params: country*, lat, lon, postcode, query, cuisine, sort, open_now, page, per_page.
- GET /v1/just-eat-takeaway/reviews: Reviews. 1 credit. Params: country*, restaurant_id*, limit, cursor.
## Kakaku API
https://perceptlayer.com/apis/kakaku
- GET /v1/kakaku/history: History. 1 credit. Params: id*.
- GET /v1/kakaku/product: Product. 1 credit. Params: id*.
- GET /v1/kakaku/search: Search. 1 credit. Params: query, category, page.
## Kamernet API
https://perceptlayer.com/apis/kamernet
- GET /v1/kamernet/listing: Listing. 1 credit. Params: id*.
- GET /v1/kamernet/location-autocomplete: Location Autocomplete. 1 credit. Params: q*.
- GET /v1/kamernet/search: Search. 1 credit. Params: city*, page, sort, max_rent, min_size, radius_km, persons, age, listing_type, furnishing, availability, gender, work_status, owner_type, pets_allowed, smoking_allowed, internet, private_bathroom, private_kitchen, private_toilet.
## Kavak API
https://perceptlayer.com/apis/kavak
- GET /v1/kavak/car: Car. 1 credit. Params: market*, id*, include_financing.
- GET /v1/kavak/markets: Markets. 1 credit.
- GET /v1/kavak/search: Search. 1 credit. Params: market*, make, model, year, body_type, transmission, fuel_type, color, traction, passengers, status, region, location, keyword, min_price, max_price, min_km, max_km, sort, page.
- GET /v1/kavak/taxonomy: Taxonomy. 1 credit. Params: market*, make.
## Kayak API
https://perceptlayer.com/apis/kayak-platform
- GET /v1/kayak-platform/best-time-flight-price-predictions: Best Time Flight Price Predictions. 1 credit. Params: origin*, destination*.
- GET /v1/kayak-platform/cars-insights: Cars Insights. 1 credit. Params: path*.
- GET /v1/kayak-platform/cars-search: Cars Search. 1 credit. Params: pickup*, pickup_date*, dropoff_date*, pickup_hour, dropoff_hour, sort, price_mode.
- GET /v1/kayak-platform/cruises-sailings: Cruises Sailings. 1 credit. Params: min_nights, adults, children, page, sort, sort_order, product_type, include_deals, include_unavailable.
- GET /v1/kayak-platform/direct-routes: Direct Routes. 1 credit.
- GET /v1/kayak-platform/explore-destinations: Explore Destinations. 1 credit. Params: origin*, departure_from*, departure_to*, return_from*, return_to*, min_days, max_days, stops, north_east_lat*, north_east_lng*, south_west_lat*, south_west_lng*.
- GET /v1/kayak-platform/flight-tracker-airport: Flight Tracker Airport. 1 credit. Params: origin*, date_time*, arrivals.
- GET /v1/kayak-platform/flights-route-intelligence: Flights Route Intelligence. 1 credit. Params: path*.
- GET /v1/kayak-platform/guides-city: Guides City. 1 credit. Params: path*.
- GET /v1/kayak-platform/packages-search: Packages Search. 1 credit. Params: destination*, origin*, departure_date*, return_date*, adults, child_ages[], duration, price_mode, sort.
- GET /v1/kayak-platform/reference-airlines: Reference Airlines. 1 credit.
- GET /v1/kayak-platform/reference-countries: Reference Countries. 1 credit.
- GET /v1/kayak-platform/reference-currencies: Reference Currencies. 1 credit.
- GET /v1/kayak-platform/reference-fees: Reference Fees. 1 credit.
- GET /v1/kayak-platform/stays-media: Stays Media. 1 credit. Params: hotel_ids[]*, width, height.
- GET /v1/kayak-platform/stays-property: Stays Property. 1 credit. Params: path*.
- GET /v1/kayak-platform/stays-rates: Stays Rates. 1 credit. Params: hotel_id*, checkin*, checkout*, adults, rooms, child_ages[], price_mode.
- GET /v1/kayak-platform/stays-reviews: Stays Reviews. 1 credit. Params: hotel_id*, sort, amount.
- GET /v1/kayak-platform/stays-search: Stays Search. 1 credit. Params: location_id*, location_type, checkin*, checkout*, adults, rooms, child_ages[], sort.
- GET /v1/kayak-platform/stays-vacation-rentals: Stays Vacation Rentals. 1 credit. Params: path*, location_id*, location_type, checkin*, checkout*, adults, rooms, child_ages[], sort.
## Kayak Flights API
https://perceptlayer.com/apis/kayak-flights
- GET /v1/kayak-flights/airports: Airports. 1 credit. Params: query*, locale.
- GET /v1/kayak-flights/one-way: One Way. 1 credit. Params: origin*, destination*, departure_date*, adults, children, infants_in_seat, infants_on_lap, cabin, sort, page, currency, locale, include_price_prediction, include_display_metadata.
- GET /v1/kayak-flights/round-trip: Round Trip. 1 credit. Params: origin*, destination*, departure_date*, adults, children, infants_in_seat, infants_on_lap, cabin, sort, page, currency, locale, include_price_prediction, include_display_metadata, return_date*.
## Kelley Blue Book API
https://perceptlayer.com/apis/kbb
- GET /v1/kbb/taxonomy: Taxonomy. 1 credit. Params: year, makeId, modelId, vehicleListingType*.
## Kick API
https://perceptlayer.com/apis/kick
- GET /v1/kick/categories: Categories. 1 credit.
- GET /v1/kick/categories-clips: Categories Clips. 1 credit. Params: subcategory_slug*, slug, sort, time, cursor.
- GET /v1/kick/categories-top: Categories Top. 1 credit.
- GET /v1/kick/channels: Channels. 1 credit. Params: slug*.
- GET /v1/kick/channels-clips: Channels Clips. 1 credit. Params: slug*, sort, time, cursor.
- GET /v1/kick/channels-featured-livestreams: Channels Featured Livestreams. 1 credit. Params: slug*, page.
- GET /v1/kick/channels-livestream: Channels Livestream. 1 credit. Params: slug*.
- GET /v1/kick/channels-playback-url: Channels Playback Url. 1 credit. Params: slug*.
- GET /v1/kick/channels-videos: Channels Videos. 1 credit. Params: slug*, page, sort, paginated, limit.
- GET /v1/kick/clips: Clips. 1 credit. Params: slug, sort, time, cursor.
- GET /v1/kick/clips-detail: Clips Detail. 1 credit. Params: clip_id*.
- GET /v1/kick/languages: Languages. 1 credit.
- GET /v1/kick/leaderboard: Leaderboard. 1 credit. Params: type, start_time*, limit.
- GET /v1/kick/livestreams: Livestreams. 1 credit. Params: feed, sort, limit, language, category_id, after, before.
- GET /v1/kick/search: Search. 1 credit. Params: query*, mode.
- GET /v1/kick/subcategories: Subcategories. 1 credit.
- GET /v1/kick/subcategories-detail: Subcategories Detail. 1 credit. Params: subcategory_slug*.
- GET /v1/kick/tags-trending: Tags Trending. 1 credit.
- GET /v1/kick/video: Video. 1 credit. Params: video_uuid*.
## Kijiji API
https://perceptlayer.com/apis/kijiji
- GET /v1/kijiji/category: Category. 1 credit. Params: id*.
- GET /v1/kijiji/listing: Listing. 1 credit. Params: id*.
- GET /v1/kijiji/location: Location. 1 credit. Params: id*.
- GET /v1/kijiji/search: Search. 1 credit. Params: q, category_id, location_id, page, sort, min_price, max_price.
## Kiwi.com API
https://perceptlayer.com/apis/kiwi
- GET /v1/kiwi/calendar-cheapest-dates: Calendar Cheapest Dates. 1 credit. Params: origin*, destination*, adults, children, infants, currency, locale, nights_min, nights_max, start_date*, end_date*.
- GET /v1/kiwi/calendar-price-graph: Calendar Price Graph. 1 credit. Params: origin*, destination*, adults, children, infants, currency, locale, nights_min*, nights_max*, start_date*, end_date*.
- GET /v1/kiwi/explore-price-map: Explore Price Map. 1 credit. Params: origin*, adults, children, infants, currency, locale, start_date*, end_date*, south_west_lat, south_west_lng, north_east_lat, north_east_lng, limit.
- GET /v1/kiwi/flights-detail: Flights Detail. 1 credit. Params: origin*, destination*, adults, children, infants, currency, locale, cabin, departure_date*, return_date, max_stops, min_price, max_price, sort, limit, carriers[], exclude_carriers[], itinerary_id*.
- GET /v1/kiwi/flights-one-per-city: Flights One Per City. 1 credit. Params: origin*, adults, children, infants, currency, locale, cabin, departure_date*, max_stops, min_price, max_price, limit, destination, nights_min, nights_max.
- GET /v1/kiwi/flights-search: Flights Search. 1 credit. Params: origin*, destination*, adults, children, infants, currency, locale, cabin, departure_date*, return_date, max_stops, min_price, max_price, sort, limit, carriers[], exclude_carriers[].
- GET /v1/kiwi/locations: Locations. 1 credit. Params: query*, limit, cursor, locale.
## Kleinanzeigen API
https://perceptlayer.com/apis/kleinanzeigen
- GET /v1/kleinanzeigen/details: Details. 1 credit. Params: ad_id*.
- GET /v1/kleinanzeigen/search: Search. 1 credit. Params: query*, page, location, category, price_min, price_max.
- GET /v1/kleinanzeigen/shipping-options: Shipping Options. 1 credit.
## Kroger API
https://perceptlayer.com/apis/kroger
- GET /v1/kroger/product: Product. 1 credit. Params: upc, url.
- GET /v1/kroger/search: Search. 1 credit. Params: query*, page.
## kununu API
https://perceptlayer.com/apis/kununu
- GET /v1/kununu/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/kununu/closest-cities: Closest Cities. 1 credit. Params: country, latitude*, longitude*.
- GET /v1/kununu/company-details: Company Details. 1 credit. Params: country*, company_slug*, slug, countryCode.
- GET /v1/kununu/company-salary: Company Salary. 1 credit. Params: country*, company_slug*.
- GET /v1/kununu/industries: Industries. 1 credit.
- GET /v1/kununu/job: Job. 1 credit. Params: url*.
- GET /v1/kununu/job-locations: Job Locations. 1 credit. Params: query*.
- GET /v1/kununu/job-titles: Job Titles. 1 credit. Params: query*, country.
- GET /v1/kununu/jobs: Jobs. 1 credit. Params: query, location, country, page, radius, sort, is_top_company, workplace[][], employment_types[][], career_level[][], kununu_score[][], industry[][], discipline[][], benefits[][], workplace[].
- GET /v1/kununu/profiles: Profiles. 1 credit. Params: page, countries[], industry.
- GET /v1/kununu/recommended-local: Recommended Local. 1 credit. Params: country, latitude*, longitude*.
- GET /v1/kununu/related-job-searches: Related Job Searches. 1 credit. Params: country.
- GET /v1/kununu/review: Review. 1 credit. Params: url*.
- GET /v1/kununu/reviews: Reviews. 1 credit. Params: country*, company_slug*, company_id, uuid, slug, countryCode, page, review_type, sort, recovery, score_filters[], recommended_filters[], jobstatus_filters[], position_filters[], department_filters[], response_filters[], result_filters[], date_filters[], fetch_factor_scores.
- GET /v1/kununu/salaries: Salaries. 1 credit. Params: country.
- GET /v1/kununu/salary: Salary. 1 credit. Params: country, job_title*.
- GET /v1/kununu/search: Search. 1 credit. Params: query*, limit, offset, countries[], industry.
- GET /v1/kununu/similar-jobs: Similar Jobs. 1 credit. Params: job_id*, country*.
- GET /v1/kununu/sitemap: Sitemap. 1 credit. Params: country, letter, page.
- GET /v1/kununu/top-companies: Top Companies. 1 credit. Params: country, year, page, sort.
- GET /v1/kununu/top-company-jobs: Top Company Jobs. 1 credit. Params: country, limit.
## Kwai API
https://perceptlayer.com/apis/kwai
- GET /v1/kwai/album: Album. 1 credit. Params: albumId*, pcursor, count.
- GET /v1/kwai/profile: Profile. 1 credit. Params: user*.
- GET /v1/kwai/search: Search. 1 credit. Params: q*, page.
- GET /v1/kwai/search-suggest: Search Suggest. 1 credit. Params: q*, count.
- GET /v1/kwai/topic: Topic. 1 credit. Params: name*, pcursor, count.
- GET /v1/kwai/user-posts: User Posts. 1 credit. Params: user*, pcursor, count.
- GET /v1/kwai/video: Video. 1 credit. Params: photo_id*.
- GET /v1/kwai/video-related: Video Related. 1 credit. Params: photo_id*.
## Kyero API
https://perceptlayer.com/apis/kyero
- GET /v1/kyero/agent: Agent. 1 credit. Params: path, id, slug, country.
- GET /v1/kyero/agents: Agents. 1 credit. Params: country*, location_id*, location_slug*, page.
- GET /v1/kyero/autocomplete: Autocomplete. 1 credit. Params: q*, country.
- GET /v1/kyero/property: Property. 1 credit. Params: path*.
- GET /v1/kyero/search: Search. 1 credit. Params: location_id*, location_slug*, operation, property_type, min_price, max_price, min_beds, max_beds, min_baths, max_baths, min_build_size, max_build_size, features, new_build, resale_only, sort, page.
## La Centrale API
https://perceptlayer.com/apis/lacentrale
- GET /v1/lacentrale/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/lacentrale/dealers: Dealers. 1 credit. Params: latitude, longitude, geopoint, distance, page, page_size.
- GET /v1/lacentrale/facets: Facets. 1 credit. Params: families, facets[], make_model, zip_code, zip_code_distance, price_min, price_max, mileage_min, mileage_max, year_min, year_max, energies[], gearbox, categories[], regions[], customer_family_codes[], good_deal_badges[], crit_air[], page_size.
- GET /v1/lacentrale/geo: Geo. 1 credit. Params: zip_code, latitude, longitude.
- GET /v1/lacentrale/taxonomy: Taxonomy. 1 credit. Params: families, facets[], make_model, zip_code, zip_code_distance, price_min, price_max, mileage_min, mileage_max, year_min, year_max, energies[], gearbox, categories[], regions[], customer_family_codes[], good_deal_badges[], crit_air[], page_size.
## Lamudi API
https://perceptlayer.com/apis/lamudi
- GET /v1/lamudi/agency: Agency. 1 credit. Params: id*, url, page.
- GET /v1/lamudi/autocomplete: Autocomplete. 1 credit. Params: query*.
## LandSearch API
https://perceptlayer.com/apis/landsearch
- GET /v1/landsearch/autocomplete: Autocomplete. 1 credit. Params: q*, type, limit.
- GET /v1/landsearch/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/landsearch/location: Location. 1 credit. Params: slug*.
- GET /v1/landsearch/profile: Profile. 1 credit. Params: profile_id*.
- GET /v1/landsearch/profile-listings: Profile Listings. 1 credit. Params: profile_id*, sort, page, limit.
- GET /v1/landsearch/profile-members: Profile Members. 1 credit. Params: profile_id*, sort, page, limit.
- GET /v1/landsearch/profiles: Profiles. 1 credit. Params: type, location, keywords, sort, page, limit.
- GET /v1/landsearch/search: Search. 1 credit. Params: location, format, type, tag, status, keywords, structure, price_min, price_max, size_min, size_max, ppa_min, ppa_max, bedrooms_min, bedrooms_max, bathrooms_min, space_min, space_max, sort, page, limit.
## LandWatch API
https://perceptlayer.com/apis/landwatch
- GET /v1/landwatch/agent: Agent. 1 credit. Params: agent_id*, page.
- GET /v1/landwatch/agent-autocomplete: Agent Autocomplete. 1 credit. Params: q*.
- GET /v1/landwatch/agents: Agents. 1 credit. Params: name, state, county, city, page.
- GET /v1/landwatch/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/landwatch/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/landwatch/search: Search. 1 credit. Params: state, county, city, postal_code, listing_type, property_type, status, residence, price_min, price_max, acres_min, acres_max, beds_min, baths_min, sort, page.
## LankaPropertyWeb API
https://perceptlayer.com/apis/lankapropertyweb
- GET /v1/lankapropertyweb/agent: Agent. 1 credit. Params: slug*, page.
- GET /v1/lankapropertyweb/agents: Agents. 1 credit. Params: agent_type, page.
- GET /v1/lankapropertyweb/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/lankapropertyweb/listing: Listing. 1 credit. Params: id*, type*.
- GET /v1/lankapropertyweb/search: Search. 1 credit. Params: type*, location, property_type, min_price, max_price, min_bedrooms, min_land, max_land, min_floor_area, max_floor_area, keywords, page.
## Lazada API
https://perceptlayer.com/apis/lazada
- GET /v1/lazada/product: Product. 1–2 credits. 2 credits, or 1 when only part of the product could be read (partial is true). Params: item_id, url, country.
- GET /v1/lazada/reviews: Reviews. 1–3 credits. 1 credit, or 3 when the reviews page needs the slower fetch. Params: item_id*, country, page, rating, sort.
- GET /v1/lazada/search: Search. 2 credits. Params: query, country, page, category, sort, min_price, max_price, min_rating, local_only, lazmall_only.
- GET /v1/lazada/shop: Shop. 2 credits. Params: shop_id*, country.
- GET /v1/lazada/shop-products: Shop Products. 2 credits. Params: shop_id*, country, query, page, sort, min_price, max_price.
## Leboncoin Autos API
https://perceptlayer.com/apis/leboncoin-autos
- GET /v1/leboncoin-autos/listing: Listing. 1 credit. Params: list_id*.
- GET /v1/leboncoin-autos/nearby: Nearby. 1 credit. Params: lat*, lng*, radius*, owner_type, sort_by, sort_order, page, limit.
- GET /v1/leboncoin-autos/search: Search. 1 credit. Params: brand[], model[], fuel[], gearbox[], vehicle_type[], price_min, price_max, mileage_min, mileage_max, regdate_min, regdate_max, keywords, location[city], location[zipcode], location[department_id], location[region_id], owner_type, sort_by, sort_order, page, limit.
- GET /v1/leboncoin-autos/seller: Seller. 1 credit. Params: user_id*.
## Leboncoin Immo API
https://perceptlayer.com/apis/leboncoin-immo
- GET /v1/leboncoin-immo/agency: Agency. 1 credit. Params: user_id*, include*.
- GET /v1/leboncoin-immo/categories: Categories. 1 credit.
- GET /v1/leboncoin-immo/district: District. 1 credit. Params: district_id*.
- GET /v1/leboncoin-immo/geocode: Geocode. 1 credit. Params: zipcode*.
- GET /v1/leboncoin-immo/listing: Listing. 1 credit. Params: id*.
- GET /v1/leboncoin-immo/locations: Locations. 1 credit. Params: q*.
- GET /v1/leboncoin-immo/nearby: Nearby. 1 credit. Params: lat*, lng*, radius_km*, vertical, page, limit, seller, sort, order.
- GET /v1/leboncoin-immo/search: Search. 1 credit. Params: vertical*, page, limit, price_min, price_max, surface_min, surface_max, property_type, furnished, rooms_min, rooms_max, query, query_scope, location, seller, sort, order.
## Lemmy API
https://perceptlayer.com/apis/lemmy
- GET /v1/lemmy/community: Community. 1 credit. Params: name*, instance.
- GET /v1/lemmy/post: Post. 1 credit. Params: id*, comment_sort, comment_limit, max_depth, instance.
- GET /v1/lemmy/posts: Posts. 1 credit. Params: community*, sort, type_, limit, page_cursor, instance.
- GET /v1/lemmy/search: Search. 1 credit. Params: q*, type_, sort, limit, page, instance.
- GET /v1/lemmy/user: User. 1 credit. Params: username*, sort, limit, page, instance.
## Letterboxd API
https://perceptlayer.com/apis/letterboxd
- GET /v1/letterboxd/diary: Diary. 1 credit. Params: user*, page.
- GET /v1/letterboxd/film: Film. 1 credit. Params: slug*.
- GET /v1/letterboxd/reviews: Reviews. 1 credit. Params: slug*, page.
## Levels.fyi API
https://perceptlayer.com/apis/levels
- GET /v1/levels/job: Job. 1 credit. Params: job_id*.
- GET /v1/levels/jobs: Jobs. 1 credit. Params: q, company, location, work_arrangement, min_base_compensation, posted_within_days, sort, page, limit, jobs_per_company.
## Lever API
https://perceptlayer.com/apis/lever
- GET /v1/lever/job: Job. 1 credit. Params: company*, job_id*.
- GET /v1/lever/jobs: Jobs. 1 credit. Params: company*, skip, limit, location, team, department, commitment.
## LIFULL HOME'S API
https://perceptlayer.com/apis/lifull-homes
- GET /v1/lifull-homes/agency: Agency. 1 credit. Params: id*.
- GET /v1/lifull-homes/areas: Areas. 1 credit. Params: prefecture*, query.
- GET /v1/lifull-homes/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/lifull-homes/rent-listing: Rent Listing. 1 credit. Params: id*.
- GET /v1/lifull-homes/rent-search: Rent Search. 1 credit. Params: prefecture*, city, rent_min, rent_max, area_min, area_max, walk_max, age_max, layouts, sort, page.
- GET /v1/lifull-homes/sale-listing: Sale Listing. 1 credit. Params: id*, vertical*.
- GET /v1/lifull-homes/sale-search: Sale Search. 1 credit. Params: prefecture*, property_type, city, price_min, price_max, area_min, area_max, land_area_min, land_area_max, walk_max, age_max, layouts, sort, page.
## Link in Bio API
https://perceptlayer.com/apis/link-in-bio
- GET /v1/link-in-bio/komi: Komi. 1 credit. Params: url, handle.
- GET /v1/link-in-bio/linkbio: Linkbio. 1 credit. Params: url, handle.
- GET /v1/link-in-bio/linkme: Linkme. 1 credit. Params: url, handle.
- GET /v1/link-in-bio/linkme-social-grid: Linkme Social Grid. 1 credit. Params: url, handle, limit, cursor.
- GET /v1/link-in-bio/linkme-social-grid-go: Linkme Social Grid Go. 1 credit. Params: item_id*.
- GET /v1/link-in-bio/linktree: Linktree. 1 credit. Params: url, handle.
- GET /v1/link-in-bio/pillar: Pillar. 1 credit. Params: url, handle.
## LinkedIn API
https://perceptlayer.com/apis/linkedin
- GET /v1/linkedin/ads-detail: Ads Detail. 1 credit. Params: ad_id*.
- GET /v1/linkedin/ads-search: Ads Search. 1 credit. Params: keyword*, countries[], dateOption, startdate, enddate, accountOwner, pagination_token.
- GET /v1/linkedin/company: Company. 1 credit. Params: url, company_id, use_cache, maximum_cache_age.
- GET /v1/linkedin/company-posts: Company Posts. 1 credit. Params: slug*.
- GET /v1/linkedin/job: Job. 1 credit. Params: url*, use_cache, maximum_cache_age.
- GET /v1/linkedin/jobs-search: Jobs Search. 1 credit. Params: query*, num, start, page, hl, lr, gl, cr, safe, dateRestrict, sort, filter, rights.
- GET /v1/linkedin/post: Post. 1 credit. Params: url*, use_cache, maximum_cache_age.
- GET /v1/linkedin/post-transcript: Post Transcript. 1 credit. Params: url, activity_id.
- GET /v1/linkedin/posts-search: Posts Search. 1 credit. Params: query*, num, start, page, hl, lr, gl, cr, safe, dateRestrict, sort, filter, rights.
- GET /v1/linkedin/profile: Profile. 1 credit. Params: url, profile_id, use_cache, maximum_cache_age.
- GET /v1/linkedin/search: Search. 1 credit. Params: query*, num, start, page, hl, lr, gl, cr, safe, dateRestrict, sort, filter, rights.
## Linktree API
https://perceptlayer.com/apis/linktree
- GET /v1/linktree/profile: Profile. 1 credit. Params: username*.
- GET /v1/linktree/profiles: Profiles. 1 credit. Params: usernames*.
## LiveAuctioneers API
https://perceptlayer.com/apis/liveauctioneers
- GET /v1/liveauctioneers/auction: Auction. 1 credit. Params: id*.
- GET /v1/liveauctioneers/lot: Lot. 1 credit. Params: id*.
- GET /v1/liveauctioneers/search: Search. 1 credit. Params: searchTerm*, page, pageSize, sort.
## LLM Answers API
https://perceptlayer.com/apis/llm-answers
- GET /v1/llm-answers/answer: Answer. 1 credit. Params: prompt*, q, engine, model, timezone, locale, country, language, safesearch, continuation_token, device, history.
- GET /v1/llm-answers/models: Models. 1 credit. Params: engine.
- GET /v1/llm-answers/multi: Multi. 1–6 credits. 1 credit per engine that answers; engines lists up to 6, 2 by default. Params: prompt*, q, engines, timezone, locale, hl, gl.
- GET /v1/llm-answers/perplexity-feed: Perplexity Feed. 1 credit. Params: limit, offset, topic, topics.
- GET /v1/llm-answers/prompt-library: Prompt Library. 1 credit.
- GET /v1/llm-answers/trending: Trending. 1 credit.
## Local Rank Tracker API
https://perceptlayer.com/apis/local-rank-tracker
- GET /v1/local-rank-tracker/grid: Grid. 1–81 credits. 1 credit per grid point searched: grid_size × grid_size points, from 9 to 81. Params: q*, place_id, data_id, cid, business_name, lat*, lon*, grid_size, spacing, unit, hl, gl.
## Loft API
https://perceptlayer.com/apis/loft
- GET /v1/loft/agency: Agency. 1 credit. Params: id*, listing_type, city, property_type[], sort, per_page, page.
- GET /v1/loft/autocomplete: Autocomplete. 1 credit. Params: term*, city.
- GET /v1/loft/listing: Listing. 1 credit. Params: id*.
- GET /v1/loft/search: Search. 1 credit. Params: listing_type, city, neighborhood, query, property_type[], price_min, price_max, area_min, area_max, bedrooms, suites, bathrooms, parking_spots, exact_rooms, condo_fee_max, monthly_expenses_max, tags[], has_virtual_tour, has_decorated_photos, usage_type, product_type, agency_id, sort, per_page, page.
## Logic-Immo API
https://perceptlayer.com/apis/logic-immo
- GET /v1/logic-immo/agency: Agency. 1 credit. Params: id*.
- GET /v1/logic-immo/autocomplete: Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/logic-immo/listing: Listing. 1 credit. Params: id, url.
- GET /v1/logic-immo/places: Places. 1 credit. Params: ids*.
- GET /v1/logic-immo/search: Search. 1 credit. Params: place_id*, distribution, estate_types[], new_build, year_built_min, order, page, per_page, price_min, price_max, size_min, size_max, rooms_min, rooms_max, bedrooms_min, bedrooms_max.
## LoopNet API
https://perceptlayer.com/apis/loopnet
- GET /v1/loopnet/locations: Locations. 1 credit. Params: query*.
- GET /v1/loopnet/search: Search. 1 credit. Params: location*, listing_type, page.
## Macy's API
https://perceptlayer.com/apis/macys
- GET /v1/macys/categories: Categories. 1 credit.
- GET /v1/macys/product: Product. 1 credit. Params: id, url.
- GET /v1/macys/search: Search. 1 credit. Params: query, page, sort, category, category_url, brand, min_price, max_price.
- GET /v1/macys/suggest: Suggest. 1 credit. Params: query*.
## Madlan API
https://perceptlayer.com/apis/madlan
- GET /v1/madlan/agent: Agent. 1 credit. Params: id*.
- GET /v1/madlan/agents: Agents. 1 credit. Params: ids[]*.
- GET /v1/madlan/agents-index: Agents Index. 1 credit. Params: city, role, offset, limit.
- GET /v1/madlan/analytics-market-stats: Analytics Market Stats. 1 credit.
- GET /v1/madlan/analytics-sales-history: Analytics Sales History. 1 credit. Params: period_years.
- GET /v1/madlan/autocomplete: Autocomplete. 1 credit. Params: query*, types[]*, limit.
- GET /v1/madlan/developer: Developer. 1 credit. Params: id*.
- GET /v1/madlan/developer-history: Developer History. 1 credit. Params: id*.
- GET /v1/madlan/developers: Developers. 1 credit. Params: city_doc_id, neighborhood_doc_id, publish_status, integration_level, offset, limit.
- GET /v1/madlan/geo-addresses: Geo Addresses. 1 credit. Params: doc_ids[]*.
- GET /v1/madlan/geo-doc-info: Geo Doc Info. 1 credit. Params: doc_ids[]*.
- GET /v1/madlan/listings: Listings. 1 credit. Params: ids[]*.
- GET /v1/madlan/listings-ids: Listings Ids. 1 credit. Params: offset, limit.
- GET /v1/madlan/mortgage-offices: Mortgage Offices. 1 credit. Params: city_doc_ids[]*, limit, offset.
- GET /v1/madlan/mortgage-offices-by-ids: Mortgage Offices By Ids. 1 credit. Params: office_ids[]*, limit, offset.
- GET /v1/madlan/neighborhood-average-building-year: Neighborhood Average Building Year. 1 credit. Params: doc_id*.
- GET /v1/madlan/neighborhood-data: Neighborhood Data. 1 credit. Params: doc_id*.
- GET /v1/madlan/neighborhood-doc-insights: Neighborhood Doc Insights. 1 credit. Params: doc_id*.
- GET /v1/madlan/neighborhood-insights: Neighborhood Insights. 1 credit. Params: doc_id*.
- GET /v1/madlan/neighborhood-investor-summary: Neighborhood Investor Summary. 1 credit. Params: doc_id*.
- GET /v1/madlan/neighborhood-permits-trend: Neighborhood Permits Trend. 1 credit. Params: doc_id*.
- GET /v1/madlan/neighborhood-price-change: Neighborhood Price Change. 1 credit. Params: doc_id*, period_years.
- GET /v1/madlan/neighborhood-projects: Neighborhood Projects. 1 credit. Params: doc_id*, limit.
- GET /v1/madlan/neighborhoods: Neighborhoods. 1 credit. Params: city_doc_id*.
- GET /v1/madlan/office-agents: Office Agents. 1 credit. Params: office_id*, shuffle.
- GET /v1/madlan/office-listings: Office Listings. 1 credit. Params: office_id*, limit.
- GET /v1/madlan/project: Project. 1 credit. Params: id*.
- GET /v1/madlan/project-history: Project History. 1 credit. Params: id*.
- GET /v1/madlan/projects: Projects. 1 credit. Params: offset, limit.
- GET /v1/madlan/projects-browse: Projects Browse. 1 credit. Params: offset, limit.
- GET /v1/madlan/school: School. 1 credit. Params: school_id*.
- GET /v1/madlan/schools: Schools. 1 credit. Params: doc_id*, location_type, source.
- GET /v1/madlan/search: Search. 1 credit. Params: query, deal_type, price_min, price_max, beds, floor, offset, limit.
- GET /v1/madlan/search-popular-listings: Search Popular Listings. 1 credit.
- GET /v1/madlan/search-report: Search Report. 1 credit.
- GET /v1/madlan/valuation-gross-price: Valuation Gross Price. 1 credit. Params: net_price*.
## MagicBricks API
https://perceptlayer.com/apis/magicbricks
- GET /v1/magicbricks/autocomplete: Autocomplete. 1 credit. Params: query*, city, type.
- GET /v1/magicbricks/cities: Cities. 1 credit. Params: group.
- GET /v1/magicbricks/filters: Filters. 1 credit. Params: city*, category, property_type.
- GET /v1/magicbricks/listing: Listing. 1 credit. Params: id*, slug.
- GET /v1/magicbricks/localities: Localities. 1 credit. Params: city*, type, limit.
- GET /v1/magicbricks/locality: Locality. 1 credit. Params: city*, locality.
- GET /v1/magicbricks/price-trends: Price Trends. 1 credit. Params: city*, locality, project, property_type.
- GET /v1/magicbricks/project: Project. 1 credit. Params: id*, slug.
- GET /v1/magicbricks/projects: Projects. 1 credit. Params: city*, property_type*, page.
- GET /v1/magicbricks/search: Search. 1 credit. Params: city*, category, property_type*, locality, keyword, page, limit.
## Marktplaats API
https://perceptlayer.com/apis/marktplaats
- GET /v1/marktplaats/categories: Categories. 1 credit. Params: category_id.
- GET /v1/marktplaats/listing: Listing. 1 credit. Params: id*.
- GET /v1/marktplaats/search: Search. 1 credit. Params: query, category_id, subcategory_ids[], limit, offset, sort_by, sort_order, min_price, max_price, postcode, distance_meters.
## Marktplaats Autos API
https://perceptlayer.com/apis/marktplaats-autos
- GET /v1/marktplaats-autos/facets: Facets. 1 credit. Params: domain*.
- GET /v1/marktplaats-autos/listing: Listing. 1 credit. Params: itemId*, domain*, make, slug.
- GET /v1/marktplaats-autos/search: Search. 1 credit. Params: domain*, l1CategoryId*, l2CategoryIds[], offset, limit, query, sortBy, sortOrder, sortAttribute, attributesById[], attributeRanges[], postcode, distanceMeters, searchInTitleAndDescription, viewOptions.
- GET /v1/marktplaats-autos/seller: Seller. 1 credit. Params: sellerId*, domain*, sellerName.
- GET /v1/marktplaats-autos/seller-listings: Seller Listings. 1 credit. Params: sellerId*, domain*, itemId*, l2CategoryId*.
- GET /v1/marktplaats-autos/seller-response-rate: Seller Response Rate. 1 credit. Params: sellerId*, domain*.
- GET /v1/marktplaats-autos/taxonomy: Taxonomy. 1 credit. Params: domain*.
## Mastodon API
https://perceptlayer.com/apis/mastodon
- GET /v1/mastodon/hashtag: Hashtag. 1 credit. Params: instance, tag*, limit, max_id, min_id, since_id, only_media, any[], all[], none[], local, remote.
- GET /v1/mastodon/profile: Profile. 1 credit. Params: instance, acct*.
- GET /v1/mastodon/search: Search. 1 credit. Params: instance, q*, type, resolve, limit, offset, exclude_unreviewed.
- GET /v1/mastodon/status: Status. 1 credit. Params: instance, id*.
- GET /v1/mastodon/statuses: Statuses. 1 credit. Params: instance, id*, limit, max_id, min_id, since_id, exclude_replies, exclude_reblogs, only_media, pinned, tagged.
## MediaMarkt API
https://perceptlayer.com/apis/mediamarkt
- GET /v1/mediamarkt/product: Product. 9 credits. Params: site, id, url.
- GET /v1/mediamarkt/reviews: Reviews. 9 credits. Params: site, id, url, page.
- GET /v1/mediamarkt/search: Search. 11 credits. Params: site, query, category, sort, price, min_price, max_price, brand, page.
## Medium API
https://perceptlayer.com/apis/medium
- GET /v1/medium/post: Post. 1 credit. Params: post_id*.
- GET /v1/medium/search: Search. 1 credit. Params: query*, limit, page.
- GET /v1/medium/tag: Tag. 1 credit. Params: tag*, limit, after.
- GET /v1/medium/user: User. 1 credit. Params: username*, limit, from.
## Mercado Libre API
https://perceptlayer.com/apis/mercadolibre
- GET /v1/mercadolibre/categories: Categories. 1 credit. Params: site, category_id.
- GET /v1/mercadolibre/category-attributes: Category Attributes. 1 credit. Params: category_id*.
- GET /v1/mercadolibre/category-discovery: Category Discovery. 1 credit. Params: site*, q*, limit.
- GET /v1/mercadolibre/category-products: Category Products. 1 credit. Params: site*, category_id*.
- GET /v1/mercadolibre/related-products: Related Products. 1 credit. Params: site*, item_id, product_id, limit.
- GET /v1/mercadolibre/review-summary: Review Summary. 1 credit. Params: site*, id*, id_type.
- GET /v1/mercadolibre/reviews: Reviews. 1 credit. Params: site*, id*, id_type, limit, offset, rating, order.
- GET /v1/mercadolibre/shipping-options: Shipping Options. 1 credit. Params: item_id*, zip_code*.
- GET /v1/mercadolibre/store: Store. 1 credit. Params: site*, slug*, storefront_id*.
- GET /v1/mercadolibre/stores: Stores. 1 credit. Params: site*, offset, limit.
- GET /v1/mercadolibre/suggestions: Suggestions. 1 credit. Params: site*, q*, limit.
## Mercari API
https://perceptlayer.com/apis/mercari
- GET /v1/mercari/item: Item. 1 credit. Params: market*, id, url.
- GET /v1/mercari/search: Search. 1 credit. Params: market*, query, category, brand, size, color, condition, min_price, max_price, status*, sort, shipping_payer, seller, page*.
- GET /v1/mercari/seller: Seller. 1 credit. Params: market*, id*, status*, page*.
## Metrocuadrado API
https://perceptlayer.com/apis/metrocuadrado
- GET /v1/metrocuadrado/locations: Locations. 1 credit. Params: q*, mode, level.
- GET /v1/metrocuadrado/project: Project. 1 credit. Params: project_code*.
- GET /v1/metrocuadrado/property: Property. 1 credit. Params: id*.
- GET /v1/metrocuadrado/search: Search. 1 credit. Params: business_type, property_type, status, city, zone, neighborhood, bedrooms, bathrooms, stratum, keyword, company_id, area_min, area_max, price_min, price_max, latitude, longitude, distance, sort, page, per_page, rich, ids.
- GET /v1/metrocuadrado/types: Types. 1 credit. Params: type.
## Milanuncios API
https://perceptlayer.com/apis/milanuncios
- GET /v1/milanuncios/car-makes: Car Makes. 1 credit.
- GET /v1/milanuncios/car-models: Car Models. 1 credit. Params: make_id*.
- GET /v1/milanuncios/categories: Categories. 1 credit.
- GET /v1/milanuncios/listing: Listing. 1 credit. Params: id*.
- GET /v1/milanuncios/locations: Locations. 1 credit. Params: query*.
- GET /v1/milanuncios/search: Search. 1 credit. Params: category*, query, province, min_price, max_price, seller_type, bedrooms_from, surface_from, brand_id, model_id, fuel, year_from, sort*, limit*, offset*.
## Mixcloud API
https://perceptlayer.com/apis/mixcloud
- GET /v1/mixcloud/cloudcast: Cloudcast. 1 credit. Params: key*.
- GET /v1/mixcloud/search: Search. 1 credit. Params: q*, type, limit, offset.
- GET /v1/mixcloud/tag: Tag. 1 credit. Params: tag*, sort, limit, offset.
- GET /v1/mixcloud/user: User. 1 credit. Params: username*.
- GET /v1/mixcloud/user-uploads: User Uploads. 1 credit. Params: username*, limit, until, offset.
## mobile.de API
https://perceptlayer.com/apis/mobile-de
- GET /v1/mobile-de/dealer-inventory: Dealer Inventory. 1 credit. Params: vehicle_type, offset, limit, query, price_min, price_max, registration_year_min, registration_year_max, mileage_min, mileage_max, fuel[], transmission[], price_rating[], make_id, model_id, sort, dealer_id*.
- GET /v1/mobile-de/dealer-rating: Dealer Rating. 1 credit. Params: dealer_id*.
- GET /v1/mobile-de/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/mobile-de/recommendations: Recommendations. 1 credit. Params: listing_id*.
- GET /v1/mobile-de/search: Search. 1 credit. Params: vehicle_type, offset, limit, query, price_min, price_max, registration_year_min, registration_year_max, mileage_min, mileage_max, fuel[], transmission[], price_rating[], make_id, model_id, sort, include[].
## Monster API
https://perceptlayer.com/apis/monster
- GET /v1/monster/autocomplete-location: Autocomplete Location. 1 credit. Params: q*, limit.
- GET /v1/monster/autocomplete-title: Autocomplete Title. 1 credit. Params: q*, limit.
- GET /v1/monster/job: Job. 1 credit. Params: job_id*, site.
- GET /v1/monster/search: Search. 1 credit. Params: q, location, radius, date_posted, job_type, remote, site, page.
## Morizon API
https://perceptlayer.com/apis/morizon
- GET /v1/morizon/agency: Agency. 1 credit. Params: company_id*, company_name, transaction, type, sort, page.
- GET /v1/morizon/listing: Listing. 1 credit. Params: id, url.
- GET /v1/morizon/locations: Locations. 1 credit. Params: q*, limit, cursor, type, transaction.
- GET /v1/morizon/search: Search. 1 credit. Params: transaction, type, location, price_min, price_max, area_min, area_max, rooms_min, rooms_max, market, owner_type, floor_min, floor_max, build_year_min, build_year_max, price_m2_min, price_m2_max, plot_area_min, plot_area_max, balcony, garden, terrace, elevator, basement, parking, last_floor, with_photo, with_3d_view, added_since, agency_id, agency_name, sort, page.
## Motors.co.uk API
https://perceptlayer.com/apis/motors-co-uk
- GET /v1/motors-co-uk/dealer: Dealer. 1 credit. Params: dealer_id*, postcode, radius, sort, page, page_size.
- GET /v1/motors-co-uk/listing: Listing. 1 credit. Params: id*.
- GET /v1/motors-co-uk/makes: Makes. 1 credit. Params: vehicle_type.
- GET /v1/motors-co-uk/models: Models. 1 credit. Params: make*, vehicle_type.
- GET /v1/motors-co-uk/search: Search. 1 credit. Params: postcode*, radius, vehicle_type, make, model, min_price, max_price, max_mileage, max_age, fuel_type, body_type, transmission, sort, page, page_size.
## Movoto API
https://perceptlayer.com/apis/movoto
- GET /v1/movoto/amenity-tags: Amenity Tags. 1 credit. Params: query*, postal_code, limit.
- GET /v1/movoto/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/movoto/listing: Listing. 1 credit. Params: url*.
- GET /v1/movoto/search: Search. 1 credit. Params: location*, listing_type, property_type, min_price, max_price, min_beds, max_beds, min_baths, max_baths, page.
## Mubawab API
https://perceptlayer.com/apis/mubawab
- GET /v1/mubawab/agency: Agency. 1 credit. Params: id*, country, language.
- GET /v1/mubawab/autocomplete: Autocomplete. 1 credit. Params: query*, country, limit.
- GET /v1/mubawab/filters: Filters. 1 credit.
- GET /v1/mubawab/listing: Listing. 1 credit. Params: url, id, kind, country, language.
- GET /v1/mubawab/search: Search. 1 credit. Params: country, language, transaction, property_type, location, sort, page, min_price, max_price, min_area, max_area, min_rooms, min_bedrooms, min_bathrooms, promotion, second_hand, pool, elevator, garden.
## Mudah.my Property API
https://perceptlayer.com/apis/mudah-my-property
- GET /v1/mudah-my-property/agent: Agent. 1 credit. Params: slug*.
- GET /v1/mudah-my-property/autocomplete: Autocomplete. 1 credit. Params: keyword*, type, listing_type.
- GET /v1/mudah-my-property/building: Building. 1 credit. Params: prop_id*.
- GET /v1/mudah-my-property/buildings: Buildings. 1 credit. Params: keyword*, page.
- GET /v1/mudah-my-property/count: Count. 1 credit. Params: listing_type, category, region, subarea, building_id, q, bedrooms, bathrooms, property_type_id, furnished_id, min_price, max_price, min_size, max_size, store, user_id.
- GET /v1/mudah-my-property/listing: Listing. 1 credit. Params: list_id*.
- GET /v1/mudah-my-property/reference: Reference. 1 credit.
- GET /v1/mudah-my-property/search: Search. 1 credit. Params: listing_type, category, region, subarea, building_id, q, bedrooms, bathrooms, property_type_id, furnished_id, min_price, max_price, min_size, max_size, store, user_id, sort, page.
- GET /v1/mudah-my-property/seller-listings: Seller Listings. 1 credit. Params: listing_type, category, region, subarea, building_id, q, bedrooms, bathrooms, property_type_id, furnished_id, min_price, max_price, min_size, max_size, store, user_id, sort, page.
## MyAnimeList API
https://perceptlayer.com/apis/myanimelist
- GET /v1/myanimelist/anime: Anime. 1 credit. Params: id*.
- GET /v1/myanimelist/manga: Manga. 1 credit. Params: id*.
- GET /v1/myanimelist/search: Search. 1 credit. Params: q*, type.
- GET /v1/myanimelist/season: Season. 1 credit. Params: year*, season*.
- GET /v1/myanimelist/top: Top. 1 credit. Params: type*, limit, media.
- GET /v1/myanimelist/user: User. 1 credit. Params: username*.
## MyHome.ie API
https://perceptlayer.com/apis/myhome-ie
- GET /v1/myhome-ie/agencies: Agencies. 1 credit. Params: name, region_id, page, page_size.
- GET /v1/myhome-ie/agency: Agency. 1 credit. Params: id*.
- GET /v1/myhome-ie/agency-listings: Agency Listings. 1 credit. Params: id*, listing_type, page, page_size.
- GET /v1/myhome-ie/listing: Listing. 1 credit. Params: id*.
- GET /v1/myhome-ie/locations: Locations. 1 credit. Params: region_id, q.
- GET /v1/myhome-ie/search: Search. 1 credit. Params: listing_type, location, locality_ids, property_type_ids, min_price, max_price, min_beds, max_beds, min_baths, min_size, max_size, sort, page, page_size.
## Myntra API
https://perceptlayer.com/apis/myntra
- GET /v1/myntra/product: Product. 1 credit. Params: id, url.
- GET /v1/myntra/reviews: Reviews. 1 credit. Params: id*, page, per_page, sort, rating.
- GET /v1/myntra/search: Search. 1 credit. Params: query*, page, per_page, sort, brand, color, size, min_price, max_price.
## Mytheresa API
https://perceptlayer.com/apis/mytheresa
- GET /v1/mytheresa/designers: Designers. 1 credit. Params: country, gender.
- GET /v1/mytheresa/product: Product. 1 credit. Params: url, slug, country, gender.
- GET /v1/mytheresa/search: Search. 1 credit. Params: designer, category, sale_only, size, color, sort, page, size_per_page, country, gender.
## Naukri API
https://perceptlayer.com/apis/naukri
- GET /v1/naukri/job: Job. 1 credit. Params: id*.
- GET /v1/naukri/search: Search. 1 credit. Params: keyword*, location, experience, salary[], posted_within_days, sort, work_mode, page, per_page.
## Naver API
https://perceptlayer.com/apis/naver
- GET /v1/naver/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/naver/maps: Maps. 1 credit. Params: query*, category, limit, page.
- GET /v1/naver/search: Search. 1 credit. Params: query*, where, start, sort.
## Naver Shopping API
https://perceptlayer.com/apis/naver-shopping
- GET /v1/naver-shopping/search: Search. 1 credit. Params: query*, sort, price, page, free_delivery, review_score_low_limit, fast_delivery, arrive_guarantee, allow_ads.
## Nehnutelnosti.sk API
https://perceptlayer.com/apis/nehnutelnosti
- GET /v1/nehnutelnosti/agency: Agency. 1 credit. Params: slug*, id, page.
- GET /v1/nehnutelnosti/agent: Agent. 1 credit. Params: slug*, id*, page.
- GET /v1/nehnutelnosti/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/nehnutelnosti/listing: Listing. 1 credit. Params: id*, slug, url.
- GET /v1/nehnutelnosti/search: Search. 1 credit. Params: location*, listing_type, property_type, rooms, min_price, max_price, min_area, max_area, sort, page.
## Nepremičnine.net API
https://perceptlayer.com/apis/nepremicnine
- GET /v1/nepremicnine/administrative-units: Administrative Units. 1 credit.
- GET /v1/nepremicnine/agency: Agency. 1 credit. Params: agency_id*, deal_type, page.
- GET /v1/nepremicnine/listing: Listing. 1 credit. Params: id*.
- GET /v1/nepremicnine/location-autocomplete: Location Autocomplete. 1 credit. Params: query*, unit_id.
- GET /v1/nepremicnine/property-types: Property Types. 1 credit.
- GET /v1/nepremicnine/search: Search. 1 credit. Params: deal_type, property_type, rooms_type, region, unit_id, min_price, max_price, min_area, max_area, min_year, last_24h, page.
- GET /v1/nepremicnine/settlements: Settlements. 1 credit. Params: unit_id*.
## Newegg API
https://perceptlayer.com/apis/newegg
- GET /v1/newegg/deals: Deals. 5 credits. Params: day, site.
- GET /v1/newegg/product: Product. 2 credits. Params: item_number, url, site.
- GET /v1/newegg/reviews: Reviews. 2 credits. Params: item_number*, sort, rating, page, per_page, site.
- GET /v1/newegg/search: Search. 1 credit. Params: query*, min_price, max_price, sort, page, site.
## Nhà Tốt API
https://perceptlayer.com/apis/nha-tot
- GET /v1/nha-tot/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/nha-tot/listing: Listing. 1 credit. Params: id*.
- GET /v1/nha-tot/projects: Projects. 1 credit. Params: q*.
- GET /v1/nha-tot/regions: Regions. 1 credit. Params: region_id.
- GET /v1/nha-tot/search: Search. 1 credit. Params: for*, category, region_id, district_id, ward_id, min_price, max_price, min_area, max_area, bedrooms, bathrooms, direction, legal_document, apartment_type, keyword, account_id, project_oid, sort, page, per_page.
- GET /v1/nha-tot/seller: Seller. 1 credit. Params: oid*.
- GET /v1/nha-tot/wards: Wards. 1 credit. Params: district_id*.
## Nike API
https://perceptlayer.com/apis/nike
- GET /v1/nike/launches: Launches. 1 credit. Params: country.
- GET /v1/nike/product: Product. 1–3 credits. 1 credit, or 3 with include_details. Params: style_code, url, country, include_details.
- GET /v1/nike/search: Search. 1 credit. Params: query, category, gender, size, color, price_min, price_max, sale_only, sort, page, country.
## Nintendo eShop API
https://perceptlayer.com/apis/nintendo
- GET /v1/nintendo/deals: Deals. 1 credit. Params: region, page.
- GET /v1/nintendo/game: Game. 1 credit. Params: id*, region, page.
- GET /v1/nintendo/search: Search. 1 credit. Params: query*, region, page.
## Njuškalo API
https://perceptlayer.com/apis/njuskalo
- GET /v1/njuskalo/agency: Agency. 1 credit. Params: slug*, page.
- GET /v1/njuskalo/listing: Listing. 1 credit. Params: url, id, slug.
- GET /v1/njuskalo/locations: Locations. 1 credit. Params: query*.
- GET /v1/njuskalo/search: Search. 1 credit. Params: category*, location, price_min, price_max, area_min, area_max, rooms_min, rooms_max, sort, page.
## NoBroker API
https://perceptlayer.com/apis/nobroker
- GET /v1/nobroker/autocomplete: Autocomplete. 1 credit. Params: query*, city*, service, limit.
- GET /v1/nobroker/listing: Listing. 1 credit. Params: id*, service*.
- GET /v1/nobroker/search: Search. 1 credit. Params: service*, city*, place_id, location, lat, lon, radius, bedrooms, price_min, price_max, rent_min, rent_max, furnishing, property_type, bathrooms_min, area_min, area_max, sort, order, page.
## Noon API
https://perceptlayer.com/apis/noon
- GET /v1/noon/product: Product. 1–9 credits. 1 credit for most calls, 9 when the store can only be reached by a costlier route. Params: id*, url, country*.
- GET /v1/noon/reviews: Reviews. 1–9 credits. 1 credit for most calls, 9 when the store can only be reached by a costlier route. Params: id*, country*, page*.
- GET /v1/noon/search: Search. 1–9 credits. 1 credit for most calls, 9 when the store can only be reached by a costlier route. Params: query*, country*, category, sort, dir, price, min_price, max_price, brand, deal_tag, page*.
## North Data API
https://perceptlayer.com/apis/north-data
- GET /v1/north-data/changes: Changes. 1 credit. Params: country*, min_date*, max_date*.
- GET /v1/north-data/company: Company. 1 credit. Params: uri*.
- GET /v1/north-data/event: Event. 1 credit. Params: id*.
- GET /v1/north-data/feed: Feed. 1 credit. Params: company_id, limit*.
- GET /v1/north-data/nearby: Nearby. 1 credit. Params: lat*, lng*, max_distance, offset*.
- GET /v1/north-data/person: Person. 1 credit. Params: uri*.
- GET /v1/north-data/person-search: Person Search. 1 credit. Params: query*, offset*.
- GET /v1/north-data/search: Search. 1 credit. Params: query*, offset*.
- GET /v1/north-data/segments: Segments. 1 credit. Params: standard*.
- GET /v1/north-data/sources: Sources. 1 credit.
- GET /v1/north-data/suggest: Suggest. 1 credit. Params: query*, countries[].
## Notino API
https://perceptlayer.com/apis/notino
- GET /v1/notino/product: Product. 1 credit. Params: id, url.
- GET /v1/notino/reviews: Reviews. 1 credit. Params: id, url, slug.
- GET /v1/notino/search: Search. 1 credit. Params: query*.
## npm API
https://perceptlayer.com/apis/npm
- GET /v1/npm/package: Package. 1 credit. Params: package*, version, include_versions, include_readme.
- GET /v1/npm/search: Search. 1 credit. Params: q*, size, page.
## Odysee API
https://perceptlayer.com/apis/odysee
- GET /v1/odysee/channel: Channel. 1 credit. Params: name*, page, page_size.
- GET /v1/odysee/search: Search. 1 credit. Params: q*, page, page_size, order_by.
- GET /v1/odysee/trending: Trending. 1 credit. Params: page, page_size.
- GET /v1/odysee/video: Video. 1 credit. Params: url*.
## OfferUp API
https://perceptlayer.com/apis/offerup
- GET /v1/offerup/categories: Categories. 1 credit. Params: exclude_l3.
- GET /v1/offerup/geocode: Geocode. 1 credit. Params: zipcode, query.
- GET /v1/offerup/item-details: Item Details. 1 credit. Params: listing_id*.
- GET /v1/offerup/search: Search. 1 credit. Params: q, cid, category_id, zipcode, lat, lon, radius, price_min, price_max, condition, sort, page_cursor, search_session_id.
- GET /v1/offerup/seller-listings: Seller Listings. 1 credit. Params: user_id*, page_cursor, limit.
- GET /v1/offerup/seller-profile: Seller Profile. 1 credit. Params: user_id*.
- GET /v1/offerup/suggestions: Suggestions. 1 credit. Params: prefix*.
## Ohne-Makler API
https://perceptlayer.com/apis/ohnemakler
- GET /v1/ohnemakler/listing: Listing. 1 credit. Params: id*.
- GET /v1/ohnemakler/locations: Locations. 1 credit. Params: term, type, limit.
- GET /v1/ohnemakler/market-immobilienpreise: Market Immobilienpreise. 1 credit. Params: state*, city.
- GET /v1/ohnemakler/market-mietspiegel: Market Mietspiegel. 1 credit. Params: state*, city*.
- GET /v1/ohnemakler/search: Search. 1 credit. Params: q, type, transaction, state, city, page, sort, price_min, price_max, area_min, area_max, radius.
## Oikotie API
https://perceptlayer.com/apis/oikotie
- GET /v1/oikotie/agency: Agency. 1 credit. Params: company_id, card_id, include_brokers.
- GET /v1/oikotie/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/oikotie/listing: Listing. 1 credit. Params: card_id*.
- GET /v1/oikotie/search: Search. 1 credit. Params: listing_type, location_id, location_type, location_name, price_min, price_max, size_min, size_max, rooms[], building_type[], habitation_type[], new_development, construction_year_min, construction_year_max, lot_size_min, sort, page, limit.
## OLX Poland API
https://perceptlayer.com/apis/olx-pl
- GET /v1/olx-pl/cities: Cities. 1 credit. Params: region_id*, limit.
- GET /v1/olx-pl/districts: Districts. 1 credit. Params: city_id*.
- GET /v1/olx-pl/listing: Listing. 1 credit. Params: id*.
- GET /v1/olx-pl/locations: Locations. 1 credit. Params: query*.
- GET /v1/olx-pl/regions: Regions. 1 credit.
- GET /v1/olx-pl/search: Search. 1 credit. Params: query, category_id, region_id, city_id, district_id, distance, price_from, price_to, owner_type, sort_by, offset, limit.
## Omio API
https://perceptlayer.com/apis/omio
- GET /v1/omio/places: Places. 1 credit. Params: query, id, departure_id, locale.
- GET /v1/omio/providers: Providers. 1 credit. Params: search_id, lang.
- GET /v1/omio/route-page: Route Page. 1 credit. Params: origin*, destination*, mode.
- GET /v1/omio/search: Search. 1 credit. Params: origin_id*, destination_id*, adults, children, infants, travel_mode[], currency, date*, return_date, sort, limit, page.
- GET /v1/omio/search-summary: Search Summary. 1 credit. Params: origin_id*, destination_id*, adults, children, infants, travel_mode[], currency, date_start*, date_end*, calendar.
- GET /v1/omio/trip: Trip. 1 credit. Params: search_id*, trip_id*.
## OneRoof API
https://perceptlayer.com/apis/oneroof
- GET /v1/oneroof/agency: Agency. 1 credit. Params: id*.
- GET /v1/oneroof/agent: Agent. 1 credit. Params: id*.
- GET /v1/oneroof/autocomplete: Autocomplete. 1 credit. Params: q*, type.
- GET /v1/oneroof/listing: Listing. 1 credit. Params: id*.
- GET /v1/oneroof/search: Search. 1 credit. Params: type*, region_id, district_id, suburb_id, bedrooms[], bathrooms, carparks, category, price_min, price_max, land_area_min, land_area_max, floor_area_min, floor_area_max, office_id, agent_id, new_homes, sort, page, per_page.
## OnTheMarket API
https://perceptlayer.com/apis/onthemarket
- GET /v1/onthemarket/agent: Agent. 1 credit. Params: slug*.
- GET /v1/onthemarket/agent-listings: Agent Listings. 1 credit. Params: slug*, search_type*, page, under_offer, let_agreed.
- GET /v1/onthemarket/listing: Listing. 1 credit. Params: id*.
- GET /v1/onthemarket/search: Search. 1 credit. Params: search_type*, location_id*, page, sort_field, direction, prop_types, min_price, max_price, min_bedrooms, max_bedrooms, radius, under_offer, let_agreed, exclusive_first, new_home_flag.
## OpenRent API
https://perceptlayer.com/apis/openrent
- GET /v1/openrent/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/openrent/landlord: Landlord. 1 credit. Params: id*, page, live_only.
- GET /v1/openrent/property: Property. 1 credit. Params: id*.
- GET /v1/openrent/search: Search. 1 credit. Params: location*, min_price, max_price, min_bedrooms, max_bedrooms, min_bathrooms, max_bathrooms, property_type, furnished, available_before, max_min_tenancy, sort, page, pets_allowed, students_allowed, families_allowed, dss_accepted, bills_included, has_garden, has_parking, has_fireplace, has_video, live_only.
## OpenTable API
https://perceptlayer.com/apis/opentable
- GET /v1/opentable/restaurant: Restaurant. 1 credit. Params: restaurant_id, url, country.
- GET /v1/opentable/reviews: Reviews. 1 credit. Params: restaurant_id, url, country, sort, page, per_page, query.
- GET /v1/opentable/search: Search. 1 credit. Params: query*, location, latitude, longitude, type.
## Otodom API
https://perceptlayer.com/apis/otodom
- GET /v1/otodom/count: Count. 1 credit. Params: transaction*, geo_path*, estate, market, use_types[], rooms_number[], owner_type, price_min, price_max, area_min, area_max, has_discount.
- GET /v1/otodom/development: Development. 1 credit. Params: slug*.
- GET /v1/otodom/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/otodom/property: Property. 1 credit. Params: id*.
- GET /v1/otodom/search: Search. 1 credit. Params: transaction*, estate_slug*, geo_path*, price_min, price_max, area_min, area_max, price_per_meter_min, build_year_min, floors_number_min, days_since_created, rooms_number[], extras[], owner_type, is_private_owner, has_discount, view_type, distance_radius, by, direction, page, limit.
## Otomoto API
https://perceptlayer.com/apis/otomoto
- GET /v1/otomoto/dealer: Dealer. 1 credit. Params: subdomain, url.
- GET /v1/otomoto/listing: Listing. 1 credit. Params: listing_id, url.
- GET /v1/otomoto/search: Search. 1 credit. Params: make_id, model_id, generation, price_min, price_max, year_min, year_max, mileage_min, mileage_max, engine_power_max, fuel[], transmission[], body_type[], city_id, dist, sort, page.
- GET /v1/otomoto/taxonomy: Taxonomy. 1 credit. Params: make_id.
## OTTO API
https://perceptlayer.com/apis/otto
- GET /v1/otto/product: Product. 2 credits. Params: url, id, variation_id.
- GET /v1/otto/reviews: Reviews. 1 credit. Params: id, url, page.
- GET /v1/otto/search: Search. 1 credit. Params: query*, brand, color, min_price, max_price, on_sale, sort, page.
- GET /v1/otto/suggest: Suggest. 1 credit. Params: query*, limit.
## Ouest-France Immo API
https://perceptlayer.com/apis/ouest-france-immo
- GET /v1/ouest-france-immo/agencies: Agencies. 1 credit. Params: place_id, query, page, limit.
- GET /v1/ouest-france-immo/agency: Agency. 1 credit. Params: id*.
- GET /v1/ouest-france-immo/agency-listings: Agency Listings. 1 credit. Params: id*, listing_type, property_type, page, limit.
- GET /v1/ouest-france-immo/autocomplete: Autocomplete. 1 credit. Params: query*, type, limit.
- GET /v1/ouest-france-immo/listing: Listing. 1 credit. Params: id*.
- GET /v1/ouest-france-immo/listings: Listings. 1 credit. Params: ids*.
- GET /v1/ouest-france-immo/place: Place. 1 credit. Params: id*.
- GET /v1/ouest-france-immo/search: Search. 1 credit. Params: listing_type*, property_type, place_id, min_price, max_price, min_area, min_bedrooms, min_rooms, sort, page, limit.
## Owler API
https://perceptlayer.com/apis/owler
- GET /v1/owler/acquisitions: Acquisitions. 1 credit. Params: slug*, limit, offset.
- GET /v1/owler/company: Company. 1 credit. Params: slug*.
- GET /v1/owler/competitors: Competitors. 1 credit. Params: slug*.
- GET /v1/owler/funding: Funding. 1 credit. Params: slug*.
- GET /v1/owler/investments: Investments. 1 credit. Params: slug*, limit, offset.
- GET /v1/owler/news: News. 1 credit. Params: slug*, start, limit, category.
- GET /v1/owler/search: Search. 1 credit. Params: query*.
- GET /v1/owler/similar: Similar. 1 credit. Params: slug*.
## PadMapper API
https://perceptlayer.com/apis/padmapper
- GET /v1/padmapper/agent: Agent. 1 credit. Params: agent_url*.
- GET /v1/padmapper/autocomplete: Autocomplete. 1 credit. Params: query*, exclude_buildings.
- GET /v1/padmapper/building: Building. 1 credit. Params: building_id*.
- GET /v1/padmapper/building-additional: Building Additional. 1 credit. Params: building_id*.
- GET /v1/padmapper/building-fees: Building Fees. 1 credit. Params: building_id*.
- GET /v1/padmapper/building-pros-cons: Building Pros Cons. 1 credit. Params: building_id*.
- GET /v1/padmapper/building-rating: Building Rating. 1 credit. Params: building_id*.
- GET /v1/padmapper/building-resident-quotes: Building Resident Quotes. 1 credit. Params: building_id*.
- GET /v1/padmapper/city: City. 1 credit. Params: city*.
- GET /v1/padmapper/geos: Geos. 1 credit. Params: location*.
- GET /v1/padmapper/geosearch: Geosearch. 1 credit. Params: query*.
- GET /v1/padmapper/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/padmapper/listing-fees: Listing Fees. 1 credit. Params: listing_id*.
- GET /v1/padmapper/map-pins: Map Pins. 1 credit. Params: min_lat*, max_lat*, min_lng*, max_lng*, limit.
- GET /v1/padmapper/neighborhoods: Neighborhoods. 1 credit. Params: min_lat*, max_lat*, min_lng*, max_lng*, hood_type.
- GET /v1/padmapper/rent-report: Rent Report. 1 credit. Params: city*.
- GET /v1/padmapper/search: Search. 1 credit. Params: location*, min_price, max_price, bedrooms, min_bathrooms, pets, categories, sort, page, limit.
- GET /v1/padmapper/total: Total. 1 credit. Params: location*.
## ParuVendu Immobilier API
https://perceptlayer.com/apis/paruvendu
- GET /v1/paruvendu/agencies: Agencies. 1 credit. Params: area*, page.
- GET /v1/paruvendu/agency: Agency. 1 credit. Params: slug*.
- GET /v1/paruvendu/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/paruvendu/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/paruvendu/listing-location: Listing Location. 1 credit. Params: listing_id*.
- GET /v1/paruvendu/reference: Reference. 1 credit.
- GET /v1/paruvendu/search: Search. 1 credit. Params: listing_type, property_type, place*, rooms, min_price, max_price, min_area, max_area, min_bedrooms, min_bathrooms, seller, with_photos, sort, page.
## Patreon API
https://perceptlayer.com/apis/patreon
- GET /v1/patreon/creator: Creator. 1 credit. Params: vanity*.
- GET /v1/patreon/posts: Posts. 1 credit. Params: campaign_id*, cursor, page[count].
- GET /v1/patreon/search: Search. 1 credit. Params: q*, page[size].
## Pinterest API
https://perceptlayer.com/apis/pinterest
- GET /v1/pinterest/board: Board. 1 credit. Params: board_id, username, slug.
- GET /v1/pinterest/board-pins: Board Pins. 1 credit. Params: board_id, username, slug, limit, bookmark.
- GET /v1/pinterest/pin: Pin. 1 credit. Params: pin_id*.
- GET /v1/pinterest/search: Search. 1 credit. Params: query*, limit, bookmark.
- GET /v1/pinterest/user-boards: User Boards. 1 credit. Params: username*, limit, bookmark.
- GET /v1/pinterest/user-profile: User Profile. 1 credit. Params: username*.
## pisos.com API
https://perceptlayer.com/apis/pisos-com
- GET /v1/pisos-com/agency: Agency. 1 credit. Params: slug*.
- GET /v1/pisos-com/agency-listings: Agency Listings. 1 credit. Params: slug*, operation, sort, page.
- GET /v1/pisos-com/autocomplete: Autocomplete. 1 credit. Params: query*, operation.
- GET /v1/pisos-com/listing: Listing. 1 credit. Params: url, id.
- GET /v1/pisos-com/search: Search. 1 credit. Params: operation, location*, property_type, min_price, max_price, bedrooms, bathrooms, min_size, features[], has_photo, reduced_price, sort, page.
## PitchBook API
https://perceptlayer.com/apis/pitchbook
- GET /v1/pitchbook/advisor: Advisor. 1 credit. Params: id*.
- GET /v1/pitchbook/company: Company. 1 credit. Params: id*.
- GET /v1/pitchbook/fund: Fund. 1 credit. Params: id*.
- GET /v1/pitchbook/investor: Investor. 1 credit. Params: id*.
- GET /v1/pitchbook/limited-partner: Limited Partner. 1 credit. Params: id*.
- GET /v1/pitchbook/news: News. 1 credit. Params: source*, tag, file, offset, limit.
- GET /v1/pitchbook/sitemap: Sitemap. 1 credit. Params: family*, file, offset, limit.
## PlayStation Store API
https://perceptlayer.com/apis/playstation
- GET /v1/playstation/deals: Deals. 1 credit. Params: region, page.
- GET /v1/playstation/game: Game. 1 credit. Params: id*, region, page.
- GET /v1/playstation/search: Search. 1 credit. Params: query*, region, page.
## Plusvalía API
https://perceptlayer.com/apis/plusvalia
- GET /v1/plusvalia/agency: Agency. 1 credit. Params: url, id, page.
- GET /v1/plusvalia/listing: Listing. 1 credit. Params: url, id.
- GET /v1/plusvalia/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/plusvalia/search: Search. 1 credit. Params: operation, type, location, min_price, max_price, min_bedrooms, max_bedrooms, min_bathrooms, min_garages, min_area, max_area, q, address, sort, page.
## Point2 API
https://perceptlayer.com/apis/point2
- GET /v1/point2/autocomplete: Autocomplete. 1 credit. Params: query*, country*, limit.
- GET /v1/point2/listing: Listing. 1 credit. Params: url*.
- GET /v1/point2/search: Search. 1 credit. Params: country*, state*, city*, page, bedrooms[], bathrooms[], property_type[], pet_policy[], amenities[], price_min, price_max, square_feet_min, square_feet_max, available_now, sort.
## Poshmark API
https://perceptlayer.com/apis/poshmark
- GET /v1/poshmark/closet: Closet. 1 credit. Params: username*, availability, sort, cursor, page, country.
- GET /v1/poshmark/listing: Listing. 1 credit. Params: id, url, country.
- GET /v1/poshmark/search: Search. 1 credit. Params: query, brand[], category, category_feature, department, size[], condition[], color[], price_min, price_max, availability, sort, cursor, page, count, country.
- GET /v1/poshmark/suggestions: Suggestions. 1 credit. Params: query*, country.
## PriceCharting API
https://perceptlayer.com/apis/pricecharting
- GET /v1/pricecharting/price-history: Price History. 1 credit. Params: url, id.
- GET /v1/pricecharting/product: Product. 1 credit. Params: url, id.
- GET /v1/pricecharting/search: Search. 1 credit. Params: query*, page*, size*.
## Private Property API
https://perceptlayer.com/apis/private-property
- GET /v1/private-property/developments-detail: Developments Detail. 1 credit. Params: development_id*.
- GET /v1/private-property/developments-search: Developments Search. 1 credit. Params: location_id, location_name, location_descriptor, location_shape_type, min_price, max_price, page.
- GET /v1/private-property/listings-search: Listings Search. 1 credit. Params: type, deal_type, location_id, location_name, location_descriptor, location_shape_type, min_price, max_price, min_bedrooms, min_baths, rental_price_type, page, has_pool, has_staff_quarters, has_flatlets, has_borehole, has_scenic_view, has_alarm, has_electric_fencing, has_security_post, has_access_gate, has_intercom, sub_category[].
- GET /v1/private-property/locations-autocomplete: Locations Autocomplete. 1 credit. Params: q*.
- GET /v1/private-property/locations-children: Locations Children. 1 credit. Params: shape_id*.
- GET /v1/private-property/locations-suggested: Locations Suggested. 1 credit. Params: shape_ids[]*.
- GET /v1/private-property/reference-bond-rate: Reference Bond Rate. 1 credit.
## Product Hunt API
https://perceptlayer.com/apis/producthunt
- GET /v1/producthunt/categories: Categories. 1 credit. Params: query, first, after, page, filter, order.
- GET /v1/producthunt/categories-detail: Categories Detail. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/collections: Collections. 1 credit. Params: query, first, after, page, filter, order.
- GET /v1/producthunt/forums: Forums. 1 credit. Params: query, first, after, page, filter, order.
- GET /v1/producthunt/forums-detail: Forums Detail. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/leaderboard-daily: Leaderboard Daily. 1 credit. Params: year*, order, featured, after, month*, day*.
- GET /v1/producthunt/leaderboard-monthly: Leaderboard Monthly. 1 credit. Params: year*, order, featured, after, month*.
- GET /v1/producthunt/leaderboard-weekly: Leaderboard Weekly. 1 credit. Params: year*, order, featured, after, week*.
- GET /v1/producthunt/leaderboard-yearly: Leaderboard Yearly. 1 credit. Params: year*, order, featured, after.
- GET /v1/producthunt/makers: Makers. 1 credit. Params: username*, slug, comment, first, after, order.
- GET /v1/producthunt/posts: Posts. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/posts-comments: Posts Comments. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/posts-comments-replies: Posts Comments Replies. 1 credit. Params: slug*, comment*, username, first, after, order.
- GET /v1/producthunt/posts-search: Posts Search. 1 credit. Params: query, first, after, page, filter, order.
- GET /v1/producthunt/products: Products. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/products-launches: Products Launches. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/products-reviews: Products Reviews. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/products-search: Products Search. 1 credit. Params: query, first, after, page, filter, order.
- GET /v1/producthunt/topics: Topics. 1 credit. Params: query, first, after, page, filter, order.
- GET /v1/producthunt/topics-detail: Topics Detail. 1 credit. Params: slug*, username, comment, first, after, order.
- GET /v1/producthunt/topics-posts: Topics Posts. 1 credit. Params: slug*, username, comment, first, after, order.
## Properati API
https://perceptlayer.com/apis/properati
- GET /v1/properati/agency: Agency. 1 credit. Params: id*, operation, page.
- GET /v1/properati/autocomplete: Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/properati/listing: Listing. 1 credit. Params: id*.
- GET /v1/properati/search: Search. 1 credit. Params: location*, operation, property_type, stratum, days_since_publication, sort, page, min_price, max_price, bedrooms, bathrooms, min_usable_area, max_usable_area, min_built_area, max_built_area.
## Property Finder API
https://perceptlayer.com/apis/property-finder
- GET /v1/property-finder/agent: Agent. 1 credit. Params: id*, locale, country.
- GET /v1/property-finder/agents: Agents. 1 credit. Params: page, per_page, location_ids, broker_id, category_id, is_superagent, must_be_verified, sort, locale, country.
- GET /v1/property-finder/brokerage: Brokerage. 1 credit. Params: id*, locale, country.
- GET /v1/property-finder/brokerages: Brokerages. 1 credit. Params: page, per_page, q, text, location_id, parent_id, sort, locale, country.
- GET /v1/property-finder/listing: Listing. 1 credit. Params: id*, locale, country.
- GET /v1/property-finder/locations: Locations. 1 credit. Params: name, category_id, types, page, limit, sort, locale, country.
- GET /v1/property-finder/project: Project. 1 credit. Params: slug*, locale, country.
- GET /v1/property-finder/projects: Projects. 1 credit. Params: query, location_ids, developer_ids, property_type, min_price, max_price, construction_phase, slug, locale, country.
- GET /v1/property-finder/search: Search. 1 credit. Params: category_id, location_ids, bedrooms, property_type_ids, keywords, price_type, min_price, max_price, sort, page, limit, locale, country.
## Property.com.au API
https://perceptlayer.com/apis/property-com-au
- GET /v1/property-com-au/autocomplete: Autocomplete. 1 credit. Params: query*, type, limit.
- GET /v1/property-com-au/listing: Listing. 1 credit. Params: url, path.
- GET /v1/property-com-au/search: Search. 1 credit. Params: location*, channel, sort, min_price, max_price, min_bedrooms, max_bedrooms, min_bathrooms, property_type, min_land_size, keywords, include_surrounding, page.
## Property24 API
https://perceptlayer.com/apis/property24
- GET /v1/property24/agencies: Agencies. 1 credit. Params: location_id*, location_type*, page.
- GET /v1/property24/agency: Agency. 1 credit. Params: agency_id*, slug*.
- GET /v1/property24/agency-listings: Agency Listings. 1 credit. Params: agency_id*, slug*, deal_type, page.
- GET /v1/property24/listing: Listing. 1 credit. Params: path*, listing_id.
- GET /v1/property24/locations-autocomplete: Locations Autocomplete. 1 credit. Params: q*.
- GET /v1/property24/search: Search. 1 credit. Params: deal_type, property_type, location_id*, location_type*, min_price, max_price, min_bedrooms, min_bathrooms, sort, page.
## PropertyGuru API
https://perceptlayer.com/apis/propertyguru
- GET /v1/propertyguru/autocomplete: Autocomplete. 1 credit. Params: market*, query*, limit.
- GET /v1/propertyguru/listing: Listing. 1 credit. Params: market, id, url.
- GET /v1/propertyguru/projects: Projects. 1 credit. Params: market*.
- GET /v1/propertyguru/search: Search. 1 credit. Params: market*, listing_type, page, bedrooms, min_price, max_price, min_size, max_size, property_type, district_code, region_code, furnishing, sort, order.
## PropertyPro.ng API
https://perceptlayer.com/apis/propertypro-ng
- GET /v1/propertypro-ng/agent: Agent. 1 credit. Params: slug*.
- GET /v1/propertypro-ng/agent-listings: Agent Listings. 1 credit. Params: slug*, mode, page.
- GET /v1/propertypro-ng/agents: Agents. 1 credit. Params: state, page.
- GET /v1/propertypro-ng/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/propertypro-ng/facets: Facets. 1 credit.
- GET /v1/propertypro-ng/listing: Listing. 1 credit. Params: url, pid, slug.
- GET /v1/propertypro-ng/search: Search. 1 credit. Params: category, type, location, min_price, max_price, bedrooms, sort, page.
## Propiedades.com API
https://perceptlayer.com/apis/propiedades-com
- GET /v1/propiedades-com/autocomplete: Autocomplete. 1 credit. Params: q*, purpose, type, subtype.
- GET /v1/propiedades-com/listing: Listing. 1 credit. Params: url*.
- GET /v1/propiedades-com/search: Search. 1 credit. Params: purpose, type, subtype, location_id*, price_min, price_max, size_min, size_max, bedrooms, bathrooms, auctions, amenities[], sort, page.
## PyPI API
https://perceptlayer.com/apis/pypi
- GET /v1/pypi/project: Project. 1 credit. Params: project*, version.
## Qasa API
https://perceptlayer.com/apis/qasa
- GET /v1/qasa/landlord: Landlord. 1 credit. Params: uid*.
- GET /v1/qasa/listing: Listing. 1 credit. Params: id*.
- GET /v1/qasa/location-autocomplete: Location Autocomplete. 1 credit. Params: q*, market.
- GET /v1/qasa/search: Search. 1 credit. Params: market, area, min_rent, max_rent, min_rooms, max_rooms, min_size, max_size, household_size, min_rental_length, home_type, shared, furnished, pets, smoking, wheelchair_accessible, first_hand, student_home, senior_home, corporate_home, sort, direction, limit, page.
## QuintoAndar API
https://perceptlayer.com/apis/quintoandar
- GET /v1/quintoandar/autocomplete: Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/quintoandar/condominium: Condominium. 1 credit. Params: hash_id*.
- GET /v1/quintoandar/filters: Filters. 1 credit. Params: business.
- GET /v1/quintoandar/media: Media. 1 credit. Params: id*.
- GET /v1/quintoandar/property: Property. 1 credit. Params: id*, origin.
- GET /v1/quintoandar/search: Search. 1 credit. Params: business*, location*, price_min, price_max, bedrooms, bedrooms_max, bathrooms, bathrooms_max, parking_spaces, suites, area_min, area_max, property_type, furnished, amenities, installations, availability, origin, sort, rows, page.
- GET /v1/quintoandar/similar: Similar. 1 credit. Params: id*, business*, type.
## RadarBox API
https://perceptlayer.com/apis/radarbox
- GET /v1/radarbox/airport: Airport. 8 credits. Params: airport*, direction, date, page.
- GET /v1/radarbox/flight: Flight. 1–13 credits. 1 credit by fid, 4 by flight number and date, plus 9 with include_track. Params: fid, flight_number, date, include_track.
- GET /v1/radarbox/flight-history: Flight History. 3 credits. Params: flight_number, registration, callsign, mode_s, airline, aircraft_type, date, page.
## Rakuten API
https://perceptlayer.com/apis/rakuten
- GET /v1/rakuten/item: Item. 1 credit. Params: url, shop_code, manage_number.
- GET /v1/rakuten/ranking: Ranking. 1 credit. Params: period, genre_id, gender, page.
- GET /v1/rakuten/reviews: Reviews. 1 credit. Params: id, shop_id, item_id, page, sort, rating, media_only.
- GET /v1/rakuten/search: Search. 1 credit. Params: query, genre_id, min_price, max_price, sort, page, min_rating, include_sold_out.
- GET /v1/rakuten/suggest: Suggest. 1 credit. Params: query*.
## realestate.co.nz API
https://perceptlayer.com/apis/realestate-co-nz
- GET /v1/realestate-co-nz/agent: Agent. 1 credit. Params: id*, include_listings, type, page, rows.
- GET /v1/realestate-co-nz/autocomplete: Autocomplete. 1 credit. Params: q*, type.
- GET /v1/realestate-co-nz/facets: Facets. 1 credit. Params: type*, region, district, suburb.
- GET /v1/realestate-co-nz/listing: Listing. 1 credit. Params: id*.
- GET /v1/realestate-co-nz/locations: Locations. 1 credit.
- GET /v1/realestate-co-nz/office: Office. 1 credit. Params: id*.
- GET /v1/realestate-co-nz/search: Search. 1 credit. Params: type*, page, rows, region, district, suburb, agent, office, school, price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, carparks, land_area_min, land_area_max, floor_area_min, floor_area_max, property_type, keyword, sort, open_home, new_construction, mortgagee_sale, swimming_pool, pets_allowed, floor_plans, videos, coastal_waterfront, include_nearby_suburbs.
## realestate.com.au API
https://perceptlayer.com/apis/realestate-com-au
- GET /v1/realestate-com-au/agency-profile: Agency Profile. 1 credit. Params: url*.
- GET /v1/realestate-com-au/agent-profile: Agent Profile. 1 credit. Params: url*.
- GET /v1/realestate-com-au/agents: Agents. 1 credit. Params: url, location, page.
- GET /v1/realestate-com-au/autocomplete: Autocomplete. 1 credit. Params: query*, limit, types, source.
- GET /v1/realestate-com-au/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/realestate-com-au/property: Property. 1 credit. Params: url*.
- GET /v1/realestate-com-au/sales-events: Sales Events. 1 credit. Params: state, url.
- GET /v1/realestate-com-au/search: Search. 1 credit. Params: location*, channel, page, sort, min_price, max_price, min_bedrooms, max_bedrooms, min_bathrooms, min_carspaces, property_types, keywords.
- GET /v1/realestate-com-au/suburb-profile: Suburb Profile. 1 credit. Params: url*.
## Realestateview API
https://perceptlayer.com/apis/realestateview
- GET /v1/realestateview/agency: Agency. 1 credit. Params: id*.
- GET /v1/realestateview/agency-listings: Agency Listings. 1 credit. Params: id*, page.
- GET /v1/realestateview/agent: Agent. 1 credit. Params: id*.
- GET /v1/realestateview/agent-listings: Agent Listings. 1 credit. Params: id*, page.
- GET /v1/realestateview/listing: Listing. 1 credit. Params: id*.
- GET /v1/realestateview/location-autocomplete: Location Autocomplete. 1 credit. Params: q*.
- GET /v1/realestateview/search: Search. 1 credit. Params: mode*, state*, suburb*, postcode*, property_types[], price_min, price_max, land_size_min, land_size_max, exclude_under_contract, sort, page, beds_min, beds_exact, baths_min, baths_exact, cars_min, cars_exact.
## Realitica API
https://perceptlayer.com/apis/realitica
- GET /v1/realitica/advertiser: Advertiser. 1 credit. Params: user_id*, page.
- GET /v1/realitica/listing: Listing. 1 credit. Params: id*.
- GET /v1/realitica/locations: Locations. 1 credit. Params: country, q.
- GET /v1/realitica/reference: Reference. 1 credit.
- GET /v1/realitica/search: Search. 1 credit. Params: listing_type, country, region, query, property_type[], min_price, max_price, bedrooms, min_area, max_area, sort, posted_within, page.
## Realtor.com API
https://perceptlayer.com/apis/realtor-com
- GET /v1/realtor-com/agent: Agent. 1 credit. Params: property_id*.
- GET /v1/realtor-com/autocomplete: Autocomplete. 1 credit. Params: query*, limit, area_types[].
- GET /v1/realtor-com/listing: Listing. 1 credit. Params: property_id*.
- GET /v1/realtor-com/schools: Schools. 1 credit. Params: property_id*, radius_mi, limit_per_level.
- GET /v1/realtor-com/search: Search. 1 credit. Params: status*, location, latitude, longitude, radius_mi, type[], sort, order, sold_within_days, page, per_page, min_price, max_price, min_beds, max_beds, min_baths, max_baths, min_sqft, max_sqft.
## Reddit API
https://perceptlayer.com/apis/reddit
- GET /v1/reddit/autocomplete: Autocomplete. 1 credit. Params: query*, limit, nsfw.
- GET /v1/reddit/domain: Domain. 1 credit. Params: domain*, sort, t, after, limit.
- GET /v1/reddit/oembed: Oembed. 1 credit. Params: url*.
- GET /v1/reddit/popular: Popular. 1 credit. Params: feed, sort, t, after, limit.
- GET /v1/reddit/post: Post. 1 credit. Params: id*.
- GET /v1/reddit/search-posts: Search Posts. 1 credit. Params: query*, sort, t, subreddit, nsfw, after, limit.
- GET /v1/reddit/search-subreddits: Search Subreddits. 1 credit. Params: query*, after, limit.
- GET /v1/reddit/search-users: Search Users. 1 credit. Params: query*, after, limit.
- GET /v1/reddit/subreddit: Subreddit. 1 credit. Params: subreddit*, rules.
- GET /v1/reddit/subreddit-posts: Subreddit Posts. 1 credit. Params: subreddit*, sort, t, after, limit.
- GET /v1/reddit/user-comments: User Comments. 1 credit. Params: username*, sort, t, after, limit.
- GET /v1/reddit/user-overview: User Overview. 1 credit. Params: username*, sort, t, after, limit.
- GET /v1/reddit/user-posts: User Posts. 1 credit. Params: username*, sort, t, after, limit.
- GET /v1/reddit/user-profile: User Profile. 1 credit. Params: username*.
## Redfin API
https://perceptlayer.com/apis/redfin
- GET /v1/redfin/agent: Agent. 1 credit. Params: slug*, country, deals_limit, reviews_limit.
- GET /v1/redfin/agents: Agents. 1 credit. Params: region_id*, region_type*, country, min_rating, min_deals, language, serves, sort, page, per_page.
- GET /v1/redfin/history: History. 1 credit. Params: property_id*, listing_id, country.
- GET /v1/redfin/locations: Locations. 1 credit. Params: query*, country.
- GET /v1/redfin/market-trends: Market Trends. 1 credit. Params: region_id*, region_type*, country.
- GET /v1/redfin/nearby: Nearby. 1 credit. Params: property_id*, listing_id*, country.
- GET /v1/redfin/open-houses: Open Houses. 1 credit. Params: region_id*, region_type*, market*, country, num_homes, page.
- GET /v1/redfin/property: Property. 1 credit. Params: property_id*, listing_id.
- GET /v1/redfin/schools: Schools. 1 credit. Params: property_id*, country.
- GET /v1/redfin/scores: Scores. 1 credit. Params: property_id*, country.
- GET /v1/redfin/search: Search. 1 credit. Params: region_id*, region_type*, country, market*, min_price, max_price, num_beds, num_baths, property_types, status, sold_within_days, num_homes, page.
- GET /v1/redfin/similar: Similar. 1 credit. Params: property_id*, listing_id*, type, country.
- GET /v1/redfin/sold: Sold. 1 credit. Params: region_id*, region_type*, market*, country, min_price, max_price, num_beds, property_types, sold_within_days, num_homes, page.
- GET /v1/redfin/valuation: Valuation. 1 credit. Params: property_id*, listing_id.
## Reed API
https://perceptlayer.com/apis/reed
- GET /v1/reed/jobs-details: Jobs Details. 1 credit. Params: job_id*.
- GET /v1/reed/jobs-search: Jobs Search. 1 credit. Params: keywords, location, proximity, salary_from, salary_to, job_type[], hours[], working_option, posted_within, page.
## Remote Jobs API
https://perceptlayer.com/apis/remote-jobs
- GET /v1/remote-jobs/categories: Categories. 1 credit.
- GET /v1/remote-jobs/job: Job. 1 credit. Params: job_id*.
- GET /v1/remote-jobs/search: Search. 1 credit. Params: q, category, job_type, seniority, country, region, timezone, salary_min, currency, date_posted, source, sort, page.
- GET /v1/remote-jobs/sources: Sources. 1 credit.
## Rent.com API
https://perceptlayer.com/apis/rent-com
- GET /v1/rent-com/autocomplete: Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/rent-com/listing: Listing. 1 credit. Params: id, url.
- GET /v1/rent-com/search: Search. 1 credit. Params: location*, property_types[], beds[], baths[], price_min, price_max, sqft_min, sqft_max, pet_friendly, amenities[], sort, page.
## Rentalcars.com API
https://perceptlayer.com/apis/rentalcars
- GET /v1/rentalcars/autocomplete: Autocomplete. 1 credit. Params: term*, language, cor.
- GET /v1/rentalcars/brand: Brand. 1 credit. Params: brand*, locale.
- GET /v1/rentalcars/brand-logos: Brand Logos. 1 credit. Params: destination*, count.
- GET /v1/rentalcars/destination: Destination. 1 credit. Params: destination*, count.
- GET /v1/rentalcars/destination-suppliers: Destination Suppliers. 1 credit. Params: destination*, count.
- GET /v1/rentalcars/faqs: Faqs. 1 credit. Params: destination*, count.
- GET /v1/rentalcars/flexible-prices: Flexible Prices. 1 credit. Params: iata*, start_date*, end_date*, rental_days, language, cor, currency.
- GET /v1/rentalcars/offer: Offer. 1 credit. Params: pickup_location*, dropoff_location, pickup_date*, pickup_time, dropoff_date*, dropoff_time, drivers_age, cor, currency, car_category[], supplier[], transmission[], mileage[], depot_location_type[], fuel_type[], fuel_policy_type[], seat_capacity[], pay_when[], free_cancellation, minimum_supplier_rating, minimum_four_doors, has_deals, has_insurance_inclusive_pricing, price_min, price_max, sort, sort_ascending, filter_criteria, page, per_page, vehicle_id*.
- GET /v1/rentalcars/review-summaries: Review Summaries. 1 credit. Params: supplier_id*, location_id*.
- GET /v1/rentalcars/search: Search. 1 credit. Params: pickup_location*, dropoff_location, pickup_date*, pickup_time, dropoff_date*, dropoff_time, drivers_age, cor, currency, car_category[], supplier[], transmission[], mileage[], depot_location_type[], fuel_type[], fuel_policy_type[], seat_capacity[], pay_when[], free_cancellation, minimum_supplier_rating, minimum_four_doors, has_deals, has_insurance_inclusive_pricing, price_min, price_max, sort, sort_ascending, filter_criteria, page, per_page.
- GET /v1/rentalcars/supplier-ratings: Supplier Ratings. 1 credit. Params: pickup_location*, dropoff_location, pickup_date*, pickup_time, dropoff_date*, dropoff_time, drivers_age, cor, currency, car_category[], supplier[], transmission[], mileage[], depot_location_type[], fuel_type[], fuel_policy_type[], seat_capacity[], pay_when[], free_cancellation, minimum_supplier_rating, minimum_four_doors, has_deals, has_insurance_inclusive_pricing, price_min, price_max, sort, sort_ascending, filter_criteria, page, per_page.
- GET /v1/rentalcars/terms: Terms. 1 credit. Params: pickup_location*, dropoff_location, pickup_date*, pickup_time, dropoff_date*, dropoff_time, drivers_age, cor, currency, car_category[], supplier[], transmission[], mileage[], depot_location_type[], fuel_type[], fuel_policy_type[], seat_capacity[], pay_when[], free_cancellation, minimum_supplier_rating, minimum_four_doors, has_deals, has_insurance_inclusive_pricing, price_min, price_max, sort, sort_ascending, filter_criteria, page, per_page, supplier*, make_and_model*.
## Rentalia API
https://perceptlayer.com/apis/rentalia
- GET /v1/rentalia/house: House. 1 credit. Params: id*, lang.
- GET /v1/rentalia/locations: Locations. 1 credit. Params: query*, lang.
- GET /v1/rentalia/price: Price. 1 credit. Params: rental_unit_id*, check_in_date*, check_out_date*, capacity*.
## Rentals.ca API
https://perceptlayer.com/apis/rentals-ca
- GET /v1/rentals-ca/agency: Agency. 1 credit. Params: path, url, id.
- GET /v1/rentals-ca/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/rentals-ca/cities: Cities. 1 credit. Params: region, page, per_page.
- GET /v1/rentals-ca/facets: Facets. 1 credit.
- GET /v1/rentals-ca/listing: Listing. 1 credit. Params: path, url, id.
- GET /v1/rentals-ca/neighbourhoods: Neighbourhoods. 1 credit. Params: region, page, per_page, city*.
- GET /v1/rentals-ca/search: Search. 1 credit. Params: city, region, location, min_price, max_price, min_beds, max_beds, min_baths, max_baths, min_size, max_size, property_type[], categories[], lease_terms[], furnished[], parking_types[], amenities[], pets, verified, has_images, sort, page, per_page.
## RentFaster API
https://perceptlayer.com/apis/rentfaster
- GET /v1/rentfaster/agency: Agency. 1 credit. Params: id*.
- GET /v1/rentfaster/autocomplete: Autocomplete. 1 credit. Params: query, popular.
- GET /v1/rentfaster/filters: Filters. 1 credit. Params: city_id*.
- GET /v1/rentfaster/listing: Listing. 1 credit. Params: id*.
- GET /v1/rentfaster/photos: Photos. 1 credit. Params: id*.
- GET /v1/rentfaster/search: Search. 1 credit. Params: city_id*, price_min, price_max, area, zoom, page, beds[], baths[], type[], furnishing[], pets_cats[], pets_dogs[].
## Resy API
https://perceptlayer.com/apis/resy
- GET /v1/resy/calendar: Calendar. 1 credit. Params: venue_id*, num_seats, start_date*, end_date*, time_zone.
- GET /v1/resy/city-listings: City Listings. 1 credit. Params: location*, day, party_size, latitude, longitude.
- GET /v1/resy/cuisines: Cuisines. 1 credit. Params: location*, maximum_num_cuisines.
- GET /v1/resy/search: Search. 1 credit. Params: query*, day, party_size, latitude, longitude, radius, page, time_zone.
- GET /v1/resy/slot: Slot. 1 credit. Params: config_id*, day, party_size, time_zone.
- GET /v1/resy/venue: Venue. 1 credit. Params: id, url_slug, location.
- GET /v1/resy/venue-config: Venue Config. 1 credit. Params: venue_id*.
## Reverb API
https://perceptlayer.com/apis/reverb
- GET /v1/reverb/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/reverb/categories: Categories. 1 credit.
- GET /v1/reverb/conditions: Conditions. 1 credit.
- GET /v1/reverb/currencies: Currencies. 1 credit.
- GET /v1/reverb/listing: Listing. 1 credit. Params: id*.
- GET /v1/reverb/listing-reviews: Listing Reviews. 1 credit. Params: id*.
- GET /v1/reverb/search: Search. 1 credit. Params: query, category_uuid, price_min, price_max, sort, order, page, per_page.
- GET /v1/reverb/shop: Shop. 1 credit. Params: slug*.
- GET /v1/reverb/shop-feedback: Shop Feedback. 1 credit. Params: slug*.
- GET /v1/reverb/shop-inventory: Shop Inventory. 1 credit. Params: shop_id*.
- GET /v1/reverb/similar: Similar. 1 credit. Params: id*.
## Ricardo API
https://perceptlayer.com/apis/ricardo
- GET /v1/ricardo/categories: Categories. 1 credit. Params: parent_id, level, language*.
- GET /v1/ricardo/category: Category. 1 credit. Params: category_id*, page*, limit*, auction_only*, price_min, price_max, language*.
- GET /v1/ricardo/listing: Listing. 1 credit. Params: id*, language*.
- GET /v1/ricardo/search: Search. 1 credit. Params: query*, category_id, page*, limit*, auction_only*, price_min, price_max, language*.
## Rightmove API
https://perceptlayer.com/apis/rightmove
- GET /v1/rightmove/address: Address. 1 credit. Params: postcode, term.
- GET /v1/rightmove/agents: Agents. 1–2 credits. 1 credit, or 2 the first time a place name is looked up; location_identifier avoids it. Params: location, location_identifier, channel*.
- GET /v1/rightmove/branch: Branch. 1 credit. Params: id*.
- GET /v1/rightmove/locations-typeahead: Locations Typeahead. 1 credit. Params: query*, limit.
- GET /v1/rightmove/property: Property. 1 credit. Params: id*.
- GET /v1/rightmove/search: Search. 1–3 credits. 1 credit, plus 1 with enrich and 1 the first time a place name is looked up. Params: location, location_identifier, location_name, channel*, radius, page, sort, min_price, max_price, min_bedrooms, max_bedrooms, property_type, must_have, enrich.
- GET /v1/rightmove/sold-properties: Sold Properties. 1–3 credits. 1 credit, or 3 the first time a postcode is looked up. Params: postcode, location_id, location_type, radius, page, page_size, property_type, tenure, sold_in.
- GET /v1/rightmove/sold-property: Sold Property. 1 credit. Params: uuid*.
## RockAuto API
https://perceptlayer.com/apis/rockauto
- GET /v1/rockauto/product: Product. 1 credit. Params: id, url, cc, pt.
- GET /v1/rockauto/search: Search. 1 credit. Params: query, part_number, make, year, model, carcode, language, page.
## Rumble API
https://perceptlayer.com/apis/rumble
- GET /v1/rumble/categories: Categories. 1 credit. Params: limit.
- GET /v1/rumble/channels-profile: Channels Profile. 1 credit. Params: channel_id*.
- GET /v1/rumble/channels-search: Channels Search. 1 credit. Params: query*, offset, limit.
- GET /v1/rumble/channels-videos: Channels Videos. 1 credit. Params: channel_id*, offset, limit, sort.
- GET /v1/rumble/search-autocomplete: Search Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/rumble/videos-comments: Videos Comments. 1 credit. Params: video_id, url, offset, limit.
- GET /v1/rumble/videos-details: Videos Details. 1 credit. Params: video_id, url.
- GET /v1/rumble/videos-related: Videos Related. 1 credit. Params: video_id, url.
- GET /v1/rumble/videos-search: Videos Search. 1 credit. Params: query*, offset, limit, sort, date, duration, video_type.
## Ryanair API
https://perceptlayer.com/apis/ryanair
- GET /v1/ryanair/airports-active: Airports Active. 1 credit.
- GET /v1/ryanair/airports-detail: Airports Detail. 1 credit. Params: code*.
- GET /v1/ryanair/fares-cheapest-per-day: Fares Cheapest Per Day. 1 credit. Params: origin*, destination*, month*, currency, adults.
- GET /v1/ryanair/fares-one-way: Fares One Way. 1 credit. Params: origin*, destination*, departure_date_from*, departure_date_to*, currency, adults, market, limit, inbound_date_from, inbound_date_to, nights_from, nights_to.
- GET /v1/ryanair/fares-round-trip: Fares Round Trip. 1 credit. Params: origin*, destination*, departure_date_from*, departure_date_to*, currency, adults, market, limit, inbound_date_from, inbound_date_to, nights_from, nights_to.
- GET /v1/ryanair/flights-active-dates: Flights Active Dates. 1 credit. Params: origin*, destination*.
- GET /v1/ryanair/flights-availability: Flights Availability. 1 credit. Params: origin*, destination*, date*, adults, children, infants, teens, flex, market.
- GET /v1/ryanair/flights-schedules: Flights Schedules. 1 credit. Params: origin*, destination*, year*, month*.
- GET /v1/ryanair/reference-sitemap: Reference Sitemap. 1 credit.
- GET /v1/ryanair/routes-from-airport: Routes From Airport. 1 credit. Params: code*.
- GET /v1/ryanair/routes-served-period: Routes Served Period. 1 credit. Params: origin*, destination*.
- GET /v1/ryanair/routes-served-periods: Routes Served Periods. 1 credit. Params: origin*.
## SEEK API
https://perceptlayer.com/apis/seek
- GET /v1/seek/job: Job. 1 credit. Params: job_id*, country.
- GET /v1/seek/jobs: Jobs. 1 credit. Params: country, keywords, location, distance, classification, work_type, sort, days, page, limit.
## SeLoger API
https://perceptlayer.com/apis/seloger
- GET /v1/seloger/agencies: Agencies. 1 credit. Params: city*, page.
- GET /v1/seloger/count: Count. 1 credit. Params: place_id, distribution, estate_types[], price_min, price_max, year_built_min, size_min, available_from_max, energy_certificate_class[].
- GET /v1/seloger/locations: Locations. 1 credit. Params: query*, limit.
- GET /v1/seloger/place: Place. 2 credits. Params: place_id*, parent_types[].
- GET /v1/seloger/properties: Properties. 1 credit. Params: ids[].
- GET /v1/seloger/property: Property. 2 credits. Params: id*.
- GET /v1/seloger/search: Search. 1–2 credits. 1 credit, or 2 with place_id. Params: place_id, distribution, estate_types[], new_build, price_min, price_max, rooms_min, rooms_max, size_min, year_built_min, available_from_max, keywords, order, page, per_page.
## Semrush API
https://perceptlayer.com/apis/semrush
- GET /v1/semrush/domain-competitors: Domain Competitors. 1 credit. Params: domain*.
- GET /v1/semrush/domain-overview: Domain Overview. 1 credit. Params: domain*.
- GET /v1/semrush/facets: Facets. 1 credit.
- POST /v1/semrush/local-review-qr: Local Review Qr. 1 credit. Params: business_name*, place_id*.
- GET /v1/semrush/sensor-movers: Sensor Movers. 1 credit. Params: db*, category*, date*.
- GET /v1/semrush/sensor-ranks: Sensor Ranks. 1 credit. Params: db, category, date.
- GET /v1/semrush/sensor-serp-features: Sensor Serp Features. 1 credit. Params: db*, category*, date*.
- GET /v1/semrush/suggest: Suggest. 1 credit. Params: q*.
- GET /v1/semrush/trending: Trending. 1 credit. Params: country, category.
- GET /v1/semrush/website-traffic: Website Traffic. 1 credit. Params: domain*.
## Sephora API
https://perceptlayer.com/apis/sephora
- GET /v1/sephora/product: Product. 1 credit. Params: id, url.
- GET /v1/sephora/search: Search. 1 credit. Params: query, category, brand, sort, page, price_min, price_max.
## Shopify API
https://perceptlayer.com/apis/shopify
- GET /v1/shopify/products: Products. 1 credit. Params: store*, page, limit, collection.
## Shopify App Store API
https://perceptlayer.com/apis/shopify-app-store
- GET /v1/shopify-app-store/app: App. 1 credit. Params: handle, id, locale.
- GET /v1/shopify-app-store/reviews: Reviews. 1 credit. Params: handle, id, sort, locale, page.
- GET /v1/shopify-app-store/search: Search. 1 credit. Params: q, category, locale, page.
## Similarweb API
https://perceptlayer.com/apis/similarweb
- POST /v1/similarweb/batches: Batches. 1–1,000 credits. 1 credit per domain in the batch. Params: domains*.
- GET /v1/similarweb/batches-detail: Batches Detail. 1 credit. Params: batch*, after, limit.
- POST /v1/similarweb/batches-retry: Batches Retry. 1 credit. Params: batch*, after, limit.
- GET /v1/similarweb/traffic: Traffic. 1 credit. Params: domain*.
## Sinyi Realty API
https://perceptlayer.com/apis/sinyi
- GET /v1/sinyi/agency: Agency. 1 credit. Params: id*.
- GET /v1/sinyi/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/sinyi/listing: Listing. 1 credit. Params: id*.
- GET /v1/sinyi/locations: Locations. 1 credit. Params: city_id.
- GET /v1/sinyi/search: Search. 1 credit. Params: trade*, location, type, min_price, max_price, min_rooms, max_rooms, min_area, max_area, min_age, max_age, sort, page, per_page.
## Sitejabber API
https://perceptlayer.com/apis/sitejabber
- GET /v1/sitejabber/company: Company. 1 credit. Params: slug*.
- GET /v1/sitejabber/reviews: Reviews. 1 credit. Params: slug*, page.
- GET /v1/sitejabber/search: Search. 1 credit. Params: query*, page.
## Skyscanner API
https://perceptlayer.com/apis/skyscanner
- GET /v1/skyscanner/autocomplete: Autocomplete. 1 credit. Params: query*, is_destination.
- GET /v1/skyscanner/calendar: Calendar. 1 credit. Params: origin*, destination*, month*.
## Snapchat API
https://perceptlayer.com/apis/snapchat
- GET /v1/snapchat/discover: Discover. 1 credit. Params: country, locale, limit.
- GET /v1/snapchat/profile: Profile. 1 credit. Params: username*, locale.
- GET /v1/snapchat/spotlight: Spotlight. 1 credit. Params: username*, story_id*, locale.
- GET /v1/snapchat/spotlight-feed: Spotlight Feed. 1 credit. Params: locale, limit.
## SoundCloud API
https://perceptlayer.com/apis/soundcloud
- GET /v1/soundcloud/comments: Comments. 1 credit. Params: id*, threaded, filter_replies, offset, limit.
- GET /v1/soundcloud/playlists: Playlists. 1 credit. Params: id*.
- GET /v1/soundcloud/playlists-tracks: Playlists Tracks. 1–11 credits. 1 credit, plus 1 per 50 tracks loaded, up to 500 tracks. Params: id*, max_members, offset.
- GET /v1/soundcloud/playlists-trending: Playlists Trending. 1 credit. Params: limit, offset.
- GET /v1/soundcloud/profiles: Profiles. 1 credit. Params: id*.
- GET /v1/soundcloud/profiles-activity: Profiles Activity. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-albums: Profiles Albums. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-followers: Profiles Followers. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-followings: Profiles Followings. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-likes: Profiles Likes. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-links: Profiles Links. 1 credit. Params: user_urn*.
- GET /v1/soundcloud/profiles-playlists: Profiles Playlists. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-playlists-without-albums: Profiles Playlists Without Albums. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-spotlight: Profiles Spotlight. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-top-tracks: Profiles Top Tracks. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/profiles-tracks: Profiles Tracks. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/recent-tracks: Recent Tracks. 1 credit. Params: tag*, limit.
- GET /v1/soundcloud/resolve: Resolve. 1 credit. Params: url*.
- GET /v1/soundcloud/search: Search. 1 credit. Params: query*, type, limit, offset.
- GET /v1/soundcloud/search-suggestions: Search Suggestions. 1 credit. Params: query*, limit.
- GET /v1/soundcloud/tracks: Tracks. 1 credit. Params: id*.
- GET /v1/soundcloud/tracks-comments: Tracks Comments. 1 credit. Params: id*, threaded, filter_replies, offset, limit.
- GET /v1/soundcloud/tracks-likers: Tracks Likers. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/tracks-related: Tracks Related. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/tracks-reposters: Tracks Reposters. 1 credit. Params: id*, limit, offset.
- GET /v1/soundcloud/users-related-artists: Users Related Artists. 1 credit. Params: id*, limit, offset.
## Spacious API
https://perceptlayer.com/apis/spacious
- GET /v1/spacious/agencies-search: Agencies Search. 1 credit. Params: query*, limit.
- GET /v1/spacious/agency: Agency. 1 credit. Params: id*, mode, page.
- GET /v1/spacious/autocomplete: Autocomplete. 1 credit. Params: query*, type, limit.
- GET /v1/spacious/building: Building. 1 credit. Params: id*.
- GET /v1/spacious/listing: Listing. 1 credit. Params: path*.
- GET /v1/spacious/search: Search. 1 credit. Params: mode*, page, locale, bedrooms, min_bedrooms, bathrooms, min_bathrooms, price_min, price_max, area_min, area_max, area_type, property_type, neighbourhood_id, building_id, sort.
## SpareRoom API
https://perceptlayer.com/apis/spareroom
- GET /v1/spareroom/areas: Areas. 1 credit. Params: city*.
- GET /v1/spareroom/listing: Listing. 1 credit. Params: id*, ad_type.
- GET /v1/spareroom/locations: Locations. 1 credit. Params: q*.
- GET /v1/spareroom/search: Search. 1 credit. Params: where*, page, sort, min_rent, max_rent, rent_period, bills_included, available_from, types, room_types, ensuite, furnished, rooms_for, share_type, genderfilter, gayshare, vegetarians, disabled_access, living_room, parking, smoking, pets_req, days_of_wk_available, short_lets_considered, posted_by, landlord, photoadsonly, free_to_contact, no_deposit, verified_users, min_term, max_term, no_of_rooms, min_age_req, max_age_req, min_beds, max_beds.
## Spitogatos API
https://perceptlayer.com/apis/spitogatos
- GET /v1/spitogatos/agent: Agent. 1 credit. Params: id*, locale.
- GET /v1/spitogatos/agent-properties: Agent Properties. 1 credit. Params: id*, page, locale.
- GET /v1/spitogatos/agent-search: Agent Search. 1 credit. Params: query*, area_id, page, locale.
- GET /v1/spitogatos/autocomplete: Autocomplete. 1 credit. Params: query*, limit, locale.
- GET /v1/spitogatos/count: Count. 1 credit. Params: listing_type*, category, area_ids[], property_types[], locale, construction_year_min, construction_year_max, price_min, price_max, area_min, area_max, rooms_min, rooms_max, new_development, reductions, furnished, elevator, balcony, garden, air_conditioning, storage.
- GET /v1/spitogatos/property: Property. 1 credit. Params: id*, locale.
- GET /v1/spitogatos/search: Search. 1 credit. Params: listing_type*, category, area_ids[], property_types[], locale, construction_year_min, construction_year_max, price_min, price_max, area_min, area_max, rooms_min, rooms_max, new_development, reductions, furnished, elevator, balcony, garden, air_conditioning, storage, sort, order, page.
- GET /v1/spitogatos/search-map: Search Map. 1 credit. Params: listing_type*, category, area_ids[], property_types[], locale, construction_year_min, construction_year_max, price_min, price_max, area_min, area_max, rooms_min, rooms_max, new_development, reductions, furnished, elevator, balcony, garden, air_conditioning, storage.
## Spotahome API
https://perceptlayer.com/apis/spotahome
- GET /v1/spotahome/listing: Listing. 1 credit. Params: id*, city*, property_type*.
- GET /v1/spotahome/search: Search. 1 credit. Params: city*, country*, page, min_price, max_price, type, move_in.
## Spotify API
https://perceptlayer.com/apis/spotify
- GET /v1/spotify/album: Album. 1–2 credits. 1 credit, or 2 when a second lookup is needed. Params: id*.
- GET /v1/spotify/album-tracks: Album Tracks. 1–20 credits. 1 credit per 50 tracks returned. Params: id*, limit, all.
- GET /v1/spotify/artist: Artist. 1–2 credits. 1 credit, or 2 when a second lookup is needed. Params: id*.
- GET /v1/spotify/artist-discography: Artist Discography. 1 credit. Params: id*, limit, offset.
- GET /v1/spotify/artist-related: Artist Related. 1 credit. Params: id*.
- GET /v1/spotify/artist-top-tracks: Artist Top Tracks. 1 credit. Params: id*.
- GET /v1/spotify/charts: Charts. 1–10 credits. 1 credit per 100 tracks returned. Params: key*, limit, all.
- GET /v1/spotify/discovery-audio-mix-seed: Discovery Audio Mix Seed. 1 credit. Params: track_id*.
- GET /v1/spotify/episode: Episode. 1 credit. Params: id*.
- GET /v1/spotify/get-many: Get Many. 1–100 credits. 1 credit per id found, 2 for an id that needs a second lookup; up to 50 ids. Params: ids[], type.
- GET /v1/spotify/playlist: Playlist. 1 credit. Params: id*.
- GET /v1/spotify/playlist-tracks: Playlist Tracks. 1–10 credits. 1 credit per 100 tracks returned. Params: id*, limit, all.
- GET /v1/spotify/search: Search. 1 credit. Params: q*, limit, offset.
- GET /v1/spotify/search-suggestions: Search Suggestions. 1 credit. Params: q*.
- GET /v1/spotify/show: Show. 1 credit. Params: id*.
- GET /v1/spotify/show-episodes: Show Episodes. 1–20 credits. 1 credit per 50 episodes returned. Params: id*, limit, all.
- GET /v1/spotify/track: Track. 1 credit. Params: id*.
- GET /v1/spotify/track-colors: Track Colors. 1 credit. Params: image_uri*.
## Sprouts Farmers Market API
https://perceptlayer.com/apis/sprouts
- GET /v1/sprouts/product: Product. 1 credit. Params: id, url, store_id, zip.
- GET /v1/sprouts/search: Search. 1 credit. Params: query*, store_id, zip, page, per_page.
## Square Yards API
https://perceptlayer.com/apis/square-yards
- GET /v1/square-yards/agent: Agent. 1 credit. Params: id*, slug.
- GET /v1/square-yards/autocomplete: Autocomplete. 1 credit. Params: q*, city*, category.
- GET /v1/square-yards/cities: Cities. 1 credit. Params: q.
- GET /v1/square-yards/filters: Filters. 1 credit. Params: category.
- GET /v1/square-yards/listing: Listing. 1 credit. Params: url, id, category.
- GET /v1/square-yards/search: Search. 1 credit. Params: city*, category, bedrooms, property_type, locality, min_price, max_price, min_area, max_area, sort, page.
## Sreality API
https://perceptlayer.com/apis/sreality
- GET /v1/sreality/brokers: Brokers. 1 credit. Params: agency_id*.
- GET /v1/sreality/clusters: Clusters. 1 credit. Params: lat_min*, lat_max*, lon_min*, lon_max*, zoom*.
- GET /v1/sreality/estate: Estate. 1 credit. Params: hash_id*.
- GET /v1/sreality/facets: Facets. 1 credit. Params: property_type, deal_type, country_id.
- GET /v1/sreality/geometries: Geometries. 1 credit. Params: entity_type*, entity_id*, no_children.
- GET /v1/sreality/histogram: Histogram. 1 credit. Params: property_type*, deal_type*.
- GET /v1/sreality/price-graph: Price Graph. 1 credit. Params: property_type*, date_from*, date_to*.
- GET /v1/sreality/project-clusters: Project Clusters. 1 credit. Params: lat_min*, lat_max*, lon_min*, lon_max*, zoom*.
- GET /v1/sreality/project-facets: Project Facets. 1 credit.
- GET /v1/sreality/projects: Projects. 1 credit. Params: limit, offset.
- GET /v1/sreality/resolve: Resolve. 1 credit. Params: entity_type*, entity_id*.
- GET /v1/sreality/search: Search. 1 credit. Params: property_type, deal_type, category_sub, country_id, region_id, entity_type, entity_id, price_min, price_max, advert_age_days_max, agency_id, estate_area_min, estate_area_max, usable_area_min, usable_area_max, floor_min, floor_max, rooms, energy_rating, building_type, building_condition, ownership, furnished, balcony, terrace, parking_lots, elevator, loggia, cellar, garage, easy_access, garden, query, description_search, available_to, has_video, has_matterport, has_floor_plan, pois, lat_min, lat_max, lon_min, lon_max, sort, limit, offset.
- GET /v1/sreality/suggest: Suggest. 1 credit. Params: phrase*, limit, category.
- GET /v1/sreality/top-districts: Top Districts. 1 credit. Params: property_type, deal_type, type.
## SS.lv API
https://perceptlayer.com/apis/ss-lv
- GET /v1/ss-lv/agencies: Agencies. 1 credit. Params: page.
- GET /v1/ss-lv/agency: Agency. 1 credit. Params: url*.
- GET /v1/ss-lv/autocomplete: Autocomplete. 1 credit. Params: query*, type, limit.
- GET /v1/ss-lv/latest: Latest. 1 credit. Params: category, sub_category, region, district, listing_type.
- GET /v1/ss-lv/listing: Listing. 1 credit. Params: url*.
- GET /v1/ss-lv/search: Search. 1 credit. Params: category, sub_category, region, district, listing_type, posted, min_price, max_price, min_price_per_sqm, max_price_per_sqm, min_rooms, max_rooms, min_area, max_area, min_floor, max_floor, series, sort, page.
- GET /v1/ss-lv/text-search: Text Search. 1 credit. Params: query*, page.
## SSENSE API
https://perceptlayer.com/apis/ssense
- GET /v1/ssense/product: Product. 1 credit. Params: url, id, brand, slug, gender, country.
- GET /v1/ssense/search: Search. 1 credit. Params: gender*, query, designer, category, sale_only, sort, page, country.
## Stack Overflow API
https://perceptlayer.com/apis/stackoverflow
- GET /v1/stackoverflow/answers: Answers. 1 credit. Params: question_id*, sort, order, page, pagesize.
- GET /v1/stackoverflow/comments: Comments. 1 credit. Params: question_id*, sort, order, page, pagesize.
- GET /v1/stackoverflow/question: Question. 1 credit. Params: question_id*.
- GET /v1/stackoverflow/search: Search. 1 credit. Params: q, tagged, sort, order, page, pagesize.
## Standvirtual API
https://perceptlayer.com/apis/standvirtual
- GET /v1/standvirtual/dealer: Dealer. 1 credit. Params: dealer_id, url.
- GET /v1/standvirtual/listing: Listing. 1 credit. Params: listing_id, url.
- GET /v1/standvirtual/search: Search. 1 credit. Params: make, model, price_min, price_max, year_min, year_max, mileage_min, mileage_max, fuel[], gearbox[], sort, page.
- GET /v1/standvirtual/taxonomy: Taxonomy. 1 credit. Params: make.
## Startpage API
https://perceptlayer.com/apis/startpage
- GET /v1/startpage/search: Search. 1 credit. Params: query*, language, page, safe_search.
## Steam API
https://perceptlayer.com/apis/steam
- GET /v1/steam/app: App. 1 credit. Params: appids*, cc, l.
- GET /v1/steam/profile: Profile. 1 credit. Params: identifier*, include_html.
- GET /v1/steam/reviews: Reviews. 1 credit. Params: appid*, language, num_per_page, purchase_type, filter, review_type, day_range, cursor, include_histogram.
- GET /v1/steam/search: Search. 1 credit. Params: term*, l, cc.
## StepStone API
https://perceptlayer.com/apis/stepstone
- GET /v1/stepstone/autosuggest: Autosuggest. 1 credit. Params: query*, country, limit.
- GET /v1/stepstone/jobs: Jobs. 1 credit. Params: query*, location, country, radius, sort, job_type, work_from_home, date_posted, page, limit.
## Stocktwits API
https://perceptlayer.com/apis/stocktwits
- GET /v1/stocktwits/stream-symbol: Stream Symbol. 1 credit. Params: symbol*, limit, max, since.
- GET /v1/stocktwits/symbols-search: Symbols Search. 1 credit. Params: q*.
- GET /v1/stocktwits/symbols-trending: Symbols Trending. 1 credit.
## StockX API
https://perceptlayer.com/apis/stockx
- GET /v1/stockx/product: Product. 1 credit. Params: url, slug, id, country*, currency*.
- GET /v1/stockx/sales: Sales. 1 credit. Params: product*, size, country*, currency*.
- GET /v1/stockx/search: Search. 1 credit. Params: query, category, brand, gender, min_price, max_price, sort*, page*, country*, currency*.
## StubHub API
https://perceptlayer.com/apis/stubhub
- GET /v1/stubhub/events-search: Events Search. 1 credit. Params: q, city, lat, lng, start_date, end_date, category, page.
## Subito API
https://perceptlayer.com/apis/subito
- GET /v1/subito/categories: Categories. 1 credit.
- GET /v1/subito/listing: Listing. 1 credit. Params: urn*.
- GET /v1/subito/places: Places. 1 credit. Params: query*, limit.
- GET /v1/subito/regions: Regions. 1 credit.
- GET /v1/subito/search: Search. 1 credit. Params: q, c, t, r, ci, to, ps, pe, rs, re, szs, sze, advt, sort, lim, start.
## Subito Motori API
https://perceptlayer.com/apis/subito-motori
- GET /v1/subito-motori/dealers: Dealers. 1 credit. Params: shopId*.
- GET /v1/subito-motori/dealers-listings: Dealers Listings. 1 credit. Params: shopId*, uid, q, sort, lim, start.
- GET /v1/subito-motori/dealers-search: Dealers Search. 1 credit. Params: q, r, sort, lim.
- GET /v1/subito-motori/filters: Filters. 1 credit. Params: category.
- GET /v1/subito-motori/listings: Listings. 1 credit. Params: urn*.
- GET /v1/subito-motori/makes: Makes. 1 credit. Params: category.
- GET /v1/subito-motori/makes-models: Makes Models. 1 credit. Params: brandKey*, category.
- GET /v1/subito-motori/search: Search. 1 credit. Params: c, q, qso, cb, cm[], t, sort, ps, pe, ms, me, ys, ye, hps, hpe, eps, epe, fl[], gr, ct[], pl[], cl[], cvs[], dr, ss, se, advt[], eq[], ic[], r, ci, to, ndo, urg, shp, vatd, qltsf, qsms[], lim, start.
## Substack API
https://perceptlayer.com/apis/substack
- GET /v1/substack/comments: Comments. 1 credit. Params: publication*, post_id*.
- GET /v1/substack/post: Post. 1 credit. Params: publication*, slug*.
- GET /v1/substack/posts: Posts. 1 credit. Params: publication*, sort, offset, cursor, limit.
- GET /v1/substack/publication: Publication. 1 credit. Params: publication*.
## SuperCasa API
https://perceptlayer.com/apis/supercasa
- GET /v1/supercasa/autocomplete: Autocomplete. 1 credit. Params: location, location_selection_token, location_level, business, category.
- GET /v1/supercasa/filters: Filters. 1 credit.
- GET /v1/supercasa/property: Property. 1 credit. Params: listing_id*.
- GET /v1/supercasa/search: Search. 1 credit. Params: location, location_level, location_selection_token, business, category, category_ids[], condition, min_price, max_price, min_area, max_area, min_bedrooms, max_bedrooms, bathrooms, features[], sort, page.
## SUUMO API
https://perceptlayer.com/apis/suumo
- GET /v1/suumo/areas: Areas. 1 credit. Params: prefecture*, city.
- GET /v1/suumo/lines: Lines. 1 credit. Params: prefecture*, line, line_group, area_code.
- GET /v1/suumo/rent-listing: Rent Listing. 1 credit. Params: id*.
- GET /v1/suumo/rent-search: Rent Search. 1 credit. Params: prefecture*, city, station, line, line_group, area_code, rent_min, rent_max, area_min, area_max, walk_max, age_max, layouts, sort, per_page, page.
- GET /v1/suumo/sale-listing: Sale Listing. 1 credit. Params: id*, property_type*, prefecture*, city*.
- GET /v1/suumo/sale-search: Sale Search. 1 credit. Params: prefecture*, property_type, city, price_min, price_max, area_min, area_max, land_area_min, land_area_max, walk_max, age_max, layouts, sort, per_page, page.
## Target API
https://perceptlayer.com/apis/target
- GET /v1/target/product: Product. 1–2 credits. 1 credit, plus 1 with include_fulfillment when store availability loads. Params: tcin*, url, store_id, zip, include_fulfillment.
- GET /v1/target/reviews: Reviews. 1 credit. Params: tcin*, sort, page, size, verified_only, photos_only.
- GET /v1/target/search: Search. 1 credit. Params: query*, page, sort, min_price, max_price, store_id, zip, category, include_fulfillment.
- GET /v1/target/stores: Stores. 1 credit. Params: zip*.
## TCGplayer API
https://perceptlayer.com/apis/tcgplayer
- GET /v1/tcgplayer/price-history: Price History. 1 credit. Params: id*, range*.
- GET /v1/tcgplayer/product: Product. 1 credit. Params: id, url.
- GET /v1/tcgplayer/search: Search. 1 credit. Params: query, product_line*, set, page*, size*.
## Tecnocasa API
https://perceptlayer.com/apis/tecnocasa
- GET /v1/tecnocasa/agency: Agency. 1 credit. Params: url, country, path.
- GET /v1/tecnocasa/agency-listings: Agency Listings. 1 credit. Params: agency_id*, country, listing_type, city_id*, province*, region, min_price, max_price, min_surface, max_surface, min_rooms, max_rooms, bathrooms, property_type, district_ids[], sort, page, limit.
- GET /v1/tecnocasa/geo: Geo. 1 credit. Params: country, type*, city_id.
- GET /v1/tecnocasa/listing: Listing. 1 credit. Params: url, country, path.
- GET /v1/tecnocasa/locations: Locations. 1 credit. Params: country, q*.
- GET /v1/tecnocasa/search: Search. 1 credit. Params: country, listing_type, city_id*, province*, region, min_price, max_price, min_surface, max_surface, min_rooms, max_rooms, bathrooms, property_type, district_ids[], agency_id, sort, page, limit.
- GET /v1/tecnocasa/search-map: Search Map. 1 credit. Params: country, listing_type, city_id*, province*, region, min_price, max_price, min_surface, max_surface, min_rooms, max_rooms, bathrooms, property_type, district_ids[], agency_id.
## Telegram API
https://perceptlayer.com/apis/telegram
- GET /v1/telegram/channels: Channels. 1 credit. Params: username*.
- GET /v1/telegram/channels-posts: Channels Posts. 1 credit. Params: username*, before.
- GET /v1/telegram/channels-search: Channels Search. 1 credit. Params: username*, q*.
- GET /v1/telegram/posts: Posts. 1 credit. Params: username*, post_id*, context.
## The RealReal API
https://perceptlayer.com/apis/therealreal
- GET /v1/therealreal/product: Product. 1 credit. Params: url, sku.
- GET /v1/therealreal/search: Search. 1 credit. Params: query, category, designer[], color[], clothing_size[], shoe_size[], taxon_id[], condition[], price_min, price_max, on_sale, with_tags, vintage, editors_picks, page.
## Threads API
https://perceptlayer.com/apis/threads
- GET /v1/threads/oembed: Oembed. 1 credit. Params: url*.
- GET /v1/threads/post: Post. 1 credit. Params: username*, code*.
- GET /v1/threads/profile: Profile. 1 credit. Params: username*.
- GET /v1/threads/search: Search. 1 credit. Params: query*.
- GET /v1/threads/search-users: Search Users. 1 credit. Params: query*.
- GET /v1/threads/tag: Tag. 1 credit. Params: name*.
- GET /v1/threads/user-posts: User Posts. 1 credit. Params: username*, user_id.
- GET /v1/threads/user-replies: User Replies. 1 credit. Params: username*, user_id.
## thredUP API
https://perceptlayer.com/apis/thredup
- GET /v1/thredup/product: Product. 1 credit. Params: item_number, url.
- GET /v1/thredup/search: Search. 1 credit. Params: query, department, category, brand_id[], size_id[], condition[], color[], price_min, price_max, sort, page, per_page.
## Ticketmaster API
https://perceptlayer.com/apis/ticketmaster
- GET /v1/ticketmaster/artist: Artist. 1 credit. Params: artist_id*, page, page_size, domain.
- GET /v1/ticketmaster/artists-search: Artists Search. 1 credit. Params: q*, domain.
- GET /v1/ticketmaster/event: Event. 1 credit. Params: event_id, url, domain.
- GET /v1/ticketmaster/events-search: Events Search. 1 credit. Params: q, city, lat, lng, start_date, end_date, category, sort, page, page_size, domain.
- GET /v1/ticketmaster/venue: Venue. 1 credit. Params: venue_id*, page, page_size, domain.
- GET /v1/ticketmaster/venues-search: Venues Search. 1 credit. Params: q*, domain.
## TikTok API
https://perceptlayer.com/apis/tiktok
- GET /v1/tiktok/ads-details: Ads Details. 1 credit. Params: url*.
- GET /v1/tiktok/challenges-details: Challenges Details. 1 credit. Params: challenge_id, challenge_name.
- GET /v1/tiktok/challenges-posts: Challenges Posts. 1 credit. Params: challenge_id, challenge_name, region, count, cursor.
- GET /v1/tiktok/challenges-search: Challenges Search. 1 credit. Params: keywords*, count, cursor.
- GET /v1/tiktok/collections-details: Collections Details. 1 credit. Params: collection_id*.
- GET /v1/tiktok/collections-list: Collections List. 1 credit. Params: unique_id, user_id, count, cursor.
- GET /v1/tiktok/collections-posts: Collections Posts. 1 credit. Params: collection_id*, count, cursor.
- GET /v1/tiktok/comments-list: Comments List. 1 credit. Params: url*, count, cursor.
- GET /v1/tiktok/comments-replies: Comments Replies. 1 credit. Params: comment_id*, video_id, count, cursor.
- GET /v1/tiktok/feed-list: Feed List. 1 credit. Params: region*, count.
- GET /v1/tiktok/feed-search: Feed Search. 1 credit. Params: keywords*, count, cursor, region, publish_time, sort_type.
- GET /v1/tiktok/live-details: Live Details. 1 credit. Params: room_id*.
- GET /v1/tiktok/music-details: Music Details. 1 credit. Params: url*.
- GET /v1/tiktok/music-posts: Music Posts. 1 credit. Params: music_id*, count, cursor.
- GET /v1/tiktok/playlists-details: Playlists Details. 1 credit. Params: mix_id*.
- GET /v1/tiktok/playlists-list: Playlists List. 1 credit. Params: unique_id, user_id, count, cursor.
- GET /v1/tiktok/playlists-posts: Playlists Posts. 1 credit. Params: mix_id*, count, cursor.
- GET /v1/tiktok/regions: Regions. 1 credit.
- GET /v1/tiktok/search-suggestions: Search Suggestions. 1 credit. Params: query*.
- GET /v1/tiktok/transcript: Transcript. 1 credit. Params: url, video_id, language.
- GET /v1/tiktok/trending-hashtags: Trending Hashtags. 1 credit. Params: country_code*, time_range.
- GET /v1/tiktok/user-favorites: User Favorites. 1 credit. Params: unique_id, user_id, time, count, cursor.
- GET /v1/tiktok/user-followers: User Followers. 1 credit. Params: unique_id, user_id, count, time.
- GET /v1/tiktok/user-following: User Following. 1 credit. Params: unique_id, user_id, count, time.
- GET /v1/tiktok/user-live: User Live. 1 credit. Params: unique_id*, count.
- GET /v1/tiktok/user-posts: User Posts. 1 credit. Params: unique_id, user_id, count, cursor.
- GET /v1/tiktok/user-profile: User Profile. 1 credit. Params: unique_id, user_id.
- GET /v1/tiktok/user-search: User Search. 1 credit. Params: keywords*, count, cursor.
- GET /v1/tiktok/user-similar: User Similar. 1 credit. Params: unique_id, user_id, count.
- GET /v1/tiktok/user-story: User Story. 1 credit. Params: unique_id, user_id.
- GET /v1/tiktok/video: Video. 1 credit. Params: url*, hd.
## TOCTOC API
https://perceptlayer.com/apis/toctoc
- GET /v1/toctoc/agencies: Agencies. 1 credit. Params: type*.
- GET /v1/toctoc/agency: Agency. 1 credit. Params: agency_id, agency_type, url.
- GET /v1/toctoc/autocomplete: Autocomplete. 1 credit. Params: query*, limit.
- GET /v1/toctoc/listing: Listing. 1 credit. Params: url, hash_id.
- GET /v1/toctoc/search: Search. 1 credit. Params: operation, region_id, commune_id, property_type, state, publisher_type, agency, agency_type, currency, min_price, max_price, min_bedrooms, max_bedrooms, min_bathrooms, max_bathrooms, min_area, max_area, sort, page, limit.
## Tokopedia API
https://perceptlayer.com/apis/tokopedia
- GET /v1/tokopedia/product: Product. 1 credit. Params: url, shop_domain, product_key.
- GET /v1/tokopedia/reviews: Reviews. 1 credit. Params: product_id*, page.
- GET /v1/tokopedia/search: Search. 1 credit. Params: query*, page, sort, min_price, max_price, min_rating, category, location.
- GET /v1/tokopedia/shop: Shop. 1 credit. Params: sid*.
- GET /v1/tokopedia/shop-products: Shop Products. 1 credit. Params: sid*, page, sort, min_price, max_price.
## Trade Me Property API
https://perceptlayer.com/apis/trademe-property
- GET /v1/trademe-property/listing: Listing. 1 credit. Params: id*.
- GET /v1/trademe-property/localities: Localities. 1 credit.
- GET /v1/trademe-property/search-rent: Search Rent. 1 credit. Params: page, rows, price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, property_type, region, district, suburb, search_string, sort_order, pets_ok.
- GET /v1/trademe-property/search-sale: Search Sale. 1 credit. Params: page, rows, price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, property_type, region, district, suburb, search_string, sort_order.
## Trader Joe's API
https://perceptlayer.com/apis/trader-joes
- GET /v1/trader-joes/categories: Categories. 1 credit.
- GET /v1/trader-joes/product: Product. 1 credit. Params: sku, url.
- GET /v1/trader-joes/search: Search. 1 credit. Params: query*, page, per_page.
## TradingView API
https://perceptlayer.com/apis/tradingview
- GET /v1/tradingview/ideas: Ideas. 1 credit. Params: symbol, sort, page.
- POST /v1/tradingview/screener-snapshot: Screener Snapshot. 1 credit. Params: symbols*, columns*, market, page, range.
- GET /v1/tradingview/symbol-search: Symbol Search. 1 credit. Params: text*.
## Trainline API
https://perceptlayer.com/apis/trainline
- GET /v1/trainline/cards: Cards. 1 credit.
- GET /v1/trainline/cards-discounts: Cards Discounts. 1 credit.
- GET /v1/trainline/fares-best: Fares Best. 1 credit.
- GET /v1/trainline/fares-calendar: Fares Calendar. 1 credit. Params: origin*, destination*, date_from*, date_to*, currency.
- GET /v1/trainline/fares-calendar-return: Fares Calendar Return. 1 credit. Params: origin*, destination*, date_from*, date_to*, return_from*, return_to*, currency.
- GET /v1/trainline/fares-calendar-times: Fares Calendar Times. 1 credit. Params: origin*, destination*, date_from*, date_to*, currency.
- GET /v1/trainline/journeys: Journeys. 1 credit. Params: origin*, destination*, date*, time, journey_type, return_date, return_time, adults, children, child_age, transport_mode, currency.
- GET /v1/trainline/journeys-calling-points: Journeys Calling Points. 1 credit. Params: timetable_id*, carrier*, departure_time*, origin*, destination*.
- GET /v1/trainline/journeys-local-transport: Journeys Local Transport. 1 credit. Params: search_id*, alternative_ids[], currency.
- GET /v1/trainline/journeys-page: Journeys Page. 1 credit. Params: search_id*, direction, page, transport_mode, currency.
- GET /v1/trainline/journeys-price-prediction: Journeys Price Prediction. 1 credit. Params: search_id*, journey_id*, currency.
- GET /v1/trainline/journeys-return: Journeys Return. 1 credit. Params: search_id*, journey_id*, alternative_ids[], transport_mode, currency.
- GET /v1/trainline/journeys-ticket-options: Journeys Ticket Options. 1 credit. Params: search_id*, outward_journey_id*, inward_journey_id, currency.
- GET /v1/trainline/stations: Stations. 1 credit. Params: query*, limit, locale.
- GET /v1/trainline/stations-nearby: Stations Nearby. 1 credit. Params: station_id*, window, locale.
## Trendyol API
https://perceptlayer.com/apis/trendyol
- GET /v1/trendyol/filters: Filters. 1 credit. Params: query*.
- GET /v1/trendyol/product: Product. 1 credit. Params: id, url.
- GET /v1/trendyol/reviews: Reviews. 1 credit. Params: id*, page.
- GET /v1/trendyol/search: Search. 1 credit. Params: query*, page, sort, brand_id, gender, color, category_id, min_price, max_price, min_rating.
## Trip.com API
https://perceptlayer.com/apis/trip-com
- GET /v1/trip-com/attractions-detail: Attractions Detail. 1 credit. Params: id, url, currency, locale.
- GET /v1/trip-com/attractions-reviews: Attractions Reviews. 1 credit. Params: id*, page, page_size, locale.
- GET /v1/trip-com/attractions-search: Attractions Search. 1 credit. Params: query*, page, sort, currency, locale.
- GET /v1/trip-com/buses-search: Buses Search. 1 credit. Params: from*, to*, date*, currency, locale.
- GET /v1/trip-com/cars-locations: Cars Locations. 1 credit. Params: query*, locale.
- GET /v1/trip-com/cars-search: Cars Search. 10 credits. Params: pickup_location*, pickup_city_id*, pickup_location_name*, pickup_latitude*, pickup_longitude*, dropoff_location, dropoff_city_id, dropoff_location_name, dropoff_latitude, dropoff_longitude, pickup_datetime*, dropoff_datetime*, driver_age, page, page_size, car_class, supplier, transmission, free_cancellation, currency, locale.
- GET /v1/trip-com/cruises-detail: Cruises Detail. 1 credit. Params: id*, departure_date, currency, locale.
- GET /v1/trip-com/cruises-search: Cruises Search. 1 credit. Params: destination, month, start_date, end_date, page, sort, currency, locale.
- GET /v1/trip-com/flights-calendar: Flights Calendar. 1 credit. Params: from*, to*, date*, return_date, currency.
- GET /v1/trip-com/flights-search: Flights Search. 1–3 credits. 1 credit one way, 3 with return_date. Params: from*, to*, date*, return_date, policy_id, adults, cabin_class, currency.
- GET /v1/trip-com/hotels-detail: Hotels Detail. 1 credit. Params: hotel_id, url, locale.
- GET /v1/trip-com/hotels-filters: Hotels Filters. 1 credit. Params: city_id*, check_in*, check_out*, locale, currency.
- GET /v1/trip-com/hotels-reviews: Hotels Reviews. 1 credit. Params: hotel_id*, page, page_size, sort.
- GET /v1/trip-com/hotels-rooms: Hotels Rooms. 10 credits. Params: hotel_id*, check_in*, check_out*, adults, children_ages, currency, locale.
- GET /v1/trip-com/hotels-search: Hotels Search. 1–18 credits. 1 credit for the first page in the default order; 3 per page from page 2, for each page read with pages, or with guest_score_min, free_cancellation, breakfast or another sort. At most 18. Params: city_id*, check_in*, check_out*, adults, children_ages[], rooms, page, pages, guest_score_min, free_cancellation, breakfast, stars[], min_price, max_price, sort, locale, currency.
- GET /v1/trip-com/packages-search: Packages Search. 3 credits. Params: from*, to*, city_id*, date*, return_date*, adults, page, currency.
- GET /v1/trip-com/suggest: Suggest. 1 credit. Params: query*, type, locale.
- GET /v1/trip-com/trains-calendar: Trains Calendar. 1 credit. Params: from*, to*, date*, currency, locale.
- GET /v1/trip-com/trains-search: Trains Search. 3 credits. Params: from*, to*, date*, adults, currency, locale.
- GET /v1/trip-com/trains-stations: Trains Stations. 1 credit. Params: mode, query, country.
## Tripadvisor API
https://perceptlayer.com/apis/tripadvisor
- GET /v1/tripadvisor/place: Place. 1 credit. Params: location_id*, locale.
- GET /v1/tripadvisor/reviews: Reviews. 1 credit. Params: location_id*, offset, limit, language.
- GET /v1/tripadvisor/search: Search. 1 credit. Params: q*, locale, limit, type.
## Trivago API
https://perceptlayer.com/apis/trivago
- GET /v1/trivago/deals: Deals. 1 credit. Params: hotel_id*, check_in*, check_out*, adults, rooms, children_ages[], currency, market.
- GET /v1/trivago/filters: Filters. 1 credit. Params: destination_id*, market.
- GET /v1/trivago/hotel: Hotel. 1 credit. Params: hotel_id*, market.
- GET /v1/trivago/price-calendar: Price Calendar. 1 credit. Params: hotel_id*, start_date*, end_date*, currency, market.
- GET /v1/trivago/reviews: Reviews. 1 credit. Params: hotel_id*, limit, offset, language, market.
- GET /v1/trivago/search: Search. 1 credit. Params: check_in*, check_out*, adults, rooms, children_ages[], currency, market, destination_id*, limit, offset, sort, min_price, max_price, stars[], min_rating, property_type[], amenities[].
- GET /v1/trivago/suggest: Suggest. 1 credit. Params: query*, market.
## TrueCar API
https://perceptlayer.com/apis/truecar
- GET /v1/truecar/listing: Listing. 1 credit. Params: vin*.
- GET /v1/truecar/search: Search. 1 credit. Params: make*, model*, condition, page, postal_code, radius.
## Trulia API
https://perceptlayer.com/apis/trulia
- GET /v1/trulia/listing: Listing. 1 credit. Params: url*.
- GET /v1/trulia/listing-by-id: Listing By Id. 1 credit. Params: id*.
- GET /v1/trulia/neighborhood-insights: Neighborhood Insights. 1 credit. Params: url*.
- GET /v1/trulia/schools: Schools. 1 credit. Params: url*.
## Trusted Shops API
https://perceptlayer.com/apis/trusted-shops
- GET /v1/trusted-shops/categories: Categories. 1 credit. Params: market.
- GET /v1/trusted-shops/category-shops: Category Shops. 1 credit. Params: category*, page, market.
- GET /v1/trusted-shops/markets: Markets. 1 credit.
- GET /v1/trusted-shops/reviews: Reviews. 1 credit. Params: tsid*, page, size.
- GET /v1/trusted-shops/search: Search. 1 credit. Params: q*, page, market.
- GET /v1/trusted-shops/shop: Shop. 1 credit. Params: tsid*.
## Trustpilot API
https://perceptlayer.com/apis/trustpilot
- GET /v1/trustpilot/businesses: Businesses. 1 credit. Params: category*, page, sort, claimed, country, limit, trustscore.
- GET /v1/trustpilot/categories: Categories. 1 credit.
- GET /v1/trustpilot/company-details: Company Details. 1 credit. Params: company_domain*, locale.
- GET /v1/trustpilot/company-reviews: Company Reviews. 1 credit. Params: company_domain*, page, per_page, verified, with_replies, query, rating, sort, locale, languages, fields, date_posted.
- GET /v1/trustpilot/company-search: Company Search. 1 credit. Params: query*, page, country, min_rating, min_review_count, locale.
- GET /v1/trustpilot/countries: Countries. 1 credit.
## TrustRadius API
https://perceptlayer.com/apis/trustradius
- GET /v1/trustradius/search: Search. 1 credit. Params: query*, type.
## Truth Social API
https://perceptlayer.com/apis/truth-social
- GET /v1/truth-social/featured-truth: Featured Truth. 1 credit.
- GET /v1/truth-social/live-shows: Live Shows. 1 credit.
- GET /v1/truth-social/post: Post. 1 credit. Params: post_id*.
- GET /v1/truth-social/profile: Profile. 1 credit. Params: username*.
- GET /v1/truth-social/tag-timeline: Tag Timeline. 1 credit. Params: tag*, limit, max_id.
- GET /v1/truth-social/user-posts: User Posts. 1 credit. Params: account_id*, limit, max_id, until, since, only_media, exclude_reblogs, exclude_replies.
- GET /v1/truth-social/video: Video. 1 credit. Params: video_id*.
## Tumblr API
https://perceptlayer.com/apis/tumblr
- GET /v1/tumblr/blog: Blog. 1 credit. Params: blog*, fields.
- GET /v1/tumblr/post: Post. 1 credit. Params: blog*, post_id*.
- GET /v1/tumblr/posts: Posts. 1 credit. Params: blog*, cursor, npf, reblog_info, include_pinned_posts, fields.
- GET /v1/tumblr/tagged: Tagged. 1 credit. Params: tag*, cursor, sort, limit.
## Turo API
https://perceptlayer.com/apis/turo
- GET /v1/turo/car: Car. 1 credit. Params: vehicle_id*, country*.
- GET /v1/turo/facets: Facets. 1 credit. Params: country*.
- GET /v1/turo/search: Search. 1 credit. Params: country*, latitude*, longitude*, start_date*, end_date*, start_time, end_time, vehicle_type*, year_min, year_max, sort_type*, sort_direction*, price_min, price_max, page*.
## Twitch API
https://perceptlayer.com/apis/twitch
- GET /v1/twitch/channel: Channel. 1 credit. Params: login*.
- GET /v1/twitch/channels: Channels. 1 credit. Params: logins[].
- GET /v1/twitch/clip: Clip. 1 credit. Params: slug*.
- GET /v1/twitch/clips: Clips. 1 credit. Params: login*, first, after, sort, period.
- GET /v1/twitch/game: Game. 1 credit. Params: id*, first.
- GET /v1/twitch/game-clips: Game Clips. 1 credit. Params: id*, first, after.
- GET /v1/twitch/games: Games. 1 credit. Params: first, after.
- GET /v1/twitch/schedule: Schedule. 1 credit. Params: channel*, first, week_of.
- GET /v1/twitch/search: Search. 1 credit. Params: query*, first, after, live_channels_after, games_after, videos_after.
- GET /v1/twitch/search-games: Search Games. 1 credit. Params: query*, first, after.
- GET /v1/twitch/search-streams: Search Streams. 1 credit. Params: query*, first, after.
- GET /v1/twitch/search-users: Search Users. 1 credit. Params: query*, first, after.
- GET /v1/twitch/streams: Streams. 1 credit. Params: first, after, sort.
- GET /v1/twitch/suggestions: Suggestions. 1 credit. Params: query*, include_offline.
- GET /v1/twitch/tags: Tags. 1 credit. Params: query*, limit.
- GET /v1/twitch/team: Team. 1 credit. Params: name*.
- GET /v1/twitch/video: Video. 1 credit. Params: id*.
- GET /v1/twitch/videos: Videos. 1 credit. Params: login*, first, page.
## Uber Eats API
https://perceptlayer.com/apis/uber-eats
- GET /v1/uber-eats/store: Store. 1–11 credits. 1 credit, plus 1 for each of the first 10 items whose options load with include_options; at most 11. Params: store*, include_options, lat*, lng*, market.
- GET /v1/uber-eats/stores: Stores. 1 credit. Params: query*, sort, min_rating, offset, page_size, lat*, lng*, market.
## Uniqlo API
https://perceptlayer.com/apis/uniqlo
- GET /v1/uniqlo/product: Product. 1 credit. Params: id, url, price_group, region.
- GET /v1/uniqlo/search: Search. 1 credit. Params: query*, page, region, colorCodes, sizeCodes, flagCodes, priceRanges, category, sort.
- GET /v1/uniqlo/store-stock: Store Stock. 1 credit. Params: id, url, price_group, region, l2_id, color, size, keyword, lat, lon, limit.
## Upwork API
https://perceptlayer.com/apis/upwork
- GET /v1/upwork/jobs: Jobs. 1 credit. Params: query, category, budget, job_type, experience, page.
## Urbania API
https://perceptlayer.com/apis/urbania
- GET /v1/urbania/agency: Agency. 1 credit. Params: id*, slug, page.
- GET /v1/urbania/autocomplete: Autocomplete. 1 credit. Params: q*, limit.
- GET /v1/urbania/listing: Listing. 1 credit. Params: url, id.
- GET /v1/urbania/search: Search. 1 credit. Params: operation, property_type, location, price_min, price_max, currency, bedrooms_min, bedrooms_max, bathrooms_min, area_min, area_max, sort, exclude_projects, page.
## Vestiaire Collective API
https://perceptlayer.com/apis/vestiaire
- GET /v1/vestiaire/product: Product. 1 credit. Params: product*, country, locale.
- GET /v1/vestiaire/search: Search. 1 credit. Params: query, brand[], category[], size[], condition[], color[], material[], seller_country[], price_min, price_max, sold, sort, size_type, page, per_page, country, locale.
## Viator API
https://perceptlayer.com/apis/viator
- GET /v1/viator/product: Product. 1 credit. Params: product_code*.
- GET /v1/viator/reviews: Reviews. 1 credit. Params: product_code*.
- GET /v1/viator/search: Search. 1 credit. Params: destination_id*, page.
## ViewIt API
https://perceptlayer.com/apis/viewit
- GET /v1/viewit/agency: Agency. 1 credit. Params: id*, page.
- GET /v1/viewit/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/viewit/listing: Listing. 1 credit. Params: id*, path.
- GET /v1/viewit/search: Search. 1 credit. Params: city_id*, page, bedrooms, price_min, price_max, keyword, furnished, loft, retirement, short_term.
## Vimeo API
https://perceptlayer.com/apis/vimeo
- GET /v1/vimeo/search: Search. 1 credit. Params: q*, page, per_page.
- GET /v1/vimeo/user: User. 1 credit. Params: id*, page.
- GET /v1/vimeo/video: Video. 1 credit. Params: id*.
## Vinted API
https://perceptlayer.com/apis/vinted
- GET /v1/vinted/categories: Categories. 1 credit. Params: country.
- GET /v1/vinted/countries: Countries. 1 credit.
- GET /v1/vinted/filters: Filters. 1 credit. Params: q, query, page, per_page, order, brand_ids, catalog_ids, color_ids, size_ids, material_ids, status_ids, price_from, price_to, country.
- GET /v1/vinted/item-details: Item Details. 1–2 credits. 1 credit, plus 1 with include_member_items. Params: item_id*, country, include_member_items.
- GET /v1/vinted/item-shipping: Item Shipping. 1 credit. Params: item_id*, country.
- GET /v1/vinted/search: Search. 1 credit. Params: q, query, page, per_page, order, brand_ids, catalog_ids, color_ids, size_ids, material_ids, status_ids, price_from, price_to, country.
- GET /v1/vinted/similar-items: Similar Items. 1 credit. Params: item_id*, page, country.
- GET /v1/vinted/suggestions: Suggestions. 1 credit. Params: query*, country.
- GET /v1/vinted/user-items: User Items. 1 credit. Params: user_id*, page, per_page, order, country.
- GET /v1/vinted/user-profile: User Profile. 1 credit. Params: user_id*, country.
## VivaReal API
https://perceptlayer.com/apis/vivareal
- GET /v1/vivareal/advertiser: Advertiser. 1 credit. Params: portal, advertiser_id*.
- GET /v1/vivareal/advertiser-listings: Advertiser Listings. 1 credit. Params: portal, advertiser_id*, business, rows, page.
- GET /v1/vivareal/count: Count. 1 credit. Params: portal, business, rows, page, location_id, q, advertiser_id.
- GET /v1/vivareal/listing: Listing. 1 credit. Params: portal, id*, business.
- GET /v1/vivareal/location-autocomplete: Location Autocomplete. 1 credit. Params: portal, q*, size.
- GET /v1/vivareal/map-pins: Map Pins. 1 credit. Params: portal, business, rows, page, location_id, q, advertiser_id.
- GET /v1/vivareal/parse-filters: Parse Filters. 1 credit. Params: portal, q*.
- GET /v1/vivareal/price-insights: Price Insights. 1 credit. Params: portal, city*, state*, neighborhood, business_type*, unit_type*, latitude*, longitude*, location_id*.
- GET /v1/vivareal/search: Search. 1 credit. Params: portal, business, rows, page, location_id, q, advertiser_id, price_min, price_max, bedrooms, area_min, sort.
## VK API
https://perceptlayer.com/apis/vk
- GET /v1/vk/community: Community. 1 credit. Params: group_id*, fields.
- GET /v1/vk/post: Post. 1 credit. Params: post_id*, extended.
- GET /v1/vk/profile: Profile. 1 credit. Params: user_id*, fields.
- GET /v1/vk/wall: Wall. 1 credit. Params: domain*, offset, count, extended.
## Vrbo API
https://perceptlayer.com/apis/vrbo
- GET /v1/vrbo/destinations: Destinations. 1 credit. Params: query*.
- GET /v1/vrbo/filters: Filters. 1 credit. Params: check_in, check_out, adults, children, destination, region_id, map_bounds.
- GET /v1/vrbo/listing: Listing. 1 credit. Params: check_in, check_out, adults, children, property_id*.
- GET /v1/vrbo/listing-availability: Listing Availability. 1 credit. Params: property_id*, start_date, end_date.
- GET /v1/vrbo/listing-reviews: Listing Reviews. 1 credit. Params: property_id*, sort, limit, offset.
- GET /v1/vrbo/search: Search. 1 credit. Params: check_in*, check_out*, adults, children, destination, region_id, map_bounds, sort, min_price, max_price, price_type, premier_host, virtual_tour, limit, offset, property_type, amenities, location, house_rules, guest_rating, good_for, common_spaces, accessibility, nearby_activities, safety, booking_options, discounts, free_cancellation, beach_access, popular, neighborhood, bedrooms, bathrooms, beds, king_beds, queen_beds, full_beds, twin_beds, bunk_beds.
## Vuokraovi API
https://perceptlayer.com/apis/vuokraovi
- GET /v1/vuokraovi/agency: Agency. 1 credit. Params: id*.
- GET /v1/vuokraovi/districts: Districts. 1 credit. Params: municipality_code*.
- GET /v1/vuokraovi/listing: Listing. 1 credit. Params: id*.
- GET /v1/vuokraovi/location-autocomplete: Location Autocomplete. 1 credit. Params: q*, type, page.
- GET /v1/vuokraovi/search: Search. 1 credit. Params: location_code, location_type, parent_region_code, min_rent, max_rent, min_size, max_size, min_year, max_year, rooms, property_type, kitchen_type, condition, living_form, lessor_type, published_within, new_building, rental_agreement, available_immediately, has_images, has_panorama, has_video, has_showing_within_7_days, query, office_id, sort, direction, limit, page.
## Wallapop API
https://perceptlayer.com/apis/wallapop
- GET /v1/wallapop/categories: Categories. 1 credit. Params: context, search_country.
- GET /v1/wallapop/filters: Filters. 1 credit. Params: keywords, category_id, order_by, search_country.
- GET /v1/wallapop/items: Items. 1 credit. Params: item_id*, include_seller.
- GET /v1/wallapop/items-by-legacy-id: Items By Legacy Id. 1 credit. Params: legacy_item_id*.
- GET /v1/wallapop/items-legacy-id: Items Legacy Id. 1 credit. Params: item_id*.
- GET /v1/wallapop/items-seller-items: Items Seller Items. 1 credit. Params: item_id*, cursor.
- GET /v1/wallapop/markets: Markets. 1 credit.
- GET /v1/wallapop/postal-codes: Postal Codes. 1 credit. Params: postal_code*, country_iso_code.
- GET /v1/wallapop/search: Search. 1 credit. Params: keywords, category_id, min_price, max_price, latitude, longitude, radius_km, condition, is_shippable, time_filter, order_by, search_country, cursor.
- GET /v1/wallapop/suggesters-car-brands: Suggesters Car Brands. 1 credit. Params: search_text, brand.
- GET /v1/wallapop/suggesters-car-models: Suggesters Car Models. 1 credit. Params: search_text, brand.
- GET /v1/wallapop/suggesters-car-years: Suggesters Car Years. 1 credit. Params: search_text, brand.
- GET /v1/wallapop/users: Users. 1 credit. Params: user_id*, include_reputation, include_scoring, include_counters.
- GET /v1/wallapop/users-items: Users Items. 1 credit. Params: user_id*, cursor.
- GET /v1/wallapop/users-reviews: Users Reviews. 1 credit. Params: user_id*, page.
## Walmart API
https://perceptlayer.com/apis/walmart
- GET /v1/walmart/autocomplete: Autocomplete. 1 credit. Params: q*, department.
- GET /v1/walmart/browse: Browse. 1 credit. Params: slug*, category_id*, page, sort, facet, country.
- GET /v1/walmart/categories: Categories. 1 credit. Params: q, page.
- GET /v1/walmart/deals: Deals. 1 credit. Params: type, query, page.
- GET /v1/walmart/offers: Offers. 1 credit. Params: us_item_id*, country, slug.
- GET /v1/walmart/product: Product. 1 credit. Params: us_item_id*, country, slug.
- GET /v1/walmart/reviews: Reviews. 1 credit. Params: id*, page, sort, rating, country.
- GET /v1/walmart/search: Search. 1 credit. Params: query*, page, sort, min_price, max_price, cat_id, facet_filter, country.
- GET /v1/walmart/seller: Seller. 1 credit. Params: seller_id*.
- GET /v1/walmart/seller-products: Seller Products. 1 credit. Params: seller_id*, q*, page.
- GET /v1/walmart/store: Store. 1 credit. Params: store_id*.
## Wayfair API
https://perceptlayer.com/apis/wayfair
- GET /v1/wayfair/autocomplete: Autocomplete. 1 credit. Params: query*, domain.
- GET /v1/wayfair/category: Category. 1 credit. Params: category_id, url, page, sort, filters, price_min, price_max, domain.
- GET /v1/wayfair/product: Product. 1 credit. Params: sku, url, option_ids, domain.
- GET /v1/wayfair/reviews: Reviews. 1 credit. Params: variant_id*, limit, cursor, sort, ratings, aspects, search, domain.
- GET /v1/wayfair/search: Search. 1 credit. Params: query*, page, domain.
## Waze API
https://perceptlayer.com/apis/waze
- GET /v1/waze/route: Route. 2 credits. Params: from_lat*, from_lon*, to_lat*, to_lon*, alternatives, avoid_tolls, avoid_ferries, vehicle_type, passes[], include[].
## Web Scraper API
https://perceptlayer.com/apis/web-scraper
- POST /v1/web-scraper/crawl: Crawl. 1–110 credits. 1 credit per page fetched, 3 per page that needs a browser, at most 110 per call. Params: url*, limit, max_depth, include_paths, exclude_paths, format, include_subdomains.
- GET /v1/web-scraper/map: Map. 1 credit. Params: url*, limit, search, include_subdomains.
- GET /v1/web-scraper/scrape: Scrape. 1 credit. Params: url*, include_html, javascript, response_type.
- GET /v1/web-scraper/screenshot: Screenshot. 5 credits. Params: url*, full_page, width, height, format, wait_for_selector, remove_overlays, locale, response.
## Website Contacts API
https://perceptlayer.com/apis/contacts
- GET /v1/contacts/emails: Emails. 1 credit. Params: email_domain*, query, limit, page.
- GET /v1/contacts/social-links: Social Links. 1 credit. Params: query*, social_networks.
- GET /v1/contacts/website: Website. 1–8 credits. 1 credit per page fetched; max_pages sets how many, up to 8. Params: domain*, max_pages, match_email_domain, include_external.
## Weibo API
https://perceptlayer.com/apis/weibo
- GET /v1/weibo/hot-search: Hot Search. 1 credit.
- GET /v1/weibo/post: Post. 1 credit. Params: mid*, with_comments.
- GET /v1/weibo/posts: Posts. 1 credit. Params: uid*, page.
- GET /v1/weibo/user: User. 1 credit. Params: uid*.
## Welcome to the Jungle API
https://perceptlayer.com/apis/welcome-to-the-jungle
- GET /v1/welcome-to-the-jungle/company: Company. 1 credit. Params: organization*.
- GET /v1/welcome-to-the-jungle/company-jobs: Company Jobs. 1 credit. Params: organization*, page.
- GET /v1/welcome-to-the-jungle/job: Job. 1 credit. Params: organization*, job*.
- GET /v1/welcome-to-the-jungle/jobs: Jobs. 1 credit. Params: query, page, per_page, language, contract_type, remote, country_code, latitude, longitude, radius_km.
## Wellfound API
https://perceptlayer.com/apis/wellfound
- GET /v1/wellfound/company: Company. 1 credit. Params: slug*.
- GET /v1/wellfound/job: Job. 1 credit. Params: id*, slug*.
- GET /v1/wellfound/jobs: Jobs. 1 credit. Params: q, role, location, remote, salary, page.
## WG-Gesucht API
https://perceptlayer.com/apis/wg-gesucht
- GET /v1/wg-gesucht/districts: Districts. 1 credit. Params: city_id*.
- GET /v1/wg-gesucht/listings: Listings. 1 credit. Params: ids[]*.
- GET /v1/wg-gesucht/locations: Locations. 1 credit. Params: query, city_id.
- GET /v1/wg-gesucht/search: Search. 1 credit. Params: categories*, city_id*, rent_types*, page, limit, sort_column, sort_order, language, rMin, rMax, sMin, sMax, rmMin, rmMax, aMin, aMax, wgMnF, wgMxT, flo, radDis, radLat, radLng, fur, kit, gar, han, pet, pets_present, sin, exc, ff, bal, bal_or_ter, noDeact, img, img_only, flatshare_friendly, onl_tour, exContAds, exCu, dFr, dTo, dFrDe, dToDe, wgArt, wgFla, wgSmo, wgSea, gen, smo, pu, ad_type, ot, radAdd.
## Whole Foods Market API
https://perceptlayer.com/apis/whole-foods
- GET /v1/whole-foods/product: Product. 1 credit. Params: id, url, store_id.
- GET /v1/whole-foods/search: Search. 1 credit. Params: query*, store_id*, page, per_page, category, diet.
- GET /v1/whole-foods/store: Store. 1 credit. Params: store_id*.
## Wikicasa API
https://perceptlayer.com/apis/wikicasa
- GET /v1/wikicasa/agencies: Agencies. 1 credit. Params: city_id*, page, limit.
- GET /v1/wikicasa/agency: Agency. 1 credit. Params: id*.
- GET /v1/wikicasa/agency-agents: Agency Agents. 1 credit. Params: agency_id*.
- GET /v1/wikicasa/agency-listings: Agency Listings. 1 credit. Params: agency_id*, page, sort.
- GET /v1/wikicasa/autocomplete: Autocomplete. 1 credit. Params: query, url.
- GET /v1/wikicasa/listing: Listing. 1 credit. Params: id*.
- GET /v1/wikicasa/property-types: Property Types. 1 credit.
- GET /v1/wikicasa/search: Search. 1 credit. Params: transaction*, city_id*, city_slug*, page, price_min, price_max, area_min, area_max, rooms_min, rooms_max, bathrooms_min, bathrooms_max, property_type, condition, sort.
## Wikipedia API
https://perceptlayer.com/apis/wikipedia
- GET /v1/wikipedia/article: Article. 1 credit. Params: title*, language.
- GET /v1/wikipedia/search: Search. 1 credit. Params: q*, language, page, per_page.
## willhaben API
https://perceptlayer.com/apis/willhaben
- GET /v1/willhaben/agency: Agency. 1 credit. Params: adId*.
- GET /v1/willhaben/agency-listings: Agency Listings. 1 credit. Params: orgId*, rows, page.
- GET /v1/willhaben/agency-trust-signals: Agency Trust Signals. 1 credit. Params: userId*.
- GET /v1/willhaben/autocomplete: Autocomplete. 1 credit. Params: term*.
- GET /v1/willhaben/details: Details. 1 credit. Params: adId*.
- GET /v1/willhaben/locations: Locations. 1 credit. Params: area_id, vertical.
- GET /v1/willhaben/search: Search. 1 credit. Params: vertical, rows, page, sort, keyword, area_id, price_from, price_to, living_area_from, living_area_to, rooms.
- GET /v1/willhaben/similar: Similar. 1 credit. Params: adId*, orgId*.
## wlw API
https://perceptlayer.com/apis/wlw
- GET /v1/wlw/search: Search. 1 credit. Params: q*, page, per_page, country, countries, category, supplier_type, attributes, verified, top_responder, latitude, longitude, radius, sort, language.
## Wolt API
https://perceptlayer.com/apis/wolt
- GET /v1/wolt/dishes: Dishes. 1 credit. Params: query*, lat*, lon*, sort, page, per_page.
- GET /v1/wolt/menu: Menu. 1 credit. Params: slug*, lat, lon, language.
- GET /v1/wolt/restaurants: Restaurants. 1 credit. Params: lat*, lon*, query, cuisine, sort, open_now, page, per_page.
- GET /v1/wolt/venue: Venue. 1 credit. Params: slug*, lat, lon, language.
## X (Twitter) API
https://perceptlayer.com/apis/x
- GET /v1/x/community: Community. 1 credit. Params: community_id*.
- GET /v1/x/community-posts: Community Posts. 1 credit. Params: community_id*.
- GET /v1/x/notes: Notes. 1 credit. Params: id*.
- GET /v1/x/profile: Profile. 1 credit. Params: handle, rest_id, tweet_id.
- GET /v1/x/profile-articles: Profile Articles. 1 credit. Params: handle*, count, cursor.
- GET /v1/x/profile-followers: Profile Followers. 1 credit. Params: handle*, count, cursor.
- GET /v1/x/profile-following: Profile Following. 1 credit. Params: handle*, count, cursor.
- GET /v1/x/profile-media: Profile Media. 1 credit. Params: handle*, count, cursor.
- GET /v1/x/search-tweets: Search Tweets. 1 credit. Params: q*, count, cursor, lang.
- GET /v1/x/search-typeahead: Search Typeahead. 1 credit. Params: q*, result_type.
- GET /v1/x/search-users: Search Users. 1 credit. Params: q*, count, cursor, lang.
- GET /v1/x/trends: Trends. 1 credit. Params: type, count.
- GET /v1/x/tweet: Tweet. 1 credit. Params: id*.
- GET /v1/x/tweet-conversation: Tweet Conversation. 1 credit. Params: id*, count, cursor, ranking_mode, about_account, lang.
- GET /v1/x/tweet-media: Tweet Media. 1 credit. Params: id*.
- GET /v1/x/tweet-quotes: Tweet Quotes. 1 credit. Params: id*, count, cursor.
- GET /v1/x/tweet-reposts: Tweet Reposts. 1 credit. Params: id*, count, cursor.
- GET /v1/x/tweet-text: Tweet Text. 1 credit. Params: id*.
- GET /v1/x/tweet-thread: Tweet Thread. 1 credit. Params: id*.
- GET /v1/x/tweet-transcript: Tweet Transcript. 1 credit. Params: id*.
- GET /v1/x/tweet-video: Tweet Video. 1 credit. Params: id*.
- GET /v1/x/user-tweets: User Tweets. 1 credit. Params: handle*, count, cursor, with_replies, groupthreads, since.
## Xbox Store API
https://perceptlayer.com/apis/xbox
- GET /v1/xbox/game: Game. 1 credit. Params: id*, region, page.
- GET /v1/xbox/search: Search. 1 credit. Params: query*, region, page.
## XING Jobs API
https://perceptlayer.com/apis/xing-jobs
- GET /v1/xing-jobs/company: Company. 1 credit. Params: slug*.
- GET /v1/xing-jobs/job: Job. 1 credit. Params: id*.
- GET /v1/xing-jobs/search: Search. 1 credit. Params: query, location, employment_type, remote, salary_min, salary_max, since, page.
## Yaencontre API
https://perceptlayer.com/apis/yaencontre
- GET /v1/yaencontre/autocomplete: Autocomplete. 1 credit. Params: search_term*, operation*, family*.
- GET /v1/yaencontre/filters: Filters. 1 credit. Params: operation*, family*, location*.
- GET /v1/yaencontre/listing: Listing. 1 credit. Params: reference*.
- GET /v1/yaencontre/listing-related: Listing Related. 1 credit. Params: reference*, page_number*, page_size*.
- GET /v1/yaencontre/search: Search. 1 credit. Params: operation*, family*, location, real_estate_agency_id, min_price, max_price, rooms, bathrooms, rental_type, lat_min, lat_max, lon_min, lon_max, size, page_number*, page_size*.
## Yahoo Finance API
https://perceptlayer.com/apis/yahoo-finance
- GET /v1/yahoo-finance/fundamentals: Fundamentals. 1 credit. Params: symbol*.
- GET /v1/yahoo-finance/history: History. 1 credit. Params: symbol*, range, interval.
- GET /v1/yahoo-finance/news: News. 1 credit. Params: symbol*.
- GET /v1/yahoo-finance/quote: Quote. 1 credit. Params: symbols*.
- GET /v1/yahoo-finance/search: Search. 1 credit. Params: q*.
## Yahoo Search API
https://perceptlayer.com/apis/yahoo
- GET /v1/yahoo/images: Images. 1 credit. Params: q*, page, size, color, type, layout, age, format, license.
- GET /v1/yahoo/search: Search. 1 credit. Params: p*, b, pz, vm, vc, vl, fr2.
- GET /v1/yahoo/videos: Videos. 1 credit. Params: q*, page, duration, age, site.
## Yahoo! Auctions Japan API
https://perceptlayer.com/apis/yahoo-auctions-jp
- GET /v1/yahoo-auctions-jp/item: Item. 1 credit. Params: id*.
- GET /v1/yahoo-auctions-jp/search: Search. 1 credit. Params: query, category, condition, min_price, max_price, status, sort, page.
## Yandex API
https://perceptlayer.com/apis/yandex
- GET /v1/yandex/images: Images. 1 credit. Params: text, url, yandex_domain, page, site, orientation, size, file_type.
- GET /v1/yandex/search: Search. 1–4 credits. 1 credit, or 4 when the standard route is blocked and the call falls back to a slower one. Params: text*, yandex_domain, lang, lr, family_mode, period, page.
- GET /v1/yandex/suggest: Suggest. 1 credit. Params: text*, lang.
- GET /v1/yandex/videos: Videos. 1 credit. Params: text*, yandex_domain, page, duration.
## Yellow Pages API
https://perceptlayer.com/apis/yellowpages
- GET /v1/yellowpages/business: Business. 9 credits. Params: id*.
- GET /v1/yellowpages/reviews: Reviews. 9 credits. Params: id*, page.
- GET /v1/yellowpages/search: Search. 12 credits. Params: query*, location*, page.
## Yelp API
https://perceptlayer.com/apis/yelp
- GET /v1/yelp/business: Business. 1 credit. Params: business*.
- GET /v1/yelp/menu: Menu. 1 credit. Params: business*.
- GET /v1/yelp/reviews: Reviews. 1 credit. Params: business*, sort, rating, after.
- GET /v1/yelp/search: Search. 1 credit. Params: query*, location*, limit, page.
## YouTube API
https://perceptlayer.com/apis/youtube
- GET /v1/youtube/channel: Channel. 1 credit. Params: channel_id, channelId.
- GET /v1/youtube/channel-community: Channel Community. 1 credit. Params: channel_id, channelId, continuation.
- GET /v1/youtube/channel-playlists: Channel Playlists. 1 credit. Params: channel_id, channelId.
- GET /v1/youtube/channel-videos: Channel Videos. 1 credit. Params: channel_id, channelId, limit, page, sort, type, continuation.
- GET /v1/youtube/chapters: Chapters. 1 credit. Params: video_id, videoId.
- GET /v1/youtube/comments: Comments. 1 credit. Params: video_id*, limit.
- GET /v1/youtube/locales: Locales. 1 credit.
- GET /v1/youtube/playlist: Playlist. 1 credit. Params: playlist_id*.
- GET /v1/youtube/related: Related. 1 credit. Params: video_id*, limit.
- GET /v1/youtube/search: Search. 1 credit. Params: query, limit, page, continuation, hl, gl, type, order, videoDuration, publishedAfter, publishedBefore, safeSearch.
- GET /v1/youtube/suggestions: Suggestions. 1 credit. Params: query*, hl, gl.
- GET /v1/youtube/transcript: Transcript. 1 credit. Params: video_id, videoId, id, language, lang, hl, gl.
- GET /v1/youtube/transcript-by-video-id: Transcript By Video Id. 1 credit. Params: videoId*, video_id, id, language, lang, hl, gl.
- GET /v1/youtube/trending: Trending. 1 credit. Params: type, gl, hl, continuation.
- GET /v1/youtube/video: Video. 1 credit. Params: video_id, videoId.
## Zalando API
https://perceptlayer.com/apis/zalando
- GET /v1/zalando/brands: Brands. 1 credit. Params: country, query, page, per_page.
- GET /v1/zalando/categories: Categories. 1 credit. Params: country.
- GET /v1/zalando/product: Product. 1 credit. Params: sku, url, country, include.
- GET /v1/zalando/search: Search. 1 credit. Params: query, category, country, page, sort, brand, size, color, filters, price_min, price_max, sale, condition, gender.
## Zara API
https://perceptlayer.com/apis/zara
- GET /v1/zara/categories: Categories. 1 credit. Params: country, section.
- GET /v1/zara/product: Product. 1 credit. Params: id, url, country, color_id.
- GET /v1/zara/search: Search. 1 credit. Params: query, category_id, page, country, section.
- GET /v1/zara/stores: Stores. 1 credit. Params: lat*, lng*, country.
## Zigbang API
https://perceptlayer.com/apis/zigbang
- GET /v1/zigbang/agency: Agency. 1 credit. Params: id*.
- GET /v1/zigbang/agency-listings: Agency Listings. 1 credit. Params: id*, page, page_size.
- GET /v1/zigbang/autocomplete: Autocomplete. 1 credit. Params: q*, service, limit.
- GET /v1/zigbang/listing: Listing. 1 credit. Params: id*.
- GET /v1/zigbang/search: Search. 1 credit. Params: property_type*, sales_type, lat, lng, subway_id, radius, deposit_min, deposit_max, rent_min, rent_max, price_min, price_max, manage_cost_min, manage_cost_max, size_min, size_max, floor[], room_type[], bathroom_count, elevator, parking, pet, cctv, south_facing, immediate_move, loan_lease, page, page_size.
## Zillow API
https://perceptlayer.com/apis/zillow
- GET /v1/zillow/agent: Agent. 1 credit. Params: screen_name*.
- GET /v1/zillow/agent-listings: Agent Listings. 1 credit. Params: encoded_zuid*, page, page_size, home_status.
- GET /v1/zillow/agent-reviews: Agent Reviews. 1 credit. Params: encoded_zuid*, page, page_size, sort_type, sort_order, service_provided_type_ids[].
- GET /v1/zillow/agent-sold: Agent Sold. 1 credit. Params: encoded_zuid*, page, page_size, home_status.
- GET /v1/zillow/agents: Agents. 1 credit. Params: location*, page, specialties[], languages[], is_top_agent, is_buying, is_selling.
- GET /v1/zillow/autocomplete: Autocomplete. 1 credit. Params: query*, result_count.
- GET /v1/zillow/building: Building. 1 credit. Params: slug, lot_id, latitude, longitude.
- GET /v1/zillow/comps: Comps. 1 credit. Params: zpid*, alt_id.
- GET /v1/zillow/landing-pages: Landing Pages. 1 credit. Params: limit.
- GET /v1/zillow/market-data: Market Data. 1 credit. Params: family*, geography*, segment, stat, variant, region_name, state, metro, county, limit, offset.
- GET /v1/zillow/open-houses: Open Houses. 1 credit. Params: location*, page.
- GET /v1/zillow/photo: Photo. 1 credit. Params: photo_id*, size.
- GET /v1/zillow/photos: Photos. 1 credit. Params: zpid[].
- GET /v1/zillow/property: Property. 1 credit. Params: zpid[].
- GET /v1/zillow/property-history: Property History. 1 credit. Params: zpid*, alt_id.
- GET /v1/zillow/rentals: Rentals. 1 credit. Params: location*, page, min_rent, max_rent, min_beds, max_beds, pets_allowed, cats_allowed, large_dogs_allowed, small_dogs_allowed, parking, air_conditioning, furnished, short_term_lease, outdoor_space, utilities_included, no_pets, pool, instant_tour, in_unit_laundry.
- GET /v1/zillow/schools: Schools. 1 credit. Params: school_ids[], north_latitude, south_latitude, east_longitude, west_longitude, page, page_size.
- GET /v1/zillow/search: Search. 1 credit. Params: latitude, longitude, radius_mi, north_latitude, south_latitude, east_longitude, west_longitude, region_ids[], region_id_type, polygon, listing_category, sort_order, sort_ascending, min_price, max_price, min_beds, max_beds, min_baths, max_baths, living_area_min, lot_size_min, year_built_min, home_statuses[], keywords, zoom_level, include_off_market, allow_empty, page, page_size.
- GET /v1/zillow/value-chart: Value Chart. 1 credit. Params: zpid*, metric, time_period.
- GET /v1/zillow/zestimate-accuracy: Zestimate Accuracy. 1 credit. Params: state, metro, stage.
## Zimmo API
https://perceptlayer.com/apis/zimmo
- GET /v1/zimmo/agencies: Agencies. 1 credit. Params: place_id, page, size, locale.
- GET /v1/zimmo/agency: Agency. 1 credit. Params: id*, locale.
- GET /v1/zimmo/agency-listings: Agency Listings. 1 credit. Params: service, place_id, agency_id*, category[], sub_type[], energy_label[], construction_type[], condition[], new_construction, sort, order, page, size, locale, price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, area_min, area_max, plot_area_min, plot_area_max, construction_year_min, construction_year_max, epc_min, epc_max.
- GET /v1/zimmo/autocomplete: Autocomplete. 1 credit. Params: query*, limit, locale.
- GET /v1/zimmo/listing: Listing. 1 credit. Params: id*, locale.
- GET /v1/zimmo/listing-scores: Listing Scores. 1 credit. Params: code*.
- GET /v1/zimmo/locations: Locations. 1 credit. Params: query*, locale.
- GET /v1/zimmo/search: Search. 1 credit. Params: service*, place_id, agency_id, category[], sub_type[], energy_label[], construction_type[], condition[], new_construction, sort, order, page, size, locale, price_min, price_max, bedrooms_min, bedrooms_max, bathrooms_min, bathrooms_max, area_min, area_max, plot_area_min, plot_area_max, construction_year_min, construction_year_max, epc_min, epc_max.
## ZipRecruiter API
https://perceptlayer.com/apis/ziprecruiter
- GET /v1/ziprecruiter/company: Company. 1 credit. Params: company*.
- GET /v1/ziprecruiter/job: Job. 1 credit. Params: id, url, country.
- GET /v1/ziprecruiter/salary: Salary. 1 credit. Params: title*, city, state, country.
- GET /v1/ziprecruiter/search: Search. 1 credit. Params: query*, location, country, radius, days, employment_type, salary_min, salary_max, remote, page.
## Zolo API
https://perceptlayer.com/apis/zolo
- GET /v1/zolo/autocomplete: Autocomplete. 1 credit. Params: q*.
- GET /v1/zolo/listing: Listing. 1 credit. Params: url*.
- GET /v1/zolo/search: Search. 1 credit. Params: location*, mode, min_price, max_price, min_beds, min_baths, property_type, sort, page.
## Zonaprop API
https://perceptlayer.com/apis/zonaprop
- GET /v1/zonaprop/developments: Developments. 1 credit. Params: posting_id*.
- GET /v1/zonaprop/developments-units: Developments Units. 1 credit. Params: posting_id*.
- GET /v1/zonaprop/listings: Listings. 1–3 credits. 1 credit, plus 1 each for include_recommendations and include_visits. Params: posting_id*, include_recommendations, include_visits, include_v2_fallback.
- GET /v1/zonaprop/locations: Locations. 1 credit. Params: onboarding_searcher*, real_estate_type, location.
- GET /v1/zonaprop/locations-polygon: Locations Polygon. 1 credit. Params: location_id*.
- GET /v1/zonaprop/locations-suggestions: Locations Suggestions. 1 credit. Params: query*.
- GET /v1/zonaprop/search: Search. 1 credit. Params: operation_type, real_estate_type, real_estate_subtype, location[]*, keyword, address, publisher_type, currency, price_from, price_to, condo_price_from, condo_price_to, area_from, area_to, area_unit, covered_area_from, covered_area_to, rooms_from, rooms_to, bedrooms_from, bedrooms_to, bathrooms_from, bathrooms_to, garage_from, garage_to, age_ranges, services, general, room_type, max_results*, limit*, offset*, sort*.
- GET /v1/zonaprop/search-count: Search Count. 1 credit. Params: operation_type, real_estate_type, real_estate_subtype, location[]*, keyword, address, publisher_type, currency, price_from, price_to, condo_price_from, condo_price_to, area_from, area_to, area_unit, covered_area_from, covered_area_to, rooms_from, rooms_to, bedrooms_from, bedrooms_to, bathrooms_from, bathrooms_to, garage_from, garage_to, age_ranges, services, general, room_type, sort.
- GET /v1/zonaprop/search-map: Search Map. 1 credit. Params: operation_type, real_estate_type, real_estate_subtype, location[]*, keyword, address, publisher_type, currency, price_from, price_to, condo_price_from, condo_price_to, area_from, area_to, area_unit, covered_area_from, covered_area_to, rooms_from, rooms_to, bedrooms_from, bedrooms_to, bathrooms_from, bathrooms_to, garage_from, garage_to, age_ranges, services, general, room_type.
## ZoomInfo API
https://perceptlayer.com/apis/zoominfo
- GET /v1/zoominfo/companies: Companies. 1 credit. Params: industry, country, page.
- GET /v1/zoominfo/industries: Industries. 1 credit.
- GET /v1/zoominfo/locations: Locations. 1 credit.
- GET /v1/zoominfo/top-lists: Top Lists. 1 credit. Params: industry, country.
## Zoopla API
https://perceptlayer.com/apis/zoopla
- GET /v1/zoopla/addresses: Addresses. 1 credit. Params: postcode*.
- GET /v1/zoopla/agent: Agent. 1 credit. Params: branchId*.
- GET /v1/zoopla/listing: Listing. 1 credit. Params: listingId*.
- GET /v1/zoopla/locations: Locations. 1 credit. Params: query*.
- GET /v1/zoopla/market-activity: Market Activity. 1 credit. Params: geo*, range_months, house_type.
- GET /v1/zoopla/market-insights: Market Insights. 1 credit. Params: outcode*.
- GET /v1/zoopla/market-local-stats: Market Local Stats. 1 credit. Params: uprn*.
- GET /v1/zoopla/property: Property. 1 credit. Params: uprn*.
- GET /v1/zoopla/property-agents: Property Agents. 1 credit. Params: uprn*, transaction_type.
- GET /v1/zoopla/property-demand: Property Demand. 1 credit. Params: uprn*.
- GET /v1/zoopla/property-nearby-sold: Property Nearby Sold. 1 credit. Params: uprn*.
- GET /v1/zoopla/property-similar: Property Similar. 1 credit. Params: uprn*.
- GET /v1/zoopla/property-valuation-history: Property Valuation History. 1 credit. Params: uprn*.
- GET /v1/zoopla/search: Search. 1 credit. Params: location*, section, page.
- GET /v1/zoopla/search-count: Search Count. 1 credit. Params: location*, section.
- GET /v1/zoopla/sold: Sold. 1 credit. Params: location*, first, after, from_last_sale_date, to_last_sale_date.
- GET /v1/zoopla/sold-summary: Sold Summary. 1 credit. Params: paths[]*, section, location.
## Zumper API
https://perceptlayer.com/apis/zumper
- GET /v1/zumper/address: Address. 1 credit. Params: pa_url*.
- GET /v1/zumper/address-faq: Address Faq. 1 credit. Params: city*.
- GET /v1/zumper/address-pros-cons: Address Pros Cons. 1 credit. Params: permanent_address_id*.
- GET /v1/zumper/address-rent-history: Address Rent History. 1 credit. Params: pa_url*.
- GET /v1/zumper/agent: Agent. 1 credit. Params: agent_url*.
- GET /v1/zumper/amenity-counts: Amenity Counts. 1 credit. Params: city*, hood.
- GET /v1/zumper/autocomplete: Autocomplete. 1 credit. Params: query*.
- GET /v1/zumper/blog: Blog. 1 credit.
- GET /v1/zumper/building: Building. 1 credit. Params: building_id*.
- GET /v1/zumper/building-additional: Building Additional. 1 credit. Params: building_id*.
- GET /v1/zumper/building-aggregate: Building Aggregate. 1 credit. Params: building_id*.
- GET /v1/zumper/building-fees: Building Fees. 1 credit. Params: building_id*.
- GET /v1/zumper/building-map: Building Map. 1 credit. Params: building_id*.
- GET /v1/zumper/building-pros-cons: Building Pros Cons. 1 credit. Params: building_id*.
- GET /v1/zumper/building-rating: Building Rating. 1 credit. Params: building_id*.
- GET /v1/zumper/building-related: Building Related. 1 credit. Params: building_id*.
- GET /v1/zumper/building-resident-quotes: Building Resident Quotes. 1 credit. Params: building_id*.
- GET /v1/zumper/cities: Cities. 1 credit. Params: cities*.
- GET /v1/zumper/city: City. 1 credit. Params: city*.
- GET /v1/zumper/city-bounds: City Bounds. 1 credit. Params: city*.
- GET /v1/zumper/city-content: City Content. 1 credit. Params: city*.
- GET /v1/zumper/count: Count. 1 credit. Params: city*.
- GET /v1/zumper/facets: Facets. 1 credit. Params: city*, attribute*.
- GET /v1/zumper/featured: Featured. 1 credit. Params: city*.
- GET /v1/zumper/geos: Geos. 1 credit. Params: city*, hood.
- GET /v1/zumper/geosearch: Geosearch. 1 credit. Params: query*.
- GET /v1/zumper/lifestyles: Lifestyles. 1 credit. Params: city*.
- GET /v1/zumper/linkpacks: Linkpacks. 1 credit.
- GET /v1/zumper/listing: Listing. 1 credit. Params: listing_id*.
- GET /v1/zumper/listing-fees: Listing Fees. 1 credit. Params: listing_id*.
- GET /v1/zumper/location-scores: Location Scores. 1 credit. Params: type*, name*, lat*, lng*.
- GET /v1/zumper/map-pins: Map Pins. 1 credit. Params: min_lat*, max_lat*, min_lng*, max_lng*.
- GET /v1/zumper/map-search: Map Search. 1 credit. Params: city*, min_lat*, max_lat*, min_lng*, max_lng*.
- GET /v1/zumper/nearby-pois: Nearby Pois. 1 credit. Params: lat*, lng*.
- GET /v1/zumper/neighborhood: Neighborhood. 1 credit. Params: city*, hood*.
- GET /v1/zumper/neighborhood-bounds: Neighborhood Bounds. 1 credit. Params: city*, hood*.
- GET /v1/zumper/neighborhood-content: Neighborhood Content. 1 credit. Params: city*, hood*.
- GET /v1/zumper/neighborhoods: Neighborhoods. 1 credit. Params: min_lat*, max_lat*, min_lng*, max_lng*.
- GET /v1/zumper/price-trends: Price Trends. 1 credit. Params: city*, hood.
- GET /v1/zumper/recommendations: Recommendations. 1 credit. Params: group_id*.
- GET /v1/zumper/rent-estimate: Rent Estimate. 1 credit. Params: lat*, lng*, bedrooms*, bathrooms*.
- GET /v1/zumper/rent-report: Rent Report. 1 credit. Params: slug*.
- GET /v1/zumper/rent-report-cities: Rent Report Cities. 1 credit.
- GET /v1/zumper/rent-research: Rent Research. 1 credit. Params: city*.
- GET /v1/zumper/school-districts: School Districts. 1 credit. Params: city*.
- GET /v1/zumper/schools: Schools. 1 credit. Params: lat*, lng*.
- GET /v1/zumper/search: Search. 1 credit. Params: city*.
- GET /v1/zumper/sitemap: Sitemap. 1 credit. Params: kind*.
- GET /v1/zumper/spotlight: Spotlight. 1 credit. Params: min_lat*, max_lat*, min_lng*, max_lng*.
- GET /v1/zumper/walkscore: Walkscore. 1 credit. Params: address*, lat*, lng*.
## ZVG-Portal API
https://perceptlayer.com/apis/zvg-portal
- GET /v1/zvg-portal/court: Court. 1 credit. Params: court*, sort, page, per_page.
- GET /v1/zvg-portal/listing: Listing. 1 credit. Params: zvg_id*, land*.
- GET /v1/zvg-portal/locations: Locations. 1 credit. Params: q, land.
- GET /v1/zvg-portal/reference: Reference. 1 credit.
- GET /v1/zvg-portal/search: Search. 1 credit. Params: land*, court, object_type[], procedure_type, plz, city, district, street, house_number, case_number, date_from, date_to, min_price, max_price, sort, page, per_page.