Get retail trade by category
Food, household goods, clothing, department stores, cafes, and other.
Steps
- 1Call with dim=industry.
- 2Iterate categories.
Code
cURL
curl https://api.ausdata.io/v1/abs/retail-trade?dim=industry \
-H "Authorization: Bearer YOUR_KEY"Python
import requests
r = requests.get(
"https://api.ausdata.io/v1/abs/retail-trade?dim=industry",
headers={"Authorization": "Bearer YOUR_KEY"},
)
print(r.json())JavaScript
const r = await fetch("https://api.ausdata.io/v1/abs/retail-trade?dim=industry", {
headers: { Authorization: "Bearer YOUR_KEY" },
});
console.log(await r.json());Watch out for
- Cafes and restaurants spiked through 2022. Be careful when benchmarking 2023 onwards.
Related
Try it now
500 free calls per month. No credit card.
Get a free API key