Get a specific GNS news item by numeric ID.
Returns the NewsItem object directly — not wrapped in a Page.
Author and faction are normalized to object references with value.
If the API returns an array, the SDK returns the first normalized item.
The NewsItem entity.
List GNS news items (paginated with optional filtering)
Returns a Page of headline metadata entries (attributes.id, attributes.href, attributes.title, value).
Use page.data for the current page items, page.hasMore / page.getNextPage() for pagination,
or for await (const item of page) to iterate through all pages automatically.
@requires_auth No
Optionaloptions: ListGNSOptionsOptional category, pagination, and filtering parameters
GNS (Galactic News Service) listing options Extends base options with GNS-specific faction filtering
Optionalauthor?: stringAuthor name to filter by
Optionalcategory?: stringNews category to filter by
Optionalend_date?: numberFilter news up to this Unix timestamp
Optionalfaction?: stringFaction name to filter by (GNS only)
Optionalfaction_type?: stringFaction type to filter by (GNS only)
Optionalitem_count?: numberNumber of items to retrieve. Default: 50, Max: 50
OptionalpageDelay?: numberMilliseconds to wait before fetching each subsequent page. Helps avoid rate limits during auto-pagination.
Optionalsearch?: stringSearch term to filter by
Optionalstart_date?: numberFilter news starting from this Unix timestamp
Optionalstart_index?: numberStarting position (1-based). Default: 1
const page = await client.news.gns.list();
const economyNews = await client.news.gns.list({ category: 'economy' });
const moreNews = await client.news.gns.list({ start_index: 51, item_count: 50 });
const searchNews = await client.news.gns.list({ search: 'battle', author: 'John Doe' });
const factionNews = await client.news.gns.list({ faction: 'Empire', faction_type: 'government' });
console.log(page.data[0].attributes.title);
console.log(page.start, page.total, page.count);
Galactic News Service (GNS) resource
See
https://www.swcombine.com/ws/v2.0/documentation/news/gns/category/ SW Combine API Documentation