Discover/graybar.com API
live

graybar.com APIgraybar.com

Search Graybar's electrical product catalog by keyword, SKU, or manufacturer part number. Retrieve specs, brand, pricing, and availability for any Graybar SKU.

Endpoints
3
Updated
28d ago
Try it
Zero-based page number for pagination.
Search keyword or SKU to search for.
api.parse.bot/scraper/7bac221b-f933-4c61-a16c-d944abe43fb5/<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/7bac221b-f933-4c61-a16c-d944abe43fb5/search_products?page=2&query=circuit+breaker' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for products by keyword or SKU on Graybar.com. Returns a paginated list of products with SKUs and names. Prices may be null for unauthenticated sessions.

Input
ParamTypeDescription
pageintegerZero-based page number for pagination.
queryrequiredstringSearch keyword or SKU to search for.
Response
{
  "type": "object",
  "fields": {
    "page": "the page number echoed back",
    "query": "the search query echoed back",
    "products": "array of product objects, each with sku (string), name (string), and price (number or null)",
    "manufacturers": "array of manufacturer name strings extracted from search facets"
  },
  "sample": {
    "data": {
      "page": 0,
      "query": "conduit",
      "products": [
        {
          "sku": "25186635",
          "name": "1/2 in. PVC Coated Aluminum Rigid Conduit",
          "price": null
        },
        {
          "sku": "88272874",
          "name": "Galvanized Rigid Steel Conduit 1/2 in.",
          "price": null
        }
      ],
      "manufacturers": []
    },
    "status": "success"
  }
}

About the graybar.com API

The Graybar API provides 3 endpoints to search and retrieve product data from Graybar.com, one of the largest electrical and industrial supply distributors in North America. search_products returns paginated results with SKUs, names, and prices for any keyword or SKU query. get_product_details exposes structured fields including brand, manufacturer part number, pack size, attributes, list price, unit price, and shipping/pickup availability for a given Graybar SKU.

Searching the Graybar Catalog

search_products accepts a required query string (keyword or Graybar SKU) and an optional zero-based page integer for pagination. Each response returns the echoed query and page, an array of products (each with sku, name, and price), and a manufacturers array pulled from search facets — useful for filtering or understanding which brands carry matching products. Prices may be null when no pricing is publicly visible for a given session.

Manufacturer Part Number Lookup

search_by_mpn targets searches by Manufacturer Part Number (MPN) rather than Graybar's own SKU or a text keyword. The response shape is identical to search_products (same products and manufacturers arrays), with page always returning 0. Results can include fuzzy matches, so cross-checking the returned sku values against get_product_details is advisable for strict MPN matching.

Full Product Details

get_product_details takes a Graybar sku (a numeric string such as '88225178') and returns the deepest level of product data available: name, brand, mfr_no (the manufacturer's own part number), pack_size, and an attributes object containing key-value pairs from the product specification sheet. Pricing is split into list_price and unit_price, both of which may be null for publicly unauthenticated lookups. The availability object exposes to_ship and for_pickup strings indicating stock status for each fulfillment channel. An alternate_products array lists related Graybar SKUs when alternatives are cataloged.

Common use cases
  • Cross-reference a vendor invoice's manufacturer part numbers against Graybar SKUs using search_by_mpn.
  • Build a procurement comparison tool that pulls list_price and unit_price for a list of Graybar SKUs.
  • Catalog electrical components by iterating search_products results and enriching with attributes from get_product_details.
  • Monitor availability fields (to_ship, for_pickup) to track in-stock status across Graybar's fulfillment channels.
  • Extract the manufacturers facet from search results to identify which brands Graybar carries for a product category.
  • Map internal part numbers to Graybar SKUs by querying search_by_mpn with each MPN in a bill of materials.
  • Identify substitute products using the alternate_products array returned by get_product_details.
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 Graybar have an official public developer API?+
Graybar does not offer a publicly documented developer API for catalog or product data. Access to structured product information is available through this Parse API.
Why are `price`, `list_price`, and `unit_price` sometimes null?+
Graybar requires an account login to display pricing for many products. When pricing is not publicly visible, search_products returns price: null and get_product_details returns list_price: null and unit_price: null. Product names, SKUs, brand, manufacturer part numbers, and specification attributes are still returned regardless of pricing visibility.
What does the `attributes` object in `get_product_details` contain?+
It contains key-value pairs drawn from the product's specification sheet on Graybar — fields like voltage rating, amperage, conduit type, or material depending on the product category. The exact keys vary per product and are not normalized to a fixed schema.
Does the API return product images or documents such as datasheets?+
Not currently. The API covers product names, specifications, pricing, availability, and alternate SKUs, but does not return image URLs or linked documents. You can fork this API on Parse and revise it to add an endpoint that retrieves product media.
How does pagination work in `search_products`?+
The page parameter is zero-based, so the first page is page=0. The response echoes the page number back. search_by_mpn always returns page 0 and does not currently support pagination. If a search returns a large number of matches, iterating page in search_products is the way to walk through results.
Page content last updated . Spec covers 3 endpoints from graybar.com.
Related APIs in EcommerceSee all →
grainger.com API
grainger.com API
cityelectricsupply.com API
Search and browse City Electric Supply's product catalog across categories, view detailed product information with localized pricing and inventory based on a ZIP code, and manage a shopping cart. Access product details and real-time stock availability for any area.
element14.com API
Search and browse Newark (element14)'s electronic components catalog to find product details, pricing, stock levels, and technical documentation. Retrieve specifications, explore categories and manufacturers, and access real-time inventory information to compare components.
globalsources.com API
Search Global Sources for products and suppliers, then fetch related product info and a supplier’s latest product listings using product IDs and organization IDs.
gap.com API
Search and browse Gap's product catalog by keyword or category, retrieve detailed product information including pricing, available sizes, colors, and customer reviews, get product recommendations, locate nearby Gap retail stores, and explore the full site navigation and category tree.
bhphotovideo.com API
Search and browse B&H Photo's massive inventory of cameras, electronics, and photography gear with instant access to pricing, specifications, images, and customer reviews. Filter products by category, compare detailed specs, and discover used items all in one integrated platform.
sanmar.com API
Search SanMar's product catalog to browse t-shirts and other apparel by category, view detailed product information including sizes and MSRP pricing. Access wholesale pricing and real-time inventory data with a B2B account.
bestbuy.com API
Search Best Buy's entire product catalog and get instant autocomplete suggestions while browsing, then pull up detailed pricing, availability, and stock information for any item. Easily sort through results, look up multiple products at once, and discover what's trending in real-time.