{
  "openapi": "3.0.1",
  "info": {
    "title": "Target Products Scraper — No Login Required",
    "description": "Collect Target product data from searches, categories, and product links. No login or cookies needed. Get prices, ratings, images, UPCs, DPCI, variations, and recent review samples.",
    "version": "0.1",
    "x-build-id": "nNNSdkhFBDrmTZpns"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crowdpull~target-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crowdpull-target-products-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/crowdpull~target-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crowdpull-target-products-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/crowdpull~target-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crowdpull-target-products-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": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Type the Target searches you want to collect, such as airpods pro 2, tide pods, or lego star wars.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Target Search, Category, or Product URLs",
            "type": "array",
            "description": "Paste Target search pages, category pages, or product pages.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "Target search, category, or product page URL."
                }
              }
            }
          },
          "productUrls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Paste Target product links when you only need specific items.",
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Optional category IDs from Target category URLs. Most users can paste the full category URL above instead.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "relevance",
              "featured",
              "price_asc",
              "price_desc",
              "rating_desc",
              "bestselling",
              "newest"
            ],
            "type": "string",
            "description": "Choose how Target should sort search and category results.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum Price USD",
            "minimum": 0,
            "type": "number",
            "description": "Only save products priced at or above this amount."
          },
          "maxPrice": {
            "title": "Maximum Price USD",
            "minimum": 0,
            "type": "number",
            "description": "Only save products priced at or below this amount."
          },
          "minRating": {
            "title": "Minimum Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only save products with this rating or higher."
          },
          "organicOnly": {
            "title": "Skip Sponsored Results",
            "type": "boolean",
            "description": "Skip sponsored products when Target marks them as ads.",
            "default": true
          },
          "defaultPurchasabilityFilter": {
            "title": "Hide Out-of-Stock Search Results",
            "type": "boolean",
            "description": "Ask Target to hide out-of-stock results when available.",
            "default": true
          },
          "maxItemsPerInput": {
            "title": "Max Items Per Input",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum products to save for each search, category, or product link group.",
            "default": 50
          },
          "maxPagesPerInput": {
            "title": "Max Search/Category Pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum Target result pages to check for each search or category.",
            "default": 3
          },
          "includeDetails": {
            "title": "Include Product Details",
            "type": "boolean",
            "description": "Turn on for richer fields such as UPC, DPCI, descriptions, specs, shipping notes, rating breakdown, and recent review samples.",
            "default": false
          },
          "includeRecentReviews": {
            "title": "Include Recent Review Samples",
            "type": "boolean",
            "description": "Add a small sample of recent reviews when product details are enabled.",
            "default": false
          },
          "maxRecentReviewsPerProduct": {
            "title": "Max Recent Reviews Per Product",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum recent review samples to save for each product.",
            "default": 5
          },
          "storeId": {
            "title": "Pricing Store ID",
            "type": "string",
            "description": "Target store ID used for local price context. Leave the default unless you need a specific store.",
            "default": "2885"
          },
          "availabilityStoreIds": {
            "title": "Availability Store IDs",
            "type": "array",
            "description": "Optional Target store IDs for local availability checks.",
            "items": {
              "type": "string"
            }
          },
          "zipCode": {
            "title": "ZIP Code",
            "type": "string",
            "description": "Optional ZIP code to keep with the saved rows."
          },
          "stateCode": {
            "title": "State Code",
            "type": "string",
            "description": "Optional two-letter state code to keep with the saved rows."
          },
          "onlyNew": {
            "title": "Only Save New Or Changed Products",
            "type": "boolean",
            "description": "For scheduled runs, save only products that are new or changed since the last run.",
            "default": false
          },
          "cacheName": {
            "title": "Monitoring Cache Name",
            "type": "string",
            "description": "Use the same cache name across scheduled runs so the actor can spot new or changed products.",
            "default": "target-products-scraper-cache"
          },
          "maxConcurrency": {
            "title": "Product Detail Speed",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Advanced: how many product detail lookups can run at the same time.",
            "default": 6
          },
          "requestDelayMs": {
            "title": "Delay Between Pages",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Advanced: delay between page checks, in milliseconds.",
            "default": 250
          },
          "requestTimeoutMs": {
            "title": "Wait Time Per Request",
            "minimum": 5000,
            "maximum": 45000,
            "type": "integer",
            "description": "Advanced: maximum time to wait for Target before retrying.",
            "default": 20000
          },
          "maxRequestRetries": {
            "title": "Retry Attempts",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Advanced: retry temporary Target or proxy failures before giving up.",
            "default": 3
          },
          "proxyMode": {
            "title": "Proxy Mode",
            "enum": [
              "off",
              "fallbackOnFailure",
              "all"
            ],
            "type": "string",
            "description": "Leave off for normal runs. Use proxy fallback only if runs start getting blocked or you need location tests.",
            "default": "off"
          },
          "saveDebugResponses": {
            "title": "Save Troubleshooting Samples",
            "type": "boolean",
            "description": "Advanced: save failed response samples for troubleshooting.",
            "default": false
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional proxy settings. Leave disabled unless requests are blocked or you need location tests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}