Official SDKs
CardSight AI's official SDKs provide type-safe, idiomatic interfaces to our trading card API in your preferred programming language. Built by developers, for developers—each SDK wraps our REST API with native language constructs, comprehensive error handling, and full IDE autocomplete support so you can ship features faster without sacrificing code quality.
Five production-grade SDKs are available today: Node.js (npm), Python (PyPI), Swift (Swift Package Manager), Java (Maven Central), and .NET (NuGet). Every SDK includes complete access to CardSight card identification, catalog browsing, market pricing, and collection management—plus detailed inline documentation, full type safety, and battle-tested reliability. And because the CardSight AI API is fully OpenAPI 3.0 / Swagger compatible, you're never limited to these five: generate a native client for any language straight from the spec. Whether you're building a mobile app, website, backend service, desktop or console app, or an AI agent, start here to get production-ready integration in minutes, not days.
Get Started with Our SDKs
Choose your preferred language and start building with CardSight AI. Full type safety, comprehensive error handling, and production-ready code.
npm install cardsightai1import { CardSightAI, getFieldValue } from 'cardsightai';
2
3// Initialize the client
4const client = new CardSightAI({ apiKey: 'your_api_key_here' });
5
6// Identify a card from an image
7const imageFile = // File, Blob, Buffer, or ArrayBuffer
8const result = await client.identify.card(imageFile);
9
10// Access identification results
11if (result.data?.success) {
12 const detection = result.data.detections?.[0];
13 if (detection?.card) {
14 console.log(`Card: ${detection.card.name}`);
15 console.log(`Confidence: ${detection.confidence}`);
16 console.log(`Total cards detected: ${result.data.detections.length}`);
17
18 // Pokemon, One Piece, and Magic detections report the printed
19 // language as an ISO 639-1 code; undefined on sports cards
20 console.log(getFieldValue(detection, 'CARD_LANGUAGE')); // "ja"
21 }
22}
23
24// Response structure for multiple cards:
25// {
26// success: true,
27// requestId: "req_xyz789",
28// detections: [
29// {
30// confidence: "High",
31// card: {
32// /* Card details */
33// fields: [{ key: "CARD_LANGUAGE", value: "ja" }] // TCG only
34// }
35// }
36// ],
37// processingTime: 287
38// }Working in another language? CardSight AI is fully OpenAPI 3.0 / Swagger compatible, so you can generate a typed client for any stack straight from our OpenAPI spec.
Integrate CardSight AI Anywhere
With five native SDKs spanning today's most popular ecosystems—and a fully OpenAPI 3.0 / Swagger-compatible REST API underneath—there's a first-class path to CardSight AI from virtually any platform. Native library or generated client, mobile or server, it's easier than ever to add AI-powered card identification, a 15M+ card catalog, and real market pricing to whatever you're building.
Mobile Apps
Ship native iOS experiences with the Swift SDK, and reach Android and cross-platform with Java or .NET MAUI. Point a phone camera at a card and get an instant identification.
Websites & Web Apps
Drop the Node.js SDK into any JavaScript or TypeScript front end or full-stack app. Build collection trackers, marketplaces, and pricing tools right in the browser.
Backend & Microservices
Power server-side workloads with the Node.js, Python, Java, or .NET SDK—bulk intake pipelines, catalog sync jobs, and pricing services that scale with your traffic.
Desktop Applications
Build native desktop tools with .NET (WPF, WinForms, Blazor) or Java (JavaFX, Swing), or go cross-platform with an Electron app on the Node.js SDK.
Console & CLI Tools
Automate the tedious stuff. Any SDK works great in scripts and command-line utilities for batch identification, catalog exports, and scheduled pricing pulls.
AI Agents & Assistants
Give Claude, ChatGPT, and custom agents conversational access to cards through our MCP endpoint and REST API—no SDK required, just natural language.
Don't see your language?
Every CardSight AI endpoint is described in a single OpenAPI 3.0 specification. Point your favorite code generator at it to spin up a fully typed client in Go, Rust, PHP, Ruby, Kotlin, or any other language—or explore and test every endpoint interactively in Swagger UI. Same 15M+ catalog, same AI identification, same pricing data—now from whatever stack you already run.
Every SDK Includes
Comprehensive features across all platforms for the best developer experience
Full API Coverage
Access to all endpoints: CardSight identification, catalog, pricing, and collections
IDE Support
Full type safety, autocomplete, and inline documentation in your editor
Production Ready
Comprehensive error handling, retry logic, and battle-tested code