{
  "openapi": "3.0.1",
  "info": {
    "title": "Cashify Scraper: Used Phone Resale Prices India",
    "description": "Scrape used device resale and buyback prices from Cashify India. Get city-specific quotes for phones, laptops, tablets, and watches with storage variants, minimum and maximum prices, repair cost, and image links. Export to Excel, Google Sheets, CSV, or JSON.",
    "version": "0.2",
    "x-build-id": "6K32rJrjC6FQvySvy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~cashify-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-cashify-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/getascraper~cashify-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-cashify-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/getascraper~cashify-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-cashify-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": {
          "brand": {
            "title": "Brand (single)",
            "type": "string",
            "description": "Backward-compatible single brand value. Use brands for a batch."
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Brand names to query. In cartesian mode, every dimension is combined.",
            "items": {
              "type": "string"
            }
          },
          "model": {
            "title": "Model (single)",
            "type": "string",
            "description": "Optional model text used to narrow product links."
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Optional model filters for a batch.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category (single)",
            "enum": [
              "mobile",
              "laptop",
              "tablet",
              "smartwatch"
            ],
            "type": "string",
            "description": "mobile, laptop, tablet, or smartwatch."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Categories to query in a batch.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City (single)",
            "type": "string",
            "description": "Requested city sent to Cashify. The output only labels a city match when the source payload provides matching evidence."
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Requested cities for a batch. A requested city is not treated as proof of quote locality.",
            "items": {
              "type": "string"
            }
          },
          "pincode": {
            "title": "Pincode (single)",
            "type": "string",
            "description": "Requested Indian pincode. Cashify source evidence determines regionQuality."
          },
          "pincodes": {
            "title": "Pincodes",
            "type": "array",
            "description": "Requested pincodes for a batch.",
            "items": {
              "type": "string"
            }
          },
          "inputs": {
            "title": "Explicit target objects",
            "type": "array",
            "description": "Optional explicit batch rows. Each object can include inputId, brand, model, category, city, and pincode.",
            "items": {
              "type": "object",
              "properties": {
                "inputId": {
                  "title": "Input ID",
                  "type": "string",
                  "description": "Stable identifier for this batch target."
                },
                "brand": {
                  "title": "Brand",
                  "type": "string",
                  "description": "Device brand sent to the source."
                },
                "model": {
                  "title": "Model",
                  "type": "string",
                  "description": "Optional model text sent to the source."
                },
                "category": {
                  "title": "Category",
                  "type": "string",
                  "description": "Device category used for the source query.",
                  "enum": [
                    "mobile",
                    "laptop",
                    "tablet",
                    "smartwatch"
                  ]
                },
                "city": {
                  "title": "City",
                  "type": "string",
                  "description": "Requested city for this target."
                },
                "pincode": {
                  "title": "Pincode",
                  "type": "string",
                  "description": "Requested Indian pincode for this target."
                }
              }
            }
          },
          "batchMode": {
            "title": "Batch combination",
            "enum": [
              "cartesian",
              "zip"
            ],
            "type": "string",
            "description": "cartesian combines dimensions. zip pairs dimensions by index and repeats singleton dimensions.",
            "default": "cartesian"
          },
          "quoteTypes": {
            "title": "Quote types",
            "type": "array",
            "description": "Filter output to source-distinct buyback and/or refurbished quote rows. No type is inferred from a generic retail price.",
            "items": {
              "type": "string"
            },
            "default": [
              "buyback"
            ]
          },
          "quoteType": {
            "title": "Quote type (single)",
            "enum": [
              "buyback",
              "refurbished",
              "both"
            ],
            "type": "string",
            "description": "Backward-compatible single quote type."
          },
          "conditions": {
            "title": "Condition filters",
            "type": "array",
            "description": "Source-provided condition or grade values to keep.",
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition (single)",
            "type": "string",
            "description": "Backward-compatible single condition filter."
          },
          "storages": {
            "title": "Storage filters",
            "type": "array",
            "description": "Storage values such as 128 GB or 256 GB.",
            "items": {
              "type": "string"
            }
          },
          "storage": {
            "title": "Storage (single)",
            "type": "string",
            "description": "Backward-compatible single storage filter."
          },
          "variants": {
            "title": "Variant filters",
            "type": "array",
            "description": "Variant name or stable variantId values to keep.",
            "items": {
              "type": "string"
            }
          },
          "variant": {
            "title": "Variant (single)",
            "type": "string",
            "description": "Backward-compatible single variant filter."
          },
          "maxItems": {
            "title": "Maximum quote rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum sorted quote rows emitted. Failure rows are emitted in addition.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort field",
            "enum": [
              "priceInr",
              "brand",
              "model",
              "category",
              "city",
              "productId",
              "variantId",
              "quoteType",
              "storage",
              "retrievedAt"
            ],
            "type": "string",
            "description": "Deterministic source-field sort with stable product and variant ID tie-breaking.",
            "default": "productId"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending or descending order for the selected sort field.",
            "default": "asc"
          },
          "monitorMode": {
            "title": "Monitor mode",
            "enum": [
              "snapshot",
              "changes"
            ],
            "type": "string",
            "description": "snapshot emits current rows. changes emits NEW, UPDATED, PRICE_CHANGED, REMOVED, and REAPPEARED rows and suppresses UNCHANGED unless requested.",
            "default": "snapshot"
          },
          "stateKey": {
            "title": "State key",
            "pattern": "^[A-Za-z0-9_.:-]{1,120}$",
            "type": "string",
            "description": "Explicit stable key for one quote history. Required when monitorMode is changes.",
            "default": "cashify-snapshot"
          },
          "includeUnchanged": {
            "title": "Include unchanged rows",
            "type": "boolean",
            "description": "In changes mode, also emit rows whose source fields did not change.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy configuration. India residential access may be needed for source quotes."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}