{
  "openapi": "3.0.1",
  "info": {
    "title": "Claude Search Scraper",
    "description": "Measure how your brand and competitors show up in Claude's answers with web search: mention rate, position, share of voice, sentiment and cited sources. Scheduled trends and change alerts. Official Anthropic API, your own key.",
    "version": "0.1",
    "x-build-id": "09xAVdHivlo80pt5l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taiw~claude-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taiw-claude-search-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/taiw~claude-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-taiw-claude-search-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/taiw~claude-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-taiw-claude-search-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": [
          "brand"
        ],
        "properties": {
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "The brand to track, for example \"HubSpot\"."
          },
          "demoMode": {
            "title": "Demo mode (no API key needed)",
            "type": "boolean",
            "description": "Returns clearly labeled SAMPLE answers without calling any AI provider, so you can see the output format for free. Nothing is charged and nothing is saved to the trend history. Turn it off and add your API key for real measurements.",
            "default": false
          },
          "brandAliases": {
            "title": "Brand aliases",
            "type": "array",
            "description": "Other names, product names and domains that count as your brand, for example \"HubSpot CRM\" or \"hubspot.com\". Domains are also used to detect when your website is cited.",
            "items": {
              "type": "string"
            }
          },
          "competitors": {
            "title": "Competitors",
            "type": "array",
            "description": "Up to 10 competitors as { \"name\": ..., \"aliases\": [...] }. Used for share of voice and for cited competitor domains."
          },
          "prompts": {
            "title": "Prompts",
            "type": "array",
            "description": "Up to 50 questions your customers ask AI tools. Do not include your brand name in them: you want to see whether Claude brings it up.",
            "items": {
              "type": "string"
            }
          },
          "promptGenerator": {
            "title": "Prompt generator (optional)",
            "type": "object",
            "description": "Let Claude write realistic customer questions for a category: { \"enabled\": true, \"category\": \"project management software\", \"country\": \"United States\", \"count\": 5 }. The generated questions are added to your prompts and returned in the summary (and in the GENERATED_PROMPTS record) so you can reuse them. Billed as a separate event."
          },
          "models": {
            "title": "Claude models",
            "type": "array",
            "description": "Which Claude models answer the prompts. Haiku 5.5 is the cheapest; Sonnet 5.5 and Opus 5.5 cost more per answer.",
            "items": {
              "type": "string",
              "enum": [
                "claude-haiku-5-5",
                "claude-sonnet-5-5",
                "claude-opus-5-5"
              ]
            },
            "default": [
              "claude-haiku-5-5"
            ]
          },
          "apiKeys": {
            "title": "Anthropic API key",
            "type": "object",
            "description": "Required unless Demo mode is on. Use your own or your client's Anthropic key: { \"anthropicApiKey\": \"sk-ant-...\" } (create one at console.anthropic.com). Anthropic bills that account directly for model and web search usage. The key is stored encrypted by Apify, is never logged and is never saved in results or history."
          },
          "useWebSearch": {
            "title": "Use web search",
            "type": "boolean",
            "description": "Let Claude search the web. This is how Claude answers most current questions and how it cites sources. Turn it off to measure only what the model knows without searching (no citations). Anthropic charges $10 per 1,000 searches on top of tokens.",
            "default": true
          },
          "maxSearchesPerQuery": {
            "title": "Max searches per answer",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Upper limit on web searches Claude may run for one answer. Lower values are cheaper.",
            "default": 3
          },
          "samplesPerPrompt": {
            "title": "Samples per prompt",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many times each prompt is asked of each model. Answers vary, so 3 to 5 samples give a more reliable mention rate than 1.",
            "default": 1
          },
          "country": {
            "title": "Country (optional)",
            "type": "string",
            "description": "Two-letter country code used as the approximate user location for web search, for example US or GB."
          },
          "language": {
            "title": "Language (optional)",
            "type": "string",
            "description": "Language the answers should be written in, for example English or German."
          },
          "analyzeSentiment": {
            "title": "Analyze sentiment",
            "type": "boolean",
            "description": "Classify how each answer describes the brand (positive, neutral, negative, mixed) with a small extra call to Haiku 5.5.",
            "default": true
          },
          "maxQueries": {
            "title": "Max answers (hard cap)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of answers requested in this run (prompts x models x samples). The run stops cleanly at this number. Sentiment and prompt-generation calls are extra small calls and are not counted here, but are included in the spend estimate.",
            "default": 30
          },
          "maxSpendUsd": {
            "title": "Max provider spend (USD, optional)",
            "type": "number",
            "description": "Stops the run when the estimated Anthropic spend would pass this amount. Spend is tracked from the usage Anthropic reports for each answer."
          },
          "alertOnChange": {
            "title": "Alert on change",
            "type": "boolean",
            "description": "Send a webhook when the mention rate moves by more than the threshold, when the brand disappears from a prompt where it appeared before, or when a new competitor domain starts being cited. Needs a webhook URL and a previous run.",
            "default": false
          },
          "alertThresholdPoints": {
            "title": "Alert threshold (percentage points)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Mention-rate change that triggers an alert.",
            "default": 10
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "https address that receives the alert as a JSON POST (Slack, Make, n8n, Zapier, Google Sheets scripts). A failing webhook never fails the run."
          },
          "storeFullAnswers": {
            "title": "Store full answers",
            "type": "boolean",
            "description": "Keep the complete answer text in the results. Turn off to keep only metrics and a 200-character excerpt.",
            "default": true
          },
          "brandNegativeContext": {
            "title": "Words that signal a different meaning (optional)",
            "type": "array",
            "description": "For brand names that are also ordinary words (for example Apple or Notion): words that, when they appear near a match, mark it as a possible false positive, such as \"fruit\", \"pie\" or \"orchard\". Flagged matches are listed but not counted.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}