API Documentation

Shipping Options

Sample Call
URL: /api/shipping/options?total_weight=1000&country_code=US
Parameters
total_weight Total weight in grams
country_code Two letter ISO country code. Countries and codes are available from the shipping/countries feed.
Response
service Service identification code
description Readable service name and delivery time estimate
cost Cost for this weight and destination in US Dollars

Sample Response (JSON)

[{"service":"HKA-BGA","description":"Hong Kong Post Airmail (1-8 weeks)","cost":"391"},{"country":"US","service":"HKD-BGA","description":"DHL Hong Kong (2-5 days)","cost":"143","refreshed":"2016-08-09 13:21:59"},{"service":"DHL-BGA","description":"DHL Next Day (1-2 days)","cost":"278"}]
            

Shipping Methods

Sample Call
URL: /api/shipping/methods
No Parameters

Response
service Service identification code
description Readable service name and delivery time estimate

Sample Response (JSON)

[{ "service": "HHPYDD","description": "PostNL Airmail (3-15 days)"},{"service": "HLGHDD","description": "PostNL Airmail Registered (3-15 days)"},{"service": "HKDHLDLJ","description": "DHL Hong Kong (1-7 days)"}]
            

Shipping Countries

Sample Call
URL:  /api/shipping/countries
No Parameters

Response
name Country name
code 2 Digit ISO country code
code3 3 Digit ISO country code
phone_code Country international phone code
phone_display Readable 2 digit ISO country code and international phone code
postcode_required Is post code required?
isEU Is EU VAT taxable?

Sample Response (JSON)

[{"name":"United States","code":"US","code3":"USA","phone_code":"1","phone_display":"US +1","postcode_required":"0","isEU":"0"}]
            

GET BOM

Sample Call
URL: /api/bom/get?bom_id=1 
Parameters
bom_id The BOM Record ID Saved in the database


Response
bom Array of boms
components Array of BOM Components

Sample Response (JSON)

