$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "liPostUrl": "https://www.linkedin.com/posts/example-user_example-topic-ugcPost-1234567890123456789-example/",
< "profileId": "example-profile-id",
< "li_at": "example_li_at",
< "JSESSIONID": "ajax:example",
< "bcookie": "example_bcookie",
< "liap": "true",
< "li_theme_set": "app",
< "li_theme": "light",
< "timezone": "Asia/Kolkata",
< "bscookie": "example_bscookie",
< "user-agent": "Mozilla/5.0 ...",
< "timezoneOffset": "5.5",
< "csrf-token": "example_csrf-token",
< "User-Agent": "Mozilla/5.0 ...",
< "x-li-track": "{\"clientVersion\":\"1.13.455\"}",
< "x-li-lang": "en_US",
< "X-Restli-Protocol-Version": "2.0.0",
< "txSmSelfProfileUrl": "https://www.linkedin.com/in/example-self/",
< "proxy": {
< "ip": "http://proxy.example.com",
< "port": "1080",
< "username": "example_username",
< "password": "example_password"
< }
<}
<EOF
$curl "https://api.apify.com/v2/acts/automationagents~linkedin-post-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'