Dokumentacja: https://isevenapi.xyz/
CORS: nie
$ curl https://api.isevenapi.xyz/api/iseven/6/
Dokumentacja: https://api.chucknorris.io/
CORS: tak
fetch('https://api.chucknorris.io/jokes/random')
.then(resp=>resp.json())
.then(joke=>console.log("Joke: ", joke.value))
Doumentacja: http://api.nbp.pl/
CORS: nie
#!/usr/bin/python3
import json
import urllib.request
waluta = 'EUR'
url = f'http://api.nbp.pl/api/exchangerates/rates/A/{waluta}/today/'
with urllib.request.urlopen(url) as f:
resp = json.load(f)
print(f"Kurs {waluta}: {resp['rates'][0]['mid']}")
Dokumentacja: https://randomuser.me/
CORS: tak
fetch('https://randomuser.me/api/')
.then(r => r.json())
.then(u => console.log(u))
Dokumentacja: https://dummyjson.com/docs
CORS: tak