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

# NewsClient

> Reference for the news.client Python module in the X API SDK. Client class and methods for calling the news endpoints of the X API v2.

## NewsClient

Class

Bases: object

Client for news operations

## Constructors

### `__init__`

#### Parameters

**path.client** `Client`

### `get`

Get news stories by ID
Retrieves news story by its ID.

#### Parameters

**path.id** `Any`

The ID of the news story.

**path.news\_fields** `List or None` (default: None)

A comma separated list of News fields to display.

#### Returns

`GetResponse` - Response data

### `search`

Search News
Retrieves a list of News stories matching the specified search query.

#### Parameters

**path.query** `str`

The search query.

**path.max\_results** `int or None` (default: None)

The number of results to return.

**path.max\_age\_hours** `int or None` (default: None)

The maximum age of the News story to search for.

**path.news\_fields** `List or None` (default: None)

A comma separated list of News fields to display.

#### Returns

`SearchResponse` - Response data
