{
  "openapi": "3.0.1",
  "info": {
    "title": "Meesho Pro Scraper — All-in-One",
    "description": "Unified Meesho scraper: search, category browse, product detail, supplier analysis, and bulk exports in a single actor.",
    "version": "1.0",
    "x-build-id": "9LgbFuyamqGZbhhCJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/axlymxp~meesho-pro-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-axlymxp-meesho-pro-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/axlymxp~meesho-pro-scraper/runs": {
      "post": {
        "operationId": "runs-sync-axlymxp-meesho-pro-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/axlymxp~meesho-pro-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-axlymxp-meesho-pro-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "search",
              "category",
              "product_detail",
              "supplier",
              "bulk_search",
              "bulk_category",
              "fetch_categories"
            ],
            "type": "string",
            "description": "What to do: search products, browse a category, fetch deep product details, analyze a supplier, bulk-export, or list all categories.",
            "default": "search"
          },
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword to search (required for search / bulk_search modes)."
          },
          "category_id": {
            "title": "Category ID",
            "type": "integer",
            "description": "Numeric catalog_listing_page_id (required for category / bulk_category modes). Use fetch_categories mode to discover IDs."
          },
          "catalog_ids": {
            "title": "Catalog IDs",
            "type": "array",
            "description": "List of product catalog IDs for product_detail mode. Required unless query is set.",
            "items": {
              "type": "integer"
            },
            "default": []
          },
          "supplier_id": {
            "title": "Supplier ID",
            "type": "integer",
            "description": "Meesho supplier ID for supplier mode."
          },
          "supplier_ids": {
            "title": "Multiple Supplier IDs",
            "type": "array",
            "description": "Analyze multiple suppliers at once (supplier mode).",
            "items": {
              "type": "integer"
            },
            "default": []
          },
          "supplier_name": {
            "title": "Supplier Name (hint)",
            "type": "string",
            "description": "Optional supplier display name for faster product discovery in supplier mode."
          },
          "limit": {
            "title": "Results per Page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of products per API call (max 50).",
            "default": 20
          },
          "max_pages": {
            "title": "Max Pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum pages to fetch (search / category modes).",
            "default": 10
          },
          "max_items": {
            "title": "Max Total Items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on total items collected (bulk_search / bulk_category / supplier modes).",
            "default": 500
          },
          "include_reviews": {
            "title": "Include Reviews",
            "type": "boolean",
            "description": "Fetch buyer reviews for each product.",
            "default": true
          },
          "reviews_per_product": {
            "title": "Reviews per Product",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of buyer reviews to fetch per product.",
            "default": 8
          },
          "include_variants": {
            "title": "Include Variants",
            "type": "boolean",
            "description": "Include size/colour variants in product_detail mode.",
            "default": true
          },
          "include_analytics": {
            "title": "Include Supplier Analytics",
            "type": "boolean",
            "description": "Compute and push analytics summary in supplier mode.",
            "default": true
          },
          "sort_option": {
            "title": "Sort Order",
            "enum": [
              "POPULARITY",
              "PRICE_ASC",
              "PRICE_DESC",
              "NEW_ARRIVALS"
            ],
            "type": "string",
            "description": "Sort products by this criterion (optional)."
          },
          "delay_between_requests": {
            "title": "Delay between Requests (ms)",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Milliseconds to wait between API calls.",
            "default": 500
          },
          "proxy_url": {
            "title": "Proxy URL",
            "type": "string",
            "description": "Optional HTTP/HTTPS proxy (e.g. http://user:pass@host:port). Apify Proxy is NOT used."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}