$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "twProfileUrl": "https://x.com/example_profile",
< "texAuVariables": {
< "yourFullName": "Example Person",
< "yourDescription": "Example role",
< "yourCompanyDescription": "Example company",
< "yourUsp": "Example USP"
< },
< "connectedAccountId": "example_connected_account_id",
< "twid": "1234567890",
< "user-agent": "Mozilla/5.0 ...",
< "bearerToken": "Bearer example",
< "guest_token": "1234567890",
< "sec-ch-ua-platform": "macOS",
< "authorization": "Bearer example",
< "User-Agent": "Mozilla/5.0 ...",
< "txSmSelfProfileUrl": "https://twitter.com/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~twitter-profile-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'