Digital Platform API - オペレーティング システム サービス
注:
オペレーティング システム のバージョン (Android 3.x、Apple iOS 6 など) を取得するには、このサービスの代わりに オペレーティング システム拡張サービス を使用する必要があります。 オペレーティング システム全体 (Android、Windows、Linux など) を取得するには、 オペレーティング システム ファミリ サービスを使用する必要があります。
REST API
HTTP メソッド | エンドポイント | 例 |
---|---|---|
GET |
https://api.appnexus.com/operating-system |
すべてのオペレーティング システムを表示します。 |
GET |
https://api.appnexus.com/operating-system?search=SEARCH_TERM |
ID または特定の文字を含む名前を持つオペレーティング システムを検索します。 |
GET |
https://api.appnexus.com/operating-system?id=OPERATING_SYSTEM_ID |
特定のオペレーティング システムを表示します。 |
GET |
https://api.appnexus.com/operating-system/meta |
フィルター処理および並べ替えの対象となるフィールドを確認します。 |
JSON フィールド
フィールド | 種類 | 説明 |
---|---|---|
id |
int | オペレーティング システムの ID。 |
last_modified |
string | オペレーティング システムのバージョン エントリが最後に変更された日時。 |
name |
string | オペレーティング システムのバージョンの名前。 |
os_family_id |
int | オペレーティング システムのバージョンが属するオペレーティング システム ファミリの ID。 オペレーティング システム ファミリ サービスを使用して、オペレーティング システム ファミリに関する情報を取得できます。 |
os_family_name |
string | オペレーティング システムのバージョンが属するオペレーティング システム ファミリの名前 (、、"Android" "Apple iOS" "Apple Mac/OSX" 、など)。 |
platform_type |
列挙 | オペレーティング システムのバージョンが実行されるプラットフォームの種類。 使用可能な値: - "web" - "mobile" - "both" |
例
すべてのオペレーティング システムを表示する
$ curl -b cookies -c cookies 'https://api.appnexus.com/operating-system'
{
"response": {
"status": "OK",
"count": 15,
"start_element": 0,
"num_elements": 100,
"operating-systems": [
{
"id": 0,
"name": "Unknown",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 1,
"name": "Windows 7",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 2,
"name": "Windows Vista",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 3,
"name": "Windows XP",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 4,
"name": "Windows 2000",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 5,
"name": "Windows (other versions)",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 6,
"name": "Android",
"platform_type": "mobile",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 7,
"name": "Linux",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 8,
"name": "iPhone",
"platform_type": "mobile",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 9,
"name": "iPod",
"platform_type": "mobile",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 10,
"name": "iPad",
"platform_type": "mobile",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 11,
"name": "Mac",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 12,
"name": "Blackberry",
"platform_type": "mobile",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 13,
"name": "Windows Phone 7",
"platform_type": "mobile",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
},
{
"id": 14,
"name": "Windows 8",
"platform_type": "web",
"os_family_id": null,
"last_modified": "2012-11-28 16:25:01",
"os_family_name": null
}
],
"dbg_info": {
...
}
}
}
特定のオペレーティング システムを表示する
$ curl -b cookies -c cookies 'https://api.appnexus.com/operating-system?id=8'
{
"response": {
"status": "OK",
"count": 1,
"start_element": 0,
"num_elements": 100,
"operating-system": {
"id": 8,
"name": "iPhone - iOS (other versions)",
"platform_type": "mobile",
"os_family_id": 3,
"last_modified": "2013-02-21 21:37:12",
"os_family_name": "Apple iOS"
}
}
}