API Cookbooks
Apply the API to reporting, dashboards, crisis monitoring, competitor intelligence, CX, media monitoring, and BI workflows.
Outcome-oriented API recipes for reporting, dashboards, monitoring, intelligence, CX, media, BI, and AI-assisted workflows.
Use these cookbooks when you already have API access and want a practical request pattern for a business workflow.
Use MCP Recipes instead when the workflow should be conversational and the AI client should decide which Kommon Poll tools to call.
Each cookbook should record:
- Goal.
- When to use it.
- Prerequisites.
- Endpoint used.
- Request sequence.
- Parameters used.
- Example request.
- Response fields to inspect.
- Pagination considerations.
- Error handling.
- Security notes.
- Expected downstream output.
- Related reference pages.
1. Generate A Social Listening Report
Use this when a team needs a recurring or one-off report from a saved search.
Request sequence:
- Use
GET /v4/listto resolve the saved search. - Call
GET /v4/searchfor the reporting period. - Use overview metrics for headline KPIs.
- Retrieve representative mention pages for evidence and top examples.
- Generate charts and narrative findings downstream.
- Record the
aid, period, timezone, and filters in the final methodology.
Useful parameters:
durationtimezonedataFromdataSizesortBymaxSentplatformsfilterTags
2. Build A Monitoring Dashboard
Use this when an internal dashboard needs current Kommon Poll metrics.
Request sequence:
- Store the monitored search
aid. - Refresh overview metrics at a sensible interval.
- Retrieve recent mentions with
dataFrom=0, a positivedataSize, andsortBy=dateDesc. - Display volume, sentiment, reach, engagement, influence, and platform mix.
- Cache responses to avoid unnecessary repeated calls.
For dashboards, avoid fetching full mention history when overview metrics or the first recent page are enough.
3. Scheduled Daily, Weekly, Or Monthly Report
Use this when reports should be generated automatically.
Request sequence:
- Store the key securely on the server.
- Store the selected
aidin application configuration. - Run a scheduled
GET /v4/searchrequest using a fixedduration. - Create email, PDF, DOCX, slides, or BI outputs downstream.
- Log request outcomes without logging the
Authorizationheader.
Use local business time with timezone when the report should match a team reporting calendar.
4. Crisis And Reputation Monitoring
Use this when teams need fast visibility into an active incident, negative spike, fraud concern, outage, backlash, or reputation risk.
Request sequence:
- Use a short
duration, such as1dor7d. - Filter negative sentiment where appropriate.
- Sort by
dateDesc,engagementsDesc, orinfDesc. - Filter priority, tags, or platforms if configured in the saved search workflow.
- Surface representative mentions and key metrics for rapid review.
Useful requests:
GET /v4/search?aid=<AID>&duration=1d&maxSent=-0.01&dataFrom=0&dataSize=50&sortBy=dateDesc
GET /v4/search?aid=<AID>&duration=7d&maxSent=-0.01&dataFrom=0&dataSize=50&sortBy=infDesc
5. Competitor Intelligence
Use this when comparing a brand with competitors over the same reporting period.
Request sequence:
- Use separate authorized saved searches for the brand and relevant competitors.
- Use the same
durationandtimezonefor every search. - Compare mention volume, sentiment, reach, engagement, influence, platforms, themes, and top mentions.
- Persist normalized snapshots if historical benchmarking is required.
Keep the request logic identical across competitors so differences come from the data, not the integration.
6. Campaign Reporting
Use this when a launch, event, creator activation, or hashtag campaign has its own saved search.
Request sequence:
- Use the campaign saved search
aid. - Set explicit campaign dates where possible.
- Filter by campaign hashtags, domains, authors, or platforms as required.
- Report volume, sentiment, engagement, reach, top mentions, and audience response.
Example:
GET /v4/search?aid=<AID>&duration=010826-310826&filterIncludeHashtag=launch,brand&dataFrom=0&dataSize=50&sortBy=engagementsDesc
7. Voice Of Customer And CX Analysis
Use this when product, CX, or support teams need recurring issue discovery.
Request sequence:
- Filter by complaint or action classifications, tags, intents, subtopics, and sentiment where configured.
- Paginate matching mentions into the downstream analysis workflow.
- Cluster recurring issues and quantify their occurrence downstream.
- Keep mention IDs and source links for traceability.
Useful parameters:
actionTypefilterTagsfilterIntentsfilterSubTopicsmaxSentdataFromdataSize
8. Media And PR Monitoring
Use this when communications teams need a morning media brief or campaign media summary.
Request sequence:
- Filter to the required platforms or domains.
- Track mention volume, sentiment, influential coverage, and domain diversity.
- Retrieve top coverage by influence, reach, or recency.
- Generate a brief with source links and publication times.
Useful requests:
GET /v4/search?aid=<AID>&duration=1d&filterIncludeDomain=example.com,example.org&dataFrom=0&dataSize=50&sortBy=dateDesc
GET /v4/search?aid=<AID>&duration=7d&dataFrom=0&dataSize=50&sortBy=infDesc
9. High-Value Mention Feed
Use this when a CRM, outreach, or escalation workflow needs selected high-value mentions.
Request sequence:
- Request individual mentions.
- Sort by influence, engagement, reach, or recency.
- Apply platform, sentiment, and priority filters.
- Feed selected results into an approved outreach or CRM workflow.
Example:
GET /v4/search?aid=<AID>&duration=7d&filterPriority=high&dataFrom=0&dataSize=50&sortBy=reachDesc
10. Data Warehouse And BI Integration
Use this when Kommon Poll data should be joined with internal reporting data.
Request sequence:
- Use
GET /v4/listduring configuration to map saved searches. - Ingest
GET /v4/searchdata on a schedule. - Paginate mention datasets.
- Preserve stable mention IDs and source URLs.
- Store publication and collection or ingestion timestamps separately when returned.
- Design the downstream schema to tolerate missing platform-specific fields.
Do not assume every platform returns the same metric set.
11. AI-Assisted Report Generation
Use this when a trusted backend prepares Kommon Poll context for an AI model.
Request sequence:
- Call the Kommon Poll API from a trusted backend.
- Pass selected aggregates and representative mentions to the chosen AI model.
- Instruct the model to separate measured Kommon Poll metrics from interpretation and recommendations.
- Keep source links and mention IDs in the generated output for traceability.
- Do not expose the Kommon Poll API key to an untrusted client or browser.