{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Deal Hubs & Price-Drop Monitor",
    "description": "Track eBay's curated deal hubs across eight marketplaces. Get deal prices, original prices, discount percentages, free shipping, refurbishment badges and per-hub discount summaries, plus a monitor mode that returns only new deals and price drops.",
    "version": "1.0",
    "x-build-id": "IxPFMLfErciFjbQbw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~ebay-deals-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-ebay-deals-tracker",
        "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/crawlyth-forge~ebay-deals-tracker/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-ebay-deals-tracker",
        "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/crawlyth-forge~ebay-deals-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-ebay-deals-tracker",
        "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": {
          "marketplaces": {
            "title": "Marketplaces",
            "type": "array",
            "description": "eBay sites to read. The United States has the full Global Deals hub tree; the other sites expose their own curated Deals hub tree. Prices come back in each site's currency.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "DE",
                "AU",
                "CA",
                "FR",
                "IT",
                "ES"
              ],
              "enumTitles": [
                "United States (ebay.com)",
                "United Kingdom (ebay.co.uk)",
                "Germany (ebay.de)",
                "Australia (ebay.com.au)",
                "Canada (ebay.ca)",
                "France (ebay.fr)",
                "Italy (ebay.it)",
                "Spain (ebay.es)"
              ]
            },
            "default": [
              "US"
            ]
          },
          "hubs": {
            "title": "Deal hub groups",
            "type": "array",
            "description": "Curated deal sections to read. Each group follows the marketplace's own hub menu, including its subcategories. Select all to walk every hub page in the menu.",
            "items": {
              "type": "string",
              "enum": [
                "featured",
                "tech",
                "fashion",
                "homeGarden",
                "collectibles",
                "motors",
                "healthBeauty",
                "sports",
                "toys",
                "businessIndustrial",
                "coins",
                "all"
              ],
              "enumTitles": [
                "Featured deals",
                "Tech and electronics",
                "Fashion, jewellery and watches",
                "Home and garden",
                "Collectibles and art",
                "Motors and automotive",
                "Health and beauty",
                "Sports, fitness and outdoors",
                "Toys, hobbies and models",
                "Business and industrial",
                "Coins and bullion",
                "All hub pages"
              ]
            },
            "default": [
              "featured"
            ]
          },
          "customHubUrls": {
            "title": "Extra hub URLs",
            "type": "array",
            "description": "Optional eBay deal hub URLs or paths to add to the selected groups, for example a campaign page under /deals/featured or /globaldeals.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only keep deals whose title contains every word in this filter. Leave empty to keep every deal."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop deals whose title contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "minDiscountPercent": {
            "title": "Minimum discount %",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Only keep deals showing at least this discount. Deals without a published original price and discount are dropped when this is above zero.",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum deal price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Lowest deal price to keep, in the marketplace currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum deal price",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "number",
            "description": "Highest deal price to keep, in the marketplace currency. Leave empty for no maximum."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Keep only deals whose card states free shipping or free postage.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "refurbished",
              "used",
              "forParts"
            ],
            "type": "string",
            "description": "Keep only deals whose card carries a condition badge. eBay's deal cards label refurbished stock most consistently; other conditions are omitted when the card does not state one.",
            "default": "any"
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Compare this run with the previous run in the same monitor key and return only new deals and price drops. The first monitor run is the baseline.",
            "default": false
          },
          "monitorChangeTypes": {
            "title": "Changes to return",
            "type": "array",
            "description": "Which changes monitor mode should return. New deals are items not present in the previous run; price drops are items whose deal price fell.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "priceDrop"
              ],
              "enumTitles": [
                "New deals",
                "Price drops"
              ]
            },
            "default": [
              "new",
              "priceDrop"
            ]
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name for this monitor. Use the same key on every scheduled run; use a different key for another set of hubs or filters.",
            "default": "default"
          },
          "resetMonitorState": {
            "title": "Reset monitor state",
            "type": "boolean",
            "description": "Clear the saved prices for this monitor key before the run, so every current deal is treated as new.",
            "default": false
          },
          "sortBy": {
            "title": "Sort deals by",
            "enum": [
              "hubOrder",
              "discountHigh",
              "priceLow",
              "priceHigh"
            ],
            "type": "string",
            "description": "Order of the deal rows across all selected hubs and marketplaces.",
            "default": "hubOrder"
          },
          "maxItems": {
            "title": "Maximum deal rows",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Total deal rows to save. Summary rows are not counted against this limit.",
            "default": 100
          },
          "maxHubPages": {
            "title": "Maximum hub pages per marketplace",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on hub pages read per marketplace. The full US menu is about 35 pages and the largest international menu is about 50.",
            "default": 60
          },
          "includeSummary": {
            "title": "Include hub summaries",
            "type": "boolean",
            "description": "Add one summary row per hub with deal counts, median discount and price range.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}