Is there no way to see the time evolved graph of individual videos? (aka the information sites like SocialBlade can plot but for individual videos rather than channels)?
Is it possible if I am a Content Manager and I got access (Manager/Viewer) to some channel dashboard, I can pull the other channel's video statistics like averageViewDuration,watchTimeDuration, etc? or simply TH-cam API sucks?
The TH-cam API _might_ support that, tbh I'm unsure. What I _can_ tell you is that analytix does not support content owner reports, so you'd have to do it all using other means, or pull all the requests and concatenate them using Pandas (or akin).
My original intent in using the API is to get more structured information about CTR and AVD per traffic source. With the API, I am not able to extract this information on an aggregated level (dimension trafficsource is not compatible with CTR), but also not when I go down on a per video level in traffic source detail. Which is weird because YT studio does show this information on a per video level. Is there anyone that tried extracting CTR information per traffic source?
I released a version 5 since which changed the name of some things. For example, Analytics is now called Client. Most things work similarly, though I should probably get round to making another updated video 😅
@@Carberra Thank you so much for responding this quick. I have been at it from last night only to have the analytics libraries not existing and insufficient permissions. Your saving many lives by explaining everything from scratch cus chatgpt gives answers are very vague.
As the author of analytix I absolutely get what you mean, cos the Analytics API is such a nightmare lmao. Literally about 90% of the logic is just to give clearer errors, not even kidding.
im on mac, using pycharm. coming up with import error... from analytix import Analytics ImportError: cannot import name 'Analytics' from 'analytix' Any solutions?
You'd need to use the Data API to perform lookups on them -- the Analytics API (and therefore analytix) can't do that. I made a package called vidyo a while ago which could do it, though there are plenty that utilise the Data API.
Thank you for your sharing! It is very useful! I have encountered a problem that I can only suceed retrieving data of one channel. Even though I recreate a new project, get a new json file and reuse the code to get the data from another channel, I cannot get the data from another channel. Do you have any solution on that?
What version of analytix are you using? If you're not on 3.5, upgrade and try again. If you are, it might be easier if you join the Discord server, then you can send screenshots of what's going on.
What's your request code? It may be easier to help if you join the Discord server -- use the link in the description (feel free to ping in a support channel when you join).
I followed all the steps with creating the 02Auth steps, but for some reason I am getting API returned 403: Forbidden error. I even gave access to my account in Google Analytics and in the browser. And the logger does not show any errors.. 6,775,370ms [ INFO ] analytix.oidc: Secrets loaded (type: installed)! 6,775,378ms [ INFO ] analytix.oidc: Tokens loaded! 6,775,422ms [ INFO ] analytix.shard: Access token does not need refreshing 6,775,423ms [ INFO ] analytix.client: Authorisation complete! 6,775,423ms [ INFO ] analytix.queries: Validating request 6,775,424ms [ INFO ] analytix.queries: Getting data between 2021-01-01 and 2023-02-18 6,775,425ms [ INFO ] analytix.queries: Report type determined as 'Time-based activity' 6,775,426ms [ INFO ] analytix.queries: Request OK!
So recently a few people have had this issue, and I believe it's something to do with fetching revenue data for (some) non-partnered channels. I'm gonna be pushing a release to handle this soon, but for now, try passing in a series of metrics that aren't revenue related. Let me know how that goes! For reference, this should help: github.com/parafoxia/analytix/issues/41#issuecomment-1431766897
@@Carberra thanks, I was only retrieving "Day" by itself as metric or dimension. So this probably was the issue. Will try this out later today and let you know.
I've since updated the library to version 4 -- you can find the migration guide here: parafoxia.github.io/analytix/guides/migrating/
Is there no way to see the time evolved graph of individual videos? (aka the information sites like SocialBlade can plot but for individual videos rather than channels)?
Not really no. You could filter by video with dimension day, and string a series of reports together into one. That might be what you're after.
Is it possible if I am a Content Manager and I got access (Manager/Viewer) to some channel dashboard, I can pull the other channel's video statistics like averageViewDuration,watchTimeDuration, etc?
or simply TH-cam API sucks?
The TH-cam API _might_ support that, tbh I'm unsure. What I _can_ tell you is that analytix does not support content owner reports, so you'd have to do it all using other means, or pull all the requests and concatenate them using Pandas (or akin).
My original intent in using the API is to get more structured information about CTR and AVD per traffic source.
With the API, I am not able to extract this information on an aggregated level (dimension trafficsource is not compatible with CTR), but also not when I go down on a per video level in traffic source detail. Which is weird because YT studio does show this information on a per video level.
Is there anyone that tried extracting CTR information per traffic source?
where can i get the secrets file?
Watch the Google API video -- it's explained in there.
ImportError: cannot import name 'Analytics' from 'analytix'
what version are you using in the video?
I've updated it again since, so it's a bit different now. Either downgrade to 3.x, or look at the docs for how to use 4.x.
@@Carberra cheers mate
For some reason my vscode intellisense doesn´t work with your module, any idea why? I wanted to check all features and docstrings on it and can´t
I found out why the module Analytics isnt inside my analytix
@@diegoloretti why is it? same problem here
I released a version 5 since which changed the name of some things. For example, Analytics is now called Client. Most things work similarly, though I should probably get round to making another updated video 😅
@@Carberra Thank you so much for responding this quick. I have been at it from last night only to have the analytics libraries not existing and insufficient permissions. Your saving many lives by explaining everything from scratch cus chatgpt gives answers are very vague.
As the author of analytix I absolutely get what you mean, cos the Analytics API is such a nightmare lmao. Literally about 90% of the logic is just to give clearer errors, not even kidding.
im on mac, using pycharm. coming up with import error...
from analytix import Analytics
ImportError: cannot import name 'Analytics' from 'analytix'
Any solutions?
A new version of analytix has come out. You can either downgrade to 3.6.1, or look at the migration guide in the docs to move to the new version.
Weird how it throws NoModuleFound error for analytix but the path is okay. Am I missing something?
Can you show the full traceback?
using "video" as a dimension returns the video id's. how can i get the video titles?
You'd need to use the Data API to perform lookups on them -- the Analytics API (and therefore analytix) can't do that. I made a package called vidyo a while ago which could do it, though there are plenty that utilise the Data API.
@@Carberra thanks
ImportError: cannot import name 'Analytics' from 'analytix'
Please help
Also how can i downgrade analytix version?
`pip install analytix
@@Carberra Also what is the solution for this? when i run python yt_auth.py, there is come "OSError: [Errno 48] Address already in use"
Port 8080 (the default it uses) is probably being used by something. You can change it by passing a kwarg to the retrieve function.
Thank you for your sharing! It is very useful! I have encountered a problem that I can only suceed retrieving data of one channel. Even though I recreate a new project, get a new json file and reuse the code to get the data from another channel, I cannot get the data from another channel. Do you have any solution on that?
I've had that same problem and have absolutely no idea why it happens unfortunately. What error is it giving you exactly?
@@Carberra The browser shows that the losthost reject the connection requirement. It appears after I agree with the authorization of another channel.
What version of analytix are you using? If you're not on 3.5, upgrade and try again. If you are, it might be easier if you join the Discord server, then you can send screenshots of what's going on.
@@Carberra I am using 3.5.0.
@@Carberra How to join the Discord server?
Hi,, first thank you for your sharing !!! But my result is zero rows. I don't know why.
What's your request code? It may be easier to help if you join the Discord server -- use the link in the description (feel free to ping in a support channel when you join).
sick disclaimer
Thank You, the youtube API documentation is confusing
Oh yeah, I can definitely attest to that one lmao.
Damn I’d rather use the official API rather than a library, I have trust issues when it comes to using login credentials lol.
Open source is wonderful for that lmao.
ok
I followed all the steps with creating the 02Auth steps, but for some reason I am getting API returned 403: Forbidden error. I even gave access to my account in Google Analytics and in the browser. And the logger does not show any errors..
6,775,370ms [ INFO ] analytix.oidc: Secrets loaded (type: installed)!
6,775,378ms [ INFO ] analytix.oidc: Tokens loaded!
6,775,422ms [ INFO ] analytix.shard: Access token does not need refreshing
6,775,423ms [ INFO ] analytix.client: Authorisation complete!
6,775,423ms [ INFO ] analytix.queries: Validating request
6,775,424ms [ INFO ] analytix.queries: Getting data between 2021-01-01 and 2023-02-18
6,775,425ms [ INFO ] analytix.queries: Report type determined as 'Time-based activity'
6,775,426ms [ INFO ] analytix.queries: Request OK!
So recently a few people have had this issue, and I believe it's something to do with fetching revenue data for (some) non-partnered channels. I'm gonna be pushing a release to handle this soon, but for now, try passing in a series of metrics that aren't revenue related. Let me know how that goes!
For reference, this should help: github.com/parafoxia/analytix/issues/41#issuecomment-1431766897
@@Carberra thanks, I was only retrieving "Day" by itself as metric or dimension. So this probably was the issue. Will try this out later today and let you know.
Yeah, by default all available metrics are used if none are provided, which for that dimension, includes revenue data. Sounds good!