$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "searchTerms": [
< "python"
< ],
< "maxItems": 3,
< "freeOnly": false,
< "sortOrder": "RELEVANCE",
< "languages": [],
< "levels": [],
< "minRating": 0,
< "videoLengths": [],
< "closedCaptionLanguages": [],
< "mustHaveClosedCaptions": false,
< "mustHaveQuizzes": false,
< "mustHaveCodingExercises": false,
< "mustHavePracticeTests": false,
< "mustHaveWorkspaces": false,
< "mustHaveRoleplays": false,
< "practiceTestCoursesOnly": false,
< "certificationPrepOnly": false,
< "includeCourseDetails": false,
< "includeCurriculum": false,
< "maxCurriculumItems": 2,
< "includeReviews": false,
< "maxReviews": 1
<}
<EOF
$curl "https://api.apify.com/v2/actors/datascraperes~udemy-course-catalog-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'