Book Finder
Book Finder · Acciones GPT
Open Library Search API
GET /search.jsonSearch for books in Open Library
Esquema original API
{
"openapi": "3.0.0",
"info": {
"title": "Open Library Search API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://openlibrary.org",
"description": "Base URL for Open Library API"
}
],
"paths": {
"/search.json": {
"get": {
"summary": "Search for books in Open Library",
"operationId": "searchBooks",
"parameters": [
{
"in": "query",
"name": "q",
"schema": {
"type": "string"
},
"description": "Search query"
},
{
"in": "query",
"name": "fields",
"schema": {
"type": "string"
},
"description": "Fields to return"
},
{
"in": "query",
"name": "sort",
"schema": {
"type": "string"
},
"description": "Sort order"
},
{
"in": "query",
"name": "lang",
"schema": {
"type": "string"
},
"description": "Language"
},
{
"in": "query",
"name": "offset",
"schema": {
"type": "integer"
},
"description": "Offset for results"
},
{
"in": "query",
"name": "limit",
"schema": {
"type": "integer"
},
"description": "Number of results to return"
},
{
"in": "query",
"name": "page",
"schema": {
"type": "integer"
},
"description": "Page number for results"
}
],
"responses": {
"200": {
"description": "A list of books matching the query",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"docs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Book"
}
}
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Book": {
"type": "object",
"properties": {
"cover_i": {
"type": "integer"
},
"title": {
"type": "string"
},
"author_name": {
"type": "array",
"items": {
"type": "string"
}
},
"first_publish_year": {
"type": "integer"
}
}
}
}
}
}