Search
POST /v1/search returns products, parts, pages and PDFs for a query.
Type and the results update: every change calls the live API. Click a facet to filter. Code shows the exact request and response.
POST /v1/search· live, as you typeRequest
Only q is required.
| Field | Type | Default | What it does |
|---|---|---|---|
q | string, 1–200 chars | required | What the visitor typed: a part number, a product type, a material, a question. Any language. |
domain | string, or up to 20 | your company | The company to search, by website domain. Several are interleaved; each result says its company. |
types | products parts pages documents | all | Only these kinds of results. |
limit | 1–50 | 10 | Results per page. |
cursor | string | next_cursor from the previous response. | |
filters | { category, brand, cert, specs } | Products and parts only. Values come from facets. Every filter must match. | |
facets | boolean | false | Also return the filter values the results offer, with counts. |
context | object | Where the visitor is on your site. See Page context. | |
boost | boolean | true | Let context move matching results up. |
Header x-request-id (8–100 chars) traces a request; a retry with the same id is charged once.
Response
| Field | What it is |
|---|---|
results[].type | product, part, page or document (a PDF). |
results[].url | The company's own page or file. Link to it. |
results[].summary | A short passage; for pages, the part that matches the query. |
results[].page_kind | Pages and documents: application, blog, docs, category, product, contact, file, other. |
brand, certs, specs | Products and parts: for cards and comparison tables (up to 12 specs). |
next_cursor | Send as cursor for the next page; null on the last. Up to 100 results per query. |
facets | With facets: true. Send category and cert back by label, brand by value, specs as { key: values[].label }. |
context_applied | true when page context changed the order. |
Tips
- Send exactly what the visitor typed. Use
typesandfilters, not extra words inq. - An exact model or part number (
GPC-140) comes first. - Search as you type: wait 250 ms after the last key and send 2+ characters. Each search is 1 credit.