Skip to content

SDK Overview

The AACSearch SDK provides a typed, promise-based interface for the AACSearch API.

Terminal window
npm install @aacsearch/sdk
import { AACSearch } from '@aacsearch/sdk';
const aac = new AACSearch({
apiKey: process.env.AACSEARCH_API_KEY,
});
// Search
const results = await aac.search({
query: 'communication board',
language: 'en',
category: 'boards',
});
// Get resource
const resource = await aac.resources.get('res_abc123');
// List categories
const categories = await aac.categories.list();