$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "rows": [
< {
< "name": "France",
< "capital": "Paris",
< "population": 68200000,
< "area_km2": 551695,
< "currency": {
< "code": "EUR",
< "name": "Euro"
< },
< "tags": [
< "EU",
< "G7"
< ],
< "checkedAt": "2026-11-20"
< },
< {
< "name": "Japan",
< "capital": "Tokyo",
< "population": 123800000,
< "area_km2": 377975,
< "currency": {
< "code": "JPY",
< "name": "Yen"
< },
< "tags": [
< "G7"
< ],
< "checkedAt": "2026-11-20"
< },
< {
< "name": "Brazil",
< "capital": "Brasilia",
< "population": 216400000,
< "area_km2": 8515767,
< "currency": {
< "code": "BRL",
< "name": "Real"
< },
< "tags": [
< "BRICS"
< ],
< "checkedAt": "2026-11-20"
< },
< {
< "name": "Canada",
< "capital": "Ottawa",
< "population": 40100000,
< "area_km2": 9984670,
< "currency": {
< "code": "CAD",
< "name": "Canadian dollar"
< },
< "tags": [
< "G7"
< ],
< "checkedAt": "2026-11-20"
< },
< {
< "name": "Tunisia",
< "capital": "Tunis",
< "population": 12500000,
< "area_km2": 163610,
< "currency": {
< "code": "TND",
< "name": "Tunisian dinar"
< },
< "tags": [
< "Africa"
< ],
< "checkedAt": "2026-11-20"
< }
< ],
< "rowsCsv": "",
< "fileName": "dataset",
< "nestedFields": "flatten",
< "rowsPerFile": 250000,
< "maxRows": 1000000,
< "s3Bucket": "",
< "s3Region": "us-east-1",
< "s3KeyPrefix": "",
< "s3Endpoint": "",
< "gcsBucket": "",
< "gcsKeyPrefix": ""
<}
<EOF
$curl "https://api.apify.com/v2/actors/that_red_bird~dataset-to-parquet/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'