{
  "service": "benzinga",
  "displayName": "Benzinga",
  "categories": [
    "Finance",
    "Data"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "BENZINGA_API_KEY",
      "description": "Benzinga API key passed as the token query parameter. Create an account and manage API access from the Benzinga API dashboard: https://www.benzinga.com/apis/"
    }
  ],
  "homepageUrl": "https://www.benzinga.com/",
  "actions": [
    {
      "id": "benzinga.get_consensus_ratings",
      "service": "benzinga",
      "name": "get_consensus_ratings",
      "description": "Get Benzinga consensus analyst ratings and price target data for a ticker.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string",
            "minLength": 1,
            "description": "The stock ticker symbol to query.",
            "pattern": "\\S"
          }
        },
        "additionalProperties": false,
        "required": [
          "symbol"
        ],
        "description": "The input payload for getting Benzinga consensus ratings."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "consensusRatings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw item returned by Benzinga."
            },
            "description": "The consensus rating records returned by Benzinga."
          }
        },
        "additionalProperties": false,
        "required": [
          "consensusRatings"
        ],
        "description": "The response returned when getting Benzinga consensus ratings."
      }
    },
    {
      "id": "benzinga.list_analyst_ratings",
      "service": "benzinga",
      "name": "list_analyst_ratings",
      "description": "List Benzinga analyst rating calendar events with optional date and symbol filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string",
            "minLength": 1,
            "description": "The stock ticker symbol used to filter results.",
            "pattern": "\\S"
          },
          "dateFrom": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "description": "The date in YYYY-MM-DD format."
          },
          "dateTo": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "description": "The date in YYYY-MM-DD format."
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "description": "The 0-based page number to request."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "The maximum number of records to request."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Benzinga analyst rating events."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ratings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw item returned by Benzinga."
            },
            "description": "The analyst rating records returned by Benzinga."
          }
        },
        "additionalProperties": false,
        "required": [
          "ratings"
        ],
        "description": "The response returned when listing Benzinga analyst ratings."
      }
    },
    {
      "id": "benzinga.list_earnings",
      "service": "benzinga",
      "name": "list_earnings",
      "description": "List Benzinga earnings calendar events with optional date and symbol filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string",
            "minLength": 1,
            "description": "The stock ticker symbol used to filter results.",
            "pattern": "\\S"
          },
          "dateFrom": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "description": "The date in YYYY-MM-DD format."
          },
          "dateTo": {
            "type": "string",
            "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "description": "The date in YYYY-MM-DD format."
          },
          "page": {
            "type": "integer",
            "minimum": 0,
            "description": "The 0-based page number to request."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "The maximum number of records to request."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Benzinga earnings calendar events."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "earnings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw item returned by Benzinga."
            },
            "description": "The earnings calendar records returned by Benzinga."
          }
        },
        "additionalProperties": false,
        "required": [
          "earnings"
        ],
        "description": "The response returned when listing Benzinga earnings events."
      }
    },
    {
      "id": "benzinga.list_news_channels",
      "service": "benzinga",
      "name": "list_news_channels",
      "description": "List Benzinga news channels that can be used to filter news feeds.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "The input payload for listing Benzinga news channels."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "channels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw item returned by Benzinga."
            },
            "description": "The news channels returned by Benzinga."
          }
        },
        "additionalProperties": false,
        "required": [
          "channels"
        ],
        "description": "The response returned when listing Benzinga news channels."
      }
    }
  ]
}
