Public Domain Books API
EntretenimientoMANTENIDA1 token / llamada

Public Domain Books API

Los 78.037 libros electrónicos del Proyecto Gutenberg en 56 idiomas con búsqueda de texto completo y enlaces de descarga

La biblioteca libre del mundo, buscable. El catalogo completo de Project Gutenberg — 78.037 libros de dominio publico en 56 idiomas — con busqueda de texto completo sobre titulos, autores Y materias de la Biblioteca del Congreso ('pride and prejudice' → Gutenberg #1342; 'detective fiction' → 1.190 libros), filtros por autor e idioma (Julio Verne en frances: 47 obras), autores en formato legible ('Austen, Jane, 1775-1817' se convierte en 'Jane Austen'), materias, clases LoC y estanterias curadas. Cada libro incluye enlaces listos para usar: la pagina de Gutenberg, descargas en texto plano y EPUB, y una imagen de portada — todo desde el layout estable de cache de Gutenberg (verificado en vivo). Un endpoint aleatorio (opcionalmente por idioma) alimenta funciones de libro-del-dia, y el detalle incluye mas obras del mismo autor. Apps de lectura, dispositivos e-ink, plataformas educativas, herramientas de idiomas, juegos literarios y corpus de entrenamiento de IA — los clasicos, a una llamada de distancia.

Cada llamada necesita la cabecera X-Api-Key. Una clave gratuita incluye 500 tokens al mes, sin tarjeta. 1 token por llamada, así que el plan gratuito cubre unas 500 llamadas al mes.

Sin tarjeta de créditoAcceso a más de 125 APIsCancela cuando quieras
response.json
{
  "ok": true,
  "book": {
    "id": 2701,
    "title": "Moby Dick; Or, The Whale",
    "authors": "Melville, Herman, 1819-1891",
    "first_author": "Herman Melville",
    "language": "en",
    "issued": "2001-07-01",
    "subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
    "locc": "PS",
    "bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
      "text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
      "epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
    }
  },
  "more_by_author": [
    {
      "id": 15,
      "title": "Moby-Dick; or, The Whale",
      "language": "en"
    },
    {
      "id": 1900,
      "title": "Typee: A Romance of the South Seas",
      "language": "en"
    },
    {
      "id": 2489,
      "title": "Moby Dick; Or, The Whale",
      "language": "en"
    },
    {
      "id": 2694,
      "title": "I and My Chimney",
      "language": "en"
    },
    {
      "id": 4045,
      "title": "Omoo: Adventures in the South Seas",
      "language": "en"
    },
    {
      "id": 8118,
      "title": "Redburn. His First Voyage Being the Sailor Boy Confessions and Reminiscences of the Son-Of-A-Gentleman in the Merchant Navy",
      "language": "en"
    },
    {
      "id": 10712,
      "title": "White Jacket; Or, The World on a Man-of-War",
      "language": "en"
    },
    {
      "id": 11231,
      "title": "Bartleby, the Scrivener: A Story of Wall-Street",
      "language": "en"
    },
    {
      "id": 12384,
      "title": "Battle-Pieces and Aspects of the War",
      "language": "en"
    },
    {
      "id": 12841,
      "title": "John Marr and Other Poems",
      "language": "en"
    }
  ],
  "note": "Download links are constructed from Gutenberg's stable cache layout; a rare title may lack a given format."
}
Listo para producción
Infraestructura probada en producción con un SLA de disponibilidad del 99,9 %. Límites de uso generosos y respuestas consistentes.
Integración sencilla
REST + JSON estándar. Funciona con cualquier cliente HTTP. Fragmentos de código listos para copiar en 4 lenguajes.
Una clave, más de 125 APIs
Tu suscripción a DataAndAPIs desbloquea todas las APIs de la plataforma: anime, finanzas, deportes y más.

