# cURL: Fetch active Alberta inventory
curl -X GET "https://api.agent28.ai/api/v1/inventory?make=Toyota&province=AB&limit=25" -H "Authorization: Bearer YOUR_API_KEY"
# Python: Query inventory and parse clean vehicle models
import requests
url = "https://api.agent28.ai/api/v1/inventory"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {"province": "AB", "make": "Toyota", "limit": 25}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(f"Total live units: {data['total']}")
for car in data['data']:
print(f"{car['year']} {car['make']} {car['model']} - ${car['price']} CAD ({car['dealer_name']})")
// Node.js / TypeScript: Direct fetch for Next.js / Express
const res = await fetch("https://api.agent28.ai/api/v1/inventory?province=AB&limit=25", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const { data, total } = await res.json();
console.log(`Loaded ${data.length} of ${total} Alberta vehicles:`, data[0]);
-- Render PostgreSQL: One-click hydration seed script (100 sample units)
-- Run in your Render Postgres Console or psql terminal:
\i https://portal.agent28.ai/samples/alberta_inventory_seed_100.sql