{
  "openapi": "3.0.1",
  "info": {
    "title": "Review Sentiment Analysis - Reviews, Posts & Support Texts",
    "description": "Review sentiment analysis for your own reviews, social posts and support messages: each text gets positive, neutral, negative or mixed, plus confidence and a one-line reason. Paste texts or pass a Dataset. $4 per 1,000 texts; blank rows free.",
    "version": "0.1",
    "x-build-id": "Jz37j4wPq8hGcqbg6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidytools~sentiment-analysis-texts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidytools-sentiment-analysis-texts",
        "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/tidytools~sentiment-analysis-texts/runs": {
      "post": {
        "operationId": "runs-sync-tidytools-sentiment-analysis-texts",
        "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/tidytools~sentiment-analysis-texts/run-sync": {
      "post": {
        "operationId": "run-sync-tidytools-sentiment-analysis-texts",
        "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": {
          "domains": {
            "title": "Page URLs or domains (optional)",
            "type": "array",
            "description": "Optional public page URLs or domains to classify by sentiment, one per line. For reviews on a website, extract the review text with a separate scraper first; this Actor does not scrape review listings.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "URLs (request list, optional)",
            "type": "array",
            "description": "Same as \"URLs or domains\", in Apify's request list format (also accepts a link to a text file with URLs). Kept for existing integrations; new integrations should use \"domains\".",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "taxonomy": {
            "title": "Classification",
            "enum": [
              "pageType",
              "topic",
              "industry",
              "iab",
              "sentiment",
              "contentModeration",
              "custom"
            ],
            "type": "string",
            "description": "Sentiment returns positive, neutral, negative or mixed for each review, social post, support message or public page. Other original classifier taxonomies remain available.",
            "default": "sentiment"
          },
          "customLabels": {
            "title": "Custom labels",
            "type": "array",
            "description": "Used when \"Classify by\" is \"Custom labels\". One label per line, optionally with a description after a colon, e.g. \"Competitor: sells project management software\". 2 to 100 labels, any language.",
            "items": {
              "type": "string"
            }
          },
          "multiLabel": {
            "title": "Allow several labels per page",
            "type": "boolean",
            "description": "Return all labels that clearly apply (in \"labels\") besides the main one. On by default for topics and IAB, off for page types, industries and custom labels."
          },
          "instructions": {
            "title": "Extra instructions",
            "maxLength": 1000,
            "type": "string",
            "description": "Optional hints for the AI, up to 1,000 characters, e.g. \"Pages about our own product are not competitors.\""
          },
          "texts": {
            "title": "Reviews, posts or support messages",
            "type": "array",
            "description": "Paste your own review, social post or support message, one text per entry. Each successful text classification is one charged item. Empty entries return free error rows.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID (optional)",
            "type": "string",
            "description": "Optional dataset from a review scraper or another Actor. Clear the prefilled texts if you want to process only the dataset; choose its review-text field below."
          },
          "previousDatasetId": {
            "title": "Previous sentiment dataset (optional)",
            "type": "string",
            "description": "Compare this run's sentiment labels with a previous run of this Actor. The prior dataset is only a baseline; every text is analysed again and charged as usual. Previous data must be readable and contain at most 100,000 rows."
          },
          "datasetField": {
            "title": "Dataset field",
            "type": "string",
            "description": "Dataset field holding each review or message, for example text or review.body. Empty uses the engine automatic URL/text field selection."
          },
          "analysisDepth": {
            "title": "Analysis depth",
            "enum": [
              "quick",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "How much of each page the AI reads. Quick: the first 4,000 characters (cheapest, fine for home pages). Standard: 12,000. Deep: 32,000 (long or complex pages). Each depth has its own price.",
            "default": "standard"
          },
          "readAboutPage": {
            "title": "Read the About page when the home page is almost empty",
            "type": "boolean",
            "description": "For home pages or bare domains with less than 300 characters of text (JavaScript shells, splash pages), also read the site's About page (an About / Company link, or /about) and classify both together. No extra charge. Not used with the Page type taxonomy.",
            "default": true
          },
          "industryCodes": {
            "title": "Industry codes (NAICS / SIC)",
            "enum": [
              "none",
              "naics",
              "sic",
              "both"
            ],
            "type": "string",
            "description": "Only with the Industry taxonomy: also return standard industry codes for each industry label, from a fixed lookup table (NAICS 2022 6-digit, SIC 1987 4-digit), with codeConfidence (high, medium, low, or none when no single code fits). No extra AI call and no extra charge. none = no code columns.",
            "default": "none"
          },
          "mode": {
            "title": "Page fetching (HTTP or browser)",
            "enum": [
              "auto",
              "fast",
              "browser"
            ],
            "type": "string",
            "description": "\"Auto\" reads pages over plain HTTP and uses a real browser only when a site blocks that or needs JavaScript. Values: auto = Auto (recommended); fast = Plain HTTP only; browser = Browser only.",
            "default": "auto"
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are classified at the same time.",
            "default": 10
          },
          "httpVia": {
            "title": "Plain HTTP requests from",
            "enum": [
              "auto",
              "backend",
              "direct",
              "vm"
            ],
            "type": "string",
            "description": "Some sites block requests from data centers. Auto retries from a second network before falling back to a real browser. If both are refused, Auto also tries our second server (Oracle, different IP) before a real browser.",
            "default": "auto"
          },
          "warpRetry": {
            "title": "Retry refused websites through a second network",
            "type": "boolean",
            "description": "Only for URLs (used with Auto and Our servers only): when a website refuses every request (HTTP 401, 403, 406 or 451, not a CAPTCHA or bot-check page), its page is asked once more through our Cloudflare WARP network with a standard browser User-Agent (still ending with our TidyTools token). A recovered page is a normal result at the normal price; if it refuses again, the row stays a free error row (retried: true). CAPTCHAs are never solved.",
            "default": true
          },
          "networkRetry": {
            "title": "Retry unreachable websites through a second network",
            "type": "boolean",
            "description": "Only for URLs (used with Auto and Our servers only): a website that could not be reached for a passing reason (connection error, time limit, temporary DNS failure) is read once more at the end of the run through our Cloudflare WARP network instead of the same routes. A recovered page is a normal result at the normal price; if it still fails, the row stays a free error row with its first error type (retried: true). Off: that one retry uses the usual routes.",
            "default": true
          },
          "itemTimeoutSecs": {
            "title": "Time limit per item (seconds)",
            "minimum": 0,
            "maximum": 900,
            "type": "integer",
            "description": "A page or text that takes longer (reading + AI) is stopped and returned as a free error row with errorType \"timeout\". 0 = no limit.",
            "default": 180
          },
          "dedupeStoreName": {
            "title": "Skip items classified in earlier runs (store name, optional)",
            "maxLength": 45,
            "type": "string",
            "description": "For lists you run again and again. Give a name (e.g. \"my-leads\"): each charged result is also kept in a key-value store named classifier-cache-<name> in your Apify account, and a later run with the same name and the same settings (taxonomy, labels, instructions, depth; for URLs also the reading mode, route and proxy) returns the earlier result for that URL or text instead of classifying it again, marked fromCache and not charged. Empty = off."
          },
          "dedupeMaxAgeDays": {
            "title": "Reuse earlier results for (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only with the store name above: results older than this are classified again (and charged as usual).",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Only used for requests sent from Apify's network. Apify proxy usage is billed to your Apify account."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}