Open API
Query parts, parameters, document listings and marking codes over HTTP. Responses are JSON. The API is available to enterprise customers and requires an API key.
Create an API keyEnterprise customers only
API keys are issued to enterprise customers only, and each key has a daily call quota. The API returns part metadata only (parameters, document titles, page counts and dates), with no PDF files or viewer links.
Request an enterprise accountAuthentication
Send your key in a header: Authorization: Bearer <key>, or X-API-Key: <key>.
Rate limits
The open API is for enterprise accounts: 5,000 calls per account per day by default (all keys combined; each key also has its own cap), at most 20 per second, and up to 3 active keys. The X-RateLimit-Remaining header shows what is left today; over the limit you get 429. Contact us for a higher quota.
Documents come with metadata only (title, type, pages, publication date), no file or viewer links. Read datasheets on the part page, where the usual site limits apply.
Endpoints
GET /api/v1/search
Search parts by part number
Parameters: q, mfr, limit (≤50), offset
curl -H "Authorization: Bearer cdk_xxxxxxxx_…" "https://weiqiandata.com/api/v1/search?q=TPS5430&limit=5"GET /api/v1/parts/{mfr}/{pn}
Part detail: parameters, documents, alternates, markings
Parameters: mfr (slug), pn
curl -H "Authorization: Bearer cdk_xxxxxxxx_…" "https://weiqiandata.com/api/v1/parts/ti/TPS5430"GET /api/v1/marking
Look up parts by marking code
Parameters: q
curl -H "Authorization: Bearer cdk_xxxxxxxx_…" "https://weiqiandata.com/api/v1/marking?q=5430"Example
{
"q": "TPS5430",
"total": 3,
"items": [
{
"pn": "TPS5430",
"mfr": "ti",
"mfrName": "Texas Instruments",
"summary": "5.5V 至 36V 输入、3A、500kHz 降压转换器",
"package": "SO PowerPAD-8",
"lifecycle": "active",
"url": "https://weiqiandata.com/p/ti/TPS5430",
"detail": "/api/v1/parts/ti/TPS5430"
}
]
}Errors
| 401 | Key missing, malformed or revoked |
|---|---|
| 403 | The account has no open API access (enterprise accounts only) |
| 404 | Part not found |
| 429 | Rate limit exceeded |