{
  "openapi": "3.0.1",
  "info": {
    "title": "Toutiao Scraper 今日头条: News Search, Reads & Comments",
    "description": "Toutiao (今日头条) news scraper with no login: search by keyword and get each article's title, summary, source and its verified label, publish time, reads, comments, likes, saves, shares, the Toutiao link and the original link. Filter by date and reads. $3 per 1,000 articles.",
    "version": "0.1",
    "x-build-id": "SbL24C9bCoWZcoEaw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~toutiao-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-toutiao-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/memo23~toutiao-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-toutiao-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/memo23~toutiao-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-toutiao-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search Toutiao news for these words. One search per keyword. Chinese keywords match best, for example 新能源汽车, 人工智能 or a company name like 比亚迪. Leave empty if you only want article links or creators.",
            "items": {
              "type": "string"
            }
          },
          "articleUrls": {
            "title": "Article links or IDs",
            "type": "array",
            "description": "Toutiao articles to read in full: one row each with the full text, images, author, publish time, reads, likes, comment count and tags. Accepts links like https://www.toutiao.com/article/7701640405258961471/, https://www.toutiao.com/a7701640405258961471/, m.toutiao.com links, or the bare article ID 7701640405258961471. The date and reads filters do not apply here.",
            "items": {
              "type": "string"
            }
          },
          "creators": {
            "title": "Creators (profile links or user IDs)",
            "type": "array",
            "description": "Toutiao accounts to look up: one profile row each with name, user ID, bio, followers, following, total likes and posts, and verification label. Accepts profile links like https://www.toutiao.com/c/user/token/MS4wLjABAAAA.../ or https://www.toutiao.com/c/user/5757091251/, or the numeric user ID 5757091251 (the authorId field of an article row). Set 'Latest articles per creator' to also get their newest articles.",
            "items": {
              "type": "string"
            }
          },
          "searchTab": {
            "title": "Search tab",
            "enum": [
              "news",
              "all"
            ],
            "type": "string",
            "description": "Applies to keywords. 'news' (default) gives articles from the last days and goes deeper. 'all' gives the articles from Toutiao's mixed results page.",
            "default": "news"
          },
          "maxResultsPerKeyword": {
            "title": "Max articles per keyword",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Articles to return for each keyword, 1-300. Default 50. Toutiao's search usually runs out at 80-100 articles per keyword.",
            "default": 50
          },
          "includeArticleText": {
            "title": "Include full article text",
            "type": "boolean",
            "description": "Adds the full text (paragraphs kept), the image links and the tags to every article found by keyword search or taken from a creator. Each such article is billed as an article with full text instead of a plain article. Article links always come with their text.",
            "default": false
          },
          "maxArticlesPerCreator": {
            "title": "Latest articles per creator",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of each creator's newest articles to return, with reads, likes and comments (and the full text when 'Include full article text' is on). 0 (default) returns only the profile.",
            "default": 0
          },
          "maxCommentsPerArticle": {
            "title": "Comments per article",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Adds up to this many comment rows (text, author, likes, reply count, location, time) for every article returned, from any input. Top-level comments in the order Toutiao shows them; each carries its reply count. 0 (default) returns no comments.",
            "default": 0
          },
          "maxItems": {
            "title": "Max articles in total",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on article rows for the whole run, across keywords, links and creators. Creator and comment rows are not counted here. Free-plan runs return up to 100 rows.",
            "default": 1000
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "Only articles published on or after this date (Beijing time), for example 2026-10-01. Applies to keyword search and creators' articles. Older ones are skipped and not charged."
          },
          "minReads": {
            "title": "Min reads",
            "minimum": 0,
            "type": "integer",
            "description": "Only articles with at least this many reads on Toutiao, for example 1000. Applies to keyword search and creators' articles."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}