Vizinhanca
O que a Receita sabe sobre os CEPs dentro do raio: contagens, classes e aberturas recentes.
Properties
| Name | Type | Description |
|---|---|---|
| centro | object | `lat`, `lon` e `cep` quando o centro veio de CEP. |
| raio_m | integer | Raio usado, em metros. |
| ceps | integer | Quantos CEPs entraram na conta (teto 300). |
| truncado | boolean | `true` se o raio tinha mais de 300 CEPs. |
| desde | string | Data ISO de corte para abertas/baixadas. |
| base | object | `dump_date`: data do dump da Receita carregado — a janela padrão conta a partir dela. |
| cnae | stringnull | Prefixo de CNAE aplicado, se houve. |
| empresas | object | `total`, `ativas`, `abertas_desde`, `baixadas_desde` (nulos quando `lenta`). |
| por_cnae | array | As 20 subclasses com mais ativas. |
| amostra_abertas | array | As 50 aberturas mais recentes, com distância. |
| lenta | boolean | `true` quando alguma contagem estourou o teto de tempo e veio nula. |
| fonte | string | Sempre `cnefe-2022 + receita`. |
| _links | object | `self` e `raio` com o mesmo centro. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/pontofato/json-schema/pontofato-vizinhanca-schema.json",
"title": "Vizinhanca",
"description": "O que a Receita sabe sobre os CEPs dentro do raio: contagens, classes e aberturas recentes.",
"x-generated": "2026-11-26",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/pontofato-vizinhanca-api-openapi.yml#/components/schemas/Vizinhanca",
"type": "object",
"properties": {
"centro": {
"type": "object",
"description": "`lat`, `lon` e `cep` quando o centro veio de CEP."
},
"raio_m": {
"type": "integer",
"description": "Raio usado, em metros."
},
"ceps": {
"type": "integer",
"description": "Quantos CEPs entraram na conta (teto 300)."
},
"truncado": {
"type": "boolean",
"description": "`true` se o raio tinha mais de 300 CEPs."
},
"desde": {
"type": "string",
"description": "Data ISO de corte para abertas/baixadas."
},
"base": {
"type": "object",
"description": "`dump_date`: data do dump da Receita carregado — a janela padrão conta a partir dela."
},
"cnae": {
"type": [
"string",
"null"
],
"description": "Prefixo de CNAE aplicado, se houve."
},
"empresas": {
"type": "object",
"description": "`total`, `ativas`, `abertas_desde`, `baixadas_desde` (nulos quando `lenta`)."
},
"por_cnae": {
"type": "array",
"items": {
"$ref": "#/$defs/ContagemCnae"
},
"description": "As 20 subclasses com mais ativas."
},
"amostra_abertas": {
"type": "array",
"items": {
"$ref": "#/$defs/Abertura"
},
"description": "As 50 aberturas mais recentes, com distância."
},
"lenta": {
"type": "boolean",
"description": "`true` quando alguma contagem estourou o teto de tempo e veio nula."
},
"fonte": {
"type": "string",
"description": "Sempre `cnefe-2022 + receita`."
},
"_links": {
"type": "object",
"description": "`self` e `raio` com o mesmo centro."
}
},
"required": [
"centro",
"raio_m",
"ceps",
"truncado",
"desde",
"base",
"cnae",
"empresas",
"por_cnae",
"amostra_abertas",
"lenta",
"fonte",
"_links"
],
"$defs": {
"Abertura": {
"type": "object",
"properties": {
"cnpj": {
"type": "string",
"description": "14 dígitos."
},
"cnpjFormatted": {
"type": "string",
"description": "CNPJ com pontuação."
},
"nome": {
"type": [
"string",
"null"
],
"description": "Nome fantasia ou, na falta, razão social."
},
"razaoSocial": {
"type": [
"string",
"null"
],
"description": "Razão social."
},
"nomeFantasia": {
"type": [
"string",
"null"
],
"description": "Nome fantasia declarado na Receita, quando a empresa tem um."
},
"cnae": {
"type": [
"object",
"null"
],
"description": "`codigo` e `descricao` da atividade principal."
},
"dataInicio": {
"type": "string",
"description": "Data de início de atividade, ISO."
},
"endereco": {
"type": "object",
"description": "`tipoLogradouro`, `logradouro`, `numero`, `bairro`, `cep` formatado."
},
"distancia_m": {
"type": [
"integer",
"null"
],
"description": "Distância do centro ao CEP deste estabelecimento."
}
},
"required": [
"cnpj",
"cnpjFormatted",
"nome",
"razaoSocial",
"nomeFantasia",
"cnae",
"dataInicio",
"endereco",
"distancia_m"
],
"description": "Um estabelecimento aberto desde `desde`, sem contato e sem sócio."
},
"ContagemCnae": {
"type": "object",
"properties": {
"cnae": {
"type": "integer",
"description": "Subclasse CNAE (7 dígitos)."
},
"descricao": {
"type": [
"string",
"null"
],
"description": "Descrição oficial da subclasse."
},
"ativas": {
"type": "integer",
"description": "Estabelecimentos ativos neste CNAE no raio."
},
"abertas_desde": {
"type": "integer",
"description": "Dos ativos, quantos abriram desde `desde`."
}
},
"required": [
"cnae",
"descricao",
"ativas",
"abertas_desde"
],
"description": "Uma classe de CNAE no raio."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/pontofato-vizinhanca"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.