Discover/sanmar.com API
live

sanmar.com APIsanmar.com

Search and browse SanMar's wholesale apparel catalog via API. Get product details, MSRP, color variants, sizes, and category listings for 3 endpoints.

Endpoints
3
Updated
3mo ago
Try it
Page number (0-based).
Number of results per page.
Search keyword, style number, or brand name (e.g. 'polo', 'ST550', 'Port Authority').
api.parse.bot/scraper/24a1a132-75ec-4306-914b-082c2353bcae/<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/24a1a132-75ec-4306-914b-082c2353bcae/search_products?page=0&limit=48&query=hoodie' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for products by keyword, style number, or brand name. Returns paginated results from the SanMar catalog.

Input
ParamTypeDescription
pageintegerPage number (0-based).
limitintegerNumber of results per page.
queryrequiredstringSearch keyword, style number, or brand name (e.g. 'polo', 'ST550', 'Port Authority').
Response
{
  "type": "object",
  "fields": {
    "total": "integer total number of matching products",
    "products": "array of product summary objects with product_id, name, style_number, brand, description, categories, image_url, thumbnail_url, price_guest, status, url",
    "pagination": "object with page, perPage, totalEntries, totalPages, totalProducts"
  },
  "sample": {
    "data": {
      "total": 604,
      "products": [
        {
          "url": "https://www.sanmar.com/p/9060_TrueNavy",
          "name": "Sport-Tek® PosiCharge® Competitor™ Polo",
          "brand": "Sport-Tek",
          "status": "REGULAR",
          "image_url": "https://cdnp.sanmar.com/medias/sys_master/images/h9d/h53/31344427270174/624Wx724H_9060_TrueNavy-0-ST550TrueNavyModelFront8/624Wx724H-9060-TrueNavy-0-ST550TrueNavyModelFront8.jpg",
          "categories": [
            "Polos/Knits",
            "Polos/Knits|Essentials"
          ],
          "product_id": "9060_TrueNavy",
          "description": "Our #1 performance tee fabric—offered in a color-locking, moisture-wicking polo.",
          "price_guest": null,
          "style_number": "ST550",
          "thumbnail_url": "https://cdnp.sanmar.com/medias/sys_master/images/hca/h4f/31344427139102/90W_9060_TrueNavy-0-ST550TrueNavyModelFront8/90W-9060-TrueNavy-0-ST550TrueNavyModelFront8.jpg"
        }
      ],
      "pagination": {
        "page": 0,
        "perPage": 48,
        "totalPages": 13,
        "totalEntries": 604,
        "totalProducts": 604,
        "totalSpotlightContent": 0
      }
    },
    "status": "success"
  }
}

About the sanmar.com API

The SanMar API exposes 3 endpoints that cover the full SanMar wholesale apparel catalog — from keyword and style-number search via search_products to per-category browsing and granular product detail pages. A single get_product_detail call returns MSRP, available sizes, color variant codes and thumbnails, gallery images, and companion products for any product ID found in search or listing results.

What the API Covers

The SanMar API provides structured access to SanMar's wholesale apparel catalog across three endpoints. search_products accepts a free-text query — a keyword like 'polo', a style number like 'ST550', or a brand name like 'Port Authority' — and returns paginated results including product_id, name, style_number, brand, description, image_url, and thumbnail_url. The pagination object on every listing response exposes totalEntries, totalPages, and perPage so you can walk the full result set.

Category Browsing

get_category_listing lets you pull products by category path (e.g. 'T-Shirts/c/tshirts' or 'Polos-Knits/c/polosknits') and optionally narrow by brand using the brand parameter. Both listing endpoints use 0-based page indexing and an optional limit param to control page size. Response shapes are identical to search_products, making it straightforward to treat search and category results uniformly.

Product Detail

get_product_detail takes a product_id (e.g. '9060_TrueNavy') obtained from any listing call and returns the full product record: msrp, style_number, description, available_sizes as a size-range label, a variants array with color code, name, and thumbnail, a gallery_images array of full-size image URLs, and a companions array linking related products. The product_id format encodes both item and color, so each color variant has its own detail record.

Common use cases
  • Build a wholesale apparel product search tool using style numbers and brand queries from search_products.
  • Populate a reseller catalog by iterating category paths via get_category_listing with brand filtering.
  • Display color swatch selectors and size range labels by parsing the variants and available_sizes fields from get_product_detail.
  • Track MSRP changes over time by periodically fetching msrp from get_product_detail for a set of product IDs.
  • Build a uniform program configurator that surfaces companion products using the companions array on each product detail.
  • Generate product image galleries for an e-commerce front-end using gallery_images and thumbnail_url fields.
  • Audit brand assortment across categories by combining get_category_listing brand filtering with style number extraction.
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 SanMar offer an official developer API?+
Yes. SanMar provides an official B2B web services API (SOAP/REST) documented at sanmar.com for registered resellers, covering inventory, purchase orders, and pricing. The Parse API covers the public-facing product catalog without requiring a B2B account.
How does `get_product_detail` handle color variants — does one call return all colors?+
Each product_id encodes an item-and-color pair (e.g. '9060_TrueNavy'), so each color variant has its own detail record. To cover all colors for a style, retrieve the variants array from one detail call, then request a separate get_product_detail call per variant code.
Does the API return real-time inventory levels or wholesale pricing?+
No. The API returns msrp (suggested retail price) and catalog fields like available_sizes and variants, but does not expose inventory counts or wholesale/tier pricing. Those fields require a SanMar B2B account and their official trade API. You can fork this API on Parse and revise it to add an endpoint that pulls inventory or wholesale price data once you have the required credentials.
What category paths can I pass to `get_category_listing`?+
The category_path parameter mirrors SanMar's URL structure, for example 'T-Shirts/c/tshirts' or 'Polos-Knits/c/polosknits'. If omitted, the endpoint returns all products across categories. You can discover valid paths by browsing sanmar.com and copying the URL segment after the domain.
Does the API cover SanMar's closeout or sale items?+
Not currently. The API covers the main catalog via search_products and get_category_listing with standard category paths. Closeout and promotional sections are not exposed as distinct endpoints. You can fork this API on Parse and revise it to add a category path or filter targeting those sections.
Page content last updated . Spec covers 3 endpoints from sanmar.com.
Related APIs in EcommerceSee all →
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.
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.
jula.fi API
Search and browse products from Jula.fi to find hardware items with detailed information including prices (with and without VAT), stock availability, brand details, and product SKUs. Explore products by category or search for specific items to compare pricing and check real-time stock status.
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.
industrynet.com API
Find industrial suppliers and browse product categories across a comprehensive marketplace directory. Connect directly with suppliers by viewing detailed listings and submitting contact inquiries programmatically.
carsforsale.com API
Search vehicle listings and browse detailed car inventory by make, model, and trim to find the perfect vehicle on CarsForSale.com. Access comprehensive listing details including pricing, specifications, and availability all in one place.
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.
x-kom.pl API
Access product data from x-kom.pl, a major Polish electronics retailer. Search products by keyword or category, retrieve detailed product pages, customer reviews, Q&A, promotions, flash deals, and physical store locations.