Retrieve all applicable peer-to-peer (C2C) advertisement categories supported for a specific client device type.
/sapi/v1/c2c/ads/getAvailableAdsCategoryThis endpoint returns the list of available C2C (P2P) advertisement categories supported by Binance. It is used by merchant platforms, C2C trading bots, and mobile client applications to dynamically determine which ad categories can be listed or queried.
Because this operation does not require cryptographic signatures, it operates as a lightweight public check. Required contextual information (such as clientType) must be passed in the HTTP request headers.
01
Header parameters accepted by the endpoint.
| Header | Type | Required | Description |
|---|---|---|---|
clientType | STRING | Required | Client Device Type initiating the request (e.g., WEB, APP, WEB_MOBILE). |
x-gray-env | STRING | Optional | Environment flag identifier used for internal gray/stage testing. |
x-trace-id | STRING | Optional | Custom client trace ID for request lifecycle tracking and debugging. |
x-user-id | STRING | Optional | Target user identifier if querying user-specific category access permissions. |
Pass Parameters in Request Headers
Unlike standard query endpoints, the mandatory clientType parameter must be placed inside the HTTP Headers of the request rather than the URL query string.
02
Example request using cURL with HTTP headers.
curl -X GET \
'https://api.binance.com/sapi/v1/c2c/ads/getAvailableAdsCategory' \
-H 'clientType: WEB'03
Example response returned on successful request.
{
"code": "000000",
"message": "success",
"data": [
{
"category": "BUY",
"name": "Buy Crypto",
"enabled": true
},
{
"category": "SELL",
"name": "Sell Crypto",
"enabled": true
}
],
"success": true
}| Field | Type | Description |
|---|---|---|
code | STRING | Standard Binance status response code ("000000" indicates success). |
message | STRING | Status description or response feedback message. |
data | ARRAY | List of available advertisement category objects. |
data[].category | STRING | Internal category identifier (e.g., BUY, SELL). |
data[].name | STRING | Human-readable category title displayed in user interfaces. |
data[].enabled | BOOLEAN | Indicates whether the category is currently active for new advertisement posting. |
04
Workflow for fetching available C2C ad categories.
Dynamic Form Building
Populate frontend C2C ad creation forms dynamically with active categories based on the client device type.
C2C Merchant Automation
Validate category availability before issuing automated P2P advertisement posting commands.
Platform Compatibility Checks
Verify whether specific C2C features or ad categories are enabled for Web vs. Mobile App users.