Discover/octopart.com API
live

octopart.com APIoctopart.com

Search electronic components on Octopart. Get real-time pricing, stock levels, specs, datasheets, and seller offers across distributors via 4 API endpoints.

Endpoints
4
Updated
3mo ago
Try it
Maximum number of results to return.
Search keyword (e.g. 'resistor', 'capacitor', 'Arduino').
Number of results to skip for pagination.
Country code for pricing and availability.
Currency code for pricing.
Filter to only show in-stock parts.
api.parse.bot/scraper/29bd1b9e-8808-4396-9ded-37aba5aa0ae4/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/29bd1b9e-8808-4396-9ded-37aba5aa0ae4/search_parts?limit=3&query=capacitor&offset=0&country=US&currency=USD' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Search for electronic parts by keyword. Returns paginated results with pricing and availability from multiple distributors.

Input
ParamTypeDescription
limitintegerMaximum number of results to return.
queryrequiredstringSearch keyword (e.g. 'resistor', 'capacitor', 'Arduino').
offsetintegerNumber of results to skip for pagination.
countrystringCountry code for pricing and availability.
currencystringCurrency code for pricing.
in_stock_onlybooleanFilter to only show in-stock parts.
Response
{
  "type": "object",
  "fields": {
    "results": "array of part objects with id, mpn, name, manufacturer, slug, description, image_url, datasheet_url, and sellers",
    "total_hits": "integer total number of matching parts"
  },
  "sample": {
    "data": {
      "results": [
        {
          "id": "58145950",
          "mpn": "224MKP275KB",
          "name": "Cornell Dubilier 224MKP275KB",
          "slug": "/part/cornell-dubilier/224MKP275KB",
          "sellers": [
            {
              "name": "Master Electronics",
              "offers": [
                {
                  "moq": 500,
                  "sku": "224MKP275KB",
                  "prices": [
                    {
                      "price": 0.2522,
                      "currency": "USD",
                      "quantity": 1000,
                      "converted_price": 0.2522,
                      "converted_currency": "USD"
                    }
                  ],
                  "inventory_level": 8002
                }
              ],
              "is_authorized": true
            }
          ],
          "image_url": "https://sigma.octopart.com/21540338/image/Cornell-Dubilier-224MKP275KB.jpg",
          "description": "Film Capacitor, Polypropylene, 10% +Tol, 10% -Tol, 0.22uF, Through Hole Mount",
          "manufacturer": "Cornell Dubilier",
          "datasheet_url": "http://datasheet.octopart.com/224MKP275KB-Cornell-Dubilier-datasheet-158974572.pdf"
        }
      ],
      "total_hits": 3670923
    },
    "status": "success"
  }
}

About the octopart.com API

The Octopart API exposes 4 endpoints for querying electronic parts data, including distributor pricing, stock availability, technical specifications, and datasheets. The search_parts endpoint accepts keyword queries with filters for stock status, country, and currency, returning paginated results with seller offers. get_part_detail returns granular per-part data — specs, descriptions, images, and offer breakdowns — by Octopart part ID or manufacturer part number.

Search and Filter Electronic Parts

The search_parts endpoint accepts a required query string (e.g. 'STM32F4', '0805 resistor') alongside optional parameters including limit, offset, country, currency, and in_stock_only. Each result object in the results array includes mpn, manufacturer, description, image_url, datasheet_url, and a sellers array. The total_hits field enables standard pagination logic. Filtering with in_stock_only: true narrows results to parts with at least one distributor showing availability.

Part Detail and Seller Offers

