Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get top level Hacker News API data
const topStoriesURL = ``
const newStoriesURL = ``
const bestStoriesURL = ``
const getItemURL = storyId =>
const topResults = await axios.get(topStoriesURL)
const newResults = await axios.get(newStoriesURL)
const bestResults = await axios.get(bestStoriesURL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment