Why youtube API from some channels return wrong views statistics?How do I get a YouTube video thumbnail from the YouTube API?How can I get a channel ID from YouTube?PHP YouTube Data API get channel information without oathYouTube Data API - Get Channel ID from EmailYoutube Channel List Api - not returning data in orderYouTube API V3 not returning “statistics” part for /videos endpointnot getting result from youtube channel:list apiYoutube API - Difference between number of videos from channel statistics and number of videos uploadedyoutube api doesn't show its full channel listPlaylist from YouTube Live Channel using API
Meaning and structure of headline "Hair it is: A List of ..."
Is this bar slide trick shown on Cheers real or a visual effect?
Do predators tend to have vertical slit pupils versus horizontal for prey animals?
How do I ask for 2-3 days per week remote work in a job interview?
Adding things to bunches of things vs multiplication
Why do so many people play out of turn on the last lead?
How can I change the movement to Linear?
The Lucky House
What's the relationship betweeen MS-DOS and XENIX?
What is the fastest way to level past 95 in Diablo II?
Why should I pay for an SSL certificate?
What if a restaurant suddenly cannot accept credit cards, and the customer has no cash?
Is the Microsoft recommendation to use C# properties applicable to game development?
Unconventional examples of mathematical modelling
What does a comma signify in inorganic chemistry?
How to train a replacement without them knowing?
Why is su world executable?
Eric Andre had a dream
Can I use images from my published papers in my thesis without copyright infringment?
How do I answer an interview question about how to handle a hard deadline I won't be able to meet?
What's the point of writing that I know will never be used or read?
Why is the battery jumpered to a resistor in this schematic?
Quick destruction of a helium filled airship?
Are there any OR challenges that are similar to kaggle's competitions?
Why youtube API from some channels return wrong views statistics?
How do I get a YouTube video thumbnail from the YouTube API?How can I get a channel ID from YouTube?PHP YouTube Data API get channel information without oathYouTube Data API - Get Channel ID from EmailYoutube Channel List Api - not returning data in orderYouTube API V3 not returning “statistics” part for /videos endpointnot getting result from youtube channel:list apiYoutube API - Difference between number of videos from channel statistics and number of videos uploadedyoutube api doesn't show its full channel listPlaylist from YouTube Live Channel using API
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am using youtube api, but I saw some channels return wrong statistic views number.
Example: https://www.youtube.com/user/LuisFonsiVivo/about
API CALL: https://www.googleapis.com/youtube/v3/channels?part=topicDetails,snippet,brandingSettings,statistics&key=API_KEY&id=UCxoq-PAQeAdk_zyg8YS0JqA

Thanks
youtube-api youtube-data-api
add a comment |
I am using youtube api, but I saw some channels return wrong statistic views number.
Example: https://www.youtube.com/user/LuisFonsiVivo/about
API CALL: https://www.googleapis.com/youtube/v3/channels?part=topicDetails,snippet,brandingSettings,statistics&key=API_KEY&id=UCxoq-PAQeAdk_zyg8YS0JqA

Thanks
youtube-api youtube-data-api
I think you or the library you are using is turning the unsigned long10,599,143,493into an integer (UINT_MAX4,294,967,295). The overflow is resulting in16,345,349.
– Daniel W.
Mar 27 at 15:18
add a comment |
I am using youtube api, but I saw some channels return wrong statistic views number.
Example: https://www.youtube.com/user/LuisFonsiVivo/about
API CALL: https://www.googleapis.com/youtube/v3/channels?part=topicDetails,snippet,brandingSettings,statistics&key=API_KEY&id=UCxoq-PAQeAdk_zyg8YS0JqA

Thanks
youtube-api youtube-data-api
I am using youtube api, but I saw some channels return wrong statistic views number.
Example: https://www.youtube.com/user/LuisFonsiVivo/about
API CALL: https://www.googleapis.com/youtube/v3/channels?part=topicDetails,snippet,brandingSettings,statistics&key=API_KEY&id=UCxoq-PAQeAdk_zyg8YS0JqA

Thanks
youtube-api youtube-data-api
youtube-api youtube-data-api
asked Mar 27 at 12:57
jodacamejodacame
111 silver badge4 bronze badges
111 silver badge4 bronze badges
I think you or the library you are using is turning the unsigned long10,599,143,493into an integer (UINT_MAX4,294,967,295). The overflow is resulting in16,345,349.
– Daniel W.
Mar 27 at 15:18
add a comment |
I think you or the library you are using is turning the unsigned long10,599,143,493into an integer (UINT_MAX4,294,967,295). The overflow is resulting in16,345,349.
– Daniel W.
Mar 27 at 15:18
I think you or the library you are using is turning the unsigned long
10,599,143,493 into an integer (UINT_MAX 4,294,967,295 ). The overflow is resulting in 16,345,349.– Daniel W.
Mar 27 at 15:18
I think you or the library you are using is turning the unsigned long
10,599,143,493 into an integer (UINT_MAX 4,294,967,295 ). The overflow is resulting in 16,345,349.– Daniel W.
Mar 27 at 15:18
add a comment |
1 Answer
1
active
oldest
votes
Channels.list returns a list of channelsResource
statistics.viewCount unsigned long
The number of times the channel has been viewed.
Dummy Channel

Response from api test here

I suspect you are looking at the views for a video.
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377773%2fwhy-youtube-api-from-some-channels-return-wrong-views-statistics%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Channels.list returns a list of channelsResource
statistics.viewCount unsigned long
The number of times the channel has been viewed.
Dummy Channel

Response from api test here

I suspect you are looking at the views for a video.
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
add a comment |
Channels.list returns a list of channelsResource
statistics.viewCount unsigned long
The number of times the channel has been viewed.
Dummy Channel

Response from api test here

I suspect you are looking at the views for a video.
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
add a comment |
Channels.list returns a list of channelsResource
statistics.viewCount unsigned long
The number of times the channel has been viewed.
Dummy Channel

Response from api test here

I suspect you are looking at the views for a video.
Channels.list returns a list of channelsResource
statistics.viewCount unsigned long
The number of times the channel has been viewed.
Dummy Channel

Response from api test here

I suspect you are looking at the views for a video.
answered Mar 27 at 15:04
DaImToDaImTo
50.2k12 gold badges80 silver badges268 bronze badges
50.2k12 gold badges80 silver badges268 bronze badges
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
add a comment |
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
He is viewing the channel page, the channel viewCount and the API request is also about the channel. He is not looking at the views of a video (look at the link he provided).
– Daniel W.
Mar 27 at 15:13
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
@jodacame could you add a little explanation on what you did wrong? Or, how you changed the request in your question to deliver the correct results.
– Daniel W.
Mar 27 at 16:53
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55377773%2fwhy-youtube-api-from-some-channels-return-wrong-views-statistics%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I think you or the library you are using is turning the unsigned long
10,599,143,493into an integer (UINT_MAX4,294,967,295). The overflow is resulting in16,345,349.– Daniel W.
Mar 27 at 15:18