{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Books Scraper",
    "description": "Extract data from Google Books. Search for Books, Magazines and Newspapers, search by titles, author, subject, language, publish date, ISBNs, or keywords to preform a fuzzy search, result includes book title, description, book link url, authors, publication date.",
    "version": "0.0",
    "x-build-id": "EKrPQvSGnW9Ecwdcu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/primeapi~google-books-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-primeapi-google-books-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/primeapi~google-books-scraper/runs": {
      "post": {
        "operationId": "runs-sync-primeapi-google-books-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/primeapi~google-books-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-primeapi-google-books-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "maxItems"
        ],
        "properties": {
          "search": {
            "title": "Fuzzy Search",
            "type": "string",
            "description": "Enter keywords or phrases to perform a fuzzy search across the content. Fuzzy search allows for approximate matches, making it easier to find relevant results even if the exact terms are not known."
          },
          "title": {
            "title": "Exact Search",
            "type": "string",
            "description": "Enter the exact title or part of the title of the book or publication you are looking for. This search will return results that match the title provided. Note that if this field is set, the Fuzzy Search option will be ignored."
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Max Items resulted form this run. This indicate how many items to scrape."
          },
          "language": {
            "title": "language",
            "enum": [
              "",
              "lang_af",
              "lang_ar",
              "lang_hy",
              "lang_be",
              "lang_bg",
              "lang_ca",
              "lang_zh-CN",
              "lang_zh-TW",
              "lang_hr",
              "lang_cs",
              "lang_da",
              "lang_nl",
              "lang_en",
              "lang_eo",
              "lang_et",
              "lang_tl",
              "lang_fi",
              "lang_fr",
              "lang_de",
              "lang_el",
              "lang_iw",
              "lang_hi",
              "lang_hu",
              "lang_is",
              "lang_id",
              "lang_it",
              "lang_ja",
              "lang_ko",
              "lang_lv",
              "lang_lt",
              "lang_no",
              "lang_fa",
              "lang_pl",
              "lang_pt",
              "lang_ro",
              "lang_ru",
              "lang_sr",
              "lang_sk",
              "lang_sl",
              "lang_es",
              "lang_sw",
              "lang_sv",
              "lang_th",
              "lang_tr",
              "lang_uk",
              "lang_vi"
            ],
            "type": "string",
            "description": "Select the language in which item is written in. This filter helps narrow down results to publications available in the specified language.",
            "default": ""
          },
          "startDate": {
            "title": "Start Date",
            "type": "string",
            "description": "Select the start date to filter content published after this date."
          },
          "endDate": {
            "title": "End Date",
            "type": "string",
            "description": "Select the end date to filter content published before this date."
          },
          "author": {
            "title": "Author",
            "type": "string",
            "description": "Enter the name of the author to search for books or publications written by them. This search will return results that match the author name provided."
          },
          "publisher": {
            "title": "Publisher",
            "type": "string",
            "description": "Enter the name of the publisher to search for books or publications released by them. This search will return results that match the publisher name provided."
          },
          "subject": {
            "title": "Subject",
            "type": "string",
            "description": "Enter the subject or topic to search for books or publications related to it. This search will return results that match the subject provided."
          },
          "contentType": {
            "title": "Content Type",
            "enum": [
              "",
              "BOOKS",
              "MAGAZINES",
              "JOURNALS"
            ],
            "type": "string",
            "description": "Select the type of content you want to search for. Options include books, magazines, and journals.",
            "default": "BOOKS"
          },
          "isbn": {
            "title": "ISBN",
            "type": "string",
            "description": "Enter the ISBN to search for a specific book by its unique identifier. ISBNs are typically 10 or 13 digits long. e.g. 0060930314"
          },
          "issn": {
            "title": "ISSN",
            "type": "string",
            "description": "Enter the ISSN to search for specific magazines or journals by their unique identifier. ISSNs are 8 digits long. e.g. 0161-7370"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}