Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: PontoFato Relatorio API
version: 5b549f5d
description: 'Point and facts of a place in Brazil. Index: GET /api/.'
servers:
- url: https://pontofato.com
tags:
- name: Relatorio
paths:
/api/relatorio/preco:
get:
operationId: get_api_relatorio_preco
summary: Current price of the one-off commercial location report by postal code
description: 'Returns: { ok, preco_brl, preco_usd, sku }'
responses:
'200':
description: '{ ok, preco_brl, preco_usd, sku }'
content:
application/json:
schema:
$ref: '#/components/schemas/RelatorioPreco'
'404':
description: Offer currently unavailable.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Relatorio
/api/relatorio:
get:
operationId: get_api_relatorio
summary: Checks ownership without charging and returns the full report if already…
description: 'Returns: { ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
parameters:
- name: cep
in: query
required: false
schema:
type: string
description: 8 digits, with or without a hyphen.
example: '01310100'
- name: raio
in: query
required: false
schema:
type: integer
default: 1000
description: Surrounding search radius in meters (100 to 2000).
- name: cnae
in: query
required: false
schema:
type: string
description: Optional CNAE activity filter (2, 5, or 7 digits).
responses:
'200':
description: '{ ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
content:
application/json:
schema:
$ref: '#/components/schemas/RelatorioPonto'
'400':
description: Invalid CEP (length or `00000000`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Postal code not found in the database.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Relatorio
post:
operationId: post_api_relatorio
summary: One-off purchase and generation of the postal code Commercial Location Report…
description: 'Returns: { ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
x-price-usd: 6.945653
x-payment-info:
price:
mode: fixed
currency: USD
amount: '6.945653'
protocols:
- x402: {}
parameters:
- name: cep
in: query
required: false
schema:
type: string
description: 8 digits, with or without a hyphen.
example: '01310100'
- name: raio
in: query
required: false
schema:
type: integer
default: 1000
description: Surrounding search radius in meters (100 to 2000).
- name: cnae
in: query
required: false
schema:
type: string
description: Optional CNAE activity filter (2, 5, or 7 digits).
requestBody:
required: true
content:
application/json:
example:
cep:
tipo: string
desc: 8 dígitos, com ou sem hífen.
raio:
tipo: int
desc: Raio do entorno em metros (100 a 2000).
padrao: 1000
cnae:
tipo: string
desc: Filtro de CNAE opcional (2, 5 ou 7 dígitos).
responses:
'200':
description: '{ ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
content:
application/json:
schema:
$ref: '#/components/schemas/RelatorioPonto'
'400':
description: Invalid CEP (length or `00000000`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'402':
description: One-off payment required (Pix, card, prepaid balance, or x402).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Postal code not found in the database.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'502':
description: Upstream data source unavailable.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Relatorio
/api/relatorio/{cep}:
get:
operationId: get_api_relatorio_by_cep
summary: Checks ownership without charging and returns the full report if already…
description: 'Returns: { ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
parameters:
- name: cep
in: path
required: true
schema:
type: string
description: 8 digits, with or without a hyphen.
example: '01310100'
- name: raio
in: query
required: false
schema:
type: integer
default: 1000
description: Surrounding search radius in meters (100 to 2000).
- name: cnae
in: query
required: false
schema:
type: string
description: Optional CNAE activity filter (2, 5, or 7 digits).
responses:
'200':
description: '{ ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
content:
application/json:
schema:
$ref: '#/components/schemas/RelatorioPonto'
'400':
description: Invalid CEP (length or `00000000`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Postal code not found in the database.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Relatorio
post:
operationId: post_api_relatorio_by_cep
summary: One-off purchase and generation of the postal code Commercial Location Report…
description: 'Returns: { ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
x-price-usd: 6.945653
x-payment-info:
price:
mode: fixed
currency: USD
amount: '6.945653'
protocols:
- x402: {}
parameters:
- name: cep
in: path
required: true
schema:
type: string
description: 8 digits, with or without a hyphen.
example: '01310100'
- name: raio
in: query
required: false
schema:
type: integer
default: 1000
description: Surrounding search radius in meters (100 to 2000).
- name: cnae
in: query
required: false
schema:
type: string
description: Optional CNAE activity filter (2, 5, or 7 digits).
responses:
'200':
description: '{ ok, pago, cep, preco_brl?, preco_usd?, compra?, relatorio? }'
content:
application/json:
schema:
$ref: '#/components/schemas/RelatorioPonto'
'400':
description: Invalid CEP (length or `00000000`).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'402':
description: One-off payment required (Pix, card, prepaid balance, or x402).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'404':
description: Postal code not found in the database.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'502':
description: Upstream data source unavailable.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
tags:
- Relatorio
components:
schemas:
RelatorioPreco:
type: object
properties:
ok:
type: boolean
description: '`true` when the price lookup succeeded.'
preco_brl:
type: string
description: Amount in BRL (`39.90`).
preco_usd:
type: string
description: Approximate equivalent in USD at the Pix exchange rate.
sku:
type: string
description: Product identifier (`pontofato_relatorio`).
required:
- ok
- preco_brl
- preco_usd
- sku
description: Current price of the one-off Commercial Location Report in BRL and USD.
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
RelatorioPonto:
type: object
properties:
ok:
type: boolean
description: '`true` when the report state or payload was produced.'
pago:
type: boolean
description: '`true` when already purchased or unlocked in this call.'
cep:
type: string
description: 8-digit postal code.
preco_brl:
type: string
description: Price in BRL when not yet purchased.
preco_usd:
type: string
description: Price in USD when not yet purchased.
compra:
type: string
description: POST endpoint to purchase.
relatorio:
type: object
description: CNEFE (`imoveis`), Censo 2022 (`demografia_censo`), `empresas_no_cep` e `entorno`.
required:
- ok
- pago
- cep
description: One-off CEP location report response (purchase status or consolidated report data).
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-service-info:
categories:
- geolocation
- addresses
- data
docs:
homepage: https://pontofato.com/
apiReference: https://pontofato.com/developers
llms: https://pontofato.com/llms.txt
errors: https://pontofato.com/errors
status: https://pontofato.com/status
pricing: https://pontofato.com/api/pricing
billing: https://pontofato.com/api/billing