{
  "openapi": "3.0.1",
  "info": {
    "title": "Books Scraper — Titles, Authors, ISBN, Editions (Open Library)",
    "description": "Search books by title, author, ISBN or subject: title, authors, first publish year, editions count, ISBNs, subjects, languages, cover image, Open Library and Goodreads ids; ISBN lookup with publisher, pages and description. No API key.",
    "version": "0.1",
    "x-build-id": "mxAKbuqGAOOF9GTLH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yadroo~openlibrary-books/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yadroo-openlibrary-books",
        "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/yadroo~openlibrary-books/runs": {
      "post": {
        "operationId": "runs-sync-yadroo-openlibrary-books",
        "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/yadroo~openlibrary-books/run-sync": {
      "post": {
        "operationId": "run-sync-yadroo-openlibrary-books",
        "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": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "Queries, ISBNs or Open Library keys",
            "type": "array",
            "description": "One lookup per entry. In auto mode the type is detected: ISBN-10/13 → edition lookup; OL…W / OL…M / OL…A keys (or their URLs) → work / edition / author; anything else → search. Force a type with `mode`.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Lookup mode",
            "enum": [
              "auto",
              "search",
              "isbn",
              "author",
              "subject",
              "work"
            ],
            "type": "string",
            "description": "`author`: finds the best-matching author and lists their works. `subject`: browse a subject like `entrepreneurship`, `science_fiction`, `machine learning` (spaces are fine). `work`: fetch a known OL…W / OL…M key.",
            "default": "auto"
          },
          "searchField": {
            "title": "Search field",
            "enum": [
              "any",
              "title",
              "author",
              "subject",
              "publisher",
              "place",
              "person",
              "isbn"
            ],
            "type": "string",
            "description": "Restrict text search to one field (search mode). E.g. searchField=publisher + query \"O'Reilly\" lists a publisher's catalogue.",
            "default": "any"
          },
          "limit": {
            "title": "Results per query",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max works per query (search / author / subject modes).",
            "default": 5
          },
          "offset": {
            "title": "Offset",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Skip the first N results (paging across runs).",
            "default": 0
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "new",
              "old",
              "rating",
              "editions",
              "readinglog",
              "want_to_read",
              "currently_reading",
              "already_read",
              "title",
              "scans",
              "random"
            ],
            "type": "string",
            "description": "Open Library search sort. Subject mode orders only by most editions (relevance / editions), new or old; other sorts are refused in subject mode — use mode search with searchField subject for them.",
            "default": "relevance"
          },
          "language": {
            "title": "Language (MARC code)",
            "enum": [
              "",
              "eng",
              "spa",
              "fre",
              "ger",
              "ita",
              "por",
              "rus",
              "chi",
              "jpn",
              "kor",
              "ara",
              "dut",
              "swe",
              "pol",
              "tur",
              "per",
              "heb",
              "hin",
              "ukr",
              "cze",
              "dan",
              "fin",
              "nor",
              "hun",
              "gre",
              "rum",
              "kaz",
              "uzb",
              "kir",
              "tgk",
              "aze",
              "geo",
              "arm",
              "mon",
              "bel",
              "tat",
              "ind",
              "may",
              "vie",
              "tha",
              "ben",
              "urd",
              "tam",
              "tel",
              "mar",
              "lat",
              "cat",
              "bul",
              "hrv",
              "srp",
              "slo",
              "slv",
              "lit",
              "lav",
              "est",
              "ice",
              "afr",
              "swa",
              "tgl"
            ],
            "type": "string",
            "description": "Only works with an edition in this language (MARC 21 3-letter code). Search and author modes; not available in subject mode (Open Library's subjects API has no language filter). Does not apply to ISBN/key lookups.",
            "default": ""
          },
          "yearFrom": {
            "title": "First published from (year)",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest first-publication year (search: first_publish_year; subject: published_in)."
          },
          "yearTo": {
            "title": "First published to (year)",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest first-publication year, inclusive."
          },
          "ebookOnly": {
            "title": "E-book available only",
            "type": "boolean",
            "description": "Only works with a scanned/borrowable copy on archive.org (has_fulltext).",
            "default": false
          },
          "includeAvailability": {
            "title": "Include lending availability",
            "type": "boolean",
            "description": "Add archive.org lending status per work (borrowable / readable / previewable). Search mode only.",
            "default": false
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Fetch the work record for its description/blurb and external links (+1 request per work; ISBN, edition and work lookups always include the description).",
            "default": false
          },
          "includeEditions": {
            "title": "Include editions list",
            "type": "boolean",
            "description": "List editions (ISBN, publisher, year, language, format) of each work (+1 request per work).",
            "default": false
          },
          "maxEditions": {
            "title": "Max editions per work",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Cap for includeEditions (editionsTotal always holds the real count).",
            "default": 10
          },
          "includeAuthorDetails": {
            "title": "Include author details",
            "type": "boolean",
            "description": "Add authorsDetailed: bio, birth/death dates, Wikipedia/Wikidata/VIAF ids, photo (+1 request per distinct author, cached within the run).",
            "default": false
          },
          "coverSize": {
            "title": "Cover size",
            "enum": [
              "S",
              "M",
              "L"
            ],
            "type": "string",
            "description": "Size variant for coverUrl.",
            "default": "L"
          },
          "maxSubjects": {
            "title": "Max subjects per work",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Cap the subjects list (0 = omit).",
            "default": 15
          },
          "dedupe": {
            "title": "Deduplicate works across queries",
            "type": "boolean",
            "description": "Save each work/edition once even if several queries return it.",
            "default": true
          },
          "fields": {
            "title": "Output fields",
            "type": "array",
            "description": "Keep only these output fields, in this order, e.g. [\"title\",\"authors\",\"isbn13\",\"firstPublishYear\",\"url\"]. `query` is always kept (first, unless you place it). Letter case, snake_case and Open Library's own names (author_name, cover_i …) are read as the field; unknown names are left out and named in the status. Rows that have none of the listed fields (e.g. the author row for [\"title\"]) are not saved. Empty = all fields.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}