Overview
Octopart is an electronic component search engine, and its API gives you access to detailed part data including pricing from hundreds of distributors, stock availability, datasheets, and technical specifications. You query the API using GraphQL, which lets you request exactly the fields you need for BOM management, sourcing automation, or component research tools. It is an essential API for hardware engineers and procurement teams.
Beginner Tip
Octopart uses GraphQL, not REST, so all requests are POST requests to a single endpoint with a JSON body containing your query. Start with a simple part search by manufacturer part number to understand the response structure before building multi-part queries.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Octopart",
"description": "Electronic part data for manufacturing, design, and sourcing",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
part.name Manufacturer part number for the electronic component part.manufacturer.name Name of the company that manufactures the component part.short_description Brief technical description of the component function and type part.sellers List of authorized distributors selling this component with their pricing and stock levels part.best_datasheet.url URL to the most relevant PDF datasheet for the component part.category.name Component category such as Resistors, Capacitors, or Microcontrollers Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://octopart.com/api/v4/reference";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Explore More
Similar APIs
View All →Best Buy
⭐ Beginner's PickThe Best Buy API gives you access to Best Buy's product catalog, store locations, pricing, and buying options in real time.
Dummy Products
Dummy Products provides programmatic access to an api to fetch dummy e-commerce products json data with placeholder images via REST API.
Lazada
The Lazada Open Platform API lets sellers and developers access Lazada's Southeast Asian marketplace to retrieve product data, manage orders, track seller performance metrics, and handle logistics.
Mercadolibre
⭐ Beginner's PickMercado Libre is the largest e-commerce marketplace in Latin America, and its API gives developers access to product listings, pricing, seller data, and order management across 18 countries.
OLX Poland
The OLX Poland API allows developers to integrate with OLX's Polish classifieds marketplace to post and manage adverts, communicate with users, and retrieve listing data.