Arabic social analytics

Understand Arabic conversations: add enrich=arabic to any post or comment read to get the dialect (Gulf, Egyptian, Levantine, Maghrebi, MSA), sentiment, entities and topics.

The recipe

The calls, in order. Tap a platform to see its endpoint and parameters.

  1. 1

    Posts

    1–2 credits per call

    Read posts with enrich=arabic.

    GET/v1/{platform}/postsPost[]
  2. 2

    Comments

    1–2 credits per call

    Read comments with enrich=arabic.

    GET/v1/{platform}/commentsComment[]
  3. 3

    Enrich

    3 credits per call

    Classify your own texts, up to 50 per request.

    POST/v1/enrich
What it costs
8credits

2 pages of Instagram comments, enriched.

Calculated from the live price list, including Arabic enrichment. Failed calls are refunded.

In code

javascript
const res = await fetch(`https://api.crawlfeed.dev/v1/instagram/comments?post_id=${postId}&enrich=arabic`, { headers: { Authorization: `Bearer ${process.env.CRAWLFEED_KEY}` } }).then((r) => r.json());
for (const c of res.data) {
  // { dialect: 'gulf', sentiment: { label: 'positive', score: 0.7 }, entities, topics }
  console.log(c.text, c.enrichment?.dialect, c.enrichment?.sentiment.label);
}

Questions

What does enrichment cost?

3 credits on top of the read, refunded if enrichment fails. The estimate above includes it.

Which platforms can be enriched?

Profiles, posts and comments on every platform except Reddit and Spotify, whose terms exclude it.

Related recipes