Run linkedin-extract-post-impressions action live
curl --request POST \
--url https://api.edges.run/v1/actions/linkedin-extract-post-impressions/run/live \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"input": {
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"custom_data": {}
},
"identity_ids": [
"44444444-4444-4444-4444-444444444444"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {start_date: '2023-12-25', end_date: '2023-12-25', custom_data: {}},
identity_ids: ['44444444-4444-4444-4444-444444444444']
})
};
fetch('https://api.edges.run/v1/actions/linkedin-extract-post-impressions/run/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.edges.run/v1/actions/linkedin-extract-post-impressions/run/live"
payload = {
"input": {
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"custom_data": {}
},
"identity_ids": ["44444444-4444-4444-4444-444444444444"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"impression_counts": [
{
"date_on": {
"year": 123,
"month": 123,
"day": 123
},
"impression_count": 123,
"engagement_count": 123,
"cumulative_engagement_count": 123,
"cumulative_impression_count": 123
}
]
}Extract LinkedIn Post Impressions
Extract LinkedIn Post Impressions
Daily impression and engagement counts for the connected account’s own LinkedIn posts, over a period you choose.
POST
/
actions
/
linkedin-extract-post-impressions
/
run
/
live
Run linkedin-extract-post-impressions action live
curl --request POST \
--url https://api.edges.run/v1/actions/linkedin-extract-post-impressions/run/live \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"input": {
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"custom_data": {}
},
"identity_ids": [
"44444444-4444-4444-4444-444444444444"
]
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {start_date: '2023-12-25', end_date: '2023-12-25', custom_data: {}},
identity_ids: ['44444444-4444-4444-4444-444444444444']
})
};
fetch('https://api.edges.run/v1/actions/linkedin-extract-post-impressions/run/live', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.edges.run/v1/actions/linkedin-extract-post-impressions/run/live"
payload = {
"input": {
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"custom_data": {}
},
"identity_ids": ["44444444-4444-4444-4444-444444444444"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"impression_counts": [
{
"date_on": {
"year": 123,
"month": 123,
"day": 123
},
"impression_count": 123,
"engagement_count": 123,
"cumulative_engagement_count": 123,
"cumulative_impression_count": 123
}
]
}Run this with the LinkedIn account that published the posts. Impressions are available only to that account. A managed account, or any other account, cannot read them.
The response is a daily series of account totals over
date_range. Each day includes impression_count, engagement_count, and the cumulative totals for the period.date_range is 7, 14, 28, 90, 365, or custom. For custom, pass start_date and end_date. start_date cannot be more than 399 days ago.Authorizations
Body
application/json
Show child attributes
Show child attributes
An array of Identity UUIDs linked to identities (e.g. LinkedIn) used to execute the Action. You must provide at least one valid UID with access to the integration. Do not use account_uid values — only user_uid is supported.
Example:
["44444444-4444-4444-4444-444444444444"]
Response
Successful response
Show child attributes
Show child attributes
