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.
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 |
Keyword search |
Search broadly by description, category, or partial part number using |
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 |
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:
-
Create an application at portal.nexar.com to get a Client ID and Client Secret.
-
Exchange your credentials for a short-lived access token using the OAuth 2.0
client_credentialsgrant. -
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