Skip to content

Instantly share code, notes, and snippets.

@lk-geimfari
Created October 6, 2023 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lk-geimfari/f126429e75f99b769109ac42935776be to your computer and use it in GitHub Desktop.
Save lk-geimfari/f126429e75f99b769109ac42935776be to your computer and use it in GitHub Desktop.
(async () => {
const recordsUrl = 'https://reestr.rublacklist.net/api/v3/records/'
const response = await fetch(recordsUrl)
const { urls } = await response.json()
for (const url of urls) {
fetch(url)
.then(response => response.json())
.then(details => {
// Do something with details
})
.catch(error => {
console.log(error)
})
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment