alicerce, s.m.: base sobre a qual tudo mais se apoia

Infra básica de API pra quem constrói no Brasil.

APIs simples para recursos que todo produto brasileiro acaba precisando. As de consulta respondem sem conta nenhuma; o resto usa uma autenticação, um formato de resposta e uma plataforma só.

alicerce (pt-br): the foundation everything else stands on

Basic API infrastructure for building in Brazil.

Simple APIs for the things almost every Brazilian product ends up needing. The lookup ones answer with no account at all; everything else shares one authentication, one response format, one platform.

Em desenvolvimento: endpoints e limites podem mudar sem aviso In active development: endpoints and limits may change without notice
requisiçãorequest
curl https://api.alicercelabs.com.br/api/v1/cep/01310100
resposta, na horaresponse, right away
{
  "success": true,
  "data": {
    "cep": "01310100",
    "logradouro": "Avenida Paulista",
    "bairro": "Bela Vista",
    "municipio": "São Paulo",
    "uf": "SP"
  },
  "meta": { "elapsed_ms": 3 }
}

APIs

APIs

Dados e Brasil

Data & Brazil

CEPSYNC
Endereço a partir do CEP
Address from postal code
Logradouro, bairro, cidade e UF direto da base dos Correios.
Street, neighborhood, city and state from the official postal database.
Ver API →View API →
CNPJSYNC
Consulta de CNPJ
CNPJ lookup
Razão social, situação cadastral, endereço e sócios direto da Receita Federal.
Legal name, registration status, address and partners straight from the Federal Revenue.
Ver API →View API →
IPSYNC
IP Intelligence
IP Intelligence
Geolocalização, ASN/rede, cloud e sinais de VPN/Tor a partir de um endereço IP.
Geolocation, ASN/network, cloud and VPN/Tor signals from an IP address.
Ver API →View API →
MAPSSYNC
Geocodificação e rotas
Geocoding and routes
Endereço ↔ coordenadas, e distância/duração de carro entre dois pontos.
Address ↔ coordinates, and driving distance/duration between two points.
Ver API →View API →
TRUSTSYNC
Score de confiabilidade
Trust score
SSL, blocklist, histórico de malware, idade de domínio e CNPJ compostos num score auditável.
SSL, blocklist, malware history, domain age and CNPJ composed into an auditable score.
Ver API →View API →
CPFSYNC
Validação de CPF
CPF validation
Dígito verificador e região fiscal de emissão a partir de um CPF.
Check digit and issuing fiscal region from a CPF.
Ver API →View API →
IBGESYNC
Regiões, estados e municípios
Regions, states and municipalities
Regiões, estados, municípios e classes CNAE, direto do IBGE.
Regions, states, municipalities and business activity classes, straight from IBGE.
Ver API →View API →
NCMSYNC
Nomenclatura Comum do Mercosul
Mercosul goods nomenclature
Classificação de produtos pra tributação e comércio exterior, direto do Siscomex.
Product classification for taxation and foreign trade, straight from Siscomex.
Ver API →View API →
OMSSYNC
CID-10
ICD-10
Classificação Internacional de Doenças, tradução oficial usada no Brasil.
International Classification of Diseases, the official translation used in Brazil.
Ver API →View API →
REGISTRO BRSYNC
Disponibilidade de domínio .br
.br domain availability
Avalia se um domínio .br está disponível ou já registrado, via RDAP do Registro.br.
Checks whether a .br domain is available or already registered, via Registro.br's RDAP.
Ver API →View API →

SYNC responde na hora, na própria chamada. ASYNC aceita o pedido e roda depois. A resposta é uma confirmação, não o resultado. Cada API documenta isso na sua própria página.

SYNC answers inline, in the same call. ASYNC accepts the request and runs it later. The response is an acknowledgement, not the result. Each API documents this on its own page.

Como usar

How to use it

1chame direto, sem contacall it directly, no account needed
2quer mais cota? crie uma contawant more headroom? create an account
3gere um token e use em cada chamadagenerate a token and send it on every call
# as APIs de consulta (IP, CEP, DNS, email, SSL, confiabilidade, mapas,
# QR code, imagem, fatura) respondem sem token nenhum# the lookup APIs (IP, CEP, DNS, email, SSL, trust, maps,
# QR code, image, invoice) answer with no token at all
curl https://api.alicercelabs.com.br/api/v1/ip/8.8.8.8

# quer uma cota maior, ou as APIs que guardam dado seu (chave-valor, fila,
# banco edge, funções, cron, uptime)? registre → logue → use o token# want more quota, or the APIs that store your own data (key-value, queue,
# edge database, functions, cron, uptime)? register → log in → use the token
curl -X POST https://api.alicercelabs.com.br/api/v1/user/register \
  -d '{"username":"voce","email":"voce@exemplo.com","password":"..."}'

curl -u voce:senha https://api.alicercelabs.com.br/api/v1/user/login

Limites por IP, contados por API: 100/dia · 4/hora sem token nas APIs de consulta; com um token (JWT de login, ou uma API key gerada no painel), 1.000/dia · 41/hora. As APIs que guardam dado por cliente sempre exigem token. Detalhes por endpoint em cada página de API.

Limits are per IP, counted per API: 100/day · 4/hour with no token on the lookup APIs; with a token (login JWT, or an API key generated in the panel), 1,000/day · 41/hour. APIs that store per-client data always require a token. Per-endpoint detail on each API's page.