Import several posts
curl --request POST \
--url https://beta.creatorcore.co/api/v2/posts/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"urls": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({urls: ['<string>']})
};
fetch('https://beta.creatorcore.co/api/v2/posts/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/posts/bulk"
payload = { "urls": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"results": [
{
"url": "<string>",
"status": "created",
"post": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalPostId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tracker": true,
"refreshIntervalHours": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"platformId": "<string>",
"shortcode": "<string>",
"type": "<string>",
"caption": "<string>",
"url": "<string>",
"thumbnailUrl": "<string>",
"publishedAt": "<string>",
"soundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latestViews": 123,
"latestLikes": 123,
"latestComments": 123,
"latestShares": 123,
"refreshStatus": "<string>",
"lastRefreshedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
},
"error": {
"code": "<string>",
"message": "<string>"
}
}
],
"summary": {
"created": 1,
"alreadyLinked": 1,
"failed": 1
}
}Posts
Import several posts
Imports up to 20 post URLs into your organization catalog and returns a result per URL, in request order. A URL that fails is reported in its result with an error and doesn’t fail the others. The request returns once every URL is processed, which can take up to a few minutes for large batches. Posts count toward your monthly post limit.
POST
/
api
/
v2
/
posts
/
bulk
Import several posts
curl --request POST \
--url https://beta.creatorcore.co/api/v2/posts/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-CreatorCore-Organization-Id: <api-key>' \
--data '
{
"urls": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'X-CreatorCore-Organization-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({urls: ['<string>']})
};
fetch('https://beta.creatorcore.co/api/v2/posts/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/posts/bulk"
payload = { "urls": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"results": [
{
"url": "<string>",
"status": "created",
"post": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"globalPostId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tracker": true,
"refreshIntervalHours": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"post": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "tiktok",
"platformId": "<string>",
"shortcode": "<string>",
"type": "<string>",
"caption": "<string>",
"url": "<string>",
"thumbnailUrl": "<string>",
"publishedAt": "<string>",
"soundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latestViews": 123,
"latestLikes": 123,
"latestComments": 123,
"latestShares": 123,
"refreshStatus": "<string>",
"lastRefreshedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
},
"error": {
"code": "<string>",
"message": "<string>"
}
}
],
"summary": {
"created": 1,
"alreadyLinked": 1,
"failed": 1
}
}Authorizations
Body
application/json
Was this page helpful?