search octopart parts by mpn via the nexar graphql api using an oauth2 client-credentials token

domain: nexar.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create a Nexar portal account and application at portal.nexar.com to obtain a Client ID and Client Secret scoped for supply data.
  2. POST to https://identity.nexar.com/connect/token with grant_type=client_credentials, client_id, client_secret, and scope=supply.domain to obtain a bearer access token valid for 24 hours.
  3. POST a GraphQL query to https://api.nexar.com/graphql with header Authorization: Bearer <access_token> and Content-Type: application/json.
  4. Use the supSearchMpn(q: "<search string>", limit: n) query, e.g. { supSearchMpn(q: "SN74S74N", limit: 3) { hits results { part { mpn manufacturer { name } } } } } — q is required; omitting it returns a bad-request error.
  5. Explore available return fields via the Nitro IDE's Schema Reference tab at https://api.nexar.com/graphql, since GraphQL only returns fields explicitly named in the query body.

Known gotchas

Related routes

look up a part's lifecycle/obsolescence status via the nexar (octopart) graphql api
nexar.com · 6 steps · unrated
Obtain an OAuth2 client-credentials token for Siemens Building X APIs
developer.siemens.com · 5 steps · unrated
Authenticate to a OneRoster 1.2 REST provider with OAuth 2.0 client credentials and select the correct per-endpoint scopes.
imsglobal.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans