{
  "openapi": "3.0.1",
  "info": {
    "title": "Author.Today Scraper",
    "description": "Scrape Author.Today (Автор.Тудей), the Russian web-fiction platform: book catalogs by genre with views, likes, comments, prices and status; how many readers have each book in their library, are reading, finished or disliked it; and authors with followers and ratings.",
    "version": "0.1",
    "x-build-id": "HwnXXm6miORGr23p2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sashaebashu~authortoday-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sashaebashu-authortoday-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/sashaebashu~authortoday-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sashaebashu-authortoday-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/sashaebashu~authortoday-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sashaebashu-authortoday-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "catalog",
              "urls"
            ],
            "type": "string",
            "description": "Catalog lists books by genre, format and order; Links takes book, author or catalog links.",
            "default": "catalog"
          },
          "genres": {
            "title": "Genres",
            "type": "array",
            "description": "For Catalog mode. Leave empty for all genres.",
            "items": {
              "type": "string",
              "enum": [
                "sci-fi",
                "fantasy",
                "popadantsy",
                "romance",
                "sf-history",
                "litrpg",
                "action",
                "fanfiction",
                "detective",
                "historical-fiction",
                "teen-prose",
                "poetry",
                "adventure",
                "modern-prose",
                "thriller",
                "horror",
                "humor",
                "back-to-ussr",
                "popadantsy-v-magicheskie-miry",
                "heroic-fantasy",
                "rusreal",
                "everyday-fantasy",
                "popadantsy-vo-vremeni",
                "historical-adventure",
                "urban-fantasy",
                "romantic-fantasy",
                "dorama",
                "wuxia",
                "fantasy-action",
                "realrpg"
              ],
              "enumTitles": [
                "Science fiction (Фантастика)",
                "Fantasy (Фэнтези)",
                "Isekai / transported heroes (Попаданцы)",
                "Romance (Любовные романы)",
                "Alternative history (Альтернативная история)",
                "LitRPG (ЛитРПГ)",
                "Action (Боевик)",
                "Fan fiction (Фанфик)",
                "Detective (Детектив)",
                "Historical fiction (Историческая проза)",
                "Young adult (Подростковая проза)",
                "Poetry (Поэзия)",
                "Adventure (Приключения)",
                "Contemporary prose (Современная проза)",
                "Thriller (Триллер)",
                "Horror (Ужасы)",
                "Humor (Юмор)",
                "Back to the USSR (Назад в СССР)",
                "Transported to magic worlds (Попаданцы в магические миры)",
                "Heroic fantasy (Героическое фэнтези)",
                "Russian realism (Русреал)",
                "Slice-of-life fantasy (Бытовое фэнтези)",
                "Time travel (Попаданцы во времени)",
                "Historical adventure (Исторические приключения)",
                "Urban fantasy (Городское фэнтези)",
                "Romantic fantasy (Романтическое фэнтези)",
                "Dorama (Дорама)",
                "Wuxia (Уся)",
                "Action fantasy (Боевое фэнтези)",
                "RealRPG (РеалРПГ)"
              ]
            }
          },
          "format": {
            "title": "Format",
            "enum": [
              "any",
              "ebook",
              "audiobook"
            ],
            "type": "string",
            "description": "For Catalog mode.",
            "default": "any"
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "popular",
              "trending",
              "views",
              "likes",
              "comments",
              "recent",
              "length"
            ],
            "type": "string",
            "description": "For Catalog mode, as on the site.",
            "default": "popular"
          },
          "period": {
            "title": "Popularity period",
            "enum": [
              "today",
              "yesterday",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "For Catalog mode with Most popular.",
            "default": "today"
          },
          "urls": {
            "title": "Author.Today links",
            "type": "array",
            "description": "For Links mode. Book links (author.today/work/… or /audiobook/…), author links (author.today/u/…) or catalog links (genre, tag or series pages), one per line. Bare book IDs work too.",
            "items": {
              "type": "string"
            }
          },
          "includeAuthorWorks": {
            "title": "Include each author's books",
            "type": "boolean",
            "description": "For author links: also write the author's books.",
            "default": true
          },
          "includeDetails": {
            "title": "Include book details and reader statistics",
            "type": "boolean",
            "description": "For catalog listings: opens each book to add how many readers have it in their library, are reading, plan to read, finished or disliked it, plus awards, tags, publish date and the author's followers and rating. Two extra requests per book. Book links always get them.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum books per listing",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Per genre or per catalog link, and per author. Author.Today shows at most 10,000 books (400 pages) per catalog.",
            "default": 100
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Caps the total rows written, books and authors together.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Author.Today answers Apify's datacenter proxy, which is the default.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}