nanobot: 2026-09-18 19:16:50

This commit is contained in:
lachtan
2026-09-18 19:16:51 +02:00
parent b1c896a53c
commit 871934f1c5
4 changed files with 83 additions and 220 deletions

20
scripts/tmp-test-apis.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# One-off test: do public airline fare APIs return usable data without auth?
set -u
echo "=== Ryanair farefinder (PRG-MAD, no auth expected) ==="
curl -sS --max-time 20 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64)" \
"https://services-api.ryanair.com/farfnd/v4/oneWayFares/PRG/MAD/cheapestPerDay?outboundMonthOfDate=2027-03-01&currency=CZK" | head -c 2000
echo
echo
echo "=== Wizz Air search API (PRG-MAD, no auth expected) ==="
curl -sS --max-time 20 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64)" \
"https://be.wizzair.com/27.6.0/api/booking/search?departureStation=PRG&arrivalStation=MAD&fromDate=2027-03-10&toDate=2027-03-10" | head -c 1000
echo
echo
echo "=== easyJet timeout API (PRG-MAD) ==="
curl -sS --max-time 20 -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64)" \
"https://www.easyjet.com/api/routepricing/v3/searchfares/GetLowestFares?departureAirport=PRG&arrivalAirport=MAD&currency=CZK" | head -c 1000
echo