ByteChef LogoByteChef
Components

Hacker News

Hacker News is a social news website focused on computer science, startups, and technology-related topics.

Hacker News is a social news website focused on computer science, startups, and technology-related topics.

Categories: Social Media

Type: hackerNews/v1


Actions

Fetch Top Stories

Name: fetchTopStories

Fetch top stories from Hacker News.

Properties

NameLabelTypeDescriptionRequired
numberOfStoriesNumber Of StoriesINTEGERNumber of stories to fetch.true

Example JSON Structure

{
  "label" : "Fetch Top Stories",
  "name" : "fetchTopStories",
  "parameters" : {
    "numberOfStories" : 1
  },
  "type" : "hackerNews/v1/fetchTopStories"
}

Output

Type: ARRAY

Items Type: OBJECT

Properties

NameTypeDescription
bySTRINGThe username of the item's author.
descendantsINTEGERIn the case of stories or polls, the total comment count.
idINTEGERThe item's unique id.
kidsARRAY
Items [INTEGER]
The ids of the item's comments, in ranked display order.
scoreINTEGERThe story's score, or the votes for a pollopt.
timeINTEGERCreation date of the item, in Unix Time.
titleSTRINGThe title of the story, poll or job. HTML.
typeSTRINGThe type of item.
urlSTRINGThe URL of the story.

Output Example

[ {
  "by" : "",
  "descendants" : 1,
  "id" : 1,
  "kids" : [ 1 ],
  "score" : 1,
  "time" : 1,
  "title" : "",
  "type" : "",
  "url" : ""
} ]

On this page