{
  "openapi": "3.0.1",
  "info": {
    "title": "Apple Store Stock Checker & API: iPhone Pickup & Prices",
    "description": "Apple Store stock checker and API: is an iPhone, iPad or Mac available for pickup at the Apple Stores near your ZIP code or city? Prices in 38 countries, delivery status, store address and hours. Any model or part number. Scheduled runs = restock and price-drop alerts.",
    "version": "0.1",
    "x-build-id": "8lRhRrcradn6rN9Ts"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~apple-store-stock-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-apple-store-stock-checker",
        "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/s_actors~apple-store-stock-checker/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-apple-store-stock-checker",
        "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/s_actors~apple-store-stock-checker/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-apple-store-stock-checker",
        "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": {
          "country": {
            "title": "🌍 Apple Store country",
            "enum": [
              "us",
              "ca",
              "mx",
              "br",
              "cl",
              "uk",
              "ie",
              "de",
              "at",
              "fr",
              "it",
              "es",
              "pt",
              "nl",
              "lu",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "hu",
              "tr",
              "ae",
              "sa",
              "in",
              "jp",
              "kr",
              "tw",
              "hk",
              "sg",
              "my",
              "th",
              "vn",
              "ph",
              "au",
              "nz"
            ],
            "type": "string",
            "description": "Which apple.com store to read prices and stock from. A pasted apple.com link of another country (https://www.apple.com/uk/shop/...) uses its own country.",
            "default": "us"
          },
          "models": {
            "title": "📱 Models",
            "type": "array",
            "description": "iPhone, iPad and Mac models, one per line: a name (\"iphone 17\", \"iphone air\", \"macbook air\", \"ipad pro\") or a model link (https://www.apple.com/shop/buy-iphone/iphone-17). Every storage size, colour and configuration of the model is checked.",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "🏷️ Part numbers or product links",
            "type": "array",
            "description": "Exact products, one per line: an Apple part number from the box or the product page (MG6L4QN/A) or a product link (https://www.apple.com/shop/product/MG6L4QN/A). Works for any Apple product, also AirPods, Watch and accessories. Best for a restock watchlist.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "🗂️ Categories",
            "type": "array",
            "description": "Whole product lines, one per line: iphone, ipad, mac. Every model of the line is checked (about 40 iPhone, 100+ iPad and 30 Mac part numbers per country).",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "📍 Locations (store pickup)",
            "type": "array",
            "description": "Where to look for Apple Stores, one per line. US: a ZIP code or \"City, ST\" (\"94105\", \"Austin, TX\"; a bare city name finds nothing). Other countries: a postcode or a city (\"SW1A 1AA\", \"Berlin\", \"Paris\"). For each location the nearest Apple Stores show whether the product can be picked up. Empty = prices and delivery only.",
            "items": {
              "type": "string"
            }
          },
          "storesPerLocation": {
            "title": "🏬 Stores per location",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many of the nearest Apple Stores to report (Apple returns up to 12).",
            "default": 12
          },
          "maxItemsPerQuery": {
            "title": "🔢 Max products per query",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many part numbers to take from each model, category or link. 0 = all of them.",
            "default": 100
          },
          "inStockOnly": {
            "title": "✅ Only available",
            "type": "boolean",
            "description": "With locations: only stores where pickup is available. Without: only products that can be ordered now.",
            "default": false
          },
          "maxPrice": {
            "title": "💲 Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Return only products at or below this price, in the currency of the country. Empty = any."
          },
          "onlyChanges": {
            "title": "🔔 Only report changes",
            "type": "boolean",
            "description": "For scheduled runs. The first run saves prices and stock; later runs return only what changed: back in stock, sold out, price drops and rises, new products. You pay only for the changes returned.",
            "default": false
          },
          "monitorName": {
            "title": "🏷️ Monitor name",
            "type": "string",
            "description": "Separate monitors keep separate memory. Use a different name for each scheduled task.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}