{
  "openapi": "3.0.1",
  "info": {
    "title": "Flipkart Product Scraper",
    "description": "Scrape Flipkart products by keyword or category URL — prices, discounts, ratings, specs, sellers, and offers. A Flipkart API alternative for price monitoring, catalog research, and competitive analysis. Export structured product data as JSON/CSV.",
    "version": "1.0",
    "x-build-id": "LNrofMKb8feRp1sJZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~flipkart-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-flipkart-product-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/insights_data~flipkart-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-flipkart-product-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/insights_data~flipkart-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-flipkart-product-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗 Keywords or Flipkart URLs",
            "type": "array",
            "description": "✨ The one field you need. Add one entry per line, bulk paste supported. Each line is auto-detected as either a 🔍 plain keyword (e.g. \"bluetooth headphones\") or a 📋 Flipkart category/search page URL (e.g. \"https://www.flipkart.com/search?q=watch\"). Every entry becomes its own scrape target, paginated up to 'Maximum products per URL'.",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerUrl": {
            "title": "📦 Maximum products per URL / keyword",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Stop paginating one target once this many products have been collected from it.",
            "default": 20
          },
          "sort": {
            "title": "↕️ Sort results by",
            "enum": [
              "relevance",
              "popularity",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Applied to every target that doesn't already carry its own sort order in the pasted URL.",
            "default": "relevance"
          },
          "scrapeProductDetails": {
            "title": "🔎 Fetch full product detail page",
            "type": "boolean",
            "description": "Adds one extra request per unique product to enrich it with rating breakdown, full specifications, warranty, seller, offers, EMI, exchange offer, return policy, sample reviews, breadcrumbs and variants — everything the search-results page alone doesn't carry. Turn off for a faster, lighter run with just the search-listing fields.",
            "default": true
          },
          "maxPagesPerTarget": {
            "title": "📄 Max pages per target",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Safety cap on how many result pages a single keyword/URL is paginated through, regardless of 'Maximum products per URL'.",
            "default": 50
          },
          "dedupeProducts": {
            "title": "🧹 Remove duplicate products",
            "type": "boolean",
            "description": "Skip a product already collected earlier in the same run (by its Flipkart product ID) — useful when several of your URLs/keywords overlap.",
            "default": true
          },
          "pincode": {
            "title": "📍 Delivery pincode",
            "type": "string",
            "description": "Optional Indian PIN code, sent along with each request so prices/availability reflect that delivery location where Flipkart supports it. Leave empty to use Flipkart's default."
          },
          "searchConcurrency": {
            "title": "🧵 Targets in parallel",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many keywords/URLs are paginated at the same time.",
            "default": 5
          },
          "detailConcurrency": {
            "title": "🧵 Product detail pages in parallel",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many individual product detail pages are fetched at the same time. Only relevant when 'Fetch full product detail page' is on.",
            "default": 8
          },
          "maxRequestRetries": {
            "title": "🔁 Max retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times one failed/blocked request is retried (with backoff) before it's given up on.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "⏱️ Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for a single response before treating it as failed.",
            "default": 30
          },
          "requestDelay": {
            "title": "🐢 Minimum delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "A polite minimum pace shared across every concurrent request. Raise this if you see a lot of retry/backoff activity in the log.",
            "default": 0
          },
          "includeRawProductData": {
            "title": "🧩 Include raw search-tile data",
            "type": "boolean",
            "description": "Keep Flipkart's own raw listing-tile object (field 'productData') embedded in every result, verbatim — handy for power users and debugging, or if a future Flipkart field isn't mapped yet.",
            "default": true
          },
          "includeRawDetailPage": {
            "title": "🐛 Include raw detail-page data",
            "type": "boolean",
            "description": "Also keep Flipkart's raw product detail-page object on every result. Off by default — verbose, mainly for debugging.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "🚦 Default is NO proxy — the actor talks to Flipkart directly. If a request ever gets rejected or blocked, it automatically escalates step-by-step: 🚫 no proxy → 🖥️ datacenter proxy → 🏠 residential proxy (retrying up to 3× on residential), and then sticks with residential for the rest of the run. Every escalation is logged clearly. Force a tier yourself here if you already know what a target needs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}