$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "searchQueries": [
< "machine learning",
< "deep learning"
< ],
< "datasetUrls": [
< "https://www.kaggle.com/datasets/uciml/iris"
< ],
< "userProfiles": [
< "https://www.kaggle.com/jeffheaton"
< ],
< "searchType": "datasets",
< "sortBy": "hottest",
< "maxResults": 20,
< "maxDatasetsPerUser": 10,
< "includeDatasetDetails": true,
< "includeUserStats": true,
< "rateLimitDelayMs": 1000,
< "proxyConfiguration": {
< "useApifyProxy": true
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/klondikeking~kaggle-datasets-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'