{
  "openapi": "3.0.1",
  "info": {
    "title": "Target Scraper: Products, Prices & Store Stock, No Login",
    "description": "Track Target.com prices, deals and shelf stock for any store or ZIP. Search by keyword, category, link, TCIN or UPC; add reviews, nearby-store stock and change-only runs. No login.",
    "version": "0.1",
    "x-build-id": "G0mMZWyuGQA7HSH80"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~target-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-target-scraper",
        "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/cliqtomedia~target-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-target-scraper",
        "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/cliqtomedia~target-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-target-scraper",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "product"
            ],
            "type": "string",
            "description": "Search keywords and categories with optional product links, or select Products to look up only product URLs and TCINs.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One or more phrases to search on Target.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Target category links, for example https://www.target.com/c/headphones-electronics/-/N-5xteg.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs or TCINs",
            "type": "array",
            "description": "Target product links or numeric TCINs. Can be mixed with searches.",
            "items": {
              "type": "string"
            }
          },
          "storeId": {
            "title": "Target store ID",
            "pattern": "^[0-9]{1,10}$",
            "type": "string",
            "description": "Store ID for local stock. Target may return an online price from another pricing location; check priceLocationId in each row.",
            "default": "2281"
          },
          "zipCode": {
            "title": "US ZIP code",
            "pattern": "^[0-9]{5}$",
            "type": "string",
            "description": "Optional ZIP code to request local stock near a store."
          },
          "sort": {
            "title": "Sort search results",
            "enum": [
              "relevance",
              "price_low",
              "price_high",
              "bestselling",
              "newest",
              "rating"
            ],
            "type": "string",
            "description": "Order for search and category pages.",
            "default": "relevance"
          },
          "onlyInStock": {
            "title": "Only in stock",
            "type": "boolean",
            "description": "Return products available for shipping, pickup or in the selected store.",
            "default": false
          },
          "onlyClearance": {
            "title": "Only clearance or discounted",
            "type": "boolean",
            "description": "Return products marked clearance or offered below regular price.",
            "default": false
          },
          "minDiscountPercent": {
            "title": "Minimum discount (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep products with at least this percent off regular price."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep products priced at or below this amount."
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Add Target-sponsored recommendations when available. For keyword searches, match sponsored recommendations from the top result category to your keywords.",
            "default": true
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Also save up to this many customer reviews for each product found, as separate rows with status \"review\". 0 turns reviews off. Each review row is a paid result.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Review order",
            "enum": [
              "most_recent",
              "helpfulness_desc",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Which reviews come first.",
            "default": "most_recent"
          },
          "useNearestStore": {
            "title": "Use the nearest store to ZIP code",
            "type": "boolean",
            "description": "Find the closest Target store to the ZIP code and use it for prices and stock instead of Store ID. Needs a ZIP code.",
            "default": false
          },
          "nearbyStoresCount": {
            "title": "Nearby stores to check",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Add stock for up to this many stores near the ZIP code to each product (field nearbyStores). Needs a ZIP code. 0 turns it off. Adds one request per product.",
            "default": 0
          },
          "nearbyRadiusMiles": {
            "title": "Nearby radius, miles",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How far from the ZIP code to look for nearby stores.",
            "default": 25
          },
          "onlyChanges": {
            "title": "Only new or changed products",
            "type": "boolean",
            "description": "Remember prices and stock between runs with the same input, and save only products that are new or whose price or stock changed. Unchanged products are skipped and not charged. Good for scheduled price watching.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum products",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum product rows across all inputs. Target shows about 1,200 products per search, so a higher number helps only with several keywords, categories or links.",
            "default": 100
          },
          "maxProductsPerSearch": {
            "title": "Maximum per search or category",
            "minimum": 1,
            "type": "integer",
            "description": "Optional extra limit for each keyword or category."
          },
          "maxSearchPages": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Each page has up to 24 products; Target exposes up to 50 pages.",
            "default": 50
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries for temporary errors and rate limits.",
            "default": 2
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}