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

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.