Get any ausdata endpoint as CSV
Add .csv to the path. We return a UTF-8 CSV with the same fields as the JSON response.
Steps
- 1Add .csv suffix.
- 2Save to disk or pipe.
Code
cURL
curl https://api.ausdata.io/v1/data/rba/f1.1.csv \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/v1/data/rba/f1.1.csv",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/v1/data/rba/f1.1.csv", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- CSV does not preserve nested objects. Use JSON for endpoints with structured fields.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key