{
  "openapi": "3.0.1",
  "info": {
    "title": "Flipkart Reviews Scraper",
    "description": "Scrape Flipkart product reviews, star ratings, photos, and rating summaries in bulk. Extract verified-buyer feedback and sentiment from any product URL or ID. Ideal for reputation monitoring, VOC research, and review datasets — export JSON/CSV.",
    "version": "0.1",
    "x-build-id": "LaL4QaBmz8qG0FDo1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~flipkart-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-flipkart-reviews-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-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-flipkart-reviews-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-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-flipkart-reviews-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": {
          "startUrls": {
            "title": "🔗 Flipkart Product / Review URLs",
            "type": "array",
            "description": "Paste one or more Flipkart product page URLs or product-review page URLs (bulk supported — one per line or add multiple rows). URLs that include `pid` and `lid` query parameters give the most reliable results.",
            "default": [
              "https://www.flipkart.com/adidas-ampligy-m-running-shoes-men/product-reviews/itmab79cd4ce225d"
            ],
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "🆔 Product IDs (alternative to URLs)",
            "type": "array",
            "description": "🧩 Optional. Add bare Flipkart product IDs (the value after `pid=` in any product URL) instead of full URLs — handy for bulk lists from a spreadsheet. Combined with any URLs above.",
            "items": {
              "type": "string"
            }
          },
          "startUrl": {
            "title": "🔗 Single Product URL (legacy)",
            "type": "string",
            "description": "Legacy single-URL field kept for backward compatibility with older integrations. Prefer '🔗 Flipkart Product / Review URLs' above for new setups.",
            "default": ""
          },
          "maxReviewsPerProduct": {
            "title": "⭐ Max Reviews per Product",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "🎯 Stop collecting once this many reviews have been gathered for a single product. Pagination is handled automatically behind the scenes.",
            "default": 30
          },
          "resultsWanted": {
            "title": "Results wanted (legacy alias)",
            "minimum": 1,
            "type": "integer",
            "description": "Legacy alias for '⭐ Max Reviews per Product'. Kept for compatibility with older automations — the field that was changed away from its own default wins.",
            "default": 20
          },
          "maxPages": {
            "title": "📄 Max Pages per Product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "🛑 Safety cap on how many review pages the Actor will paginate through for a single product, even if 'Max Reviews per Product' hasn't been reached yet.",
            "default": 200
          },
          "sortBy": {
            "title": "🔀 Sort Reviews By",
            "enum": [
              "MOST_HELPFUL",
              "MOST_RECENT",
              "POSITIVE_FIRST",
              "NEGATIVE_FIRST"
            ],
            "type": "string",
            "description": "Choose the order Flipkart returns reviews in — mirrors the sort pills on the live review page.",
            "default": "MOST_HELPFUL"
          },
          "certifiedBuyerOnly": {
            "title": "✅ Verified Buyers Only",
            "type": "boolean",
            "description": "Only collect reviews written by Flipkart-certified (verified-purchase) buyers.",
            "default": false
          },
          "minRating": {
            "title": "⭐ Minimum Rating Filter",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep reviews with a star rating greater than or equal to this value (1-5). Leave empty for no minimum."
          },
          "maxRating": {
            "title": "⭐ Maximum Rating Filter",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only keep reviews with a star rating less than or equal to this value (1-5). Leave empty for no maximum."
          },
          "aspectId": {
            "title": "🏷️ Review Aspect Filter",
            "type": "string",
            "description": "Advanced: filter reviews to one aspect tab shown on the product page (e.g. Comfort, Fit, Camera) using its internal aspect ID. Leave as 'overall' to collect every review.",
            "default": "overall"
          },
          "imageWidth": {
            "title": "🖼️ Review Image Width (px)",
            "minimum": 100,
            "maximum": 3000,
            "type": "integer",
            "description": "Width to render resolved review-photo URLs at.",
            "default": 1280
          },
          "imageHeight": {
            "title": "🖼️ Review Image Height (px)",
            "minimum": 100,
            "maximum": 3000,
            "type": "integer",
            "description": "Height to render resolved review-photo URLs at.",
            "default": 1280
          },
          "imageQuality": {
            "title": "🖼️ Review Image Quality",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "JPEG quality (1-100) to render resolved review-photo URLs at.",
            "default": 100
          },
          "includeRawImages": {
            "title": "🧵 Include Raw (Unresolved) Image URLs",
            "type": "boolean",
            "description": "Also keep Flipkart's original templated image URLs (before width/height/quality is filled in) alongside the resolved ones.",
            "default": true
          },
          "concurrency": {
            "title": "🚀 Concurrent Products",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "How many products to scrape in parallel. Higher is faster but more resource-intensive.",
            "default": 5
          },
          "pageConcurrency": {
            "title": "📚 Concurrent Pages per Product",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many review pages of the SAME product to fetch in parallel.",
            "default": 3
          },
          "maxRetries": {
            "title": "🔁 Max Retries per Request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to retry a single request (page fetch) before giving up on it — also the retry budget used once escalated to a Residential proxy.",
            "default": 3
          },
          "requestDelay": {
            "title": "⏱️ Delay Between Page Batches (seconds)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Polite pause between batches of page fetches for the same product. Float seconds; a little jitter is added automatically.",
            "default": 0
          },
          "requestTimeoutSecs": {
            "title": "⏳ Request Timeout (seconds)",
            "minimum": 1,
            "maximum": 120,
            "type": "number",
            "description": "Maximum time to wait for a single page fetch before treating it as failed.",
            "default": 20
          },
          "dedupeReviews": {
            "title": "🧹 Remove Duplicate Reviews",
            "type": "boolean",
            "description": "Drop reviews with a review ID already seen for the same product (can happen across sort orders / pages).",
            "default": true
          },
          "includeProductSummary": {
            "title": "📈 Include Product Rating Summary",
            "type": "boolean",
            "description": "Also save one roll-up record per product (average rating, rating histogram, total review count) to the key-value store as a downloadable JSON file, in addition to the individual review dataset.",
            "default": true
          },
          "verboseLogging": {
            "title": "🗣️ Detailed Real-Time Logging",
            "type": "boolean",
            "description": "Show friendly, real-time progress logs (products queued, pages fetched, reviews collected, proxy events) while the run is in progress.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy Configuration",
            "type": "object",
            "description": "🛡️ Smart proxy strategy: the Actor tries a direct connection first (no proxy) for maximum speed. If Flipkart blocks or rate-limits a request, it automatically escalates to an Apify Datacenter proxy, and finally to a Residential proxy — then sticks with Residential for the rest of the run. Leave this OFF to let the built-in auto-escalation handle everything, or turn it ON / choose specific groups to force your own proxy from the start.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}