apify-influencer-brand-collabs

द्वारा apify

Apify एक्टर्स को जोड़कर Instagram ब्रांड-क्रिएटर साझेदारियाँ खोजें। तब उपयोग करें जब उपयोगकर्ता पूछे कि कोई ब्रांड किसके साथ कोलैब करता है, किसी क्रिएटर ने किन ब्रांडों के साथ भुगतान…

npx skills add https://github.com/apify/awesome-skills --skill apify-influencer-brand-collabs

Influencer–Brand Collaborations

Surface Instagram branded-content partnerships by chaining four Apify Actors against Meta's Ad Library. Distilled from the production influencer-brand-collabs mini-tool.

When to use

  • "Who has Nike paid to promote them this quarter?"
  • "What brands does @bellahadid do sponsored posts for?"
  • Auditing an account's branded-content history
  • Building a competitor's influencer roster

Don't use for: organic mentions or tags (use a hashtag/mentions scraper), TikTok or YouTube collabs (different platforms), generic competitor ads (query Meta Ad Library directly).

Inputs to gather

  1. Instagram handle or URL@adidas or https://www.instagram.com/adidas/
  2. Lookback window — days; default 90
  3. Enrichment toggles (each adds cost + time):
    • Content insights — likes, comments, views per collab
    • Profile enrichment — followers, bio, verified status of the other side

Direction (brand vs creator) is detected empirically. Do not ask.

The pipeline

#ActorPurposeRequired
1apify/instagram-profile-scraperResolve the target's Facebook fbid
2apify/brand-collaboration-scraperPull branded-content posts from Meta's Ad Library
3apify/instagram-post-scraper + apify/instagram-reel-scraperEngagement metricsoptional
4apify/instagram-profile-scraper (again)Enrich the result-side partnersoptional

Call each via mcp__claude_ai_Apify__call-actor. Use mcp__claude_ai_Apify__fetch-actor-details first if you've never run one of these and want the exact input schema.

Step 1 — Resolve the target

// actor: apify/instagram-profile-scraper
{ "usernames": ["adidas"] }

Grab fbid from the first item. No fbid → can't query Ad Library → stop and tell the user. Most common cause: private account.

Step 2 — Build the Meta Ad Library URL

https://www.facebook.com/ads/library/branded_content/?id={fbid}&query={username}&target=instagram&start_date={YYYY-MM-DD}&end_date={YYYY-MM-DD}

Date range = the lookback window (default 90 days, ending today).

Step 3 — Fetch collaborations

// actor: apify/brand-collaboration-scraper
{ "startUrls": ["<ad library url>"], "resultsLimit": 10 }

Schema is fixed: every item has creator (always the influencer side) and brandPartners[0] (always the brand side). Do not try to infer direction from these fields.

Step 4 — Detect direction empirically

Count how often the target username appears on each side of the results:

  • target appears more on creator side → target is the influencer; results are the brands
  • target appears more on brandPartners side → target is the brand; results are the creators

⚠️ Do not use isBusinessAccount to infer this. It's unreliable — e.g. @fifaworldcup is a business account but appears as the creator of its own branded content.

Step 5 — (optional) Content metrics

Split collab URLs by type:

  • /reel/... → reel scraper
  • /p/... or /tv/... → post scraper
// actor: apify/instagram-post-scraper
{ "username": ["<post urls>"], "resultsLimit": 1, "dataDetailLevel": "basicData" }

// actor: apify/instagram-reel-scraper
{ "username": ["<reel urls>"], "resultsLimit": 1 }

Match back to collabs via shortcode in the URL: /(p|reel|tv)/([A-Za-z0-9_-]+).

Engagement formula: likesCount + commentsCount + (videoViewCount ?? videoPlayCount ?? 0).

Run the two scrapers in parallel — they're independent.

Step 6 — (optional) Enrich the result side

Collect unique usernames from the side that is not the target. Then:

// actor: apify/instagram-profile-scraper
{ "usernames": [<unique result-side usernames>] }

Only enrich the side the user actually cares about. The input handle is already known.

What to present

After aggregation, surface:

  • Headline counts: total collabs, unique partners, total engagement (if metrics enriched)
  • Top 5 collabs by engagement — only meaningful when content insights were toggled on
  • Content-type mix: Post vs Reel; Reels usually dominate engagement
  • Weekly timeline across the date range — spikes reveal campaign launches
  • Per-partner card (when profiles enriched): handle, full name, followers, verified, category, collabs in this run, avg engagement

For who-questions, the partner list alone is enough. Metrics only matter for which-was-best-questions.

URL parsing

Strip Instagram's _u/ and _n/ deep-link prefixes before extracting the handle:

/instagram\.com\/(?:_u\/|_n\/)?([A-Za-z0-9_.]+)/i

These slugs are not usernames — skip them: explore, reels, stories, direct, accounts, about, p, reel, tv, tags, locations, _u, _n.

