ISBN
Consulta de ISBN
Título, autores, editora e capa de um livro a partir do ISBN-10 ou ISBN-13.
ISBN lookup
Title, authors, publisher and cover from a book's ISBN-10 or ISBN-13.
SYNC resposta na mesma chamada answers in the same call
Endpoints
Endpoints
/api/v1/isbn/{isbn}
busca os metadados de um livro pelo ISBN
looks up a book's metadata by ISBN
Parâmetros
Parameters
| Nome | Name | Onde | In | Descrição | Description |
|---|---|---|---|---|---|
isbn |
path | ISBN-10 ou ISBN-13, com ou sem hífen (9788545702870 ou 978-85-457-0287-0) — precisa passar no dígito verificador |
ISBN-10 or ISBN-13, with or without hyphens (9788545702870 or 978-85-457-0287-0) — must pass the check-digit algorithm |
Exemplo
Example
curl https://api.alicercelabs.com.br/api/v1/isbn/9788545702870 \
-H "Authorization: Bearer <token>"
{
"success": true,
"data": {
"isbn": "9788545702870",
"titulo": "Akira vol. 1",
"subtitulo": "Part 1 - Tetsuo",
"autores": ["Katsuhiro Ōtomo"],
"editora": "Editora JBC",
"ano_publicacao": "Jun, 2017",
"paginas": 362,
"capa_url": "https://covers.openlibrary.org/b/id/11890190-L.jpg",
"meta": { "fonte": "open-library" }
},
"meta": { "elapsed_ms": 210, "request_id": "..." }
}
meta.fonte dentro de data diz qual das duas fontes respondeu ("open-library" ou "brasilapi") — ver "Duas fontes" abaixo.
meta.fonte inside data says which of the two sources answered ("open-library" or "brasilapi") — see "Two sources" below.
Erros possíveis
Possible errors
| Status | Motivo | Reason |
|---|---|---|
| 400 | ISBN inválido: não passa no dígito verificador (módulo 11 com X pro ISBN-10, módulo 10 tipo EAN pro ISBN-13) | invalid ISBN: fails the check-digit algorithm (modulo 11 with X for ISBN-10, modulo 10 EAN-style for ISBN-13) |
| 401 | token ausente ou inválido | missing or invalid token |
| 404 | livro não encontrado — as duas fontes concordam | book not found — both sources agree |
| 429 | limite de taxa excedido | rate limit exceeded |
| 503 | as duas fontes falharam | both sources failed |
Duas fontes
Two sources
Primeiro a Open Library, gratuita, sem chave, cobre livros publicados no Brasil e no mundo. Se ela não encontrar o ISBN, a chamada cai pra BrasilAPI, que mistura outros provedores, inclusive a CBL (a fonte "oficial" brasileira, paga e de acesso restrito) — o fallback aqui cobre lacuna real de cobertura entre provedores, não só disponibilidade.
First, Open Library, free, no key, covers books published in Brazil and worldwide. If it doesn't find the ISBN, the call falls through to BrasilAPI, which mixes in other providers, including CBL (the Brazilian "official" source, paid and access-restricted) — the fallback here covers a real coverage gap between providers, not just availability.
Usando o SDK
Using the SDK
SDKs oficiais: Go · Python · JavaScript.
Official SDKs: Go · Python · JavaScript.
Buscar livro por ISBN
Look up a book by ISBN
import (
"context"
"fmt"
alicercelabs "github.com/alicercelabs/alicercesdk-go"
)
client := alicercelabs.New("alk_...") // ou um token JWT de login/register
ctx := context.Background()
book, err := client.ISBN.Get(ctx, "9788545702870")
if err != nil {
panic(err)
}
fmt.Println(book.Titulo, book.Meta.Fonte)from alicercelabs import AlicerceLabs
client = AlicerceLabs(api_key="alk_...") # ou um token JWT de login/register
book = client.isbn.get("9788545702870")
print(book["titulo"], book["meta"]["fonte"])import { AlicerceLabs } from "alicercesdk-javascript";
const client = new AlicerceLabs("alk_..."); // ou um token JWT de login/register
const book = await client.isbn.get("9788545702870");
console.log(book.titulo, book.meta.fonte);Limites
Limits
100/dia · 4/hora sem token, por IP chamador; com token (JWT de login ou API key gerada no painel), 1.000/dia · 41/hora. Resposta em cache por 30 dias — metadado de livro publicado não muda.
100/day · 4/hour without a token, per calling IP; with one (a login JWT or an API key generated in the panel), 1,000/day · 41/hour. Response cached for 30 days — a published book's metadata doesn't change.