curl https://api.currentsapi.services/v1/latest-news
-G -d language=en
-d apiKey=API_KEY
var url = 'https://api.currentsapi.services/v1/latest-news?' +
'language=us&' +
'apiKey=API_KEY';
var req = new Request(url);
fetch(req)
.then(function(response) {
console.log(response.json());
})
import requests
url = ('https://api.currentsapi.services/v1/latest-news?'
'language=us&'
'apiKey=API_KEY')
response = requests.get(url)
print(response.json())
library(httr)
res <- GET(paste(
"https://api.currentsapi.services/v1/latest-news?",
"language=en&",
"apiKey=API_KEY"
,sep = ""))
content(res, "json")