{
  "openapi": "3.0.1",
  "info": {
    "title": "Goodreads Books Scraper - Lists, Shelves, Genres",
    "description": "Get Goodreads books from lists, shelves, genres or book links: title, author, rating, number of ratings, series, genres, pages, ISBN, description and more. One row per book. No start fee, you pay per book returned.",
    "version": "0.1",
    "x-build-id": "oi2xAAzaGvBB0oVZZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~goodreads-books-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-goodreads-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/neverempty~goodreads-books-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-goodreads-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/neverempty~goodreads-books-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-goodreads-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",
        "properties": {
          "lists": {
            "title": "Lists",
            "type": "array",
            "description": "One Goodreads list per line: a list link (https://www.goodreads.com/list/show/1.Best_Books_Ever) or its number. Every book on the list comes back as a row, in list order, up to Books per source. Leave Lists, Shelves, Genres and Books empty to read the first 10 books of an example list.",
            "items": {
              "type": "string"
            }
          },
          "shelves": {
            "title": "Shelves",
            "type": "array",
            "description": "Optional. One shelf per line: a shelf name such as fantasy or a link (https://www.goodreads.com/shelf/show/fantasy). A public shelf page shows its first 50 books.",
            "items": {
              "type": "string"
            }
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "Optional. One genre per line: a name such as fantasy, science-fiction or romance, or a link (https://www.goodreads.com/genres/fantasy). Returns the most read or the new release books of the genre, see Genre feed.",
            "items": {
              "type": "string"
            }
          },
          "genreFeed": {
            "title": "Genre feed",
            "enum": [
              "most_read",
              "new_releases",
              "both"
            ],
            "type": "string",
            "description": "Which books to read for each genre: the most read this week, the new releases, or both.",
            "default": "most_read"
          },
          "books": {
            "title": "Books",
            "type": "array",
            "description": "Optional. One book per line: a book link (https://www.goodreads.com/book/show/2767052-the-hunger-games) or the Goodreads book number (2767052). Each book comes back as one row.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include full book details",
            "type": "boolean",
            "description": "On: every row has the full title, series, description, genres, page count, publisher, ISBN, language, awards, the rating distribution and the first publication date. Off: faster rows from the list or shelf page only (title, author, rating, number of ratings, cover, list rank). Genre books always include details.",
            "default": true
          },
          "maxItemsPerSource": {
            "title": "Books per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many books to return for each list, shelf or genre (1 to 10000). A list shows up to 10000 books, a shelf up to 50, a genre feed up to 100.",
            "default": 100
          },
          "maxItems": {
            "title": "Max books in total",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stops the run after this many books (1 to 50000).",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only books not returned before",
            "type": "boolean",
            "description": "On: books that an earlier run with the same State name already returned are skipped and not charged. Use it for a daily or weekly run.",
            "default": false
          },
          "stateName": {
            "title": "State name",
            "type": "string",
            "description": "Optional. Name that keeps the memory of returned books for Only books not returned before. Use the same name in every run of one schedule, and a different name for a different schedule."
          },
          "skipBookIds": {
            "title": "Skip books",
            "type": "array",
            "description": "Optional. Goodreads book numbers or links that you already have. They are not returned and not charged.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Leave empty to use the default Apify proxy. Set your own proxy only if you need a specific one."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}