Collect and analyze social media data for sentiment analysis, trend detection, and audience insights.
const posts = await client.search({
query: "site:reddit.com web scraping tools",
maxResults: 100,
freshness: "week"
})
const insights = await client.analyze({
texts: posts.organic.map(p => p.snippet),
analysis: ["sentiment", "topics", "entities"]
})