import InflushipAPI from 'influship';
const client = new InflushipAPI({
apiKey: 'My API Key',
});
const response = await client.match.analyze({
creators: [{ id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' }],
search_intent: { query: 'fitness brand looking for micro-influencers' },
});
console.log(response.items);
{
"items": [
{
"creator": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"platform": "instagram",
"username": "sustainable.style"
},
"match_score": 92,
"decision": "good",
"explanation": "Excellent alignment with eco-friendly fashion campaign. Creator's content consistently features sustainable brands with authentic messaging.",
"evidence": [
"95% of posts feature sustainable/ethical brands",
"Audience: 72% female, ages 25-34, eco-conscious",
"Avg engagement on sustainable content: 6.2%"
]
}
]
}