{
  "openapi": "3.0.1",
  "info": {
    "title": "Refurb Mac Sniper",
    "description": "Monitor Apple Certified Refurbished for Mac Studio, Mac mini & every Mac. Instant Discord/Slack/webhook alerts on restocks, new listings, and price drops. Built for the 2026 shortage: refurb Studios sell out in minutes.",
    "version": "0.3",
    "x-build-id": "gNWtzoghoKeco62fj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pyralislabs~refurb-mac-sniper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pyralislabs-refurb-mac-sniper",
        "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/pyralislabs~refurb-mac-sniper/runs": {
      "post": {
        "operationId": "runs-sync-pyralislabs-refurb-mac-sniper",
        "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/pyralislabs~refurb-mac-sniper/run-sync": {
      "post": {
        "operationId": "run-sync-pyralislabs-refurb-mac-sniper",
        "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": {
          "watchMode": {
            "title": "Watch mode",
            "enum": [
              "models",
              "productUrls",
              "entireGrid"
            ],
            "type": "string",
            "description": "What to watch: filtered models on the refurbished grid (recommended), specific product URLs, or the entire Mac grid.",
            "default": "models"
          },
          "models": {
            "title": "Models to watch",
            "type": "array",
            "description": "Which Mac families to watch (used in 'models' mode). Default: Mac Studio + Mac mini — the 2026 shortage stars.",
            "items": {
              "type": "string",
              "enum": [
                "macstudio",
                "macmini",
                "macbookpro",
                "macbookair",
                "imac",
                "macpro",
                "display"
              ],
              "enumTitles": [
                "Mac Studio",
                "Mac mini",
                "MacBook Pro",
                "MacBook Air",
                "iMac",
                "Mac Pro",
                "Displays"
              ]
            },
            "default": [
              "macstudio",
              "macmini"
            ]
          },
          "productUrls": {
            "title": "Specific product URLs",
            "type": "array",
            "description": "Apple refurbished product page URLs to watch (used in 'productUrls' mode). Works even while the product is unavailable — you get a back-in-stock alert the moment it returns. Default: the M3 Ultra Mac Studio.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Apple Store country",
            "enum": [
              "us",
              "uk",
              "ca",
              "de",
              "fr",
              "au",
              "it",
              "es",
              "nl",
              "jp"
            ],
            "type": "string",
            "description": "Which country's refurbished storefront to watch.",
            "default": "us"
          },
          "minMemoryGb": {
            "title": "Minimum unified memory (GB)",
            "minimum": 0,
            "type": "integer",
            "description": "Only match listings with at least this much unified memory. Set 64+ if you're hunting an LLM box. 0 = no filter.",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only match listings at or above this price. 0 = no filter.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only match listings at or below this price. 0 = no filter.",
            "default": 0
          },
          "keywordFilter": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Only match listings whose name contains this text (e.g. 'M3 Ultra').",
            "default": ""
          },
          "webhookUrls": {
            "title": "Notification webhook URLs",
            "type": "array",
            "description": "Where to send instant alerts. Discord and Slack webhook URLs are auto-detected and get rich formatted messages; anything else receives a clean JSON POST (n8n, Make, Zapier, your own endpoint).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "webhookFormat": {
            "title": "Webhook payload format",
            "enum": [
              "auto",
              "discord",
              "slack",
              "generic"
            ],
            "type": "string",
            "description": "Auto-detect by URL (recommended), or force a format.",
            "default": "auto"
          },
          "webhookBearerToken": {
            "title": "Webhook bearer token (optional)",
            "type": "string",
            "description": "Sent as 'Authorization: Bearer <token>' with generic JSON webhooks."
          },
          "notifyOn": {
            "title": "Alert on",
            "type": "array",
            "description": "Which events trigger webhooks.",
            "items": {
              "type": "string",
              "enum": [
                "new-listing",
                "back-in-stock",
                "price-drop",
                "gone"
              ],
              "enumTitles": [
                "New listing appears",
                "Back in stock",
                "Price drop",
                "Sold out (gone)"
              ]
            },
            "default": [
              "new-listing",
              "back-in-stock",
              "price-drop"
            ]
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Apple serves these pages without blocking, so no proxy is needed or used by default. Escape hatch if that ever changes.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}