get_top_stories: Hacker News top stories

View source: R/api.R

get_top_storiesR Documentation

Hacker News top stories

Description

Retrieves top stories using Hacker News API

Usage

get_top_stories(max_items = NULL)

Arguments

max_items

Maximum number of items to retrieve. If max_items = NULL, returns all available stories

Value

List of top stories

Examples



# get the top story on Hacker News
top_story <- get_top_stories(max_items = 1)
top_story

# get all top stories on Hacker News
top_stories <- get_top_stories()
top_stories



szymanskir/hackeRnews documentation built on April 12, 2025, 8:51 p.m.