{"bom":{"user_json_head":["Qty","Value","Device","Package","Parts","Description"],"locked":"N"},"components":[{"bom_component_id":"27","user_json_row":["8","","LED-0603","LED-603","LED1, LED1A, LED2, LED2A, LED3, LED3A, LED4, LED4A","Light Emitting Diode"],"component_id":"1","quantity":"1","quote_request":"Y","c_value":"0R 50V 1\/16W 1%","c_package":"0402","c_type":"resistor thick film","c_pins":"2","user_json_row_short":["8","","LED-06..","LED-60..","LED1,..","Light Emit.."],"unit_cost":"0.0000","setup_cost":"11.7241","placement_cost":"0.0345"},{"bom_component_id":"28","user_json_row":["1","","PINHD-1X5","1X05","ICSP","PIN HEADER"],"quantity":"1","quote_request":"Y","user_json_row_short":["1","","PINHD-..","1X05","ICSP","PIN HEADER"]},{"bom_component_id":"29","user_json_row":["6","0.1uF","CAPC603","C603","C1, C2, C3, C4, C5, C6",""],"quantity":"1","quote_request":"N","user_json_row_short":["6","0.1uF","CAPC60..","C603","C1, C2..",""]},{"bom_component_id":"30","user_json_row":["3","10k","RNETWORK","RN8P-4R-CRA06S","RN1, RN2, RN3","4 Resistor Array 0603"],"quantity":"1","quote_request":"N","user_json_row_short":["3","10k","RNETWO..","RN8P-4..","RN1, R..","4 Resistor.."]},{"bom_component_id":"31","user_json_row":["2","10uF","CPOL-EUSMCA","SMC_A","C10, C11","POLARIZED CAPACITOR, European symbol"],"quantity":"1","quote_request":"N","user_json_row_short":["2","10uF","CPOL-E..","SMC_A","C10, C..","POLARIZED.."]},{"bom_component_id":"32","user_json_row":["4","1K1","RESISTORR603","R603","R2, R3, R4, R6",""],"quantity":"1","quote_request":"N","user_json_row_short":["4","1K1","RESIST..","R603","R2, R3..",""]},{"bom_component_id":"33","user_json_row":["3","1uF","CAPC603","C603","C7, C8, C9",""],"quantity":"1","quote_request":"N","user_json_row_short":["3","1uF","CAPC60..","C603","C7, C8..",""]},{"bom_component_id":"34","user_json_row":["2","2K","RESISTORR603","R603","R1, R5",""],"quantity":"1","quote_request":"N","user_json_row_short":["2","2K","RESIST..","R603","R1, R5",""]},{"bom_component_id":"35","user_json_row":["1","4066","4066","TSSOP14","IC3","Quad bilateral ANALOG SWITCH"],"quantity":"1","quote_request":"N","user_json_row_short":["1","4066","4066","TSSOP1..","IC3","Quad bilat.."]},{"bom_component_id":"36","user_json_row":["1","700mA+ ferrite","WE-KIL_0805","WE-KI_0805_B","L1","SMD Wire Wound Ceramic Inductor WE-KIL"],"quantity":"1","quote_request":"N","user_json_row_short":["1","700mA+..","WE-KIL..","WE-KI_..","L1","SMD Wire W.."]},{"bom_component_id":"37","user_json_row":["1","CON-USB-F-MICRO-B","CON-USB-F-MICRO-B","CONN_USB_MICRO-B","J1","USB Female connector"],"quantity":"1","quote_request":"N","user_json_row_short":["1","CON-US..","CON-US..","CONN_U..","J1","USB Female.."]},{"bom_component_id":"38","user_json_row":["1","CON_HEADER_2X05-PTH+SHROUDED_A","CON_HEADER_2X05-PTH+SHROUDED_A","PINSHRD_PTH_2X05","IO","2x05 pin header"],"quantity":"1","quote_request":"N","user_json_row_short":["1","CON_HE..","CON_HE..","PINSHR..","IO","2x05 pin h.."]},{"bom_component_id":"39","user_json_row":["1","FT232RL","FT232RL","SSOP28","IC2","USB to serial UART interface"],"quantity":"1","quote_request":"N","user_json_row_short":["1","FT232R..","FT232R..","SSOP28","IC2","USB to ser.."]},{"bom_component_id":"40","user_json_row":["1","LOGO_CC-0","LOGO_CC-0","LOGO_CC-0","LOGO1",""],"quantity":"1","quote_request":"N","user_json_row_short":["1","LOGO_C..","LOGO_C..","LOGO_C..","LOGO1",""]},{"bom_component_id":"41","user_json_row":["2","MIC5205-3.3YM5","MIC5205","SOT-23-5","VR1, VR2","150ma Low-Noise LDO Regulator"],"component_id":"3157","quantity":"1","quote_request":"N","c_value":null,"c_package":null,"c_type":null,"c_pins":null,"user_json_row_short":["2","MIC520..","MIC520..","SOT-23..","VR1, V..","150ma Low-.."],"unit_cost":"0.0000","setup_cost":"0.0000","placement_cost":"0.0000"},{"bom_component_id":"42","user_json_row":["1","MIC5205-5.0YM5","MIC5205","SOT-23-5","VR3","150ma Low-Noise LDO Regulator"],"component_id":"3158","quantity":"1","quote_request":"N","c_value":null,"c_package":null,"c_type":null,"c_pins":null,"user_json_row_short":["1","MIC520..","MIC520..","SOT-23..","VR3","150ma Low-.."],"unit_cost":"0.0000","setup_cost":"0.0000","placement_cost":"0.0000"},{"bom_component_id":"43","user_json_row":["1","PCB_DP_RECTANGLE-37X60","PCB_DP_RECTANGLE-37X60","DP6037_V1","PCB1","Dangerous Prototypes Standard Rectangular PCB sizes"],"quantity":"1","quote_request":"N","user_json_row_short":["1","PCB_DP..","PCB_DP..","DP6037..","PCB1","Dangerous.."]},{"bom_component_id":"44","user_json_row":["1","PIC24FJ64GA002","PIC24FJ64GA002","SSOP28","IC1","16-bit General Purpose Flash Microcontroller"],"component_id":"3148","quantity":"1","quote_request":"N","c_value":null,"c_package":null,"c_type":null,"c_pins":null,"user_json_row_short":["1","PIC24F..","PIC24F..","SSOP28","IC1","16-bit Gen.."],"unit_cost":"0.0000","setup_cost":"0.0000","placement_cost":"0.0000"}]}

