$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "requests": [
< {
< "name": "httpbin echo",
< "url": "https://httpbin.org/get",
< "params": {
< "hello": "world"
< }
< },
< {
< "name": "httpbin POST JSON",
< "method": "POST",
< "url": "https://httpbin.org/post",
< "json": {
< "task": "demo",
< "items": [
< 1,
< 2,
< 3
< ]
< }
< },
< {
< "name": "JSONPlaceholder post",
< "url": "https://jsonplaceholder.typicode.com/posts/1"
< },
< {
< "name": "GitHub repo",
< "url": "https://api.github.com/repos/apify/crawlee",
< "headers": {
< "Accept": "application/vnd.github+json"
< }
< },
< {
< "name": "npm package",
< "url": "https://registry.npmjs.org/express/latest"
< },
< {
< "name": "Open-Meteo weather",
< "url": "https://api.open-meteo.com/v1/forecast",
< "params": {
< "latitude": 52.52,
< "longitude": 13.41,
< "current": "temperature_2m"
< }
< },
< {
< "name": "Cat fact",
< "url": "https://catfact.ninja/fact"
< },
< {
< "name": "Dog image",
< "url": "https://dog.ceo/api/breeds/image/random"
< },
< {
< "name": "US ZIP code",
< "url": "https://api.zippopotam.us/us/90210"
< },
< {
< "name": "CoinGecko ping",
< "url": "https://api.coingecko.com/api/v3/ping"
< },
< {
< "name": "Frankfurter FX",
< "url": "https://api.frankfurter.app/latest",
< "params": {
< "from": "USD",
< "to": "EUR"
< }
< }
< ],
< "maxResults": 50
<}
<EOF
$curl "https://api.apify.com/v2/actors/henrycrawl~http-request-api/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'