APIs / Marketplaces / Alibaba

1 credit per call3 endpoints12 datapointsChecked working 6 Dec 2026

Alibaba API

Alibaba API for wholesale product search, product details with price tiers and MOQ, and supplier profiles as JSON. 1 credit per successful call.

Alibaba
GET/v1/alibaba/search?query=wireless+headphones
{
  "success": true,
  "data": {
    "query": "wireless headphones",
    "page": 1,
    "page_size": 60,
    "total_pages": 63,
    "has_more": true,
    "results": [
      {
        "product_id": "1601055608875",
        "title": "2025 TWS M10 Earbuds Wireless Fast Charging Touch Earphone Gaming 4 Noise Cancelling Tws Earphones & Headphones M10",
        "url": "https://www.alibaba.com/product-detail/2025-TWS-M10-Earbuds-Wireless-Fast_1601055608875.html?priceId=b7a997ec660b4e2d8a35c66404a2352e",
        "image_url": "https://s.alicdn.com/@sc04/kf/H231f6d9beaaf4b049b53f7835e4604f9c.jpg_300x300.jpg",
        "image_urls": [
          "https://s.alicdn.com/@sc04/kf/H231f6d9beaaf4b049b53f7835e4604f9c.jpg_300x300.jpg",
          "https://s.alicdn.com/@sc04/kf/H3d9d4b709a854935a4de445a9024c84dN.jpg_300x300.jpg",
          "https://s.alicdn.com/@sc04/kf/Hcfd45b7079b747b6983aa646f03fe34a8.png_300x300.png"
        ],
        "price": {
          "min": 74.6,
          "max": 74.6,
          "amount": 74.6,
          "currency": "UAH",
          "formatted": "74,60 UAH"
        },
        "moq": 10,
        "moq_unit": "pieces",
        "moq_text": "Min. order: 10 pieces",
        "sold_count": 14845,
        "supplier": {
          "company_id": "283721649",
          "company_name": "Shenzhen Miyan Network Technology Co., Ltd.",
          "supplier_href": "https://mielectronic.en.alibaba.com/company_profile.html",
          "subdomain": "mielectronic",
          "gold_supplier": false,
          "gold_supplier_years": 3,
          "country_code": "CN"
        },
        "rating": {
          "score": 4.4,
          "count": 71,
          "supplier_service": 4.5,
          "shipping": 4.4,
          "product": 4.2
        }
      },
      {
        "product_id": "1601779479326",
        "title": "P47 TWS Ear-clip In-Ear Six JL Chipset Hifi Stereo for 5.4 Gaming Headset Mic Flashlight IPX5 Waterproof ANC/ENC APT-X",
        "url": "https://www.alibaba.com/product-detail/P47-TWS-Ear-clip-In-Ear_1601779479326.html?priceId=b7a997ec660b4e2d8a35c66404a2352e",
        "image_url": "https://s.alicdn.com/@sc04/kf/Hce4a08ebfe3143b781bd2ff5bde97cc9e.jpg_300x300.jpg",
        "image_urls": [
          "https://s.alicdn.com/@sc04/kf/Hce4a08ebfe3143b781bd2ff5bde97cc9e.jpg_300x300.jpg",
          "https://s.alicdn.com/@sc04/kf/H27490c2c1590427dab84b13a47e81e92N.png_300x300.png",
          "https://s.alicdn.com/@sc04/kf/H8f5759448e2143cca1772a0129fb6ec0s.jpg_300x300.jpg"
        ],
        "price": {
          "min": 363.04,
          "max": 377.96,
          "amount": 363.04,
          "currency": "UAH",
          "formatted": "363,04-377,96 UAH"
        },
        "moq": 2,
        "moq_unit": "pieces",
        "moq_text": "Min. order: 2 pieces",
        "sold_count": 1391,
        "supplier": {
          "company_id": "274699218",
          "company_name": "Shenzhen Xuanying Technology Co., Ltd.",
          "supplier_href": "https://szsmartwatch.en.alibaba.com/company_profile.html",
          "subdomain": "szsmartwatch",
          "gold_supplier": true,
          "gold_supplier_years": 5,
          "country_code": "CN"
        },
        "rating": {
          "score": 4.6,
          "count": 143,
          "supplier_service": 4.6,
          "shipping": 4.6,
          "product": 4.6
        }
      },
      {
        "product_id": "1600998645662",
        "title": "New Trending Auriculare Bluetooth Earphones Sport Custom Waterproof Gaming In-Ear Headphones Earbuds Wireless Ecouteur Bluetooth",
        "url": "https://www.alibaba.com/product-detail/New-Trending-Auriculare-Bluetooth-Earphones-Sport_1600998645662.html?priceId=b7a997ec660b4e2d8a35c66404a2352e",
        "image_url": "https://s.alicdn.com/@sc04/kf/H30d653cda5b842da841c4b6cf04c7a1dw.jpg_300x300.jpg",
        "image_urls": [
          "https://s.alicdn.com/@sc04/kf/H30d653cda5b842da841c4b6cf04c7a1dw.jpg_300x300.jpg",
          "https://s.alicdn.com/@sc04/kf/H745c4a9803144c9887fdee08e2c99266c.jpg_300x300.jpg",
          "https://s.alicdn.com/@sc04/kf/H0ac80c8c9eee4fecb070a468ce5919e5s.jpg_300x300.jpg"
        ],
        "price": {
          "min": 124.33,
          "max": 268.55,
          "amount": 124.33,
          "currency": "UAH",
          "formatted": "124,33-268,55 UAH"
        },
        "moq": 10,
        "moq_unit": "pieces",
        "moq_text": "Min. order: 10 pieces",
        "sold_count": 4578,
        "supplier": {
          "company_id": "232103615",
          "company_name": "Guangzhou Langston Electronic Technology Co., Ltd.",
          "supplier_href": "https://langstoncn.en.alibaba.com/company_profile.html",
          "subdomain": "langstoncn",
          "gold_supplier": true,
          "gold_supplier_years": 12,
          "country_code": "CN"
        },
        "rating": {
          "score": 4.9,
          "count": 375,
          "supplier_service": 4.8,
          "shipping": 4.9,
          "product": 4.8
        }
      }
    ],
    "filters": [
      {
        "title": "Supplier features",
        "options": [
          {
            "label": "Supplier",
            "value": "true"
          },
          {
            "label": "Supplier",
            "value": "1"
          }
        ]
      },
      {
        "title": "Categories",
        "options": [
          {
            "label": "Noise Cancelling TWS Earphones & Headphones",
            "value": "202055012"
          },
          {
            "label": "Sports Earphones & Headphones",
            "value": "202061615"
          },
          {
            "label": "Talking Headsets",
            "value": "202059218"
          }
        ]
      },
      {
        "title": "Store reviews",
        "options": [
          {
            "label": "4.0 & up",
            "value": "4~"
          },
          {
            "label": "4.5 & up",
            "value": "4.5~"
          },
          {
            "label": "5.0",
            "value": "5~"
          }
        ]
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_8d86ea9ed73144f28aee34f4d66583e6",
    "credits_charged": 1,
    "credits_remaining": 999
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#product_idstringtitlestringurlurlimage_urlurlimage_urlsstring[]priceobjectmoqintegermoq_unitstringmoq_textstringsold_countintegersupplierobjectratingobject
116010556088752025 TWS M10 Earbuds Wireless Fast Charging Touch Earphone Gaming 4 Noise Cancelling Tws Earphones & Headphones M10https://www.alibaba.com/product-detail/2025-TWS-M10-Earbuds-Wireless-Fast_1601055608875.html?priceId=b7a997ec660b4e2d8a35c66404a2352ehttps://s.alicdn.com/@sc04/kf/H231f6d9beaaf4b049b53f7835e4604f9c.jpg_300x300.jpg[3 items]{5 fields}10piecesMin. order: 10 pieces14845{7 fields}{5 fields}
21601779479326P47 TWS Ear-clip In-Ear Six JL Chipset Hifi Stereo for 5.4 Gaming Headset Mic Flashlight IPX5 Waterproof ANC/ENC APT-Xhttps://www.alibaba.com/product-detail/P47-TWS-Ear-clip-In-Ear_1601779479326.html?priceId=b7a997ec660b4e2d8a35c66404a2352ehttps://s.alicdn.com/@sc04/kf/Hce4a08ebfe3143b781bd2ff5bde97cc9e.jpg_300x300.jpg[3 items]{5 fields}2piecesMin. order: 2 pieces1391{7 fields}{5 fields}
31600998645662New Trending Auriculare Bluetooth Earphones Sport Custom Waterproof Gaming In-Ear Headphones Earbuds Wireless Ecouteur Bluetoothhttps://www.alibaba.com/product-detail/New-Trending-Auriculare-Bluetooth-Earphones-Sport_1600998645662.html?priceId=b7a997ec660b4e2d8a35c66404a2352ehttps://s.alicdn.com/@sc04/kf/H30d653cda5b842da841c4b6cf04c7a1dw.jpg_300x300.jpg[3 items]{5 fields}10piecesMin. order: 10 pieces4578{7 fields}{5 fields}

Recorded from our API · 3 items shown · 12 datapoints per itemGET /v1/alibaba/search?query=wireless+headphones

12 datapoints

Identity

  • product_idstring
  • titlestring

Contact

  • urlurl
  • image_urlurl
  • image_urlsstring[]

Reputation

  • ratingobject

Price

  • priceobject

Other

  • moqinteger
  • moq_unitstring
  • moq_textstring
  • sold_countinteger
  • supplierobject

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/alibaba/search?query=wireless+headphones" \
  -H "X-API-Key: $API_KEY"

Alibaba · 3 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/alibaba/product
none+2 optional
product_idtitleurlimagespriceprice_tiers+8 more
1 credit
GET/v1/alibaba/search
query+10 optional
product_idtitleurlimage_urlimage_urlsprice+6 more
1 credit
GET/v1/alibaba/supplier
none+3 optional
company_idnamecountry_codegold_suppliergold_supplier_yearsbusiness_type+8 more
1 credit

Overview

About the Alibaba API

What you can get

The Alibaba API returns Alibaba wholesale listings and supplier profiles as JSON through 3 endpoints.

  • Search: search takes a query, with page, category, min_price, max_price, min_moq, max_moq, country, review_score, verified and sort (default, total_trade_desc, price_asc or price_desc).
  • Product: product takes an id or a product url.
  • Supplier: supplier takes an id, a storefront url or a subdomain.

The recorded search for "wireless headphones" returns results and filters, with page 1, a page_size of 60, total_pages of 46 and has_more. Each result has product_id, title, url, image_url, image_urls, price, moq, moq_unit, moq_text, sold_count, supplier and rating. The first result is a pair of wireless earbuds at $2.26, with a moq of 10 pieces, a sold_count of 14845 and a rating score of 4.4 from 71 ratings. Each supplier carries company_id, company_name, subdomain, gold_supplier, gold_supplier_years and country_code.

How a call works

Search, then read the listing and its supplier: GET /v1/alibaba/search?query=wireless headphones, with your key in the X-API-Key header, returns each result's product_id and its supplier's subdomain. Pass the ID to product, for example GET /v1/alibaba/product?id=1601516440055. That call returned price_tiers of $11.72 for 60 to 999 pieces and $11.27 from 1000 pieces, a moq of 60, variants, sku_properties, specs and shipping with ship_from, delivery_days_min and delivery_days_max. Its supplier subdomain was rambotech, so GET /v1/alibaba/supplier?subdomain=rambotech returns that company's profile. Check has_more before asking for the next page. Every successful call costs 1 credit; failed calls cost nothing.

MarketplacesJSONRESTMCP

More marketplaces APIs

Use cases

Compare unit prices and minimum order quantities across suppliers for one product type

Use the Alibaba API to compare unit prices and minimum order quantities across suppliers for one product type

Read quantity price breaks from `price_tiers` before placing a wholesale order

Use the Alibaba API to read quantity price breaks from `price_tiers` before placing a wholesale order

Shortlist suppliers by `gold_supplier_years`, `on_time_delivery_rate` and `response_time`

Use the Alibaba API to shortlist suppliers by `gold_supplier_years`, `on_time_delivery_rate` and `response_time`

Filter sourcing searches by price, MOQ and `verified` suppliers

Use the Alibaba API to filter sourcing searches by price, MOQ and `verified` suppliers

FAQ

Questions

How much does the Alibaba API cost?

Each successful call costs one credit, whichever endpoint you call, and each search page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

What does a supplier profile include?

The recorded `supplier` call returned `company_id`, `name`, `country_code`, `gold_supplier`, `gold_supplier_years` (19), `business_type`, `logo_url`, `main_categories`, `rating`, `on_time_delivery_rate` (`100.0%`) and `response_time` (`≤3h`). It does not list the supplier's priced products or review comments: `complete` is `false`, and `limitations` says so in plain text.

Can I look up a product by its URL?

Yes. `product` takes either an `id` or a product `url`, and `supplier` takes an `id`, a storefront `url` or a `subdomain`.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Is this the official Alibaba API?

No. Perceptlayer is an independent service and is not affiliated with Alibaba. It returns Alibaba data as JSON with a Perceptlayer key, so there is no Alibaba developer account, app review or partner approval to get first. It only reads data: if Alibaba has an official API and you need to act on your own Alibaba account, such as posting, managing orders or reading private data, use that one.

Should I build an Alibaba scraper instead?

You can, but an Alibaba scraper is code you maintain: page changes break it, requests get blocked, and Alibaba's terms govern how you collect data. The Alibaba API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the Alibaba API with 100 free credits

No credit card. Failed calls are never billed.