Pitfalls

  • Target is private → profile scraper returns no fbid. Bail early with a clear message.
  • No results → try in order: widen the date range, double-check the handle (strip _u/), confirm the account actually runs branded content. Meta only indexes ads they've classified as branded content.
  • Engagement is all zeros → user skipped content enrichment. Offer to re-run with it on.
  • Direction looks wrong in the output → re-check the empirical count. Don't trust isBusinessAccount.
  • Brand collabs with no metrics are still answer-shaped for who questions — don't gate the whole flow on enrichment.

Cost & time

Full 4-actor run: ~3–5 minutes, a few cents of Apify compute. Order of magnitude:

EnrichmentActors runApprox time
None21–2 min
+ Content3–42–4 min
+ Profiles+1+30–60 s

If the user just needs a partner list, skip both toggles.

Reference implementation

Production route this skill was distilled from: mini-tools-main/src/app/api/tools/influencer-brand-collabs/route.ts — full transformation logic, error handling, and slimmed display shapes for each scraper's output.

apify की और Skills

bug-triage
apify
apify/apify-mcp-server पर खुले बग मुद्दों को ट्रायेज करें। विश्लेषण करें, प्रतिक्रिया का मसौदा तैयार करें, अनुमोदन प्राप्त करें, पोस्ट करें।
official
dig
apify
Apify MCP सर्वर पर कार्य की खोज, योजना और विशिष्टीकरण के लिए लचीला कौशल। स्रोत फ़ाइलों को संपादित न करें — यह कौशल केवल समझने और योजना बनाने के लिए है।
official
apify-financial-news
apify
33 सत्यापित Tier 1 स्रोतों (Bloomberg, Reuters, FT, WSJ, IntelliNews, ČTK, PAP, BTA,…) से ट्रैक किए गए पोर्टफोलियो कंपनियों के लिए वित्तीय समाचार खोजें और निकालें।
official
apify-actor-development
apify
वेब स्क्रैपिंग, ऑटोमेशन और डेटा प्रोसेसिंग के लिए सर्वरलेस क्लाउड प्रोग्राम बनाएं, डीबग करें और डिप्लॉय करें। JavaScript, TypeScript और Python टेम्पलेट्स को इंटीग्रेटेड Crawlee, Playwright और Cheerio लाइब्रेरीज़ के साथ HTTP और ब्राउज़र-आधारित क्रॉलिंग के लिए सपोर्ट करता है। इसमें apify run के माध्यम से आइसोलेटेड स्टोरेज के साथ लोकल टेस्टिंग, इनपुट/आउटपुट के लिए स्कीमा वैलिडेशन और apify push के माध्यम से Apify
official
apify-actorization
apify
मौजूदा प्रोजेक्ट्स को भाषा-विशिष्ट SDK एकीकरण के साथ सर्वरलेस Apify एक्टर्स में बदलें। JavaScript/TypeScript (Actor.init() / Actor.exit() के साथ), Python (एसिंक कॉन्टेक्स्ट मैनेजर), और CLI रैपर के माध्यम से किसी भी भाषा को सपोर्ट करता है। संरचित वर्कफ़्लो प्रदान करता है: स्कैफोल्ड करने के लिए apify init, SDK रैपिंग लागू करना, इनपुट/आउटपुट स्कीमा कॉन्फ़िगर करना, apify run के साथ स्थानीय रूप से परीक्षण करना, फिर apify push के स
official
apify-generate-output-schema
apify
Apify एक्टर के सोर्स कोड का विश्लेषण करके आउटपुट स्कीमा (dataset_schema.json, output_schema.json, key_value_store_schema.json) जनरेट करें। इसका उपयोग तब करें जब...
official
apify-ultimate-scraper
apify
स्वचालित वेब स्क्रैपर जो Instagram, YouTube, Facebook, Google Maps और अन्य सहित 55+ प्लेटफार्मों के लिए इष्टतम एक्टर्स का चयन करता है। 8 प्रमुख प्लेटफार्मों पर 55+ पूर्व-कॉन्फ़िगर्ड एक्टर्स को कवर करता है, जिसमें उपयोग-मामला-विशिष्ट चयन मार्गदर्शन (लीड जनरेशन, इन्फ्लुएंसर खोज, ब्रांड
official
apify-audience-analysis
apify
Facebook, Instagram, YouTube और TikTok से दर्शकों की जनसांख्यिकी, जुड़ाव पैटर्न और व्यवहार डेटा निकालें। सभी चार प्लेटफ़ॉर्म पर फ़ॉलोअर जनसांख्यिकी, जुड़ाव मीट्रिक्स, टिप्पणियाँ और प्रोफ़ाइल विश्लेषण को कवर करने वाले 18+ विशेषज्ञ एक्टर्स का समर्थन करता है। तीन आउटपुट प्रारूप प्रदान करता है: त्वरित चैट प्रदर्शन, CSV निर्यात, या डाउनस्ट्रीम विश्लेषण के लिए JSON निर्यात। Apify टोकन और mcpc CLI टूल की आवश्यकता है; प्रत्येक
official