{
  "openapi": "3.0.1",
  "info": {
    "title": "Flipkart Reviews Scraper",
    "description": "Scrapes customer reviews from Flipkart products including review text, rating, certified buyer status, helpful votes, and reviewer info.",
    "version": "1.0",
    "x-build-id": "bK7gj8Mgao3Ksvetl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~flipkart-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-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/codingfrontend~flipkart-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-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/codingfrontend~flipkart-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-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": {
          "mode": {
            "title": "Input Mode",
            "enum": [
              "productUrl",
              "search"
            ],
            "type": "string",
            "description": "Choose a list of product URLs or a Flipkart search query. Defaults to product URLs.",
            "default": "productUrl"
          },
          "productUrls": {
            "title": "Product URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "One to 20 HTTPS Flipkart product or product-review URLs. Required when mode is productUrl. Duplicate URLs are removed.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://www.flipkart.com/apple-iphone-15-black-128-gb/p/itm6ac6485515ae4"
            ]
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Words to search on Flipkart. Required in search mode. Takes precedence over searchQuery when both are supplied."
          },
          "searchQuery": {
            "title": "Legacy Search Query",
            "type": "string",
            "description": "Compatibility alias for query. Use query for new inputs."
          },
          "maxItems": {
            "title": "Maximum Reviews Across the Run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of review records saved across all products."
          },
          "maxReviewsPerProduct": {
            "title": "Maximum Reviews Per Product",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of review records saved for each product."
          },
          "maxReviews": {
            "title": "Legacy Review Limit",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Compatibility alias for maxItems and maxReviewsPerProduct when their main fields are omitted."
          },
          "maxProducts": {
            "title": "Maximum Products From Search",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of distinct products to use from search results. Used only in search mode.",
            "default": 3
          },
          "pagination": {
            "title": "Review Page Pagination",
            "required": [],
            "type": "object",
            "description": "Controls which public review pages are visited. Pagination stops when a page has fewer than ten review blocks.",
            "properties": {
              "enabled": {
                "title": "Follow More Pages",
                "type": "boolean",
                "description": "Visit later review pages when available.",
                "default": true
              },
              "startPage": {
                "title": "Start Page",
                "type": "integer",
                "description": "One-based page number to start at.",
                "minimum": 1,
                "maximum": 500,
                "default": 1
              },
              "maxPages": {
                "title": "Maximum Pages Per Product",
                "type": "integer",
                "description": "Upper limit on review pages requested for each product.",
                "minimum": 1,
                "maximum": 50,
                "default": 50
              }
            },
            "additionalProperties": false
          },
          "ratingFilter": {
            "title": "Rating Filter",
            "required": [],
            "type": "object",
            "description": "Optionally keep reviews within an inclusive rating range and/or a list of selected ratings.",
            "properties": {
              "enabled": {
                "title": "Enable Rating Filter",
                "type": "boolean",
                "description": "Apply the rating limits below.",
                "default": false
              },
              "min": {
                "title": "Minimum Rating",
                "type": "integer",
                "description": "Inclusive lowest review rating.",
                "minimum": 1,
                "maximum": 5,
                "default": 1
              },
              "max": {
                "title": "Maximum Rating",
                "type": "integer",
                "description": "Inclusive highest review rating.",
                "minimum": 1,
                "maximum": 5,
                "default": 5
              },
              "values": {
                "title": "Selected Ratings",
                "type": "array",
                "description": "Optional list of ratings to keep. When non-empty, a review must also match this list.",
                "editor": "json",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 5
                },
                "default": []
              }
            },
            "additionalProperties": false
          },
          "dateFilter": {
            "title": "Review Date Filter",
            "required": [],
            "type": "object",
            "description": "Optionally keep reviews within an inclusive date range. Unparseable visible dates are excluded when enabled.",
            "properties": {
              "enabled": {
                "title": "Enable Date Filter",
                "type": "boolean",
                "description": "Apply the date limits below.",
                "default": false
              },
              "from": {
                "title": "Date From",
                "type": "string",
                "description": "Inclusive start date in YYYY-MM-DD format.",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "to": {
                "title": "Date To",
                "type": "string",
                "description": "Inclusive end date in YYYY-MM-DD format.",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              }
            },
            "additionalProperties": false
          },
          "verifiedPurchaseOnly": {
            "title": "Verified Purchases Only",
            "type": "boolean",
            "description": "Keep reviews with a visible Verified Purchase or Certified Buyer label.",
            "default": false
          },
          "includeDetails": {
            "title": "Include Product Details",
            "type": "boolean",
            "description": "Visit each product page for product title, seller, variant, price, and aggregate information.",
            "default": true
          },
          "includeMedia": {
            "title": "Include Public Media Links",
            "type": "boolean",
            "description": "Collect visible product and review image URLs and media links.",
            "default": true
          },
          "includeRaw": {
            "title": "Include Bounded Public Page Text",
            "type": "boolean",
            "description": "Include bounded visible product and review text objects in rawPublic. Off by default to keep results smaller.",
            "default": false
          },
          "maxRawTextLength": {
            "title": "Maximum Raw Text Length",
            "minimum": 200,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum characters kept in each raw public text excerpt when includeRaw is enabled.",
            "default": 2000
          },
          "maxConcurrency": {
            "title": "Maximum Concurrent Products",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum number of product pages processed at the same time.",
            "default": 2
          },
          "pacing": {
            "title": "Request Delay",
            "required": [],
            "type": "object",
            "description": "Random wait between review pages and retries, in milliseconds.",
            "properties": {
              "minDelayMs": {
                "title": "Minimum Delay",
                "type": "integer",
                "description": "Shortest random delay.",
                "minimum": 0,
                "maximum": 15000,
                "default": 1000
              },
              "maxDelayMs": {
                "title": "Maximum Delay",
                "type": "integer",
                "description": "Longest random delay. Must be at least minDelayMs.",
                "minimum": 0,
                "maximum": 30000,
                "default": 2500
              }
            },
            "additionalProperties": false
          },
          "maxRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum retries for a product page that fails to load before any of its reviews are saved.",
            "default": 2
          },
          "timeouts": {
            "title": "Page Timeouts",
            "required": [],
            "type": "object",
            "description": "Browser navigation, selector, and rendering wait limits, in milliseconds.",
            "properties": {
              "navigationMs": {
                "title": "Navigation Timeout",
                "type": "integer",
                "description": "Maximum time to wait for a page navigation.",
                "minimum": 5000,
                "maximum": 120000,
                "default": 45000
              },
              "selectorMs": {
                "title": "Selector Timeout",
                "type": "integer",
                "description": "Maximum wait for page selectors.",
                "minimum": 1000,
                "maximum": 60000,
                "default": 10000
              },
              "renderMs": {
                "title": "Render Wait",
                "type": "integer",
                "description": "Additional wait after navigation for the page to render. Zero disables this wait.",
                "minimum": 0,
                "maximum": 10000,
                "default": 1500
              }
            },
            "additionalProperties": false
          },
          "headless": {
            "title": "Headless Browser",
            "type": "boolean",
            "description": "Run Chrome without a visible window.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy settings. Defaults to the RESIDENTIAL group in India; set useApifyProxy to false for direct requests.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "type": "boolean",
                "description": "Use Apify Proxy when available in the runtime.",
                "default": true
              },
              "apifyProxyGroups": {
                "title": "Proxy Groups",
                "type": "array",
                "description": "Apify Proxy groups to request.",
                "items": {
                  "type": "string"
                },
                "default": [
                  "RESIDENTIAL"
                ]
              },
              "apifyProxyCountry": {
                "title": "Proxy Country",
                "type": "string",
                "description": "Two-letter country code passed to Apify Proxy.",
                "pattern": "^[A-Za-z]{2}$",
                "default": "IN"
              }
            },
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            },
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}