NewsClient
TheNewsClient provides methods for searching and retrieving news stories from X.
search
Retrieves a list of News stories matching the specified search query.The search query.
The number of results to return.
The maximum age of the News story to search for.
A comma separated list of News fields to display.
Response containing news stories matching the search query.
get
Retrieves news story by its ID.The ID of the news story.
A comma separated list of News fields to display.
Response containing the news story details.