PontoFato Raio API

The Raio API from PontoFato — 1 operation(s) for raio.

GitHub OpenAPI

Operations 1

GET /api/raio CEPs a N metros de um ponto, com distância e quantos endereços CNEFE cada um… #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pontofato:pontofato-raio-api"
All apis
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.

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.

OpenAPI Specification

pontofato-raio-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pontofato Raio API
  version: '1.0'
  description: 'Operations tagged Raio 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: Raio
paths:
  /api/raio:
    get:
      operationId: raio
      summary: CEPs a N metros de um ponto, com distância e quantos endereços CNEFE cada um…
      description: 'Devolve: { centro, raio_m, total_pontos, ceps[{cep,cep8,uf,pontos,distancia_m,lat,lon}], truncado, 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
      responses:
        '200':
          description: '{ centro, raio_m, total_pontos, ceps[{cep,cep8,uf,pontos,distancia_m,lat,lon}], truncado, fonte, _links }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Raio'
        '400':
          description: Sem centro (`cep` ou `lat`+`lon`), CEP inválido, coordenada inválida ou raio fora de 1–2000.
        '404':
          description: CEP fora da malha, ou nenhum ponto CNEFE no raio; `cobertura` diz quais UFs existem.
        '503':
          description: Origem sqlite fora.
      tags:
      - Raio
    servers:
    - url: https://pontofato.com
components:
  schemas:
    CepNoRaio:
      type: object
      properties:
        cep:
          type: string
          description: CEP formatado `NNNNN-NNN`.
        cep8:
          type: string
          description: CEP com 8 dígitos, pronto para `/api/empresas` e `/api/cep`.
        uf:
          type: string
          description: UF do sqlite que respondeu.
        pontos:
          type: integer
          description: Endereços CNEFE deste CEP dentro do raio.
        distancia_m:
          type: integer
          description: Distância do centro ao ponto mais perto deste CEP, em metros.
        lat:
          type: number
          description: Latitude média dos pontos deste CEP no raio.
        lon:
          type: number
          description: Longitude média dos pontos deste CEP no raio.
      required:
      - cep
      - cep8
      - uf
      - pontos
      - distancia_m
      - lat
      - lon
      description: 'Um CEP dentro do raio: quantos pontos CNEFE dele caem no círculo e a que distância começa.'
    Raio:
      type: object
      properties:
        centro:
          type: object
          description: '`lat`, `lon` e, quando o centro veio de CEP, `cep` formatado.'
        raio_m:
          type: integer
          description: Raio usado, em metros.
        total_pontos:
          type: integer
          description: Endereços CNEFE dentro do raio, somando os CEPs devolvidos.
        ceps:
          type: array
          items:
            $ref: '#/components/schemas/CepNoRaio'
          description: Até 300 CEPs, ordenados por distância.
        truncado:
          type: boolean
          description: '`true` se havia mais de 300 CEPs no raio — diminua o raio.'
        fonte:
          type: string
          description: Sempre `cnefe-2022`.
        _links:
          type: object
          description: '`self` e `vizinhanca` com o mesmo centro e raio.'
      required:
      - centro
      - raio_m
      - total_pontos
      - ceps
      - truncado
      - fonte
      - _links
      description: CEPs a N metros de um ponto, do mais perto ao mais longe.
    CepNoRaio_2:
      type: object
      properties:
        cep:
          type: string
          description: CEP formatado `NNNNN-NNN`.
        cep8:
          type: string
          description: CEP with 8 digits, ready for `/api/empresas` and `/api/cep`.
        uf:
          type: string
          description: Reference state of the result.
        pontos:
          type: integer
          description: Addresses of this CEP inside the radius.
        distancia_m:
          type: integer
          description: Distance from the center to the nearest point of this CEP, in meters.
        lat:
          type: number
          description: Average latitude of the points of this CEP in the radius.
        lon:
          type: number
          description: Average longitude of the points of this CEP in the radius.
      required:
      - cep
      - cep8
      - uf
      - pontos
      - distancia_m
      - lat
      - lon
      description: 'A CEP inside the radius: how many of its addresses fall in the circle and at what distance it starts.'
    Raio_2:
      type: object
      properties:
        centro:
          type: object
          description: '`lat`, `lon` and, when the center came from a CEP, the formatted `cep`.'
        raio_m:
          type: integer
          description: Radius used, in meters.
        total_pontos:
          type: integer
          description: Addresses inside the radius, adding up the returned CEPs.
        ceps:
          type: array
          items:
            $ref: '#/components/schemas/CepNoRaio_2'
          description: Up to 300 CEPs, sorted by distance.
        truncado:
          type: boolean
          description: '`true` if there were more than 300 CEPs in the radius: reduce the radius.'
        fonte:
          type: string
          description: Identification and attribution of the address reference.
        _links:
          type: object
          description: '`self` and `vizinhanca` with the same center and radius.'
      required:
      - centro
      - raio_m
      - total_pontos
      - ceps
      - truncado
      - fonte
      - _links
      description: CEPs within N meters of a point, from the nearest to the farthest.
    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
  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