{
  "openapi": "3.0.1",
  "info": {
    "title": "Benzinga Scraper | Analyst Ratings & Price Targets",
    "description": "Benzinga scraper for analyst ratings and price targets: 60 rating actions in 7 seconds on 3 tickers, 47 fields each. Get every upgrade, downgrade and initiation with the firm, analyst, success rate, old and new rating and target, plus the stock consensus. No Benzinga account or API key needed.",
    "version": "1.0",
    "x-build-id": "gGtkRSc9aeRjPPVe7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~benzinga-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-benzinga-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/silentflow~benzinga-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-benzinga-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/silentflow~benzinga-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-benzinga-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": {
          "tickerIds": {
            "title": "📈 Tickers",
            "type": "array",
            "description": "US stocks to read, one per line: <code>AAPL</code>, <code>NVDA</code>, <code>TSLA</code>. Class shares are read in any spelling: <code>BRK.B</code>, <code>BRK-B</code>, <code>BRK/B</code>.<br><br>Each ticker returns its rating actions newest first, up to the limit below, going back years into its history when you ask for more than the latest 100.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Benzinga pages",
            "type": "array",
            "description": "Paste Benzinga pages copied from your browser:<ul><li>a stock, any tab: <code>https://www.benzinga.com/quote/AAPL/analyst-ratings</code>, <code>https://www.benzinga.com/quote/NVDA</code></li><li>the analyst ratings calendar, with its dates and tab: <code>https://www.benzinga.com/analyst-stock-ratings?date_from=2026-11-16&amp;date_to=2026-11-20</code>, <code>https://www.benzinga.com/analyst-stock-ratings/upgrades</code></li></ul>",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "allStocks": {
            "title": "🌐 All stocks (ratings calendar)",
            "type": "boolean",
            "description": "Also read every stock's rating actions from Benzinga's analyst ratings calendar: the latest trading day, or each day of the period below. Benzinga lists up to 100 actions per day; list your tickers above to get every action of a stock.",
            "default": false
          },
          "daysBack": {
            "title": "📅 Ratings of the last N days",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Keep only the rating actions of the last N days: <code>1</code> for a daily pull, <code>7</code> for the past week, <code>365</code> for a year of history. <code>0</code> keeps every date: each ticker returns its latest actions up to the limit, and \"All stocks\" reads the latest trading day.",
            "default": 0
          },
          "maxItems": {
            "title": "🔢 Max ratings per ticker",
            "minimum": 1,
            "type": "integer",
            "description": "The most rating actions returned for each ticker or stock page, newest first: 10 tickers with <code>20</code> return up to 200 rows. For the all-stocks calendar and each calendar page, it caps the whole entry.",
            "default": 100
          },
          "actions": {
            "title": "🔄 Rating actions",
            "type": "array",
            "description": "Keep only these actions, for example upgrades and downgrades for an event-driven feed. Leave empty to keep them all.",
            "items": {
              "type": "string",
              "enum": [
                "upgrades",
                "downgrades",
                "initiations",
                "maintains",
                "reiterates",
                "coverageDropped",
                "targetRaised",
                "targetLowered"
              ],
              "enumTitles": [
                "Upgrades",
                "Downgrades",
                "Initiations (initiates, assumes, reinstates)",
                "Maintains",
                "Reiterates",
                "Coverage dropped (terminates, suspends)",
                "Price target raised",
                "Price target lowered"
              ]
            }
          },
          "firms": {
            "title": "🏦 Firms",
            "type": "array",
            "description": "Keep only the ratings of these research firms, matched on part of the name: <code>Morgan Stanley</code>, <code>Goldman</code>, <code>JP Morgan</code>. Leave empty to keep every firm.",
            "items": {
              "type": "string"
            }
          },
          "minAnalystSuccessRate": {
            "title": "🎯 Minimum analyst success rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Keep only analysts whose ratings Benzinga scores as successful this often or more, in percent: <code>60</code> keeps the more accurate ones. <code>0</code> keeps every analyst.",
            "default": 0
          },
          "includeConsensus": {
            "title": "📊 Add each stock's consensus",
            "type": "boolean",
            "description": "Add the stock's consensus to every row: consensus rating, average, high and low price target with their firms, upside, and the number of Strong Buy, Buy, Hold, Sell and Strong Sell analysts. Turn off for a faster all-stocks calendar.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}