{
  "openapi": "3.0.1",
  "info": {
    "title": "GPU Restock Monitor - Verified Alerts with Proof",
    "description": "Track RTX 5080 and GPU restocks across Best Buy and Newegg (proven Oct 2026) with verified in-stock transitions and evidence URLs for PC builders. $0.10 per verified-transition-row; checks, blocks, suppressed soft-200s $0. Rows carry source URL, checked timestamp, and verified-transition notice.",
    "version": "0.1",
    "x-build-id": "FdZI8r1AsxExziu8F"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyworks~gpu-restock-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyworks-gpu-restock-monitor",
        "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/steadyworks~gpu-restock-monitor/runs": {
      "post": {
        "operationId": "runs-sync-steadyworks-gpu-restock-monitor",
        "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/steadyworks~gpu-restock-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-steadyworks-gpu-restock-monitor",
        "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": [
          "watchlist"
        ],
        "properties": {
          "nowIso": {
            "title": "Run time",
            "type": "string",
            "description": "Run time for this check (ISO instant). Default uses the sample time. Omit to run against live time.",
            "default": "2026-09-28T12:00:00Z"
          },
          "observations": {
            "title": "Observations",
            "type": "array",
            "description": "Current store state for this run (price and availability with source URL and checked time per product). Sample shape: 4 checks.",
            "items": {
              "type": "object",
              "properties": {
                "variantId": {
                  "type": "string",
                  "title": "Product ID",
                  "description": "Must exactly match a saved product ID; unmatched checks are ignored, never billed."
                },
                "sourceUrl": {
                  "type": "string",
                  "title": "Source URL",
                  "description": "Product page URL for this check."
                },
                "price": {
                  "type": "number",
                  "title": "Price",
                  "description": "Observed price; empty when unavailable.",
                  "nullable": true
                },
                "availability": {
                  "type": "string",
                  "title": "Availability",
                  "description": "Observed availability (in-stock means available).",
                  "nullable": true
                },
                "checkedAt": {
                  "type": "string",
                  "title": "Checked at",
                  "description": "When this check was taken (ISO instant)."
                },
                "adapterHealth": {
                  "type": "string",
                  "title": "Access health",
                  "description": "Store access health for this check.",
                  "enum": [
                    "ok",
                    "degraded"
                  ]
                }
              }
            }
          },
          "partitionSignal": {
            "title": "Extra region signal",
            "type": "object",
            "description": "Optional signal for extra region groups. Omit when there is none.",
            "properties": {
              "armedPartitions": {
                "type": "array",
                "title": "Signaled regions",
                "description": "Region ids with a live signal. Omit the whole signal when there is none.",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "perRunCapUsd": {
            "title": "Per-run cap (USD)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Per-run spend cap in USD, 0 to 5 max, defaults to 5 when omitted. 50 URLs x $0.10 = $5.00 worst case; the cap stops the run with no rows on trip. Increase the cap and run again to collect rows.",
            "default": 5
          },
          "capMode": {
            "title": "Cap mode",
            "enum": [
              "capped",
              "complete-input"
            ],
            "type": "string",
            "description": "Run scope: capped (default, max $5.00 for up to 50 rows) or complete-input (processes the entire input; worst case (your URL count x $0.10) is quoted before any charge, never above $5.00).",
            "default": "capped"
          },
          "storedBaseline": {
            "title": "Saved store state",
            "required": [
              "watchlistId",
              "variants"
            ],
            "type": "object",
            "description": "Saved per-product state (shop plus price and availability). Sample shape: 3 products. Unknown products in checks are ignored, never billed.",
            "properties": {
              "watchlistId": {
                "type": "string",
                "title": "Watchlist name",
                "description": "Must match the run watchlist; otherwise every check is ignored."
              },
              "variants": {
                "type": "array",
                "title": "Saved products",
                "description": "Per-product saved state (availability, last price, shop). Unknown products in checks are ignored, never billed.",
                "items": {
                  "type": "object",
                  "properties": {
                    "variantId": {
                      "type": "string",
                      "title": "Product ID",
                      "description": "Saved product ID for matching checks."
                    },
                    "sku": {
                      "type": "string",
                      "title": "SKU",
                      "description": "Shop SKU for the watched product."
                    },
                    "retailer": {
                      "type": "string",
                      "title": "Retailer",
                      "description": "Retailer for the saved row.",
                      "enum": [
                        "newegg",
                        "bestbuy"
                      ]
                    },
                    "availability": {
                      "type": "string",
                      "title": "Availability",
                      "description": "Saved availability (in-stock means available)."
                    },
                    "lastPrice": {
                      "type": "number",
                      "title": "Last price",
                      "description": "Saved price before this check.",
                      "nullable": true
                    },
                    "checkedAt": {
                      "type": "string",
                      "title": "Checked at",
                      "description": "When the saved state was recorded (ISO instant)."
                    }
                  }
                }
              }
            },
            "additionalProperties": false
          },
          "watchlist": {
            "title": "Watchlist",
            "required": [
              "watchlistId",
              "skuUrls",
              "partition",
              "partitionMode",
              "priceDropPct",
              "scheduleHours"
            ],
            "type": "object",
            "description": "Your watchlist: 1-50 Newegg/Best Buy product URLs with region, mode, drop threshold %, and hourly schedule.",
            "properties": {
              "watchlistId": {
                "type": "string",
                "title": "Watchlist name",
                "description": "Watchlist name (lowercase, hyphens, max 64 chars).",
                "pattern": "^[a-z0-9-]{1,64}$",
                "errorMessage": {
                  "type": "Watchlist ID must be a string.",
                  "pattern": "Watchlist ID must be a lowercase slug (a-z, 0-9, hyphen), max 64 chars — e.g. syn-watch-01."
                }
              },
              "skuUrls": {
                "type": "array",
                "title": "SKU URLs",
                "description": "Product page URLs, Newegg and Best Buy only (https). 1-50 per run; a 51st URL is rejected before any check, $0. Each URL max 500 chars.",
                "minItems": 1,
                "maxItems": 50,
                "items": {
                  "type": "string"
                }
              },
              "partition": {
                "type": "string",
                "title": "Partition",
                "description": "Region group for this run. Use P1; extra groups stay quiet without their signal.",
                "enum": [
                  "P1",
                  "P2",
                  "P3"
                ]
              },
              "partitionMode": {
                "type": "string",
                "title": "Partition mode",
                "description": "armed runs now; quiet skips with no cost.",
                "enum": [
                  "armed",
                  "quiet"
                ]
              },
              "priceDropPct": {
                "type": "number",
                "title": "Price-drop threshold %",
                "description": "Drop percent vs saved price that triggers a price-drop row.",
                "minimum": 0,
                "maximum": 100
              },
              "scheduleHours": {
                "type": "number",
                "title": "Schedule hours",
                "description": "Hourly schedule (1). Faster checks are not offered.",
                "minimum": 1,
                "maximum": 1
              },
              "ceilingUsd": {
                "type": "number",
                "title": "Price ceiling (USD)",
                "description": "Optional price ceiling for drop alerts. Empty means no ceiling.",
                "minimum": 0,
                "nullable": true
              }
            },
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}