Add LCSC Info Provider using their public API #526
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently at the lab I work at, we needed an inventory management system. PartDB fit that role very nicely, great software btw. However a lot of our components for the various projects we work on came from the LCSC supplier. As such we had to find them on the other info suppliers manually and it was taking a lot of time. Our current workflow involves scanning the product tag with a barcode scanner and obtaining the vendor-supplied product id from there and plugging it into the info supplier search. LCSC has some components that we couldn't find in the other suppliers and also would have taken too long to manually import the thousands of parts we needed, as such we took the effort to implement LCSC's public API.
This API is used by the current LCSC frontend (javascript) to query their backend and then populate the UI. As it currently stands their official javascript frontend makes MORE API calls per search (it does a call for every character entered into the searchbox) than this PartDB implementation.
Currently all data fields are obtainable from LCSC except for part availability (if it's discontinued or whatnot) since LCSC does not provide this information on their storefront either. This includes pictures, datasheets, footprints, parameters and more.
Both plaintext and LCSC product numbers are supported.
Examples: