Build a job board that displays the latest job postings fetched from the Hacker News API, with each posting displaying the job title, poster, and date posted.
url
field returned for the job details, make the job title a link that opens the job details page in a new window when clicked.Hacker News has a public API to fetch jobs by Y Combinator companies. There's no single API that fetches a list of jobs together with the data, so you will have to make separate requests to fetch the necessary data and combine them to be displayed.
Fetches a list of job posting IDs.
GET
json
Sample response:
[35908337, 35904973, 35900922, 35893439, 35890114, 35880345, ...]
Fetches job posting details given its ID.
https://hacker-news.firebaseio.com/v0/item/{id}.json
GET
json
Sample response for https://hacker-news.firebaseio.com/v0/item/35908337.json:
{
"by": "jamilbk",
"id": 35908337,
"score": 1,
"time": 1683838872,
"title": "Firezone (YC W22) is hiring Elixir and Rust engineers",
"type": "job",
"url": "https://www.ycombinator.com/companies/firezone/jobs"
}