{
  "openapi": "3.0.1",
  "info": {
    "title": "Amazon Real Deal Finder: Today's Price vs Its Price History",
    "description": "Amazon.com products by search or ASIN with today's price, the discount Amazon claims, and the real price history from the Internet Archive: lowest, highest and average over the years. A verdict per product: real deal, good price, usual price or above usual. Schedule it to catch drops.",
    "version": "1.0",
    "x-build-id": "SDp1CMhuxY1e5N2qc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wellbuilt_zythem~amazon-real-deals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wellbuilt_zythem-amazon-real-deals",
        "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/wellbuilt_zythem~amazon-real-deals/runs": {
      "post": {
        "operationId": "runs-sync-wellbuilt_zythem-amazon-real-deals",
        "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/wellbuilt_zythem~amazon-real-deals/run-sync": {
      "post": {
        "operationId": "run-sync-wellbuilt_zythem-amazon-real-deals",
        "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": {
          "searches": {
            "title": "Searches",
            "type": "array",
            "description": "Keywords as you would type them on amazon.com (\"air fryer\"), or an amazon.com search link with your filters already set. Every product found is checked against its price history, up to \"Max products\".",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "Products",
            "type": "array",
            "description": "Amazon.com ASINs or product links, one per line: \"B01AKGRTUM\" or \"https://www.amazon.com/dp/B01AKGRTUM\". Checked before the search results.",
            "items": {
              "type": "string"
            }
          },
          "pagesPerSearch": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Result pages to read per search, 16 to 48 products each. 1 to 5.",
            "default": 1
          },
          "maxProducts": {
            "title": "Max products",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Products checked against the Internet Archive per run, at most 150. Reading the history takes about 30 seconds per product (3 at a time), so 40 products are about 7 minutes. Products over the limit are delivered without a verdict and not charged.",
            "default": 40
          },
          "minClaimedDiscountPct": {
            "title": "Only check products Amazon shows at least this % off",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "0 checks every product. 20 checks only products whose page shows a discount of 20 % or more against the list price, which is where the inflated \"deals\" hide. Products below the threshold are delivered with today's data and no verdict, free.",
            "default": 0
          },
          "period": {
            "title": "One archived price per",
            "enum": [
              "month",
              "week"
            ],
            "type": "string",
            "description": "Month: one archived copy per month (the default). Week: one per week, for products the Internet Archive saved often.",
            "default": "month"
          },
          "maxPointsPerProduct": {
            "title": "Max archived prices per product",
            "minimum": 3,
            "maximum": 60,
            "type": "integer",
            "description": "Most recent archived prices kept per product, 3 to 60. 24 months is two years. A product with fewer than 3 archived prices gets no verdict and is not charged.",
            "default": 24
          },
          "onlyDeals": {
            "title": "Only deliver real deals and good prices",
            "type": "boolean",
            "description": "On: only products whose price today is at or under their historic low (real deal) or at least 10 % under their average (good price). Off: every product, with its verdict.",
            "default": false
          },
          "stateStoreName": {
            "title": "Tracker memory name",
            "type": "string",
            "description": "Key-value store that remembers prices between runs, so each row also says what the product cost in your last run. Use one name per list you track and keep it the same every run.",
            "default": "amazon-real-deals-memory"
          },
          "resetState": {
            "title": "Forget previous runs",
            "type": "boolean",
            "description": "Start the memory from scratch in this run.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy for amazon.com",
            "type": "object",
            "description": "Not needed: measured without proxy from Apify. Optional if you prefer your own. The Internet Archive is always read without proxy.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}