Components
Hacker News
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
Name | Label | Type | Description | Required |
---|---|---|---|---|
numberOfStories | Number Of Stories | INTEGER | Number 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
Name | Type | Description |
---|---|---|
by | STRING | The username of the item's author. |
descendants | INTEGER | In the case of stories or polls, the total comment count. |
id | INTEGER | The item's unique id. |
kids | ARRAY Items[INTEGER] | The ids of the item's comments, in ranked display order. |
score | INTEGER | The story's score, or the votes for a pollopt. |
time | INTEGER | Creation date of the item, in Unix Time. |
title | STRING | The title of the story, poll or job. HTML. |
type | STRING | The type of item. |
url | STRING | The URL of the story. |
Output Example
[ {
"by" : "",
"descendants" : 1,
"id" : 1,
"kids" : [ 1 ],
"score" : 1,
"time" : 1,
"title" : "",
"type" : "",
"url" : ""
} ]