COMPONENT SEARCH

Sample Call
URL: /api/components/search?keywords=150mA
Parameters
keyword Search Keyword that will search for the bom component record


Response
component_id Bom Component ID
m_name Manufacturer's Name
c_value Components Value
c_pins Components Number of Pins
c_rohs Components ROHS
c_type Component Type
free If its FREE?
m_partnumber Manufacturer's Part Number
p_min_qty Min Quantity
placement_cost Placement Cost
setup_cost Setup Cost
stocked If its a Stocked ?
unit_cost Component Unit Cost

Sample Response (JSON)

{"components":[{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6206P182MR","m_partnumber_slug":"xc6206p182mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6206P182MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"1.8V 150mA","c_package":"SOT-23","c_package_slug":"sot-23","c_pins":"3","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"7V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/36-torex-xc6206p182mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.1851724137931,"200":0.17591379310345,"500":0.16665517241379,"1000":0.15739655172414},"pins":"3","placement_cost":0.13448275862069,"overage":"33"},"free":"0","stocked":1},{"m_name":"Richtek","manufacturer_slug":"richtek","m_partnumber":"RT9193-18GB","m_partnumber_slug":"rt9193-18gb","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/RT9193-18GB.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"1.8V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/32-richtek-rt9193-18gb","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.16965517241379,"200":0.1611724137931,"500":0.15268965517241,"1000":0.14420689655172},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6219B182MR","m_partnumber_slug":"xc6219b182mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6219B182MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"1.8V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/29-torex-xc6219b182mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.23275862068966,"200":0.22112068965517,"500":0.20948275862069,"1000":0.19784482758621},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"SGMicro","manufacturer_slug":"sgmicro","m_partnumber":"SGM2019-ADJYN5G","m_partnumber_slug":"sgm2019-adjyn5g","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/SGM2019-ADJYN5G.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"2.5-6V ADJUST 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/35-sgmicro-sgm2019-adjyn5g","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.17948275862069,"200":0.17050862068966,"500":0.16153448275862,"1000":0.15256034482759},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6206P252MR","m_partnumber_slug":"xc6206p252mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6206P252MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"2.5V 150mA","c_package":"SOT-23","c_package_slug":"sot-23","c_pins":"3","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"7V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/37-torex-xc6206p252mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.16551724137931,"200":0.15724137931034,"500":0.14896551724138,"1000":0.14068965517241},"pins":"3","placement_cost":0.13448275862069,"overage":"33"},"free":"0","stocked":1},{"m_name":"Richtek","manufacturer_slug":"richtek","m_partnumber":"RT9193-25GB","m_partnumber_slug":"rt9193-25gb","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/RT9193-25GB.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"2.5V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/33-richtek-rt9193-25gb","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.16965517241379,"200":0.1611724137931,"500":0.15268965517241,"1000":0.14420689655172},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6219B252MR","m_partnumber_slug":"xc6219b252mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6219B252MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"2.5V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/30-torex-xc6219b252mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.23793103448276,"200":0.22603448275862,"500":0.21413793103448,"1000":0.20224137931034},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6206P332MR","m_partnumber_slug":"xc6206p332mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6206P332MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"3.3V 150mA","c_package":"SOT-23","c_package_slug":"sot-23","c_pins":"3","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"7V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/38-torex-xc6206p332mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.16551724137931,"200":0.15724137931034,"500":0.14896551724138,"1000":0.14068965517241},"pins":"3","placement_cost":0.13448275862069,"overage":"33"},"free":"0","stocked":1},{"m_name":"Richtek","manufacturer_slug":"richtek","m_partnumber":"RT9193-33GB","m_partnumber_slug":"rt9193-33gb","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/RT9193-33GB.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"3.3V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/34-richtek-rt9193-33gb","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.16344827586207,"200":0.15527586206897,"500":0.14710344827586,"1000":0.13893103448276},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6219B332MR","m_partnumber_slug":"xc6219b332mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6219B332MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"3.3V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/31-torex-xc6219b332mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.27413793103448,"200":0.26043103448276,"500":0.24672413793103,"1000":0.23301724137931},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"free":"0","stocked":1},{"m_name":"Torex","manufacturer_slug":"torex","m_partnumber":"XC6206P502MR","m_partnumber_slug":"xc6206p502mr","m_datasheet":"http:\/\/dangercore.dev\/assets\/datasheets\/XC6206P502MR.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"5V 150mA","c_package":"SOT-23","c_package_slug":"sot-23","c_pins":"3","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"7V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":"http:\/\/dangercore.dev\/bom\/details\/39-torex-xc6206p502mr","quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.49655172413793,"200":0.47172413793103,"500":0.44689655172414,"1000":0.42206896551724},"pins":"3","placement_cost":0.13448275862069,"overage":"33"},"free":"0","stocked":1}]}

