# API Selector Guide

Use this guide when multiple Fiber APIs look similar and you need the best fit.

## Quick Decision Matrix

| User Intent | Best API | Why | Usually Avoid |
|---|---|---|---|
| Discover many companies by filters | `companySearch` | Optimized for discovery across many companies | `kitchenSinkCompany` for broad discovery |
| Deep data for one known company | `kitchenSinkCompany` | Rich company profile in one call | `companySearch` if you already know exact company |
| Discover people/prospects by role and company | `peopleSearch` | Optimized for profile discovery | `syncQuickContactReveal` for discovery |
| Reveal email/phone for known profile | `syncQuickContactReveal` | Purpose-built contact reveal | `peopleSearch` if profile is already known |
| Fresh LinkedIn profile data for one profile | `profileLiveEnrich` | Real-time profile refresh | `peopleSearch` for freshness |
| Fresh LinkedIn company data for one company | `companyLiveEnrich` | Real-time company refresh | `companySearch` for freshness |
| Large enrichment/export workflow | Audience APIs (`createAudience` -> `buildAudience` -> `triggerEnrichment`) | Scales better for bulk | Repeating sync calls one-by-one |

## MCP Workflow Recommendation

When uncertain:

1. Call `search_endpoints(query, constraints?)`.
2. If the selected API needs advanced nested filters, call `get_endpoint_details_full(operationId)`.
3. Execute the API call.

## Similar API Pitfalls

- `companySearch` vs `kitchenSinkCompany`
  - Use `companySearch` when you need discovery/filtering.
  - Use `kitchenSinkCompany` when you already know the company and need full detail.

- `peopleSearch` vs `syncQuickContactReveal`
  - Use `peopleSearch` to find people.
  - Use `syncQuickContactReveal` to reveal contact details for people you already identified.

- Live enrich APIs vs search APIs
  - Search APIs are for broad retrieval.
  - Live enrich APIs are for freshness on specific entities.

## Cost and Scale Guardrails

- For small lookup tasks, direct APIs are fine.
- For large jobs (hundreds or thousands of records), move to audience workflow to control cost and progress.
