API Documentation
Source Parts API Documentation
Welcome to the Source Parts API documentation! Our API provides programmatic access to our comprehensive electronics component database, allowing you to integrate real-time inventory, pricing, and technical specifications into your applications.
📚 Complete API Documentation
For detailed API reference, endpoints, authentication, and examples, visit our comprehensive API documentation:
View Full API DocumentationQuick Start Guide
Getting started with the Source Parts API is straightforward:
- Authentication - Obtain your API key from your account dashboard
- Make Requests - Use standard HTTP methods to interact with our endpoints
- Process Responses - Handle JSON responses with component data, pricing, and availability
Key API Features
- Component Search - Search our database of millions of electronic components
- Real-time Pricing - Get up-to-date pricing from multiple suppliers
- Inventory Tracking - Check availability and stock levels
- Technical Specifications - Access detailed component specifications and datasheets
- BOM Processing - Upload and process Bill of Materials (BOMs) programmatically
- Quote Management - Create and manage quotes through the API
Authentication
The Source Parts API uses API keys for authentication. Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Base URL
All API requests should be made to:
https://api.source.parts/v1/
Rate Limits
To ensure optimal performance for all users, our API implements rate limiting:
- Free Tier: 1,000 requests per hour
- Professional: 10,000 requests per hour
- Enterprise: Custom limits available
Example Request
Here's a simple example of searching for components:
curl -X GET "https://api.source.parts/v1/parts/search?q=STM32F407" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "User-Agent: YourApp/1.0 ([email protected])" \
-H "Content-Type: application/json"
🚀 Getting Started
Ready to integrate? Visit our full API documentation for detailed guides, code examples in multiple languages, and interactive API explorer.
Ways to integrate
Pick whatever fits your stack:
- REST API - call
https://api.source.parts/v1directly with anAuthorization: Bearerkey and a descriptiveUser-Agent. Spec:/v1/openapi.json. - CLI - open source at github.com/SourceParts/parts-cli; install with
curl -fsSL https://source.parts/cli/install.sh | sh. - MCP server - connect Claude, Cursor, or any MCP client:
claude mcp add --transport http source-parts https://mcp.source.parts(or runuvx parts-mcp).
Support and Resources
Need help with the API? We're here to support you:
- Interactive Documentation - docs/api - Try endpoints directly in your browser
- Code Examples - Comprehensive examples in multiple programming languages
- Developer Support - Email [email protected] for technical questions
- Status Page - Monitor API uptime and performance at status.source.parts
⚠️ Important Notes
- • Always use HTTPS for API requests to ensure data security
- • Store your API keys securely and never expose them in client-side code
- • Implement proper error handling for rate limits and API errors
- • Use pagination for large result sets to optimize performance