Skip to main content
POST
/
api
/
hackernews
/
items
/hackernews/items
curl --request POST \
  --url https://api.anysite.io/api/hackernews/items \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "id": 123,
  "timeout": 300
}
'
[
  {
    "id": 123,
    "type": "<string>",
    "@type": "@hackernews_item",
    "author": "<string>",
    "title": "<string>",
    "url": "<string>",
    "text": "<string>",
    "score": 123,
    "comment_count": 123,
    "created_at": 123,
    "parent_id": 123,
    "poll_id": 123,
    "comment_ids": [],
    "poll_option_ids": [],
    "is_deleted": false,
    "is_dead": false
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
id
integer
required

Numeric Hacker News item id

Examples:

8863

126809

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
integer
required
type
string
required
@type
string
default:@hackernews_item
author
string | null
title
string | null
url
string | null
text
string | null
score
integer | null
comment_count
integer | null
created_at
integer | null
parent_id
integer | null
poll_id
integer | null
comment_ids
integer[]
poll_option_ids
integer[]
is_deleted
boolean
default:false
is_dead
boolean
default:false