{
  "openapi": "3.0.1",
  "info": {
    "title": "Audible Scraper",
    "description": "Scrape Audible with Amazon's audiobook marketplace. Search by keyword, fetch by ASIN, browse best-sellers, list by author or category. Returns full audiobook metadata: title, authors, narrators, runtime, ratings, price, cover, series — across 11 locales.",
    "version": "1.0",
    "x-build-id": "pSeJJHaLdE1rzt485"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~audible-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-audible-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/crawlerbros~audible-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-audible-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/crawlerbros~audible-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-audible-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "bestSellers",
              "byCategory",
              "byAsins",
              "byUrls",
              "byAuthor",
              "search"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "bestSellers"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text query (mode=search).",
            "default": "atomic habits"
          },
          "locale": {
            "title": "Audible locale",
            "enum": [
              "us",
              "uk",
              "de",
              "fr",
              "jp",
              "au",
              "it",
              "es",
              "in",
              "ca",
              "br"
            ],
            "type": "string",
            "description": "Which Audible storefront to scrape.",
            "default": "us"
          },
          "asins": {
            "title": "ASINs (mode=byAsins)",
            "type": "array",
            "description": "Audible ASINs (10-character IDs, e.g. `1473565421`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (mode=byUrls)",
            "type": "array",
            "description": "Direct Audible URLs: product pages (/pd/...), author pages (/author/...), search pages, category pages, or best-sellers.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "category": {
            "title": "Category (single)",
            "type": "string",
            "description": "Pick a category (used by bestSellers / byCategory / search modes). Slug aliases like 'sci-fi-fantasy', 'history', 'romance' are also accepted programmatically."
          },
          "categories": {
            "title": "Categories (multi)",
            "uniqueItems": true,
            "type": "array",
            "description": "Multiple categories (used by bestSellers / byCategory mode). One pass per category.",
            "items": {
              "type": "string",
              "enum": [
                "Arts & Entertainment",
                "Biographies & Memoirs",
                "Business & Careers",
                "Children's Audiobooks",
                "Comedy & Humor",
                "Computers & Technology",
                "Education & Learning",
                "Erotica",
                "Health & Wellness",
                "History",
                "Home & Garden",
                "LGBTQ+",
                "Literature & Fiction",
                "Money & Finance",
                "Mysteries, Thrillers & Suspense",
                "Politics & Social Sciences",
                "Relationships, Parenting & Personal Development",
                "Religion & Spirituality",
                "Romance",
                "Science & Engineering",
                "Science Fiction & Fantasy",
                "Sports & Outdoors",
                "Teen & Young Adult",
                "Travel & Tourism"
              ]
            },
            "default": []
          },
          "authorQuery": {
            "title": "Author name (mode=byAuthor)",
            "type": "string",
            "description": "Resolves to an author ID by searching Audible."
          },
          "authorId": {
            "title": "Author ID (mode=byAuthor)",
            "type": "string",
            "description": "Audible author ID (10-char ASIN-style, e.g. `B07DJTJC3X`). Overrides `authorQuery`."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "best-sellers",
              "customer-rating",
              "most-helpful",
              "new-released-date",
              "price-low-high",
              "price-high-low",
              "title-a-z",
              "title-z-a"
            ],
            "type": "string",
            "description": "Audible sort key for listing modes."
          },
          "releaseDate": {
            "title": "Release date bucket",
            "enum": [
              "any",
              "last-30-days",
              "last-90-days",
              "last-year",
              "last-3-years",
              "last-10-years"
            ],
            "type": "string",
            "description": "Filter by Audible's release-date bucket.",
            "default": "any"
          },
          "narrationLanguage": {
            "title": "Narration language",
            "enum": [
              "english",
              "german",
              "french",
              "spanish",
              "italian",
              "japanese",
              "portuguese",
              "dutch",
              "russian",
              "chinese"
            ],
            "type": "string",
            "description": "Filter by narration language."
          },
          "format": {
            "title": "Format",
            "enum": [
              "audiobook",
              "podcast",
              "all"
            ],
            "type": "string",
            "description": "Audiobook, podcast, or all.",
            "default": "audiobook"
          },
          "minRating": {
            "title": "Min overall rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Drop books rated below this (0–5). Books with no rating yet pass through."
          },
          "maxRating": {
            "title": "Max overall rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Drop books rated above this (0–5)."
          },
          "minLength": {
            "title": "Min runtime (minutes)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Drop books shorter than this. Books with no runtime metadata pass through."
          },
          "maxLength": {
            "title": "Max runtime (minutes)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Drop books longer than this."
          },
          "isPlus": {
            "title": "Audible Plus only",
            "type": "boolean",
            "description": "Only emit books included with Audible Plus membership.",
            "default": false
          },
          "isAudibleOriginal": {
            "title": "Audible Originals only",
            "type": "boolean",
            "description": "Only emit Audible Original titles.",
            "default": false
          },
          "containsKeyword": {
            "title": "Contains keyword",
            "type": "string",
            "description": "Substring filter applied to title/subtitle/description/authors/narrators/categories."
          },
          "fetchDetail": {
            "title": "Fetch product detail page",
            "type": "boolean",
            "description": "Hit each product page to get the full description (slower, ~0.5s per book).",
            "default": false
          },
          "enrichWithAudnex": {
            "title": "Enrich with audnex.us API",
            "type": "boolean",
            "description": "Augment each record with audnex.us metadata (ISBN, runtime, categories, copyright year).",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy. Direct connections from Apify's datacenter usually succeed for browse/best-sellers/category/byAsins/byAuthor; enable Apify Proxy only if you hit IP-based throttling on a specific locale.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}