{
  "openapi": "3.0.1",
  "info": {
    "title": "Target Scraper: Prices, UPC, Variants, Store Stock & Reviews",
    "description": "Scrape Target.com products by keyword, category, brand, link, TCIN or UPC: price, regular and sale price, deals, rating, UPC and DPCI, every colour and size with its own price and stock, units on hand and aisle at your store, stock at nearby stores, and customer reviews.",
    "version": "0.0",
    "x-build-id": "tmdDiirRlWFqvc1AF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~target-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~target-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~target-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Words to search target.com for, one search each (for example coffee maker, lego star wars, nike running shoes). A target.com link typed here works too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Target links",
            "type": "array",
            "description": "Any target.com link: a search page (its sort and filters are kept), a category page (target.com/c/...), a brand page (target.com/b/...) or a product page (target.com/p/...).",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Item numbers or barcodes",
            "type": "array",
            "description": "Target item numbers (TCIN, the number after A- in a product link, like 91466170), UPC barcodes (like 611247401545) or DPCI store label codes (like 072-08-0313). Each returns one product with its full page.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerInput": {
            "title": "Products per search or link",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "The most products each search term or link returns. Target lets one search reach about 1,200 products; split a bigger one with price ranges or filters.",
            "default": 50
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "relevance",
              "bestselling",
              "price_low",
              "price_high",
              "top_rated",
              "newest"
            ],
            "type": "string",
            "description": "How Target orders search and category results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Lowest price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or above this, in whole dollars."
          },
          "maxPrice": {
            "title": "Highest price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or below this, in whole dollars."
          },
          "deals": {
            "title": "Deals only",
            "enum": [
              "none",
              "all_deals",
              "sale",
              "clearance",
              "weekly_ad",
              "bogo",
              "new_lower_price",
              "circle_offers"
            ],
            "type": "string",
            "description": "Keep only products in one of Target's deal groups. A search where Target lists no such deals returns nothing and says so.",
            "default": "none"
          },
          "includeSponsored": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Keep the paid placements Target mixes into search results (marked sponsored: true). Off by default: they repeat products from the regular results.",
            "default": false
          },
          "zipCode": {
            "title": "Your ZIP code",
            "type": "string",
            "description": "A US ZIP code. The nearest Target becomes your store: rows then show its pickup status, quantity on hand and aisle, and the options below can check stock at the stores around it."
          },
          "storeAvailability": {
            "title": "Available at your store",
            "enum": [
              "any",
              "pickup",
              "in_store",
              "same_day",
              "get_it_today"
            ],
            "type": "string",
            "description": "Keep only products Target offers this way at your store. Needs a ZIP code.",
            "default": "any"
          },
          "includeStoreStock": {
            "title": "Stock at nearby stores",
            "type": "boolean",
            "description": "For each product, the stores near your ZIP code with the quantity each holds and its pickup and in-store status. One extra request per product. Needs a ZIP code.",
            "default": false
          },
          "storeRadiusMiles": {
            "title": "Stores within (miles)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How far from your ZIP code to look for stores.",
            "default": 25
          },
          "maxStores": {
            "title": "Stores per product",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "The most stores listed for each product, nearest first.",
            "default": 10
          },
          "includeDetails": {
            "title": "Full product pages",
            "type": "boolean",
            "description": "Add each product's page: UPC barcode, every colour and size with its own price, UPC and availability, description, highlights, specifications, package size and weight, all images, the 1-5 star breakdown and sub-ratings. One extra request per product. Product links and barcodes always come with their page.",
            "default": false
          },
          "includeReviews": {
            "title": "Customer reviews",
            "type": "boolean",
            "description": "Add each product's reviews as their own rows (recordType: review), 50 a request. Colours and sizes of one product share one set of reviews, which is read once.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Reviews per product",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most reviews returned for each product.",
            "default": 50
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "most_recent",
              "most_helpful",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Which reviews come first.",
            "default": "most_recent"
          },
          "reviewRating": {
            "title": "Only reviews with this many stars",
            "enum": [
              "any",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Keep only 1, 2, 3, 4 or 5 star reviews.",
            "default": "any"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}