{
  "openapi": "3.0.1",
  "info": {
    "title": "Ajio Products Search Scraper",
    "description": "An advanced, high-speed e-commerce scraper designed for real-time price monitoring and competitor intelligence. Extracts product titles, current pricing, discounts, stock availability, specifications, images, and seller ratings from Ajio Products Search. Perfect for inventory tracking, drop-shipp...",
    "version": "1.0",
    "x-build-id": "RCvFZwrSJCcSXfDYY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codingfrontend~ajio-products-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codingfrontend-ajio-products-search-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~ajio-products-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-codingfrontend-ajio-products-search-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~ajio-products-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-codingfrontend-ajio-products-search-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": "Scraping Mode",
            "enum": [
              "search",
              "productUrl",
              "searchUrl"
            ],
            "type": "string",
            "description": "Search by keyword, scrape exact product URLs, or use an Ajio /search URL.",
            "default": "search"
          },
          "search": {
            "title": "Search Query",
            "maxLength": 120,
            "type": "string",
            "description": "Required in search mode; 1–120 characters."
          },
          "searchQuery": {
            "title": "Legacy Search Query",
            "maxLength": 120,
            "type": "string",
            "description": "Compatibility alias for search when the Actor is invoked programmatically."
          },
          "searchUrl": {
            "title": "Ajio Search URL",
            "type": "string",
            "description": "An HTTPS https://www.ajio.com/search/ URL containing text or q; its other query parameters are preserved as provenance."
          },
          "productUrls": {
            "title": "Product URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "One to 20 HTTPS Ajio /p/<product-code> URLs. The public API product must match each requested code.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum Price (INR)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Keep products at or above this price; 0 disables the lower bound.",
            "default": 0
          },
          "priceMax": {
            "title": "Maximum Price (INR)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "number",
            "description": "Keep products at or below this price; 0 disables the upper bound. It must not be below priceMin.",
            "default": 0
          },
          "ratings": {
            "title": "Minimum Rating",
            "enum": [
              "",
              "4 star & above",
              "3 star & above",
              "2 star & above",
              "1 star & above"
            ],
            "type": "string",
            "description": "Optional source rating threshold when Ajio exposes a rating in the response.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "discount-desc",
              "price-asc",
              "price-desc",
              "newest",
              "rating",
              "prce-asc",
              "prce-desc",
              "newn"
            ],
            "type": "string",
            "description": "Ajio source order or a globally sorted bounded candidate set. Historical misspellings remain accepted for compatibility.",
            "default": "relevance"
          },
          "maxProductsPerSearch": {
            "title": "Maximum Products",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Global normal-record limit for a search; 1–500.",
            "default": 100
          },
          "maxProducts": {
            "title": "Legacy Maximum Products",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Compatibility alias for maxProductsPerSearch."
          },
          "maxItems": {
            "title": "Legacy Item Limit",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Compatibility alias for maxProductsPerSearch."
          },
          "maxPages": {
            "title": "Maximum API Pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum pages fetched per source; 1–20. Ajio's totalPages metadata is followed within this bound.",
            "default": 10
          },
          "includeMedia": {
            "title": "Include Product Media",
            "type": "boolean",
            "description": "Include product image URLs and bounded image metadata from the Ajio product payload.",
            "default": true
          },
          "includeDiagnostics": {
            "title": "Include Diagnostics",
            "type": "boolean",
            "description": "On a bounded request or parser failure, add a minimal diagnostic row with url, error, errorCode, and scrapedAt. Diagnostics do not count toward product limits.",
            "default": false
          },
          "requestTimeoutSecs": {
            "title": "Request Timeout (seconds)",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "Timeout for each bounded Ajio API request; 10–90 seconds.",
            "default": 45
          },
          "maxRequestRetries": {
            "title": "Maximum Request Retries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Finite retries for transient request failures; 0–3.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Delay Between Pages (ms)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Respectful pacing delay between API pages; 0–5,000 ms.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy settings used by every live Ajio API request. The proxy is transparent routing, not CAPTCHA or fingerprint bypass.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            }
          },
          "proxy": {
            "title": "Legacy Proxy Configuration",
            "type": "object",
            "description": "Compatibility alias for proxyConfiguration when invoked programmatically; ignored when proxyConfiguration is supplied."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}