{
  "openapi": "3.0.1",
  "info": {
    "title": "Flipkart Product Sellers Scraper",
    "description": "Scrape rich, null-safe Flipkart All Sellers comparison records with product and seller ratings, prices, savings, delivery, COD, return policies, EMI, categorized offers, and source provenance.",
    "version": "1.3",
    "x-build-id": "NAzYZIdLPE5l2EJtq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/w3crawler~flipkart-product-sellers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-w3crawler-flipkart-product-sellers-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-product-sellers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-w3crawler-flipkart-product-sellers-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-product-sellers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-w3crawler-flipkart-product-sellers-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": "Input Mode",
            "enum": [
              "search",
              "productUrl",
              "sellersPageUrl"
            ],
            "type": "string",
            "description": "Choose a public Flipkart search query, product URL list, or direct All Sellers URL list.",
            "default": "productUrl"
          },
          "query": {
            "title": "Search Query",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "Public Flipkart search phrase used when mode is search.",
            "default": "smartphone"
          },
          "productUrls": {
            "title": "Product Page URLs",
            "maxItems": 200,
            "type": "array",
            "description": "HTTPS Flipkart product page URLs. A pid query parameter lets the Actor open the public seller comparison directly.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "sellersPageUrls": {
            "title": "All Sellers Page URLs",
            "maxItems": 200,
            "type": "array",
            "description": "HTTPS Flipkart All Sellers URLs with a pid query parameter, for example https://www.flipkart.com/sellers?pid=EXAMPLEPID.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            }
          },
          "pageStart": {
            "title": "First Search Page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "First public Flipkart search-results page to inspect when mode is search.",
            "default": 1
          },
          "maxPages": {
            "title": "Maximum Search Pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of public search-results pages to inspect.",
            "default": 1
          },
          "maxProducts": {
            "title": "Maximum Products from Search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum unique products taken from search results before seller pages are opened.",
            "default": 25
          },
          "maxItems": {
            "title": "Maximum Seller Records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum matching seller offer records emitted from all inputs; diagnostics may be appended.",
            "default": 100
          },
          "includeProductDetails": {
            "title": "Include Product Details",
            "type": "boolean",
            "description": "Open the public product page to add brand, highlights, variants, availability, delivery, badges, specifications, and primary-seller facts.",
            "default": true
          },
          "includeMedia": {
            "title": "Include Product Images",
            "type": "boolean",
            "description": "Include a bounded list of public product image URLs when product details are collected.",
            "default": true
          },
          "includeRatings": {
            "title": "Include Ratings",
            "type": "boolean",
            "description": "Parse public product and seller ratings and counts where the page exposes them.",
            "default": true
          },
          "pincode": {
            "title": "Reference Pincode",
            "minimum": 100000,
            "maximum": 999999,
            "type": "integer",
            "description": "Six-digit Indian pincode recorded for delivery comparison context; the Actor does not submit it to Flipkart.",
            "default": 110001
          },
          "filters": {
            "title": "Seller and Product Filters",
            "required": [],
            "type": "object",
            "description": "Optional post-extraction filters applied to seller offer records.",
            "properties": {
              "brands": {
                "title": "Brands",
                "type": "array",
                "description": "Case-insensitive exact brand allow-list.",
                "items": {
                  "type": "string"
                }
              },
              "sellerNames": {
                "title": "Seller Names",
                "type": "array",
                "description": "Case-insensitive exact seller-name allow-list.",
                "items": {
                  "type": "string"
                }
              },
              "minPrice": {
                "title": "Minimum Price",
                "type": "number",
                "description": "Minimum seller price in INR.",
                "minimum": 0
              },
              "maxPrice": {
                "title": "Maximum Price",
                "type": "number",
                "description": "Maximum seller price in INR.",
                "minimum": 0
              },
              "minRating": {
                "title": "Minimum Rating",
                "type": "number",
                "description": "Minimum product or seller rating from 0 to 5.",
                "minimum": 0,
                "maximum": 5
              },
              "minDiscountPercent": {
                "title": "Minimum Discount Percent",
                "type": "integer",
                "description": "Minimum observed or calculated discount percentage.",
                "minimum": 0,
                "maximum": 100
              },
              "isFlipkartAssuredOnly": {
                "title": "Flipkart Assured Only",
                "type": "boolean",
                "description": "Keep only seller rows where Flipkart Assured was observed."
              },
              "inStockOnly": {
                "title": "In-Stock Only",
                "type": "boolean",
                "description": "Keep only rows whose public text indicates in-stock availability."
              }
            },
            "additionalProperties": false
          },
          "maxConcurrency": {
            "title": "Maximum Concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of independent public browser tasks running at once.",
            "default": 3
          },
          "minDelayMs": {
            "title": "Minimum Request Delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Randomized minimum delay before each public navigation.",
            "default": 500
          },
          "maxDelayMs": {
            "title": "Maximum Request Delay (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Randomized maximum delay before each public navigation.",
            "default": 1500
          },
          "maxRetries": {
            "title": "Maximum Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum attempts for transient navigation or extraction failures. Access barriers fail closed without bypassing them.",
            "default": 3
          },
          "navigationTimeoutMs": {
            "title": "Navigation Timeout (ms)",
            "minimum": 5000,
            "maximum": 120000,
            "type": "integer",
            "description": "Maximum time allowed for each public page navigation.",
            "default": 45000
          },
          "selectorTimeoutMs": {
            "title": "Selector Timeout (ms)",
            "minimum": 1000,
            "maximum": 30000,
            "type": "integer",
            "description": "Maximum time allowed for observed public DOM selectors before semantic extraction continues.",
            "default": 10000
          },
          "proxyConfiguration": {
            "title": "Apify Proxy Configuration",
            "type": "object",
            "description": "Optional Apify proxy settings. Proxies are used only when the Actor runtime returns a proxy URL; they are disabled by default for local runs.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}