{
  "openapi": "3.0.1",
  "info": {
    "title": "Flipkart Seller Scraper",
    "description": "Scrape rich, current Flipkart seller-offer snapshots from public All Sellers pages, including seller ratings, prices, savings, delivery, policies, EMI, assurance, and categorized offers.",
    "version": "1.1",
    "x-build-id": "VD0kma2prHHhPuCq6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~flipkart-seller-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-flipkart-seller-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-seller-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-flipkart-seller-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-seller-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-flipkart-seller-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": [
              "productUrl",
              "sellersPageUrl",
              "searchQuery",
              "searchUrl"
            ],
            "type": "string",
            "description": "Select public product pages, sellers pages, or Flipkart search pages to discover seller offers.",
            "default": "productUrl"
          },
          "productUrls": {
            "title": "Product Page URLs",
            "type": "array",
            "description": "HTTPS Flipkart product page URLs. Product pages are used only to resolve public seller pages and optional detail evidence.",
            "items": {
              "type": "string"
            }
          },
          "sellersPageUrls": {
            "title": "Sellers Page URLs",
            "type": "array",
            "description": "Direct public Flipkart seller-comparison URLs containing a pid query parameter.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "One public Flipkart search query. Use searchQuery mode; multiple queries can be supplied in queries."
          },
          "queries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Public Flipkart search queries. Each query is opened through the visible /search page and limited by maxPages.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "HTTPS Flipkart /search URLs to paginate through in searchUrl mode.",
            "items": {
              "type": "string"
            }
          },
          "maxPages": {
            "title": "Maximum Search Pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of public search pages per query or search URL.",
            "default": 1
          },
          "startPage": {
            "title": "Starting Search Page",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "First public search result page number.",
            "default": 1
          },
          "maxItems": {
            "title": "Maximum Seller Records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of seller offer records after filters. Diagnostic records are retained separately when a public page is blocked or empty.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Maximum Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of independent public browser tasks running at once.",
            "default": 1
          },
          "minDelayMs": {
            "title": "Minimum Request Delay (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Minimum pacing delay before each public navigation.",
            "default": 500
          },
          "maxDelayMs": {
            "title": "Maximum Request Delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Maximum pacing delay before each public navigation.",
            "default": 1500
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Additional attempts for navigation or extraction errors. Access barriers are never retried or bypassed.",
            "default": 2
          },
          "navigationTimeoutSecs": {
            "title": "Navigation Timeout (seconds)",
            "minimum": 10,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time allowed for each public page navigation.",
            "default": 60
          },
          "selectorTimeoutSecs": {
            "title": "Selector Timeout (seconds)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum wait for visible seller DOM selectors.",
            "default": 8
          },
          "postNavigationWaitMs": {
            "title": "Post-Navigation Wait (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Bounded wait after DOM content loads for public seller rows to render.",
            "default": 800
          },
          "includeDetail": {
            "title": "Include Product Detail",
            "type": "boolean",
            "description": "Load the public product page when available to collect product name, brand, category, description, inventory, and fulfillment evidence.",
            "default": true
          },
          "includeMedia": {
            "title": "Include Public Media",
            "type": "boolean",
            "description": "Include bounded public product image and page-link arrays observed in the DOM.",
            "default": true
          },
          "includeRatings": {
            "title": "Include Ratings",
            "type": "boolean",
            "description": "Extract visible product and seller rating/review counts when the public page discloses them.",
            "default": true
          },
          "filters": {
            "title": "Seller Offer Filters",
            "type": "object",
            "description": "Optional post-extraction filters. Missing public values do not pass a filter that requires them.",
            "properties": {
              "minSellerRating": {
                "title": "Minimum Seller Rating",
                "type": "number",
                "description": "Keep only seller rows with at least this visible rating.",
                "minimum": 0,
                "maximum": 5
              },
              "minProductRating": {
                "title": "Minimum Product Rating",
                "type": "number",
                "description": "Keep only seller rows whose product has at least this visible rating.",
                "minimum": 0,
                "maximum": 5
              },
              "minDiscountPercent": {
                "title": "Minimum Discount Percent",
                "type": "number",
                "description": "Keep only seller rows with at least this visible or calculated discount.",
                "minimum": 0,
                "maximum": 100
              },
              "requireFlipkartAssured": {
                "title": "Require Flipkart Assured",
                "type": "boolean",
                "description": "Keep only seller rows with a visible Flipkart Assured badge.",
                "default": false
              },
              "sellerNames": {
                "title": "Seller Names",
                "type": "array",
                "description": "Case-insensitive exact seller names to keep.",
                "items": {
                  "type": "string"
                },
                "editor": "stringList"
              }
            },
            "additionalProperties": false
          },
          "pincode": {
            "title": "Reference Pincode",
            "minimum": 100000,
            "maximum": 999999,
            "type": "integer",
            "description": "Six-digit Indian pincode recorded as the delivery comparison context; the Actor does not submit it to private or authenticated flows.",
            "default": 110001
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy settings. The Actor uses them only when running in an Apify runtime that honors Actor proxy configuration; it never uses proxy settings to bypass access barriers.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "type": "boolean",
                "description": "Use an Apify proxy when the runtime honors the configuration."
              },
              "apifyProxyGroups": {
                "title": "Apify Proxy Groups",
                "type": "array",
                "description": "Optional Apify proxy groups.",
                "items": {
                  "type": "string"
                }
              },
              "apifyProxyCountry": {
                "title": "Apify Proxy Country",
                "type": "string",
                "description": "Optional two-letter Apify proxy country code.",
                "pattern": "^[A-Za-z]{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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}