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
}
}
}
}
]
}Analyze individual posts for brand safety risks.
This endpoint evaluates specific posts for potential brand safety issues.
Pricing: 0.5 credits per post analyzed
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
}
}
}
}
]
}API key for authentication
1 - 50 elements[
{
"platform": "instagram",
"url": "https://www.instagram.com/p/Cx123Sample/"
},
{
"platform": "instagram",
"post_id": "9876543210987654321"
}
]Brand safety analysis results
Show child attributes
Unique identifier for the analysis result
Brand safety analysis results
Show child attributes
Whether the analysis completed successfully
true
Brand safety rating. A = safe (no risks), B = moderate concerns, C = significant risks.
A, B, C "A"
Confidence score (0-1) for the rating. >0.8 = high confidence.
0 <= x <= 10.92
Human-readable summary of the assessment.
"Content is family-friendly and aligns with positive brand values"
Specific safety concerns detected. Empty array = no issues found.
Show child attributes
Category of brand safety concern detected:
adult_sexual_content: Sexually explicit or suggestive contentprofanity_strong_language: Profanity or offensive languagedrugs_alcohol_tobacco: Drug, alcohol, or tobacco-related contentviolence_weapons: Violent content or weapon referenceshate_discrimination: Hate speech or discriminatory contentpolitical_social_issues: Politically divisive or controversial topicsmisinformation_conspiracy: Misinformation or conspiracy theoriesmisc: Other brand safety concernsadult_sexual_content, profanity_strong_language, drugs_alcohol_tobacco, violence_weapons, hate_discrimination, political_social_issues, misinformation_conspiracy, misc "profanity_strong_language"
Severity level of the concern:
low: Minor issue, may be acceptable for some brandsmedium: Moderate concern, evaluate based on brand guidelineshigh: Significant risk, likely unsuitable for most brandslow, medium, high "low"
Confidence score for this specific flag (0-1). Higher values indicate greater certainty about this concern.
0 <= x <= 10.75
Human-readable description explaining the concern. Provides context about what was detected.
"Occasional use of mild profanity in captions"
Specific examples or evidence that triggered this flag. May include post excerpts or contextual information.
[
"Post on 2024-01-10: 'This is damn good'",
"Post on 2024-01-08: Caption contains mild language"
][]Detailed reasoning explaining the analysis result. Includes context about content analyzed and decision factors.
"Analysis of 20 recent posts shows consistent positive messaging focused on health and wellness with no controversial content"
Show child attributes
Version of the AI model used for analysis
When the analysis was performed
Processing time in milliseconds