List collaborators on an Instagram post
curl --request GET \
--url https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collaborators \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collaborators', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collaborators"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"id": "17841405793187218",
"status": "pending",
"username": "janesmith"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Instagram
List collaborators on an Instagram post
Returns the collaborators invited on a co-authored Instagram post and the state of each invite (accepted, pending, declined). Readable only by the account that published the media: Meta scopes co-authored media data to the publisher, so a collaborating account cannot read this edge. Collaborators can only be invited when the post is created (platform_data.collaborators); Instagram exposes no API to add one to an already-published post.
GET
/
platforms
/
instagram
/
accounts
/
{id}
/
media
/
{mediaId}
/
collaborators
List collaborators on an Instagram post
curl --request GET \
--url https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collaborators \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collaborators', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/instagram/accounts/{id}/media/{mediaId}/collaborators"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"id": "17841405793187218",
"status": "pending",
"username": "janesmith"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID (must be the publishing account)
Instagram media ID