SDKs
Official client libraries for expand.ai
expand.ai provides official SDKs for TypeScript and Python, enabling you to integrate web scraping capabilities directly into your applications with type safety and a clean API.
| Feature | TypeScript | Python |
|---|---|---|
| Package | expandai | expandai |
| Fetch API | ✓ | ✓ |
| Markdown extraction | ✓ | ✓ |
| HTML extraction |
import Expand from 'expandai'
const client = new Expand({
apiKey: '{{API_KEY}}'
})
const result = await client.fetch({
url: 'https://example.com',
select: {
markdown: true
}
})
console.log(result.data.markdown)
Choose your preferred language to get started:
| ✓ |
| ✓ |
| JSON extraction | ✓ | ✓ |
| Sitemap streaming | ✓ | ✓ |
| Type-safe schemas | ✓ | — |