API Access
Integrate ElectroParts data into your applications
Overview
The ElectroParts API provides programmatic access to our product catalog, pricing, stock levels, and ordering capabilities. Perfect for integrating with your ERP, PLM, or custom applications.
RESTful Design
Clean, predictable URLs and standard HTTP methods
JSON Responses
All responses in JSON format for easy parsing
Real-time Data
Live pricing and stock information
Rate Limiting
Fair usage limits with clear headers
Base URL
https://api.electroparts.com/v1
Authentication
All API requests require authentication using an API key passed in the header.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Products
/products
List products with optional filtering and pagination.
Parameters
category |
Filter by category slug |
manufacturer |
Filter by manufacturer ID |
in_stock |
Only show in-stock items (boolean) |
page |
Page number (default: 1) |
per_page |
Items per page (default: 25, max: 100) |
{
"data": [
{
"id": 12345,
"sku": "EP-RC0402-10K",
"mpn": "RC0402FR-0710KL",
"name": "RES SMD 10K OHM 1% 1/16W 0402",
"manufacturer": "Yageo",
"category": "resistors",
"stock_quantity": 50000,
"price_tiers": [
{"min_qty": 1, "unit_price": 0.10},
{"min_qty": 10, "unit_price": 0.05},
{"min_qty": 100, "unit_price": 0.02}
]
}
],
"meta": {
"current_page": 1,
"total_pages": 100,
"total_items": 2500
}
}
/products/{id}
Get detailed information for a specific product.
Search
/search
Search products by keyword or part number.
Parameters
q |
Search query (required) |
type |
Search type: keyword, mpn, sku |
Pricing & Stock
/pricing/check
Get real-time pricing and availability for multiple parts.
{
"parts": [
{"mpn": "RC0402FR-0710KL", "qty": 100},
{"mpn": "LM7805CT", "qty": 50}
]
}
Orders
/orders
Create a new order programmatically.
/orders/{id}
Get order details and status.
Webhooks
Subscribe to real-time events for order updates, stock alerts, and more.
Available Events
order.created- New order placedorder.shipped- Order has shippedorder.delivered- Order deliveredstock.low- Product stock below thresholdquote.responded- Quote response ready