@foxcite/sdk
v1.0.2
Published
Official TypeScript SDK for Foxcite AVS (AI Visibility Score) and AEO monitoring platform
Downloads
471
Readme
Foxcite TypeScript / JavaScript SDK
The official TypeScript client library for the Foxcite API. Foxcite is an ai search visibility tracker and AEO monitoring platform that helps track your brand's presence across ChatGPT, Claude, Gemini, Grok, and Perplexity.
Features
- TypeScript First: 100% strongly typed interfaces and return types.
- Isomorphic: Works in Node.js, Edge Runtimes (Cloudflare Workers, Vercel Edge), and modern browsers via the native
fetchAPI. - Zero Dependencies: Keeps your bundle size incredibly small.
Installation
npm install @foxcite/sdk
# or
yarn add @foxcite/sdk
# or
pnpm add @foxcite/sdkQuick Start
You can generate an API Key from your Foxcite Dashboard.
import { FoxciteClient } from '@foxcite/sdk';
const client = new FoxciteClient({
apiKey: 'seomd_live_...'
});
async function run() {
// 1. List your brands
const brands = await client.brands.list();
console.log('My Brands:', brands);
// 2. Run an AI Visibility Audit
const audit = await client.audits.quickAudit({
name: 'Foxcite',
domain: 'foxcite.com',
niche: 'AEO Tools',
query: 'best AI visibility monitoring software'
});
console.log('Audit generated:', audit.id);
}
run();Developer Notes & Error Handling
The SDK throws a custom FoxciteApiError when the API returns a non-2xx status code. This error object contains the exact HTTP status code and the parsed error message from the backend, making it easy to handle rate limits or validation errors gracefully.
Contributing
- Clone the repository.
- Install dependencies:
npm install - Build the SDK:
npm run build - Run tests:
npm test