BOM SELECT ( POST )

Sample Call
URL: /api/bom/select/ 
Parameters
component_id Component ID from part library to assign to a BOM line item
bom_component_id BOM component line item ID to assign a this component_id from the parts library


Response
bom Array of boms
components Array of BOM Components
costs Array of Component Costs

Sample Response (JSON)

{"bom":{"user_json_head":["Qty","Value","Device","Package","Parts","Description"],"locked":"N"},"component":{"user_json_row":["8","","LED-0603","LED-603","LED1, LED1A, LED2, LED2A, LED3, LED3A, LED4, LED4A","Light Emitting Diode"],"user_json_row_short":["8","","LED-06..","LED-60..","LED1,..","Light Emit.."],"quote_request":"Y","quantity":"1","user_json_head":["Qty","Value","Device","Package","Parts","Description"],"component_id":"50","c_value":"100R 50V 1\/16W 1%","c_package":"0402","c_type":"resistor thick film","c_pins":"2","unit_cost":"0.0000","setup_cost":"7.2414","placement_cost":"0.0345"},"costs":{"plus100":"1.61","plus500":"0.34","total_weight":"100g"}}
            

PCBS OPTIONS

Sample Call
URL: /api/pcbs/options
No Parameters

Response
array of PCBs options array of PCBs options

Sample Response (JSON)

