Sem conta ainda? O Explorador de API funciona com qualquer chave — cole a sua para testar assim que tiver uma.
Chave de API
Entre na sua conta para ver e gerenciar sua chave de API.
Uso e Créditos
Entre na sua conta para ver seu plano, créditos e o consumo de requisições.
Início Rápido
Em breve: o host público (https://api.vurb.dev) ainda não está no ar. O exemplo abaixo mostra o formato exato que será usado assim que a API for publicada.
Toda requisição precisa do cabeçalho X-API-Key — veja Autenticação. Endpoints de listagens exigem lat, lon e tipo_construcao; use /available_listings/listing_types para descobrir os valores aceitos.
Gerencie e regenere sua chave na seção Chave de API. Cada chamada bem-sucedida consome uma requisição da cota do seu plano — veja Uso e Créditos. Nunca inclua a chave na URL como parâmetro de consulta nem a exponha em código de frontend público.
Respostas de erro comuns: 401 Unauthorized (chave ausente ou inválida), 429 Too Many Requests (limite de taxa excedido) e 503 Service Unavailable (indisponibilidade temporária do backend) — veja Códigos de Resposta.
Analytics
POST/api/iptu/analyze-records
Analyse IPTU records
Computes area totals, year range, construction-type distribution and building/usage inferences over a set of IPTU records supplied in the request body.
Liquidity and velocity aggregates (totals, average, median, and per-year/per-month counts and volumes) over a transaction list supplied in the request body.
Todos os endpoints de listagens exigem lat, lon e tipo_construcao (um ou mais valores; repita o parâmetro para múltiplos). Um tipo_construcao desconhecido retorna 422 Unprocessable Entity — use /available_listings/listing_types para descobrir os valores aceitos.
GET/api/available_listings
Listings on the market near a point
Every current listing within the radius, with full detail and the distance from the search centre. Capped at 1000 rows, newest observation first.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
Per UTC day inside the window: how many price observations were recorded for listings in the area and how many distinct listings they cover, read from the price history. It counts observations, not supply: a day with more scrapes reads higher, and a listing that is on the market but was not scraped that day is not counted. Window: days_back, default 90, at most 365.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
days_back
integer
Não
90
Window in days ending today (UTC): 1 to 365; values outside are rejected with 422.
Aggregated enrichment documents produced by the offline pipeline for listings in the area. Returns an empty insight set where enrichment is unavailable rather than failing.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
Listing types present, and the accepted construction types
Counts by listing type in the area, plus the full construction-type to listing-type mapping this API accepts — use it to discover valid `tipo_construcao` values.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
Sale and rent price per square metre across the area: average, median, and the spread, computed only over listings that report both a price and a size.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
Listing count, average/min/max sale and rent prices, average size, price per square metre, and the broker with the most listings. Currency values are BRL-formatted strings, matching the internal API.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
For each listing in the area, the days between its first and its last price observation inside the window (days_back, default 90, at most 365), with the median and a bucketed distribution. A listing with a single observation in the window is excluded. This is an observation span, not days on market: it starts at the window edge for older listings and ends at the last scrape, not at a delisting.
Parâmetro
Tipo
Obrigatório
Padrão
Descrição
lat*
number
Sim
—
Latitude of the search centre.
lon*
number
Sim
—
Longitude of the search centre.
radius
number
Não
0.5
Search radius in kilometres.
tipo_construcao*
array
Sim
—
Construction type(s) to include; repeatable. Required — unlike the internal API, this endpoint does not infer it from an address.
days_back
integer
Não
90
Window in days ending today (UTC): 1 to 365; values outside are rejected with 422.
Os limites são aplicados por chave de API, de acordo com o seu plano. Ao atingir o limite, a API responde com 429 Too Many Requests; implemente espera exponencial (exponential backoff) antes de tentar novamente.
HTTP/1.1 429 Too Many Requests
x-ratelimit-limit: 60
x-ratelimit-remaining: 0
x-ratelimit-reset: 12
Códigos de Resposta
200 OK
400 Bad Request
401 Unauthorized — chave de API ausente ou inválida
422 Unprocessable Entity — parâmetro obrigatório ausente ou inválido (ex.: tipo_construcao desconhecido)
429 Too Many Requests — limite de taxa do plano excedido
500 Internal Server Error
503 Service Unavailable
Faturamento
Faturamento mensal com resumo por chave. Entre em contato com o suporte para ajustes de cota ou upgrade de plano.
Configurações
Preferências de conta e da chave de API ficam disponíveis na seção Chave de API.
Suporte
Entre em contato com o suporte via painel ou e-mail para dúvidas técnicas ou ajustes de cota.