Created
October 6, 2023 14:39
-
-
Save lk-geimfari/f126429e75f99b769109ac42935776be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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