0
{
"kind": "youtube#channelListResponse",
"etag": "\"dhbhlDw5j8dK10GxeV_UG6RSReM/WNxXCvycTyqTjTn9sLJ5toVjBRY\"",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
},
"items": [
{
"kind": "youtube#channel",
"etag": "\"dhbhlDw5j8dK10GxeV_UG6RSReM/jijTuA_iWn2Kv9aRnqeAWNAcQ6I\"",
"id": "UCt7iVnJwjBsof8IPLJHCTgQ",
"statistics": {
"viewCount": "796662",
"commentCount": "20",
"subscriberCount": "257",
"hiddenSubscriberCount": false,
"videoCount": "126"
}
}
]
}
基本上我怎麼回聲「subscriberCount」。在PHP中,我可以用json_encode()來獲得它。我試過print_r(),它顯示完美,但我不知道如何訪問特定的數據。我只需要用戶數。YouTube的數據API V3訪問用戶數
我想你的第一個代碼我和它的工作。無論如何這是真實的答案,謝謝:) – Volkan