get_part_detail accepts either a part_id (Octopart's internal identifier) or an mpn, with an optional manufacturer parameter to disambiguate when multiple manufacturers share a part number. The response includes a specs array of attribute/display_value pairs covering electrical and mechanical characteristics, a sellers array with company, is_authorized, is_broker, and nested offers, plus best_datasheet and best_image objects containing direct URLs.

Categories and Manufacturers

get_categories returns the full category tree as a flat array of objects with id, name, path, and children. This is useful for building browse interfaces or mapping your own taxonomy to Octopart's hierarchy. get_manufacturers returns all manufacturers with at least 5 active parts, each with id, name, slug, and aliases — the aliases field is particularly useful for normalizing brand name variations (e.g. 'TI' vs 'Texas Instruments') in downstream data pipelines.

Common use cases
  • Build a BOM (bill of materials) tool that resolves MPNs to live distributor pricing and stock via get_part_detail
  • Power a component search interface using search_parts with in_stock_only filtering for procurement workflows
  • Track cross-distributor price differences for a specific part by reading the sellers[].offers array
  • Normalize manufacturer names in a parts database using the aliases field from get_manufacturers
  • Generate category-browsable component catalogs using the parent-child hierarchy from get_categories
  • Surface datasheet URLs automatically during hardware design review using the best_datasheet.url field
  • Monitor availability for a watchlist of parts by polling get_part_detail with stored part_id values
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Octopart have an official developer API?+
Yes. Octopart offers an official GraphQL API documented at https://octopart.com/api/v4/reference. It requires registration and is subject to usage tiers separate from Parse.
What does the `sellers` field in `get_part_detail` include, and does it distinguish authorized distributors from brokers?+
Each object in the sellers array includes a company name, a boolean is_authorized flag indicating whether the seller is a manufacturer-authorized distributor, and a boolean is_broker flag. Nested offers contain pricing and availability data per seller.
Does `search_parts` return historical pricing or price trend data?+
No. The sellers array in search results reflects current offer data only — there are no historical price fields in the response. The API covers current pricing, stock, and specs. You can fork it on Parse and revise to add a price-history tracking endpoint if you need that capability.
Are parametric or spec-based searches supported (e.g. filter by capacitance or voltage rating)?+
Not currently. Search is keyword-based via the query parameter; there is no spec-attribute filter in search_parts. The API covers keyword search, part detail, categories, and manufacturers. You can fork it on Parse and revise to add parametric filtering against the specs fields returned by get_part_detail.
How does pagination work in `search_parts`?+
Use the offset and limit parameters together with the total_hits integer in the response. For example, with limit=25 and total_hits=300, increment offset by 25 on each request to page through all results. There is no cursor-based pagination; offset-based paging is the only supported method.
Page content last updated . Spec covers 4 endpoints from octopart.com.
Related APIs in EcommerceSee all →
mouser.com API
mouser.com API
bigbasket.com API
Browse and search BigBasket's online grocery catalog. Retrieve product details, pricing, stock availability, category trees, search suggestions, homepage promotions, and delivery coverage — all in one API.
woocommerce.com API
Browse and search thousands of WooCommerce extensions, themes, and business services from the official marketplace while accessing detailed product information, user reviews, and ratings. Integrate marketplace data, blog content, and documentation directly into your applications to help users discover and learn about WooCommerce solutions.
bilbasen.dk API
Search Denmark's largest car marketplace to find vehicles by make and model, then access detailed pricing and technical specifications including emissions, weight, MSRP, battery size, and equipment details. Get comprehensive car listings and full specs to compare vehicles on Bilbasen.dk.
leroymerlin.fr API
Search and browse Leroy Merlin France's complete product catalog to find items by category, view pricing, product details, and compare offerings from Leroy Merlin and their online partners. Access real-time product information including names, IDs, URLs, and seller details to help you discover and evaluate home improvement and DIY products.
lowes.com API
Search and browse products from Lowe's, including product listings by category, detailed product information, and pricing. Retrieve comprehensive details on specific items to compare options and make informed purchasing decisions.
vivino.com API
Search and discover wines across thousands of options while accessing detailed information like user reviews, pricing, winery profiles, and food pairing recommendations. Explore grape varieties, compare wines side-by-side, and find the perfect bottle based on ratings and availability.
lazada.co.th API
Search for products and browse categories on Lazada Thailand to find detailed information like prices, descriptions, and availability. Discover items by keyword or category to compare specifications and make informed purchasing decisions.