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.

Request Header
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Products

GET /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)
Example Response
{
  "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
  }
}
GET /products/{id}

Get detailed information for a specific product.

Pricing & Stock

POST /pricing/check

Get real-time pricing and availability for multiple parts.

Request Body
{
  "parts": [
    {"mpn": "RC0402FR-0710KL", "qty": 100},
    {"mpn": "LM7805CT", "qty": 50}
  ]
}

Orders

POST /orders

Create a new order programmatically.

GET /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 placed
  • order.shipped - Order has shipped
  • order.delivered - Order delivered
  • stock.low - Product stock below threshold
  • quote.responded - Quote response ready