{
  "openapi": "3.0.1",
  "info": {
    "title": "Taobao Scraper & API | EveryInfra",
    "description": "Unofficial Taobao data via one Actor: search, product_detail, shop, reviews, questions. Pay per request, no start fee. First 3 requests free across EveryInfra Actors.",
    "version": "0.1",
    "x-build-id": "AOkIIdTNbftjycn1k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blushing_parachute~everyinfra-taobao-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blushing_parachute-everyinfra-taobao-api",
        "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/blushing_parachute~everyinfra-taobao-api/runs": {
      "post": {
        "operationId": "runs-sync-blushing_parachute-everyinfra-taobao-api",
        "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/blushing_parachute~everyinfra-taobao-api/run-sync": {
      "post": {
        "operationId": "run-sync-blushing_parachute-everyinfra-taobao-api",
        "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": [
          "action"
        ],
        "properties": {
          "action": {
            "title": "Action",
            "enum": [
              "search",
              "product_detail",
              "shop",
              "reviews",
              "questions"
            ],
            "type": "string",
            "description": "What to fetch. Each action uses only the fields listed for it below; other fields are ignored when empty.",
            "default": "search"
          },
          "keyword": {
            "title": "keyword",
            "type": "string",
            "description": "Used by `search` (required). Specifies the Taobao or Tmall product search term for the search action. It does not perform an exact search by store name."
          },
          "max_price": {
            "title": "max_price",
            "type": "number",
            "description": "Used by `search`. Sets the maximum item price filter for the search action in combination with min_price. It does not control SKU inventory limits. Decimals may be rounded up to a whole number. Searches with a price range cannot be paged."
          },
          "min_price": {
            "title": "min_price",
            "type": "number",
            "description": "Used by `search`. Sets the minimum item price filter for the search action. It is not a review score filter or an API fee parameter, and it does not apply to shop, product_detail, reviews, or questions. Decimals may be rounded down to a whole number. Searches with a price range cannot be paged."
          },
          "page": {
            "title": "page",
            "type": "integer",
            "description": "Used by `search`, `shop`, `reviews`. Page number for product search, from 1 to 50, with 20 results per page. Omit it for page 1; each page is billed as one call. Only plain keyword searches can page (no min_price, max_price or tmall_only, and sort omitted or relevance). They are the more reliable way to search, though most rows carry no sales figures or shop name. A page above 1 combined with any of those filters is rejected before charging, so drop those filters to page. limit only sets how many results of that page you get, so keep it at 20 while paging. Rankings update in real time, so neighbouring pages can occasionally repeat a few items; dedupe by id when merging pages."
          },
          "sort": {
            "title": "sort",
            "enum": [
              "best_selling",
              "highest_price",
              "lowest_price",
              "new",
              "newly_listed",
              "popular",
              "price_asc",
              "price_desc",
              "relevance",
              "sales"
            ],
            "type": "string",
            "description": "Used by `search`, `shop`. For product search, use relevance (default), popular, or price_desc. Default and relevance searches allow up to 20 results; popular and price_desc allow up to 10 and cannot be paged. Requests above the applicable limit are rejected before charging, and price_asc is not supported. Reviews and questions do not accept sort. For shop, sort applies only when paging with page; see the shop parameters."
          },
          "tmall_only": {
            "title": "tmall_only",
            "type": "boolean",
            "description": "Used by `search`. Filters product search to Tmall-only items when set to the boolean true and limits the request to 10 results, without paging. Pass a JSON boolean only; strings such as \"false\" and requests above this limit are rejected before charging."
          },
          "url": {
            "title": "url",
            "type": "string",
            "description": "Used by `product_detail` (required), `reviews` (required), `questions` (required). For product_detail, reviews, or questions, use a numeric item ID, a Taobao/Tmall product URL, or a share message containing exactly one product URL. e.tb.cn and m.tb.cn links work only when they can be safely resolved to a product page. TaoPassword-only tokens, expired links, and non-product pages are rejected. A sync call takes at most about 85 seconds; set your client timeout to at least 95 seconds. For product_detail, when the item has been taken down or does not exist, the result is empty with empty_reason item_not_found and nothing is charged. When a call cannot confirm whether the item still exists, it returns a 502 or 503 error (an async task ends as failed) and nothing is charged either; you can check again later."
          },
          "shop": {
            "title": "shop",
            "type": "string",
            "description": "Used by `shop` (required). Specifies the seller's numeric userId (sellerId) or a shop link (shop<shopId>.taobao.com) for the shop action. Returns items that seller has on sale. Without page, each request returns at most 20: a larger limit still returns 20, at the same price per call. With page, it goes through the shop one Taobao page at a time, usually 60 items per page. It is not a store name. Repeat requests for the same shop with the same sort and the same page (or the same limit when you send no page) within 12 hours return the same data as the first one, and are charged as usual. When the shop does not exist, the result is empty with empty_reason shop_not_found and the request is charged as one call; a repeat within 24 hours returns the same result and is charged the same way. Other empty results are not charged."
          },
          "seller": {
            "title": "seller",
            "type": "string",
            "description": "Used by `shop`. Provides a compatibility fallback for the seller's numeric userId in the shop action. It accepts only numeric user IDs, not seller nicknames, and takes lower precedence than shop and user_id."
          },
          "user_id": {
            "title": "user_id",
            "type": "string",
            "description": "Used by `shop`. Provides a compatibility fallback for the seller's numeric userId in the shop action. It takes lower precedence than shop and cannot be used as a product ID."
          },
          "page_token": {
            "title": "page_token",
            "type": "string",
            "description": "Used by `reviews`. Page token. Leave it out for the first page. When the response has a `next_page_token`, pass it back as `page_token`, exactly as received, to get the next page, with the other parameters unchanged (`limit` can change). You can also skip the token and ask for a page number with `page`; when both are sent, `page_token` wins. A token is valid for 24 hours and works only for the same product and the same account; a token used with another product is rejected with 422 and not charged. No `next_page_token` (or `pagination.has_more` false) means you have reached the end. Each page returns `limit` reviews (default 20, up to 100), and the next page continues after the last review returned. Reviews are newest first; if new reviews arrive while you page, neighbouring pages can repeat a review or two, so dedupe by review `id` when merging. Each page is billed on its own by its row count, one call per 20 rows (20 rows is one call, 21–40 is two, 100 is five); calls not used because fewer rows came back are refunded, and an empty page is not charged."
          },
          "limit": {
            "title": "limit",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many results to request for list actions. Defaults and maximums per action: `search` 20 (max 20); `shop` 20 (max 20); `reviews` 20 (max 100); `questions` 10 (max 100). Billing: `search` one event per non-empty request, whatever the row count; `shop` one event per non-empty request, whatever the row count; `reviews` one event per started block of 20 results; `questions` one event per started block of 10 results."
          },
          "params": {
            "title": "params (advanced)",
            "type": "object",
            "description": "Optional JSON object with the same fields as above, for API and integration use. Flat fields and params must not disagree."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}