Export campaign posts
curl --request GET \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/export \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/export"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)<string>Campaign posts and stories
Export campaign posts
Streams a CSV of campaign posts. Accepts the same filters as the posts list (no pagination or sort); exports all posts when no filters are set. Empty campaigns return a header-only CSV. The file includes a boost_code column with the boost code entered on each post, blank when none is set. Response headers include Content-Disposition (attachment filename) and X-Export-Row-Count (data row count, 0 when empty).
GET
/
api
/
v2
/
campaigns
/
{cid}
/
posts
/
export
Export campaign posts
curl --request GET \
--url https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/export \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/campaigns/{cid}/posts/export"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)<string>Authorizations
Query Parameters
Response
CSV file. Headers: Content-Disposition (attachment filename), X-Export-Row-Count (data-row count).
The response is of type string.
Was this page helpful?