Casos de uso de Public Domain Books API

  • Construir un catálogo de lector electrónico gratuito con búsqueda por título, autor y tema.

  • Ofrecer listas de lectura de dominio público por tema, idioma o autor.

  • Vincular herramientas de aula y biblioteca con descargas gratuitas de libros.

  • Obtener un libro de dominio público aleatorio para funciones de descubrimiento.

Endpoints de Public Domain Books API

Todos los endpoints con sus parámetros y una respuesta de ejemplo real.

GETBook Detail

https://api-books.dataandapis.com/v1/books/{id}

Parámetros de ruta

ParámetroEjemplo
id2701Obligatorio

Petición de ejemplo

curl "https://api-books.dataandapis.com/v1/books/2701" \
  -H "X-Api-Key: YOUR_API_KEY"
Respuesta de ejemplo
{
  "ok": true,
  "book": {
    "id": 2701,
    "title": "Moby Dick; Or, The Whale",
    "authors": "Melville, Herman, 1819-1891",
    "first_author": "Herman Melville",
    "language": "en",
    "issued": "2001-07-01",
    "subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
    "locc": "PS",
    "bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
      "text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
      "epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
    }
  },
  "more_by_author": [
    {
      "id": 15,
      "title": "Moby-Dick; or, The Whale",
      "language": "en"
    },
    {
      "id": 1900,
      "title": "Typee: A Romance of the South Seas",
…
Ver la respuesta completa
{
  "ok": true,
  "book": {
    "id": 2701,
    "title": "Moby Dick; Or, The Whale",
    "authors": "Melville, Herman, 1819-1891",
    "first_author": "Herman Melville",
    "language": "en",
    "issued": "2001-07-01",
    "subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
    "locc": "PS",
    "bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
      "text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
      "epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
    }
  },
  "more_by_author": [
    {
      "id": 15,
      "title": "Moby-Dick; or, The Whale",
      "language": "en"
    },
    {
      "id": 1900,
      "title": "Typee: A Romance of the South Seas",
      "language": "en"
    },
    {
      "id": 2489,
      "title": "Moby Dick; Or, The Whale",
      "language": "en"
    },
    {
      "id": 2694,
      "title": "I and My Chimney",
      "language": "en"
    },
    {
      "id": 4045,
      "title": "Omoo: Adventures in the South Seas",
      "language": "en"
    },
    {
      "id": 8118,
      "title": "Redburn. His First Voyage Being the Sailor Boy Confessions and Reminiscences of the Son-Of-A-Gentleman in the Merchant Navy",
      "language": "en"
    },
    {
      "id": 10712,
      "title": "White Jacket; Or, The World on a Man-of-War",
      "language": "en"
    },
    {
      "id": 11231,
      "title": "Bartleby, the Scrivener: A Story of Wall-Street",
      "language": "en"
    },
    {
      "id": 12384,
      "title": "Battle-Pieces and Aspects of the War",
      "language": "en"
    },
    {
      "id": 12841,
      "title": "John Marr and Other Poems",
      "language": "en"
    }
  ],
  "note": "Download links are constructed from Gutenberg's stable cache layout; a rare title may lack a given format."
}

GETData Sources

https://api-books.dataandapis.com/v1/sources

Este endpoint no recibe parámetros.

Petición de ejemplo

curl "https://api-books.dataandapis.com/v1/sources" \
  -H "X-Api-Key: YOUR_API_KEY"
Respuesta de ejemplo
{
  "ok": true,
  "sources": [
    {
      "slug": "gutenberg",
      "name": "Project Gutenberg catalog",
      "publisher": "Project Gutenberg",
      "licence": "public domain works; metadata feed",
      "source_url": "https://www.gutenberg.org/",
      "file_url": "https://www.gutenberg.org/cache/epub/feeds/pg_catalog.csv.gz",
      "cadence": "catalog feed regenerated daily; occasional re-scrape",
      "record_count": 78037,
      "retrieved_at": "2026-09-06"
    }
  ]
}

GETRandom Book

https://api-books.dataandapis.com/v1/books/random

Parámetros de consulta

ParámetroEjemplo
languageesOpcional

Petición de ejemplo

curl "https://api-books.dataandapis.com/v1/books/random?language=es" \
  -H "X-Api-Key: YOUR_API_KEY"
Respuesta de ejemplo
{
  "ok": true,
  "book": {
    "id": 48946,
    "title": "Gloria (novela completa)",
    "authors": "Pérez Galdós, Benito, 1843-1920",
    "first_author": "Benito Pérez Galdós",
    "language": "es",
    "issued": "2015-05-12",
    "subjects": "Spain -- Fiction; Catholic Church -- Spain -- Clergy -- Fiction",
    "locc": "PQ",
    "bookshelves": "Category: Novels",
    "links": {
      "gutenberg_url": "https://www.gutenberg.org/ebooks/48946",
      "text": "https://www.gutenberg.org/cache/epub/48946/pg48946.txt",
      "epub": "https://www.gutenberg.org/cache/epub/48946/pg48946-images.epub",
      "cover": "https://www.gutenberg.org/cache/epub/48946/pg48946.cover.medium.jpg"
    }
  }
}

GETSearch Books

https://api-books.dataandapis.com/v1/books

Parámetros de consulta

ParámetroEjemplo
authorOpcional
languageOpcional
page1Opcional
qpride and prejudiceOpcional

Petición de ejemplo

curl "https://api-books.dataandapis.com/v1/books?page=1&q=pride%20and%20prejudice" \
  -H "X-Api-Key: YOUR_API_KEY"
Respuesta de ejemplo
{
  "ok": true,
  "page": 1,
  "limit": 5,
  "total": 3,
  "total_pages": 1,
  "books": [
    {
      "id": 1342,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817",
      "first_author": "Jane Austen",
      "language": "en",
      "issued": "1998-06-01",
      "subjects": "England -- Fiction; Young women -- Fiction; Love stories; Sisters -- Fiction; Domestic fiction; Courtship -- Fiction; Social classes -- Fiction",
      "locc": "PR",
      "bookshelves": "Best Books Ever Listings; Harvard Classics; Category: Romance; Category: Novels; Category: Classics of Literature; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/1342",
        "text": "https://www.gutenberg.org/cache/epub/1342/pg1342.txt",
        "epub": "https://www.gutenberg.org/cache/epub/1342/pg1342-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/1342/pg1342.cover.medium.jpg"
      }
    },
    {
      "id": 42671,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817; Chapman, R. W. (Robert William), 1881-1960 [Editor]",
…
Ver la respuesta completa
{
  "ok": true,
  "page": 1,
  "limit": 5,
  "total": 3,
  "total_pages": 1,
  "books": [
    {
      "id": 1342,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817",
      "first_author": "Jane Austen",
      "language": "en",
      "issued": "1998-06-01",
      "subjects": "England -- Fiction; Young women -- Fiction; Love stories; Sisters -- Fiction; Domestic fiction; Courtship -- Fiction; Social classes -- Fiction",
      "locc": "PR",
      "bookshelves": "Best Books Ever Listings; Harvard Classics; Category: Romance; Category: Novels; Category: Classics of Literature; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/1342",
        "text": "https://www.gutenberg.org/cache/epub/1342/pg1342.txt",
        "epub": "https://www.gutenberg.org/cache/epub/1342/pg1342-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/1342/pg1342.cover.medium.jpg"
      }
    },
    {
      "id": 42671,
      "title": "Pride and Prejudice",
      "authors": "Austen, Jane, 1775-1817; Chapman, R. W. (Robert William), 1881-1960 [Editor]",
      "first_author": "Jane Austen",
      "language": "en",
      "issued": "2013-05-09",
      "subjects": "England -- Fiction; Young women -- Fiction; Love stories; Sisters -- Fiction; Domestic fiction; Courtship -- Fiction; Social classes -- Fiction",
      "locc": "PR",
      "bookshelves": "Best Books Ever Listings; Category: Romance; Category: Novels; Category: Classics of Literature; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/42671",
        "text": "https://www.gutenberg.org/cache/epub/42671/pg42671.txt",
        "epub": "https://www.gutenberg.org/cache/epub/42671/pg42671-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/42671/pg42671.cover.medium.jpg"
      }
    },
    {
      "id": 37431,
      "title": "Pride and Prejudice, a play founded on Jane Austen's novel",
      "authors": "MacKaye, Steele, Mrs., 1845-1924; Austen, Jane, 1775-1817",
      "first_author": "Steele MacKaye",
      "language": "en",
      "issued": "2011-09-15",
      "subjects": "England -- Drama; Courtship -- Drama; Young women -- Drama; Social classes -- Drama; Domestic drama; Sisters -- Drama; Bennet, Elizabeth (Fictitious character) -- Drama",
      "locc": "PR",
      "bookshelves": "Category: Plays/Films/Dramas; Category: British Literature",
      "links": {
        "gutenberg_url": "https://www.gutenberg.org/ebooks/37431",
        "text": "https://www.gutenberg.org/cache/epub/37431/pg37431.txt",
        "epub": "https://www.gutenberg.org/cache/epub/37431/pg37431-images.epub",
        "cover": "https://www.gutenberg.org/cache/epub/37431/pg37431.cover.medium.jpg"
      }
    }
  ]
}

De dónde salen los datos

Fuente
Catálogo del Proyecto Gutenberg (dominio público).
Actualización
Resincronizado desde el feed del catálogo de Gutenberg.

Una instalación. Todos los endpoints.

No necesitas SDKs propietarios. Funciona con cualquier cliente HTTP. Elige tu lenguaje y pega el código.

3lenguajes
4endpoints
RESTarquitectura
1clave para todas las APIs
  • Respuestas totalmente tipadas — autocompletado en tu IDE
  • Sigue la API al día — los nuevos endpoints llegan el mismo día
  • Una sola clave funciona en más de 125 APIs de la plataforma
import axios from 'axios';

const { data } = await axios.get(
  'https://api-books.dataandapis.com/v1/books/{id}',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Public Domain Books API · X-Api-Key

Explora los endpoints

Explora los parámetros de solicitud e inspecciona ejemplos de respuesta en vivo.

Endpoints disponibles

Parámetros de la solicitud

URL de la API

Encabezados

X-Api-Key

Parámetros de ruta

id
import axios from 'axios';

const url = 'https://api-books.dataandapis.com/v1/books/{id}';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

Una suscripción. Todas las APIs.

Los tokens desbloquean esta API y más de 20 más en DataAndAPIs. Cambia de API cuando quieras.

GRATIS

$0/mes

500 tokens / mes

  • Acceso a todas las APIs
  • Tokens se renuevan mensualmente
  • Soporte comunitario
Comienza gratis
Más Popular

STARTER

$6.99/mes

25.000 tokens / mes

  • Acceso a todas las APIs
  • Tokens se renuevan mensualmente
  • Soporte por email
Suscribirse

PRO

$24.99/mes

100.000 tokens / mes

  • Acceso a todas las APIs
  • Tokens se renuevan mensualmente
  • Soporte por email prioritario
Suscribirse

ULTRA

$99.99/mes

1.000.000 tokens / mes

  • Acceso a todas las APIs
  • Tokens se renuevan mensualmente
  • Soporte prioritario
Suscribirse

¿Necesitas mayor volumen, infraestructura dedicada o un contrato personalizado? Habla con ventas →

Preguntas sobre Public Domain Books API

Lanza Public Domain Books API esta tarde.

500 tokens gratis. Sin tarjeta. Y más de 125 APIs más con la misma clave.