{
  "openapi": "3.0.1",
  "info": {
    "title": "Literal Club Books & Reviews Scraper",
    "description": "Collect public Literal Club book metadata and public profile reviews. Search books, look up ISBNs, and export real reviews and ratings. Uses free unauthenticated public read operations; no paid data API.",
    "version": "0.7",
    "x-build-id": "DxOuVG2emzRZPmfXj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/thescrapelab~literal-club-book-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-thescrapelab-literal-club-book-reviews-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/thescrapelab~literal-club-book-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-thescrapelab-literal-club-book-reviews-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/thescrapelab~literal-club-book-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-thescrapelab-literal-club-book-reviews-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": {
          "startUrls": {
            "title": "Literal URLs",
            "type": "array",
            "description": "Paste public Literal book or author URLs for metadata, or a public profile /reviews URL for reviews. For reviews, set Maximum reviews above zero. Leave the example to try one book.",
            "items": {
              "type": "string"
            }
          },
          "maxBooks": {
            "title": "Maximum books",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum book metadata records. Author or profile records may also be delivered in normalized output.",
            "default": 1
          },
          "maxReviews": {
            "title": "Maximum reviews",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum public reviews across profile /reviews URLs. Set 10 to try reviews; keep 0 for books only. Book URLs cannot list all reviews.",
            "default": 0
          },
          "outputMode": {
            "title": "Output format",
            "enum": [
              "normalized",
              "reviews_flat",
              "books_with_nested_reviews"
            ],
            "type": "string",
            "description": "Normalized output includes books, authors, profiles and reviews. Choose reviews only for a review-focused dataset.",
            "default": "normalized"
          },
          "searchQueries": {
            "title": "Book searches",
            "type": "array",
            "description": "Search public book titles or author names. This finds books, not book-wide review lists.",
            "items": {
              "type": "string"
            }
          },
          "isbns": {
            "title": "ISBNs",
            "type": "array",
            "description": "Valid ISBN-10 or ISBN-13 values for public book lookup.",
            "items": {
              "type": "string"
            }
          },
          "includeReviews": {
            "title": "Collect public profile reviews",
            "type": "boolean",
            "description": "Collect reviews from public profiles. Book-wide review listing is unavailable; requesting reviews from book/search/ISBN seeds is rejected before collection.",
            "default": false
          },
          "authorNames": {
            "title": "Author searches",
            "type": "array",
            "description": "Search public books by author name.",
            "items": {
              "type": "string"
            }
          },
          "profileHandles": {
            "title": "Public profile handles",
            "type": "array",
            "description": "Literal profile handles such as tangaroo. Enable includeReviews to collect their public reviews.",
            "items": {
              "type": "string"
            }
          },
          "maxSearchResultsPerQuery": {
            "title": "Books per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Optional API-only override for books considered per search, up to 50. When omitted, follows Maximum books, capped at 50."
          },
          "enableIsbnDiscovery": {
            "title": "Search if ISBN lookup is empty",
            "type": "boolean",
            "description": "Use Literal’s free book search when direct ISBN lookup returns no book.",
            "default": false
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional hard cap including retries. Normally calculated from your requested review count and sources (minimum 30, maximum 1000). The 150-second collection deadline always applies. Set this only when you need a smaller or explicit budget."
          },
          "analysisQuery": {
            "title": "Find a phrase",
            "type": "string",
            "description": "Optional literal phrase to find in delivered review text. No model or paid analysis API is called."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}