Beta · Our site is currently in beta. Some features may still change - please report any problem here.

API for developers

Check stock, prices and alternatives from your ERP, BOM tool or shop - JSON over HTTPS, free with an API key. Prices are the sellers' USD unit prices, the same as on the site.

My API keys

Sign in or register your company free to get an API key.

Authentication & limits

  • Base address: https://electronicpartsmarket.com/api.php - HTTPS, GET, answers in JSON (UTF-8).
  • Send the key in a header: X-API-Key: epm_... (or Authorization: Bearer epm_...). Never put it in the URL.
  • 60 calls per minute and 5,000 per day per key (resets 00:00 UTC). Need more? Write to us.
  • Prices: USD unit prices of approved suppliers. Ordering stays on the site (PCS BUY on the offer page - url in each offer).
curl -H "X-API-Key: epm_YOURKEY" "https://electronicpartsmarket.com/api.php?r=search&q=NE555"

r=offer - One stock offer

Parameters: id

GET https://electronicpartsmarket.com/api.php?r=offer&id=123
{"currency":"USD","offer":{"offer_id":123,"mpn":"...", "...": "..."}}

r=stock - Stock of a BOM

Parameters: mpn (1-50 part numbers, comma separated)

GET https://electronicpartsmarket.com/api.php?r=stock&mpn=NE555,LM358,AMS1117-3.3
{"currency":"USD","parts":[{"mpn":"NE555","offers":2,"quantity_available":12000,"best_price_usd":0.05,"best_offer_id":45,"best_moq":500}]}

r=alternatives - Alternatives (cross reference)

Parameters: mpn

GET https://electronicpartsmarket.com/api.php?r=alternatives&mpn=NE555
{"mpn":"NE555","alternatives":[{"mpn":"LM555","kind":"drop_in","note":"...","stock":{"offers":1,"best_price_usd":0.06}}]}

r=me - Your key and usage

Parameters: -

GET https://electronicpartsmarket.com/api.php?r=me
{"key":{"name":"ERP","prefix":"epm_1a2b3c4d5e6f","calls_today":42,"daily_limit":5000,"per_minute":60}}

Errors

{"error":{"code":401,"message":"Invalid or revoked API key."}}

400 wrong parameters · 401 key missing / invalid / revoked · 404 offer not found · 405 not GET · 429 limit reached · 500 server error.

Report a problem