PontoFato Vizinhanca API
The Vizinhanca API from PontoFato — 1 operation(s) for vizinhanca.
The Vizinhanca API from PontoFato — 1 operation(s) for vizinhanca.
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/pontofato:pontofato-vizinhanca-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: Pontofato Vizinhanca API
version: '1.0'
description: 'Operations tagged Vizinhanca across 2 of this provider''s published API definitions: pontofato-openapi-original.json, pontofato-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://pontofato.com
tags:
- name: Vizinhanca
paths:
/api/vizinhanca:
get:
operationId: vizinhanca
summary: Empresas ativas, abertas e baixadas num raio em metros, por CNAE, com as…
description: 'Devolve: { centro, raio_m, ceps, truncado, desde, base, cnae, empresas, por_cnae[{cnae,descricao,ativas,abertas_desde}], amostra_abertas[{cnpj,cnpjFormatted,nome,razaoSocial,nomeFantasia,cnae,dataInicio,endereco,distancia_m}], lenta, fonte, _links }'
parameters:
- name: cep
in: query
required: false
schema:
type: string
description: Centro = média dos pontos deste CEP. Alternativa a lat/lon.
example: '01310100'
- name: lat
in: query
required: false
schema:
type: number
description: Latitude do centro, se não vier `cep`.
- name: lon
in: query
required: false
schema:
type: number
description: Longitude do centro, se não vier `cep`.
- name: raio
in: query
required: false
schema:
type: integer
default: 500
description: Raio em metros, 1 a 2000.
example: 800
- name: cnae
in: query
required: false
schema:
type: string
description: 'Prefixo de CNAE: divisão (2 dígitos), classe (5) ou subclasse (7).'
example: '56'
- name: desde
in: query
required: false
schema:
type: string
description: 'Data ISO para “abriu/baixou desde”. Padrão: 90 dias antes da data da base (`base.dump_date`).'
example: '2026-02-01'
responses:
'200':
description: '{ centro, raio_m, ceps, truncado, desde, base, cnae, empresas, por_cnae[{cnae,descricao,ativas,abertas_desde}], amostra_abertas[{cnpj,cnpjFormatted,nome,razaoSocial,nomeFantasia,cnae,dataInicio,endereco,distancia_m}], lenta, fonte, _links }'
content:
application/json:
schema:
$ref: '#/components/schemas/Vizinhanca'
'400':
description: Centro ausente, CEP/coordenada/raio inválidos, `cnae` fora de 2/5/7 dígitos ou `desde` fora de 1900–hoje.
'402':
description: 'Cota diária grátis esgotada: pague $0.05 por x402 (`accepts[]`) ou mande crédito pré-pago (`Authorization: Bearer cred_…`).'
'404':
description: CEP fora da malha ou nenhum ponto no raio.
'503':
description: Origem sqlite ou API de CNPJ fora.
tags:
- Vizinhanca
servers:
- url: https://pontofato.com
components:
schemas:
ContagemCnae:
type: object
properties:
cnae:
type: integer
description: Subclasse CNAE (7 dígitos).
descricao:
type: string
description: Descrição oficial da subclasse.
nullable: true
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.
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
description: Prefixo de CNAE aplicado, se houve.
nullable: true
empresas:
type: object
description: '`total`, `ativas`, `abertas_desde`, `baixadas_desde` (nulos quando `lenta`).'
por_cnae:
type: array
items:
$ref: '#/components/schemas/ContagemCnae'
description: As 20 subclasses com mais ativas.
amostra_abertas:
type: array
items:
$ref: '#/components/schemas/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
description: 'O que a Receita sabe sobre os CEPs dentro do raio: contagens, classes e aberturas recentes.'
Abertura:
type: object
properties:
cnpj:
type: string
description: 14 dígitos.
cnpjFormatted:
type: string
description: CNPJ com pontuação.
nome:
type: string
description: Nome fantasia ou, na falta, razão social.
nullable: true
razaoSocial:
type: string
description: Razão social.
nullable: true
nomeFantasia:
type: string
description: Nome fantasia declarado na Receita, quando a empresa tem um.
nullable: true
cnae:
type: object
description: '`codigo` e `descricao` da atividade principal.'
nullable: true
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
description: Distância do centro ao CEP deste estabelecimento.
nullable: true
required:
- cnpj
- cnpjFormatted
- nome
- razaoSocial
- nomeFantasia
- cnae
- dataInicio
- endereco
- distancia_m
description: Um estabelecimento aberto desde `desde`, sem contato e sem sócio.
ContagemCnae_2:
type: object
properties:
cnae:
type: integer
description: CNAE subclass (7 digits).
descricao:
type: string
description: Official description of the subclass.
nullable: true
ativas:
type: integer
description: Estabelecimentos ativos neste CNAE no raio.
abertas_desde:
type: integer
description: Of the active ones, how many opened since `desde`.
required:
- cnae
- descricao
- ativas
- abertas_desde
description: A CNAE class in the radius.
ProblemDetails:
type: object
description: RFC 9457 Problem Details error response (`application/problem+json`). Includes stable `code` and backward-compatible `error` and `message` fields; route-specific extension fields (such as `accepts`, `allow`, `retry_after`, or `request_id`) may also be present.
required:
- type
- title
- status
- detail
- instance
- code
properties:
type:
type: string
format: uri
description: URI identifying the problem type, linking to `/errors#<code>` on this host.
title:
type: string
description: Short human-readable summary of the problem type.
status:
type: integer
description: HTTP status code generated for this occurrence.
detail:
type: string
description: Human-readable explanation specific to this occurrence.
instance:
type: string
description: Request path where the error occurred (without query parameters).
code:
type: string
description: Stable machine-readable snake_case error code documented at `/errors`.
error:
type: string
description: Backward-compatible alias of `code` (or protocol reason on x402 402 responses).
message:
type: string
description: Backward-compatible alias of `detail`.
additionalProperties: true
Vizinhanca_2:
type: object
properties:
centro:
type: object
description: '`lat`, `lon` and `cep` when the center came from a CEP.'
raio_m:
type: integer
description: Radius used, in meters.
ceps:
type: integer
description: How many postcodes entered the count (limit 300).
truncado:
type: boolean
description: '`true` if the radius had more than 300 CEPs.'
desde:
type: string
description: ISO cut-off date for opened/closed.
base:
type: object
description: '`dump_date`: reference date of the records; the default window counts from it.'
cnae:
type: string
description: CNAE prefix applied, if any.
nullable: true
empresas:
type: object
description: '`total`, `ativas`, `abertas_desde`, `baixadas_desde` (null when `lenta`).'
por_cnae:
type: array
items:
$ref: '#/components/schemas/ContagemCnae_2'
description: The 20 subclasses with the most active companies.
amostra_abertas:
type: array
items:
$ref: '#/components/schemas/Abertura_2'
description: The 50 most recent openings, with distance.
lenta:
type: boolean
description: '`true` when some count hit the time cap and came as null.'
fonte:
type: string
description: Identification and attribution of the references used.
_links:
type: object
description: '`self` and `raio` with the same center.'
required:
- centro
- raio_m
- ceps
- truncado
- desde
- base
- cnae
- empresas
- por_cnae
- amostra_abertas
- lenta
- fonte
- _links
description: 'Companies at the CEPs inside the radius: counts, activities and recent openings.'
Abertura_2:
type: object
properties:
cnpj:
type: string
description: 14 characters (digits or alphanumeric).
cnpjFormatted:
type: string
description: CNPJ with punctuation.
nome:
type: string
description: Trade name or, when missing, corporate name.
nullable: true
razaoSocial:
type: string
description: Corporate name.
nullable: true
nomeFantasia:
type: string
description: Registered trade name, when available.
nullable: true
cnae:
type: object
description: '`codigo` and `descricao` of the main activity.'
nullable: true
dataInicio:
type: string
description: Activity start date, ISO.
endereco:
type: object
description: '`tipoLogradouro`, `logradouro`, `numero`, `bairro`, `cep` formatado.'
distancia_m:
type: integer
description: Distance from the center to the CEP of this establishment.
nullable: true
required:
- cnpj
- cnpjFormatted
- nome
- razaoSocial
- nomeFantasia
- cnae
- dataInicio
- endereco
- distancia_m
description: An establishment opened since `desde`, without contacts or partners.
securitySchemes:
globalAccount:
type: apiKey
in: cookie
name: __Host-mm-auth
description: Global session in the product's HttpOnly cookie; writes require exact Origin and X-CSRF-Token.
contaChaveApi:
type: http
scheme: bearer
bearerFormat: mmk_…
description: 'Account API key: `Authorization: Bearer mmk_…` or `X-Api-Key: mmk_…`. Created on the account page (API keys), valid only in the product where it was created; it acts as the account (or the organization that owns it).'
carteiraAgente:
type: http
scheme: bearer
bearerFormat: mmw_…
description: 'Wallet credential of an agent without an account (`Authorization: Bearer mmw_…`, 30 days, this product only): POST /api/auth/wallet/agent/start, check that the domain and URI of the message are the host and origin that you called, sign the message with the wallet, POST /api/auth/wallet/agent/token. The owner is `x402:<address>`.'
externalDocs:
url: https://payapi.market/api/pontofato
description: PayAPI Market
x-refined-from:
- pontofato-openapi-original.json
- pontofato-openapi.json