Book Search 🔍🕵🏻

Book Search 🔍🕵🏻 · GPT Actions

Search Books

Search for books using the Google Books API.

  • GET /volumesSearch for books
原始 API 定义
{
  "openapi": "3.0.0",
  "info": {
    "title": "Search Books",
    "description": "Search for books using the Google Books API.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://www.googleapis.com/books/v1"
    }
  ],
  "paths": {
    "/volumes": {
      "get": {
        "summary": "Search for books",
        "operationId": "searchBooks",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "The search query for books",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "maxResults",
            "in": "query",
            "description": "Maximum number of results to return",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response"
          }
        }
      }
    }
  }
}