Octopart API

The Octopart API is a GraphQL API for electronic component supply chain data. It gives you programmatic access to the Octopart database – parts, pricing, inventory levels, distributor offers, factory lead times, and more – across millions of components from thousands of manufacturers and distributors worldwide.

New to the Octopart API? Start with the Octopart API Quick Start Guide to get credentials, obtain a token, and run your first query in minutes.

What the API Covers

The Octopart API provides supply chain data: component search, pricing, availability, and distributor information.

Capability

Description

MPN search

Find parts by manufacturer part number using supSearchMpn or supMultiMatch

Keyword search

Search broadly by description, category, or partial part number using supSearch

Pricing

Tiered price breaks from authorized distributors and brokers

Inventory

Stock levels from distributors worldwide, with region and currency support

Seller offers

Distributor-specific offer data including clickUrl, inventoryLevel, and factoryLeadDays

Similar parts

Functionally equivalent alternatives suggested by the Octopart database

What the API Does Not Cover

The Octopart API covers supply data only. It does not provide access to Altium 365 Workspace data – projects, components, BOMs, or design files. For that, use the Altium 365 API.

How Access Works

Access requires credentials from the developer portal and uses standard OAuth 2.0 for authentication:

  1. Create an application at portal.nexar.com to get a Client ID and Client Secret.

  2. Exchange your credentials for a short-lived access token using the OAuth 2.0 client_credentials grant.

  3. Send queries to the GraphQL endpoint with the token in the Authorization header.

All queries go to a single endpoint:

https://api.nexar.com/graphql

See Authorization for the full token exchange flow, or go straight to the Octopart API Quick Start Guide to try it now.

Exploring the Schema

Two browser-based tools are available at the GraphQL endpoint:

  • Nitro – an interactive GraphQL IDE for writing and running queries:

    https://api.nexar.com/graphql
    
  • Voyager – a visual schema browser for exploring types and relationships:

    https://api.nexar.com/ui/voyager
    

In this Section

 

如您发现任何问题,请选中相关文本/图片,并按 Ctrl + Enter 键向我们提交反馈。
Content