AGENTS.md@packages/integration-bing · git:20260801.3137b89 · 2026-08-01 · sha256 6c7e3034202257e4
AGENTS.md@packages/integration-bing git:20260801.3137b89A
Immutable. This exact content is served forever at /api/v1/blob/6c7e3034202257e4.
# integration-bing ## Purpose Bing Webmaster Tools integration — API client for fetching URL inspection data, keyword stats, and site-level metrics from Bing's Webmaster API. ## Key Files | File | Role | |------|------| | `src/bing-client.ts` | Bing Webmaster API client — URL inspections, keyword stats, crawl stats, and site information. | | `src/types.ts` | Type definitions and `BingApiError` custom error class | | `src/constants.ts` | API URLs, timeouts | | `src/index.ts` | Re-exports public API | ## Patterns - **API key auth**: Uses a Bing Webmaster API key stored in `~/.canonry/config.yaml`. - **Error handling**: Uses `BingApiError` for API-specific errors. ## Common Mistakes - **Storing API keys in the database** — credentials belong in `~/.canonry/config.yaml`. ## See Also - `docs/bing-webmaster-setup.md` — user-facing setup guide - `packages/api-routes/src/bing.ts` — API routes that use this client