> ## Documentation Index
> Fetch the complete documentation index at: https://docs.benzinga.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Consensus Ratings

> consensusRatings()

[\< BACK](/sdks/languages/java#consensusratings)

## Overview

### Available Operations

* [get](#get) - Get Consensus Ratings

## get

Get Consensus Ratings for a given symbol

### Example Usage

```java theme={null}
package hello.world;

import java.lang.Exception;
import org.benzinga.BZClient.Bzclient;
import org.benzinga.BZClient.models.operations.GetConsensusRatingsV1Request;
import org.benzinga.BZClient.models.operations.GetConsensusRatingsV1Response;

public class Application {

    public static void main(String[] args) throws Exception {

        Bzclient sdk = Bzclient.builder()
                .apiKeyAuth("<YOUR_API_KEY_HERE>")
            .build();

        GetConsensusRatingsV1Request req = GetConsensusRatingsV1Request.builder()
                .build();

        GetConsensusRatingsV1Response res = sdk.consensusRatings().get()
                .request(req)
                .call();

        if (res.apiConsensusRating().isPresent()) {
            // handle response
        }
    }
}
```

### Parameters

| Parameter | Type                                                                                    | Required             | Description                                |
| --------- | --------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------ |
| `request` | [GetConsensusRatingsV1Request](../../models/operations/GetConsensusRatingsV1Request.md) | :heavy\_check\_mark: | The request object to use for the request. |

### Response

**[GetConsensusRatingsV1Response](../../models/operations/GetConsensusRatingsV1Response.md)**

### Errors

| Error Type                 | Status Code | Content Type |
| -------------------------- | ----------- | ------------ |
| models/errors/APIException | 4XX, 5XX    | \*/\*        |
