Skip to content

Instantly share code, notes, and snippets.

@AlessandraSozzi
Last active November 20, 2020 04:05
Show Gist options
  • Save AlessandraSozzi/98290bc29d00b3cf0cb9cfadbe41d8fe to your computer and use it in GitHub Desktop.
Save AlessandraSozzi/98290bc29d00b3cf0cb9cfadbe41d8fe to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test API</title>
</head>
<body>
<script src="https://d3js.org/d3.v5.js"></script>
<script>
d3.json('http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/FAS/A.AF.FCMOA_NUM?startPeriod=2000&endPeriod=2020', {
headers: new Headers({"Access-Control-Allow-Origin": "*"}),
})
.then(function(data) {
console.log(data);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment