{
  "openapi": "3.0.1",
  "info": {
    "title": "Flipkart Best Sellers Scraper",
    "description": "Scrape rich Flipkart bestseller and product data including prices, ratings, reviews, images, fulfillment, returns, highlights, and grouped specifications.",
    "version": "1.3",
    "x-build-id": "uJxMzypf8DttpWcmr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~flipkart-bestsellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-flipkart-bestsellers-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/w3crawler~flipkart-bestsellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-flipkart-bestsellers-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/w3crawler~flipkart-bestsellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-flipkart-bestsellers-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": "Mode",
            "enum": [
              "category",
              "categoryUrl",
              "search",
              "startUrls",
              "productUrl"
            ],
            "type": "string",
            "description": "Use a built-in category, public category URL, public search query, public start URLs, or direct product URLs.",
            "default": "category"
          },
          "category": {
            "title": "Category Slug",
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{0,80}$",
            "type": "string",
            "description": "Flipkart category slug used in category mode, such as mobiles, laptops, books, or fashion.",
            "default": "mobiles"
          },
          "query": {
            "title": "Search Query",
            "maxLength": 200,
            "type": "string",
            "description": "Public Flipkart search text used in search mode (maximum 200 characters).",
            "default": ""
          },
          "categoryUrl": {
            "title": "Category URL",
            "type": "string",
            "description": "One public HTTPS Flipkart category or bestseller URL used in categoryUrl mode.",
            "default": ""
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Public HTTPS Flipkart product-page URLs used in productUrl mode (at most 100).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Additional public HTTPS Flipkart listing, search, or product URLs used in startUrls mode (at most 100). Product URLs are detail inputs; other URLs are paginated listing sources.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "Public Flipkart URL",
                  "type": "string",
                  "description": "Public HTTPS Flipkart listing, search, or product URL."
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "maxItems": {
            "title": "Maximum Products",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum product records returned across all pages.",
            "default": 48
          },
          "pageStart": {
            "title": "Starting Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "One-based listing page to start from.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum Listing Pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of public listing pages to follow per listing start URL. Pagination stops on a repeated URL, no next link, or no-progress source.",
            "default": 3
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "popularity",
              "rating",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Public listing order. Rating sorting is performed locally from observed ratings.",
            "default": "popularity"
          },
          "filters": {
            "title": "Product Filters",
            "required": [],
            "type": "object",
            "description": "Optional filters applied to public listing records before detail visits.",
            "properties": {
              "brand": {
                "title": "Brand Contains",
                "type": "string",
                "description": "Case-insensitive brand text filter.",
                "default": ""
              },
              "minPrice": {
                "title": "Minimum Price",
                "type": "number",
                "description": "Minimum observed current price in INR.",
                "minimum": 0
              },
              "maxPrice": {
                "title": "Maximum Price",
                "type": "number",
                "description": "Maximum observed current price in INR.",
                "minimum": 0
              },
              "minRating": {
                "title": "Minimum Rating",
                "type": "number",
                "description": "Minimum observed rating from 0 to 5.",
                "minimum": 0,
                "maximum": 5
              },
              "inStockOnly": {
                "title": "In Stock Only",
                "type": "boolean",
                "description": "Keep only products with an explicit source-backed in-stock signal. Missing availability does not pass this filter.",
                "default": false
              },
              "excludePreOrder": {
                "title": "Exclude Pre-orders",
                "type": "boolean",
                "description": "Exclude public listings marked pre-order or coming soon.",
                "default": false
              },
              "badge": {
                "title": "Badge Contains",
                "type": "string",
                "description": "Case-insensitive listing badge text filter.",
                "default": ""
              }
            },
            "default": {},
            "additionalProperties": false
          },
          "includeDetails": {
            "title": "Include Product Details",
            "type": "boolean",
            "description": "Visit each matching public product page for JSON-LD, seller, delivery, offers, variants, specifications, and returns.",
            "default": true
          },
          "deepSearch": {
            "title": "Legacy Detail Alias",
            "type": "boolean",
            "description": "Backward-compatible alias for includeDetails. includeDetails takes precedence when supplied.",
            "default": true
          },
          "includeMedia": {
            "title": "Include Media",
            "type": "boolean",
            "description": "Include public image URLs and thumbnails.",
            "default": true
          },
          "includeRatings": {
            "title": "Include Ratings and Reviews",
            "type": "boolean",
            "description": "Include public aggregate ratings and anonymized review excerpts.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Maximum Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum parallel browser requests. Keep this low for public-site courtesy.",
            "default": 3
          },
          "minDelayMs": {
            "title": "Minimum Request Delay (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum pacing delay before each navigation.",
            "default": 800
          },
          "maxDelayMs": {
            "title": "Maximum Request Delay (ms)",
            "minimum": 0,
            "maximum": 15000,
            "type": "integer",
            "description": "Maximum pacing delay before each navigation.",
            "default": 1600
          },
          "maxRequestRetries": {
            "title": "Maximum Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum Crawlee retries for a failed public request before a diagnostic is emitted.",
            "default": 3
          },
          "navigationTimeoutSecs": {
            "title": "Navigation Timeout (seconds)",
            "minimum": 15,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time allowed for one public page navigation.",
            "default": 45
          },
          "requestHandlerTimeoutSecs": {
            "title": "Request Timeout (seconds)",
            "minimum": 30,
            "maximum": 600,
            "type": "integer",
            "description": "Maximum time allowed for one public request handler.",
            "default": 180
          },
          "proxyConfiguration": {
            "title": "Apify Proxy (Optional)",
            "required": [],
            "type": "object",
            "description": "Optional Apify Proxy configuration. It is used only when the runtime exposes Apify Proxy credentials; no stealth or bypass behavior is applied.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "type": "boolean",
                "description": "Use the configured Apify Proxy when supported by the runtime."
              },
              "apifyProxyGroups": {
                "title": "Proxy Groups",
                "type": "array",
                "description": "Optional Apify Proxy groups.",
                "items": {
                  "type": "string"
                }
              },
              "apifyProxyCountry": {
                "title": "Proxy Country",
                "type": "string",
                "description": "Optional ISO country code for the Apify Proxy.",
                "minLength": 2,
                "maxLength": 2
              }
            },
            "default": {
              "useApifyProxy": false
            },
            "additionalProperties": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}