Source Parts API
השתלבו עם מסד הנתונים המקיף ביותר בעולם לרכיבים אלקטרוניים. גישה למלאי בזמן אמת, תמחור ומפרטים טכניים.
Base URL & authentication
Public, API-key-accessible endpoints, grouped by feature area. All requests use the base URL https://api.source.parts/v1, require an Authorization: Bearer header, and must send a descriptive User-Agent.
https://api.source.parts/v1copy
User-Agent header required
All API requests must include a User-Agent header that identifies your application. For example: -H "User-Agent: YourApp/1.0 ([email protected])". Requests without a valid User-Agent will be rejected.
דוגמאות API
ראו כמה קל להשתלב עם ה-API שלנו. התחילו עם מקרי שימוש נפוצים אלה.
חיפוש רכיבים
מצאו רכיבים לפי מספר חלק, יצרן או מפרטים
# Search for microcontrollers curl -X GET "https://api.source.parts/v1/parts/search" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "User-Agent: YourApp/1.0 ([email protected])" \ -G -d "q=STM32F4" -d "category=microcontrollers" -d "limit=10"copy
בדיקת מלאי בזמן אמת
קבלו רמות מלאי נוכחיות וזמינות בכל הספקים
# Check inventory for a specific part curl -X GET "https://api.source.parts/v1/parts/STM32F407VGT6/inventory" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "User-Agent: YourApp/1.0 ([email protected])"copy
קבלת מידע על מחירים
שליפת מחירים נוכחיים עם מדרגות כמות ומידע על ספקים
# Get pricing for quantity breaks curl -X GET "https://api.source.parts/v1/parts/STM32F407VGT6/pricing" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "User-Agent: YourApp/1.0 ([email protected])" \ -G -d "quantities=1,10,100,1000"copy
API Reference
Endpoints grouped by feature area. Every path is relative to the base URL above.
Catalog & search
Search millions of components and pull verified part data, pricing, inventory, and datasheets.
/parts/searchSearch parts by query with filters and pagination./parts/{sku}Get full part details by SKU or part number./parts/{sku}/specsGet parametric technical specifications./parts/{sku}/inventoryGet real-time stock levels./parts/{sku}/pricingGet price breaks across quantity tiers./parts/{sku}/datasheetGet the datasheet URL for a part./parts/{sku}/alternativesFind drop-in and functional alternatives./parts/{sku}/gatherGather specs, inventory, pricing, and datasheet in one call./parts/categoriesList all part categories./parts/manufacturersList all manufacturers./parts/datasheets/batchFetch datasheets for multiple SKUs at once.Components & matching
Match reference designators, values, and footprints to catalog parts with confidence scoring.
/components/matchMatch a single component with a confidence breakdown./components/match/batchMatch up to 500 components in one request./footprints/{footprint}/compatibleGet compatible footprint equivalences (imperial/metric)./values/normalizeNormalize a component value string (e.g. "1k" → "1.0 kΩ").Datasheets
Retrieve, chunk, and extract structured content from component datasheets.
/datasheets/{sku}/pdfGet a presigned PDF URL for a datasheet./datasheets/{sku}/chunksGet extracted, chunked sections from a datasheet./datasheets/{sku}/drawingsExtract technical drawings from a datasheet./datasheets/chunkStart a datasheet chunking job.Bill of materials
Upload a BOM, match its lines to catalog parts, and pull cost and availability rollups.
/bomUpload a BOM file (CSV/XLSX/JSON/XML) for processing./bom/{job_id}/statusCheck BOM processing status./bom/{bom_id}Get a processed BOM with matched parts./bom/{bom_id}/analysisGet cost rollup, unmatched parts, and warnings./bom/cleanClean EIA capacitor codes in a CSV (104 → 100nF)./bom/pdfGenerate a BOM PDF with matched parts.Cost of goods
Estimate landed cost of a design at build quantity using ladder pricing.
/costs/cogsCalculate cost of goods from a BOM at a target quantity./costs/estimateGet a quick cost estimate for a list of parts.Part identification
Identify a component or PCB from a photo via barcode, QR, and OCR — the engine behind identify.parts.
/identify/precheckCheck whether the identify service is ready./identifyUpload a photo and get barcode/OCR matches plus datasheet links.Manufacturing & DFM
Run design-for-manufacturing checks, get cross-vendor fab quotes, and generate manufacturing outputs.
/manufacturing/dfm/checkFree instant DFM check from an uploaded Gerber./manufacturing/dfmSubmit a full DFM analysis for a project./fab/quoteGet a cross-vendor PCB fabrication quote./manufacturing/fabCreate a fabrication order (layers, finish, thickness)./manufacturing/stackupGenerate a PCB stackup PDF./manufacturing/placementGenerate component placement (pick-and-place) outputs./manufacturing/{job_id}/statusCheck any manufacturing job's status.EDA & CAD
Programmatically run ERC, render and export schematics/PCBs, and edit parametric STEP models.
/eda/ercRun an electrical rules check on a schematic./eda/schematic/svgRender a schematic to SVG./eda/pcb/jobSubmit an async PCB processing job./cad/step/inspectInspect a STEP/BREP file's geometry metadata./cad/step/pipelineRun a chain of parametric CAD operations.Projects
Organize designs, BOMs, and builds in a project workspace.
/projectsList your projects./projectsCreate a new project./projects/{project_id}Get project details./projects/{project_id}/statusGet part counts and cost summary for a project.Authentication & credits
Manage API keys and check your usage balance. Keys use the sp_live_ / sp_test_ prefix.
/auth/keysCreate a new API key (requires an active subscription)./auth/keysList your API keys./auth/keys/{key_id}Revoke an API key./auth/key/validateValidate an API key and return its plan and scopes./credits/balanceGet your current API credit balance.