$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "items": [
< {
< "name": "Example site A",
< "site": {
< "region": "West Midlands",
< "lat": 52.4862,
< "lon": -1.8904
< },
< "start": "2026-11-02",
< "tags": [
< "solar",
< "battery"
< ],
< "capacityMw": 12.5,
< "live": true,
< "url": "https://example.com/a"
< },
< {
< "name": "Example site B, phase 2",
< "site": {
< "region": "East of England",
< "lat": 52.2053,
< "lon": 0.1218
< },
< "start": "2027-01-15",
< "tags": [
< "wind"
< ],
< "capacityMw": 40,
< "live": false,
< "url": "https://example.com/b"
< },
< {
< "name": "=Example site C",
< "site": {
< "region": "London",
< "lat": 51.5072,
< "lon": -0.1276
< },
< "start": "2026-12-01T09:30:00Z",
< "tags": [],
< "capacityMw": null,
< "live": true,
< "url": "https://example.com/c"
< }
< ],
< "targets": [
< "excel-uk-csv",
< "sql-postgres",
< "dataverse",
< "ics",
< "geojson",
< "xlsx"
< ],
< "tableName": "sites",
< "icsMapping": {
< "summary": "name",
< "start": "start",
< "location": "site.region"
< },
< "geoMapping": {
< "lat": "site.lat",
< "lon": "site.lon",
< "name": "name"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/landlordtools~dataset-format-converter/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'