-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanual_api_test.bat
More file actions
26 lines (20 loc) · 1.03 KB
/
manual_api_test.bat
File metadata and controls
26 lines (20 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
echo 🔧 Manual API Key Validation Test
echo ================================
echo.
echo 🌤️ Testing OpenWeatherMap...
curl -s "https://api.openweathermap.org/data/2.5/weather?q=London&appid=448c9d2e21944d9698ffdf41ca76cc16" | findstr "name\|temp\|error"
echo.
echo 🌤️ Testing WeatherAPI.com...
curl -s "https://api.weatherapi.com/v1/current.json?key=yf95ace00ca55408599204947252008&q=London" | findstr "name\|temp_c\|error"
echo.
echo 📰 Testing NewsAPI.org...
curl -s -H "X-API-Key: 8e738e3e9b7148329fdc6a694adb6772" "https://newsapi.org/v2/top-headlines?category=technology&pageSize=1" | findstr "totalResults\|title\|error"
echo.
echo 📰 Testing Guardian API...
curl -s "https://content.guardianapis.com/search?api-key=a23ce391-607f-4a5c-a3da-f12dc8298c2a&q=technology&page-size=1" | findstr "total\|webTitle\|error"
echo.
echo 💱 Testing Fixer.io...
curl -s "http://data.fixer.io/api/latest?access_key=4926703ad0165b987f0b9010ae7df888" | findstr "success\|base\|USD\|error"
echo.
echo ✅ Manual API test complete!