{
  "openapi": "3.0.1",
  "info": {
    "title": "Target Reviews Scraper",
    "description": "Target Reviews gets Target.com product reviews by TCIN or URL: rating, title, full text, author, helpful votes, verification, photos and videos, sentiment and issue labels, plus product rating totals. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "IYe4TP5PFKwn9xXLF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~target-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-target-reviews-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/fastdataapi~target-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-target-reviews-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/fastdataapi~target-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-target-reviews-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",
        "required": [
          "products"
        ],
        "properties": {
          "products": {
            "title": "🆔 Product TCIN(s) or URL(s)",
            "type": "array",
            "description": "Target product TCIN (e.g. 92148487), \"A-92148487\", or any target.com product URL. Add one or more; each gets its own rows.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max reviews per product",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum reviews returned FOR EACH product above (not a run-wide total); a product with fewer reviews gives all of them. Free plan: up to 20 reviews per run (all products together) and 200 per month; paid plans have no limit.",
            "default": 20
          },
          "sortBy": {
            "title": "🔃 Sort reviews by",
            "enum": [
              "most_recent",
              "helpfulness_desc",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Review order, as Target's own review filter offers it.",
            "default": "most_recent"
          },
          "ratingFilter": {
            "title": "🎯 Star filter",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Only return reviews with this star rating.",
            "default": "0"
          },
          "verifiedOnly": {
            "title": "✅ Verified purchases only",
            "type": "boolean",
            "description": "Target's own \"verified purchase\" filter.",
            "default": false
          },
          "photosOnly": {
            "title": "✅ Photos only",
            "type": "boolean",
            "description": "Only return reviews that include photos.",
            "default": false
          },
          "includeRatingsOnly": {
            "title": "✅ Include star-only reviews",
            "type": "boolean",
            "description": "Target allows a rating with no title/text. True (default) keeps these rows; false drops them.",
            "default": true
          },
          "submittedAfter": {
            "title": "📅 Submitted after",
            "type": "string",
            "description": "Keep only reviews submitted after this ISO date/datetime (e.g. 2026-01-01). Only works with Sort reviews by = \"Most recent\" (the only newest-to-oldest order); ignored with other sorts."
          },
          "labels": {
            "title": "🎯 Add labels",
            "type": "array",
            "description": "Extra per-review analysis added under computed.labels. Sentiment + issue are on by default (see Judgments below); add more, or set None to turn every label off.",
            "items": {
              "type": "string",
              "enum": [
                "sentiment",
                "issue",
                "reports",
                "incentivized",
                "injection",
                "none"
              ],
              "enumTitles": [
                "Sentiment (free)",
                "Issue type (free)",
                "Reports - find a topic (needs query below)",
                "Incentivized check",
                "Prompt-injection check",
                "None (turn off the free default)"
              ]
            }
          },
          "judgments": {
            "title": "✅ Judgments (sentiment + issue)",
            "type": "boolean",
            "description": "Compute the free sentiment and issue-type labels on every review by default.",
            "default": true
          },
          "reportsQuery": {
            "title": "🔎 Reports: what to look for",
            "maxLength": 300,
            "type": "string",
            "description": "Plain words describing what to look for in reviews (<=300 characters). Required when \"reports\" is in Add labels above."
          },
          "labelEvidence": {
            "title": "✅ Label evidence (quotes)",
            "type": "boolean",
            "description": "With Add labels set, also return the exact quote/sentence each label was based on (computed.labels_evidence).",
            "default": false
          },
          "dryRun": {
            "title": "🔧 Dry run (preview only)",
            "type": "boolean",
            "description": "Preview expected row counts without fetching or storing anything - 0 Apify charge.",
            "default": false
          },
          "cursor": {
            "title": "🔢 Continue from cursor",
            "type": "string",
            "description": "A page number (or the next_cursor-style token) from a previous run - continues that single product's review list instead of starting over. Only applies when exactly one product is given above."
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy",
            "type": "object",
            "description": "Optional proxy to start with. If Target rate-limits the requests, the actor switches to a residential proxy automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}