Book Sage

Book Sage · GPT-Aktionen

Get Book data

Retrieves library data about books from OpenLibrary

  • GET /search.jsonFind books

    Search query. Can take any OpenLibrary query string

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Get Book data",
    "description": "Retrieves library data about books from OpenLibrary",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://openlibrary.org"
    }
  ],
  "paths": {
    "/search.json": {
      "get": {
        "description": "Search query. Can take any OpenLibrary query string",
        "operationId": "Find books",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "The OpenLibrary search term to query by",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "The fields to get back from solr. Use the special value * to get all fields (although be prepared for a very large response!). To fetch availability data from archive.org, add the special value, availability. Example: /search.json?q=harry%20potter&fields=*,availability&limit=1. This will fetch the availability data of the first item in the `ia` field.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "You can sort the results by various facets such as new, old, random, or key (which sorts as a string, not as the number stored in the string). The default is to sort by relevance.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}