> ## 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.

# News

> news()

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

## Overview

### Available Operations

* [get](#get) - Get News
* [getRemoved](#getremoved) - Get Removed News

## get

Get News

### Example Usage

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

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

public class Application {

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

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

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

        GetNewsResponse res = sdk.news().get()
                .request(req)
                .call();

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

### Parameters

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

### Response

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

### Errors

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

## getRemoved

Get Removed News

### Example Usage

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

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

public class Application {

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

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

        GetRemovedNewsResponse res = sdk.news().getRemoved()
                .updatedSince("<value>")
                .pageSize(948405L)
                .page(766235L)
                .call();

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

### Parameters

| Parameter      | Type                | Required             | Description   |
| -------------- | ------------------- | -------------------- | ------------- |
| `updatedSince` | *Optional\<String>* | :heavy\_minus\_sign: | Updated Since |
| `pageSize`     | *Optional\<Long>*   | :heavy\_minus\_sign: | Page Size     |
| `page`         | *Optional\<Long>*   | :heavy\_minus\_sign: | Page          |

### Response

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

### Errors

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