Last Updated on : 2025-05-30 01:56:03download
| Request method | API | description |
|---|---|---|
| GET | /v1.0/osaas/infrared/categories/{category_id}/brands | API for Obtaining the List of Infrared Device Brands. |
| GET | /v1.0/osaas/infrared/categories/{category_id}/brands/{brand_id}/remotes | API for Obtaining the List of Remote Control Index by supported brands. |
| GET | /v1.0/osaas/infrared/provinces | API for Obtaining the List of Provinces. |
| GET | /v1.0/osaas/infrared/provinces/{province_id}/cities | API for Obtaining the List of Cities. |
| GET | /v1.0/osaas/infrared/cities/{city_id}/areas | API for Obtaining the List of Areas. |
| GET | /v1.0/osaas/infrared/areas/{area_id}/operators | API for Obtaining the List of Carriers. |
| GET | /v1.0/osaas/infrared/areas/{area_id}/operators/{operator_id}/remotes | API for Obtaining the List of Remote Control index. |
| GET | /v1.0/osaas/infrared/operators/{operator_id}/brands | API for Obtaining the List of Brands by Carrier. |
| GET | /v1.0/osaas/infrared/operators/{operator_id}/brands/{brand_id}/remotes | API for Obtaining the List of Remote Control Index by Brand. |
You can use this API to obtain the list of Infrared device brands(Ordinary remote control).
GET /v1.0/osaas/infrared/categories/{category_id}/brands
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| category_id | String | URL | Unique ID of a infrared device category. | Yes |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of infrared device brand. |
Parameters in result
| Parameter | Type | Description |
|---|---|---|
| brand_id | String | Unique ID of a brand. |
| brand_name | String | Brand name. |
GET {url}/v1.0/osaas/infrared/categories/1/brands
{
"success": true,
"t": 1539776581583,
"result": [
{
"brand_id": "907",
"brand_name": "天龙"
}
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
You can use this API to obtain the indexes of all remote control models of a specified brand by brand ID.
GET /v1.0/osaas/infrared/categories/{category_id}/brands/{brand_id}/remotes
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| category_id | String | URI | Unique ID of a infrared device category. | Yes |
| brand_id | String | URI | Unique ID of a brand. | Yes |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of remote control index |
GET {url}/v1.0/osaas/infrared/categories/2/brands/12/remotes
{
"success": true,
"t": 1539776581583,
"result": [
"1000384"
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
You can use this API to obtain the list of provinces.
GET /v1.0/osaas/infrared/provinces
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of provinces |
Parameters in result
| Parameter | Type | Description |
|---|---|---|
| province_id | String | Unique ID of a province. |
| province_name | String | Province name |
GET {url}/v1.0/osaas/infrared/provinces
{
"success": true,
"t": 1539776581583,
"result": [
{
"province_id": 120000,
"province_name": "天津市"
}
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
You can use this API to obtain the list of cities.
GET /v1.0/osaas/infrared/provinces/{province_id}/cities
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| province_id | String | URI | Unique ID of a province. | Yes |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of cities. |
Parameters in result
| Parameter | Type | Description |
|---|---|---|
| province_id | Integer | Unique ID of a province. |
| city_id | Integer | Unique ID of a city. |
| city_name | String | City name. |
GET {url}/v1.0/osaas/infrared/provinces/330000/cities
{
"success": true,
"t": 1539776581583,
"result": [
{
"province_id": 330000,
"city_id": 330700,
"city_name": "金华市"
}
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
You can use this API to obtain the list of areas.
GET /v1.0/osaas/infrared/cities/{city_id}/areas
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| city_id | String | URI | Unique ID of a city | Yes |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of areas |
Parameters in result
| Parameter | Type | Description |
|---|---|---|
| province_id | Integer | Unique ID of a province. |
| city_id | Integer | Unique ID of a city |
| area_id | Integer | Unique ID of a area |
| area_name | String | Area name |
GET {url}/v1.0/osaas/infrared/cities/30500/areas
{
"success": true,
"t": 1539776581583,
"result": [
{
"province_id": 330000,
"city_id": 30500,
"area_id": 330523,
"area_name": "安吉县"
}
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
Regarding set-top box devices, get the IPTV list supported by specified areas.
GET /v1.0/osaas/infrared/areas/{area_id}/operators
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| area_id | String | URI | Unique ID of a area | Yes |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of operators |
Parameters in result
| Parameter | Type | Description |
|---|---|---|
| operator_id | String | Unique ID of a operator |
| operator_name | String | Operator name. |
| country_abbr | String | Country code. |
| iptv_type | Integer | IPTV flag. 1: IPTV. 0: non-IPTV |
GET {url}/v1.0/osaas/infrared/areas/510114/operators
{
"success": true,
"t": 1539776581583,
"result": [
{
"operator_id": "1062",
"operator_name": "成都电信 IPTV",
"country_abbr": "CN",
"iptv_type": 1
}
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
Get the remote control index supporting IPTV carriers by brand ID.
GET /v1.0/osaas/infrared/areas/{area_id}/operators/{operator_id}/remotes
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| area_id | String | URI | Unique ID of a area | Yes |
| operator_id | String | URI | Unique ID of a operator | Yes |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of remote control index. |
GET {url}/v1.0/osaas/infrared/areas/510116/operators/1062/remotes
{
"success": true,
"t": 1539776581583,
"result": [
"5129"
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
Regarding set-top box devices, get the brand list supported by carriers.
GET /v1.0/osaas/infrared/operators/{operator_id}/brands
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| operator_id | String | URI | Unique ID of a operator. | Yes |
| country_abbr | String | URL | Country code. | No |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Arrays | List of brand. |
Parameters in result
| Parameter | Type | Description |
|---|---|---|
| brand_id | String | Unique ID of a brand. |
| brand_name | String | Brand name. |
GET {url}/v1.0/osaas/infrared/operators/3040/brands?country_abbr=CN
{
"success": true,
"t": 1539776581583,
"result": [
{
"brand_id": "907",
"brand_name": "天龙"
}
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
Get the remote control index supporting IPTV carriers by brand ID.
GET /v1.0/osaas/infrared/operators/{operator_id}/brands/{brand_id}/remotes
| Parameter | Type | Position | Description | Mandatory |
|---|---|---|---|---|
| operator_id | String | URI | Unique ID of a operator. | Yes |
| brand_id | String | URI | Unique ID of a brand. | No |
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Response code.Null indicates success. |
| success | Boolean | Request result. true: success false: failure |
| msg | String | Exception message.It is null when the request result is success. |
| t | Long | Response time, which is a 13-digit timestamp. |
| result | Array | List of remote control index. |
GET {url}/v1.0/osaas/infrared/operators/3040/brands/2/remotes
{
"success": true,
"t": 1539776581583,
"result": [
"4469"
]
}
{
"code": 500,
"msg": "system error,please contact the admin",
"success": false,
"t": 1561378856383
}
The following are common business exceptions for this interface. For more exception errors, see Global Error Codes.
| error code | explain |
|---|---|
| 500 | system error |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback