$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "startUrls": [
< {
< "url": "https://www.investing.com/indices/eu-stoxx50-news/"
< },
< {
< "url": "https://www.investing.com/news/latest-news/"
< },
< {
< "url": "https://www.investing.com/news/most-popular-news/"
< },
< {
< "url": "https://www.investing.com/news/headlines/"
< },
< {
< "url": "https://www.investing.com/news/cryptocurrency-news/"
< },
< {
< "url": "https://www.investing.com/news/stock-market-news/"
< },
< {
< "url": "https://www.investing.com/news/commodities-news/"
< },
< {
< "url": "https://www.investing.com/news/forex-news/"
< },
< {
< "url": "https://www.investing.com/news/economy/"
< },
< {
< "url": "https://www.investing.com/news/economic-indicators/"
< },
< {
< "url": "https://www.investing.com/news/politics/"
< },
< {
< "url": "https://www.investing.com/news/world-news/"
< }
< ],
< "dateRange": "2023/1/5 - 2020/1/5",
< "maxArticles": 50,
< "maxDepth": 20,
< "proxyConfiguration": {
< "useApifyProxy": false
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/glitch_404~investing-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'