{"FR4 proto":{"2":{"quantity":{"Protopack \u00b110":{"retail":11.95},"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"max 5x5":{"retail":0},"max 10x10":{"retail":5},"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":0},"Yellow":{"retail":0},"Blue":{"retail":0},"Black":{"retail":0},"White":{"retail":0}},"thickness":{"0.6mm":{"retail":0,"weight":0.36},"0.8mm":{"retail":0,"weight":0.37},"1.0mm":{"retail":0,"weight":0.38},"1.2mm":{"retail":0,"weight":0.4},"1.6mm":{"retail":0,"weight":0.42},"2.0mm":{"retail":20,"weight":0.47}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":15}},"copper":{"1oz":{"retail":0},"2oz":{"retail":20}},"vgroove":{"None":{"retail":0},"Vgroove":{"retail":5}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}},"4":{"quantity":{"Protopack \u00b110":{"retail":28.95},"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"max 5x5":{"retail":0},"max 10x10":{"retail":16},"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":18},"Yellow":{"retail":18},"Blue":{"retail":18},"Black":{"retail":18},"White":{"retail":18}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":25}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}},"6":{"quantity":{"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":0},"Yellow":{"retail":0},"Blue":{"retail":0},"Black":{"retail":0},"White":{"retail":0}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":25}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}},"8":{"quantity":{"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":0},"Yellow":{"retail":0},"Blue":{"retail":0},"Black":{"retail":0},"White":{"retail":0}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":25}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}},"10":{"quantity":{"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":0},"Yellow":{"retail":0},"Blue":{"retail":0},"Black":{"retail":0},"White":{"retail":0}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":25}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}},"12":{"quantity":{"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":0},"Yellow":{"retail":0},"Blue":{"retail":0},"Black":{"retail":0},"White":{"retail":0}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":25}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}},"14":{"quantity":{"10":{"retail":"quote"},"20":{"retail":"quote"},"30":{"retail":"quote"},"50":{"retail":"quote"},"100":{"retail":"quote"},"200":{"retail":"quote"},"500":{"retail":"quote"},"1000":{"retail":"quote"},"2000":{"retail":"quote"},"5000":{"retail":"quote"}},"size":{"Custom":{"retail":"quote"}},"color":{"Green":{"retail":0},"Red":{"retail":0},"Yellow":{"retail":0},"Blue":{"retail":0},"Black":{"retail":0},"White":{"retail":0}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0},"ENIG":{"retail":25}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}}},"Aluminum":{"1":{"quantity":{"Protopack \u00b110":{"retail":49.95}},"size":{"max 10x10":{"retail":0}},"color":{"White":{"retail":0}},"thickness":{"1.6mm":{"retail":0,"weight":0.5}},"coating":{"HASL":{"retail":0}},"copper":{"1oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}}},"Flex PCB":{"2":{"quantity":{"Protopack \u00b110":{"retail":98.95}},"size":{"max 10x10":{"retail":0}},"color":{"Clear":{"retail":0}},"thickness":{"0.4mm":{"retail":0,"weight":0.1}},"coating":{"ENIG":{"retail":0}},"copper":{"0.25oz":{"retail":0}},"vgroove":{"None":{"retail":0}},"panelize":{"None":{"retail":0}},"processing":{"Normal":{"retail":0}},"stencil":{"None":{"retail":0},"Steel":{"retail":25},"Frame":{"retail":35}}}}}

PCBS QUOTE

Sample Call
URL: /api/pcbs/quote?material=FR4+proto&layers=2&quantity=Protopack+%C2%B110&color=Red&thickness=1.2mm&size=max+5x5&coating=HASL&stencil=None&size_h=5&size_w=5&processing=Normal&copper=2oz&vgroove=None&panelize=None&panelize_x=&panelize_y=&silk_color=&soldermask_color=
material Options available from the /pcbs/options feed.
layers Options available from the /pcbs/options feed.
quantity Options available from the /pcbs/options feed.
color Options available from the /pcbs/options feed.
thickness Options available from the /pcbs/options feed.
size Fix size options for protopacks. Options available from the /pcbs/options feed.
coating Options available from the /pcbs/options feed.
stencil Options available from the /pcbs/options feed.
size_h Custom size in CM.
size_w Custom size in CM.
processing Options available from the /pcbs/options feed.
copper Options available from the /pcbs/options feed.


Response
cost_sell cost of PCBs with the given options in USD
weight weight of PCBs in grams

Sample Response (JSON)

[{"cost_sell": 31.95,"weight": 100}]

LIST OF MANUFACTURERS

Sample Call
URL: /api/components/manufacturers/
No Parameters

Response
array of manufacturers Array of manufacturers with attributes id, name, and slug

Sample Response (JSON)

[{"name":"AMS","slug":"ams"},{"name":"CJ","slug":"cj"},{"name":"Epson","slug":"epson"},{"name":"LC","slug":"lc"},{"name":"Richtek","slug":"richtek"},{"name":"SGMicro","slug":"sgmicro"},{"name":"Torex","slug":"torex"},{"name":"Unisonic (Taiwan)","slug":"unisonic-taiwan"}]

LIST OF TYPES

Sample Call
URL: /api/components/types/
No Parameters

Response
array of types Array of component types with attributes id, type, and slug

Sample Response (JSON)

[{"type":"crystal","slug":"crystal"},{"type":"crystal timekeeping","slug":"crystal-timekeeping"},{"type":"oscillator","slug":"oscillator"},{"type":"voltage regulator","slug":"voltage-regulator"}]

LIST OF COMPONENTS BY MANUFACTURER AND/OR TYPE

Sample Call
URL: /api/components/browse?manufacturer=richtek&type=voltage-regulator
Parameters (Optional)
manufacturer Manufacturer Slug
type Type Slug


Response
array of components Array of components with info and pricing

Sample Response (JSON)

[{"m_name":"Richtek","manufacturer_slug":"richtek","m_partnumber":"RT9193-18GB","m_partnumber_slug":"rt9193-18gb","m_datasheet":"RT9193-18GB.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"1.8V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":null,"quote":null},{"m_name":"Richtek","manufacturer_slug":"richtek","m_partnumber":"RT9193-25GB","m_partnumber_slug":"rt9193-25gb","m_datasheet":"RT9193-25GB.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"2.5V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":null,"quote":null},{"m_name":"Richtek","manufacturer_slug":"richtek","m_partnumber":"RT9193-33GB","m_partnumber_slug":"rt9193-33gb","m_datasheet":"RT9193-33GB.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"3.3V 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":null,"quote":null}]

COMPONENT DETAILS

Sample Call
URL: /api/components/details/35-sgmicro-sgm2019-adjyn5g
Parameters
{component_id}-{manufacturer_slug}-{manufacturer_part_number_slug} A slug composed of the component id, manufacturer slug, and manufacturer part number slug.


Response
component Component with info, pricing, and comments

Sample Response (JSON)

{"m_name":"SGMicro","manufacturer_slug":"sgmicro","m_partnumber":"SGM2019-ADJYN5G","m_partnumber_slug":"sgm2019-adjyn5g","m_datasheet":"SGM2019-ADJYN5G.pdf","c_type":"voltage regulator","type_slug":"voltage-regulator","c_value":"2.5-6V ADJUST 150mA w\/ENABLE","c_package":"SOT-23-5","c_package_slug":"sot-23-5","c_pins":"5","c_rohs":"1","c_attributes":"{\"Iout\":\"150mA\",\"Vin(max)\":\"6V\"}","file_hash":null,"file_name":null,"file_url":null,"details_url":null,"quote":{"stocked":1,"free":"0","setup_cost":0,"component_cost":{"100":0.17948275862069,"200":0.17050862068966,"500":0.16153448275862,"1000":0.15256034482759},"pins":"5","placement_cost":0.22413793103448,"overage":"33"},"comments":[{"comment_id":"15","user_name":"ian","comments":"eyrt","post_date":"2016-09-08 12:17:34"},{"comment_id":"16","user_name":"ian","comments":"tesy","post_date":"2016-09-08 12:23:12"}]}

PRINT3D QUOTE (POST)

Sample Call
URL: /api/print3d/quote
Parameters
file STL file sent by HTTP POST. Currently only STL files are valid, not ZIP. Example using PHP and CURL.


Response
description Material type. SLA, ABS, etc.
triangles Number of triangles read from model
volume Volume in cubic cm
density Density of the material in grams/cubic cm
weight Weight in grams using this material
price Cost to 3D print this model in this material

Sample Response (JSON)

{"file_name":"stl-sample.stl","triangles":3802,"volume":"0.01","density":1.3,"weight":"0.0","cost_sell":"0.95","color":"White"}