TransparentCars Leads API
Consent-gated contact / callback capture.
Consent-gated contact / callback capture.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/transparent-pt:transparent-pt-leads-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TransparentCars Public Leads API
version: 1.2.0
summary: Key-free JSON API for buying a car in Portugal — stock, fair-price valuation, car taxes (ISV/IUC), the full cost of importing a car from Germany/EU, and lead capture.
description: 'Open, key-free JSON API from **TransparentCars** (transparent.pt) — affordable used cars,
no hidden costs. It exposes the same data the public site runs on:
- `GET /cars`, `GET /cars/{slug}` — the cars currently for sale (published stock).
- `GET /valuation` — a **fair-price range** for a car, built from comparable Portuguese
listings (asking-price band). Answers "is this price fair?".
- `GET /isv` — a **running-cost / road-tax** lookup. The useful field is `iuc`
(Imposto Único de Circulação, the **annual road tax** a car costs to keep on the road).
- `GET /import-cost` — the **turnkey cost of importing a car from Germany / the EU** to
Portugal: car price (seller VAT swapped for Portuguese IVA when the listing is VAT-deductible),
transport, paperwork, service and ISV in one total; IUC per year returned apart.
- `GET /legalization-cost` — what it costs to **legalise a car already in Portugal** (registered
in another EU country): fixed service fee + ISV + state fees (+ COC if missing) as a low/high
range, with the lists of what the fee includes and what is paid separately at real cost.
- `GET /car_refs` — the canonical make / model vocabulary the valuation endpoint expects.
- `POST /lead` — consent-gated contact / callback request.
**Auth.** None. The API is public and key-free by design. Per-IP fair-use rate limits apply
(see `x-rate-limit`); calculator/valuation responses may be cached at the edge.
**Honesty / accuracy.** The `iuc` road-tax figure is a maintained estimate of the Portuguese
annual circulation tax, cross-checked periodically against public tax tables — use it for
planning, not as an official assessment. Valuation is an asking-price band from live
comparables, not an appraisal.
**Privacy.** Only `POST /lead` accepts personal data, and only with explicit `consent: true`.
All other endpoints take vehicle parameters and return numbers or public listing data — no PII.'
termsOfService: https://transparent.pt/en/terms
contact:
name: TransparentCars
url: https://transparent.pt/en/api
email: info@transparent.pt
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
x-logo:
url: https://transparent.pt/logo.png
altText: TransparentCars
backgroundColor: '#0f1115'
servers:
- url: https://transparent.pt/api/public
description: Production
security: []
tags:
- name: Leads
description: Consent-gated contact / callback capture.
paths:
/lead:
post:
tags:
- Leads
operationId: submitLead
summary: Submit a contact / callback request
description: 'Consent-gated lead capture. `consent` MUST be `true` (explicit opt-in for storing the
contact) and at least one reachable channel is required — a `phone` or an `email`. The
single `phone` field is smart-routed server-side: an address is treated as email, a
`@handle` / `t.me/…` as a messenger handle, otherwise it is normalised as a phone number.
Duplicate submissions of the same form within a short window are de-duplicated.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LeadIn'
examples:
contact:
summary: A contact-form message
value:
kind: contact
name: Maria Silva
email: maria@example.com
message: Is the Clio still available?
lang: en
consent: true
callback:
summary: A callback request on a specific car
value:
kind: call
phone: +351 912 345 678
item_id: 12
source: car_page
consent: true
responses:
'200':
description: Lead accepted (or recognised as a duplicate — no new lead stored).
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
example: true
id:
type: integer
description: New lead id (absent on a duplicate).
duplicate:
type: boolean
description: true when the submission was de-duplicated.
examples:
created:
value:
ok: true
id: 1837
duplicate:
value:
ok: true
duplicate: true
'422':
description: 'Validation error — missing `kind`, unknown `kind` (`{"detail":"bad kind"}`),
missing consent (`{"detail":"consent required"}`), or no reachable contact.
'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
consent:
value:
detail: consent required
kind:
value:
detail: bad kind
'429':
description: Too many requests (per-IP).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
detail: too many requests
components:
schemas:
Error:
type: object
description: Error envelope. `detail` is a string for handled errors; FastAPI validation errors return an array of field errors.
properties:
detail:
oneOf:
- type: string
- type: array
items:
type: object
example:
detail: consent required
LeadIn:
type: object
required:
- kind
- consent
description: 'A lead submission. `consent` must be `true`, and at least one of `phone` / `email` must be
present. The `phone` field is smart-routed (email / messenger handle / phone number).
'
properties:
kind:
type: string
enum:
- contact
- call
description: Lead type. `contact` = message/enquiry, `call` = callback request.
name:
type:
- string
- 'null'
maxLength: 200
phone:
type:
- string
- 'null'
maxLength: 50
description: Phone number, or a single free-text contact field (email / @handle) that is routed server-side.
email:
type:
- string
- 'null'
maxLength: 200
format: email
message:
type:
- string
- 'null'
maxLength: 2000
item_id:
type:
- integer
- 'null'
description: Id of the car the lead is about (from CarDetail.id).
lang:
type:
- string
- 'null'
maxLength: 5
description: Visitor language (pt|en|ru|ua).
source:
type:
- string
- 'null'
maxLength: 60
description: Originating form/context (e.g. car_page, contact).
value_eur:
type:
- integer
- 'null'
minimum: 0
description: Optional deal-value anchor, EUR.
consent:
type: boolean
default: false
description: Explicit opt-in to store the contact. Must be true or the request is rejected (422).
externalDocs:
description: API docs, quickstart & MCP server
url: https://transparent.pt/en/api
x-rate-limit:
policy: Per-IP fair-use. No key required. 429 with Retry-After on exceed.
cars: DB-backed listing endpoints, tighter than the calculators.
valuation: 20 requests / 5 min / IP (each call hits the comparables DB).
isv: 60 requests / minute / IP (cached; a cache hit is free).
import-cost: shares the isv budget — 60 requests / minute / IP.
legalization-cost: shares the isv budget — 60 requests / minute / IP.
lead: 20 requests / 5 min / IP.
headers: 429 responses on the road-tax endpoint include `Retry-After` (seconds).