Beta · Our site is currently in beta. Some features may still change - please report any problem here.
API for developers
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_...(orAuthorization: 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 -
urlin each offer).
curl -H "X-API-Key: epm_YOURKEY" "https://electronicpartsmarket.com/api.php?r=search&q=NE555"
r=search - Search stock offers
q (part number, manufacturer or text, min. 2), limit (1-100, default 20)
GET https://electronicpartsmarket.com/api.php?r=search&q=STM32F103C8T6
{"query":"STM32F103C8T6","count":1,"currency":"USD","offers":[{"offer_id":123,"mpn":"STM32F103C8T6","manufacturer":"STMicroelectronics","quantity_available":5000,"moq":100,"unit_price_usd":1.85,"deal":null,"lead_time_days":3,"ships_from":"CN","free_sample_pcs":0,"seller":{"name":"...","country":"CN","verified":true},"url":"https://electronicpartsmarket.com/offer_view.php?id=123"}]}
r=offer - One stock offer
id
GET https://electronicpartsmarket.com/api.php?r=offer&id=123
{"currency":"USD","offer":{"offer_id":123,"mpn":"...", "...": "..."}}
r=stock - Stock of a BOM
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)
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
-
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.