Skip to main content
POST
/
v1
/
brand-safety
/
posts
import InflushipAPI from 'influship';

const client = new InflushipAPI({
apiKey: 'My API Key',
});

const response = await client.brandSafety.analyzePosts({
posts: [
{ platform: 'instagram', url: 'https://www.instagram.com/p/Cx123Sample/' },
{ platform: 'instagram', post_id: '9876543210987654321' },
],
});

console.log(response.results);
{
"results": [
{
"id": "<string>",
"analysis": {
"ok": true,
"rating": "A",
"overall_confidence": 0.92,
"summary": "Content is family-friendly and aligns with positive brand values",
"flags": [],
"reasoning": "Analysis of 20 recent posts shows consistent positive messaging focused on health and wellness with no controversial content",
"metadata": {
"model_version": "<string>",
"analysis_date": "2023-11-07T05:31:56Z",
"processing_time_ms": 123,
"content_analyzed": {
"text_length": 123,
"posts_count": 123
}
}
}
}
]
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Body

application/json
posts
object[]
required
Required array length: 1 - 50 elements

Post to analyze for brand safety

  • Option 1
  • Option 2
Example:
[
{
"platform": "instagram",
"url": "https://www.instagram.com/p/Cx123Sample/"
},
{
"platform": "instagram",
"post_id": "9876543210987654321"
}
]

Response

Brand safety analysis results

results
object[]