# Grades consensus

`GET /stable/grades-consensus`

[FMP OpenAPI schema](https://api.quantset.dev/openapi/fmp.json)

## Example request

```bash
curl 'https://api.quantset.dev/stable/grades-consensus?symbol=NVDA' -H 'apikey: YOUR_QUANTSET_API_KEY'
```

## Parameters

Authenticate with a QuantSet API key in the `apikey` header or query parameter.

| Name | Location | Type | Required | Default |
| --- | --- | --- | --- | --- |
| `symbol` | query | string | Yes | — |
| `format` | query | json, csv | No | "json" |
| `snapshot_id` | query | string | No | — |

## Data coverage

Consensus reflects available analyst observations. It can omit unsupported ratings or targets.

## JSON shape

Angle brackets indicate types. Arrays show one item. See the schema for all constraints.

```json
[
  {
    "symbol": "<string | null>",
    "strongBuy": "<integer | null>",
    "buy": "<integer | null>",
    "hold": "<integer | null>",
    "sell": "<integer | null>",
    "strongSell": "<integer | null>",
    "consensus": "<string | null>"
  }
]
```

## Response schema

```json
{
  "type": "array",
  "items": {
    "properties": {
      "symbol": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Symbol"
      },
      "strongBuy": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Strongbuy"
      },
      "buy": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Buy"
      },
      "hold": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Hold"
      },
      "sell": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Sell"
      },
      "strongSell": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "null"
          }
        ],
        "title": "Strongsell"
      },
      "consensus": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Consensus"
      }
    },
    "additionalProperties": false,
    "type": "object",
    "title": "FmpStableGradesconsensus"
  },
  "title": "Response Grades Consensus Stable Grades Consensus Get"
}
```
