PCP3 is an unofficial API that returns and array of objects containing parts and information from a given pcpartpicker.com parts list.
npm install pcpartpickerparser --saveLoad the module via require
constpcp3=require("pcpartpickerparser")Load the module via import
import{getPartsList}from'pcpartpickerparser'import{getPartsList}from'pcpartpickerparser'asyncfunctionreturnParts(){try{constparts=getPartsList('list id')console.log(parts)}catch(error){console.log(error)}}The tabular data from a standard PC Part Picker list is converted into a JSON array with one object per row.
[
{
"type": "CPU",
"image": "https://example.com",
"name": "Part name",
"price": "$9.99"
}
]