lib_easyeda_search
Searches LCSC/EasyEDA for part candidates by MPN, keyword, or description, returning lcsc_id values to pass on for import when you need a footprint.
Instructions
Search LCSC / EasyEDA for parts by MPN or description.
EXPECT THIS TO FAIL, and NOT because of credentials. Checked against the live service: the search route answers 404/403 with an HTML error page and no auth challenge, component fetch on the SAME host still works with no credentials, LCSC's own search API returns an error body, and the LCSC results page is rendered client-side (fetching it yields zero part numbers). There is no endpoint left to log in to, so no cookie, token or account will restore this.
Search is therefore a BROWSER task, which also keeps it per-user: each person searches LCSC in their own signed-in browser, and no shared credential is ever stored by this server. Take the part number from there and import by id, which is unaffected: lib_easyeda_import(lcsc_id="C1234", ...).
Online. Returns candidates only, no geometry: pick an lcsc_id and pass it to lib_easyeda_import. HTTPS-only with a host allowlist; override endpoints with EASYEDA_API_BASE.
Args: query: MPN, keyword, or description fragment. limit: max candidates (default 20).
Returns: {"ok": true, "count": N, "results": [{lcsc_id, mpn, manufacturer, package, description}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||