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

# Earning Ratios

> earningRatios()

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

## Overview

### Available Operations

* [get](#get) - Get earning ratios V2.1

## get

Get earning ratios for a list of symbols, ISINs, or CIKs

### Example Usage

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

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

public class Application {

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

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

        GetEarningRatiosV21Response res = sdk.earningRatios().get()
                .symbols("<value>")
                .asOf("<value>")
                .period("<value>")
                .reportType("<value>")
                .call();

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

### Parameters

| Parameter    | Type                | Required             | Description                     |
| ------------ | ------------------- | -------------------- | ------------------------------- |
| `symbols`    | *Optional\<String>* | :heavy\_minus\_sign: | Comma separated list of symbols |
| `asOf`       | *Optional\<String>* | :heavy\_minus\_sign: | As of date                      |
| `period`     | *Optional\<String>* | :heavy\_minus\_sign: | Period                          |
| `reportType` | *Optional\<String>* | :heavy\_minus\_sign: | Report Type                     |

### Response

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

### Errors

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