Indax

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

Request

Only q is required.

FieldTypeDefaultWhat it does
qstring, 1–200 charsrequiredWhat the visitor typed: a part number, a product type, a material, a question. Any language.
domainstring, or up to 20your companyThe company to search, by website domain. Several are interleaved; each result says its company.
typesproducts parts pages documentsallOnly these kinds of results.
limit1–5010Results per page.
cursorstringnext_cursor from the previous response.
filters{ category, brand, cert, specs }Products and parts only. Values come from facets. Every filter must match.
facetsbooleanfalseAlso return the filter values the results offer, with counts.
contextobjectWhere the visitor is on your site. See Page context.
boostbooleantrueLet 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

{
  "id": "req-7f2a9c1e",
  "results": [
    {
      "id": "1b0fbd7a-…",
      "type": "product",
      "company": "mpechicago.com",
      "title": "Activated Carbon Grinder",
      "url": "https://www.mpechicago.com/activated-carbon-grinder/",
      "summary": "Grinds activated carbon into uniform particle sizes…",
      "image": "https://www.mpechicago.com/…/grinder.jpg",
      "part_number": null,
      "category": "Granulizers",
      "brand": "mpe",
      "certs": [],
      "specs": [{ "name": "Capacity", "value": "500–2,000 lb/hr" }]
    }
  ],
  "next_cursor": "10",
  "total": 23,
  "facets": { "category": [{ "value": "…", "label": "…", "n": 4 }], "brand": [], "cert": [], "specs": [] },
  "context_applied": false,
  "credits_used": 1,
  "timing": { "search_ms": 92, "total_ms": 104 }
}
FieldWhat it is
results[].typeproduct, part, page or document (a PDF).
results[].urlThe company's own page or file. Link to it.
results[].summaryA short passage; for pages, the part that matches the query.
results[].page_kindPages and documents: application, blog, docs, category, product, contact, file, other.
brand, certs, specsProducts and parts: for cards and comparison tables (up to 12 specs).
next_cursorSend as cursor for the next page; null on the last. Up to 100 results per query.
facetsWith facets: true. Send category and cert back by label, brand by value, specs as { key: values[].label }.
context_appliedtrue when page context changed the order.

Tips

  • Send exactly what the visitor typed. Use types and filters, not extra words in q.
  • 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.

On this page