Get total amount of time (i.e. minutes or seconds) streamed for a track from Spotify API - spotify

I am trying to build a project using my personal streaming history with Spotify. I plan on using the Spotify API as well as Spotipy (possibly).
Is there a way to find out how many minutes or seconds a particular track was streamed by me? I've already browsed questions which suggest Last.fm but this does not work retroactively.
Specifically, I want amount of time streamed for a track between (say) Mar 2019 to Mar 2020.

You can request your streaming history by going into your settings on the spotify desktop site. It says it could take up to 30 days, I'm still waiting on mine.

Related

Instagram API limit reduced to 200 from 5000 [duplicate]

This question already has answers here:
Did Instagram change API rate limits on Mar 30, 2018?
(5 answers)
Closed 4 years ago.
Does anyone have any clue why Instagram has reduced their hourly API request limit from 5000 to just 200? Is this a bug or the new normal? Do instagram partners undergo the same lowering of rate limit?
The page on rate limits in the documentation is a broken link.
:::UPDATES FROM INSTAGRAM via MAIL:::
To summarize, Basically Instagram API is shutting down faster than speed of light right now. Migrate your apps to FB-instagram-API to keep your business or apps running
Yes, from what I think are updated Facebook docs.
Rate Limiting
The Instagram API uses the same rate limiting as the Graph API (200 calls per user per hour) with one exception: the /media/comments edge limits writes to 60 writes per user per hour. Please refer to the Graph API's rate limiting documentation for more information.
Facebook documentation
Seems to be in relation to trying to clean up privacy and user data usage.
TechCrunch article - https://techcrunch.com/2018/04/02/instagram-api-limit/
Without warning, Instagram has broken many of the unofficial apps
built on its platform. This weekend it surprised developers with a
massive reduction in how much data they can pull from the Instagram
API, shrinking the API limit from 5,000 to 200 calls per user per
hour. Apps that help people figure out if their followers follow them
back or interact with them, analyze their audiences or find relevant
hashtags are now quickly running into their API limits, leading to
broken functionality and pissed off users.
Two sources confirmed the new limits to TechCrunch, and developers are
complaining about the situation on StackOverflow.

Instagram real-time API gets very few updates

I've been using instagram's real time push api (http://instagram.com/developer/realtime/) for a long time to get updates on a specific location. I use the highest possible value for "radius", which is 5000m . For the last 4 weeks, I have noticed that I received significantly less updates through the API (but not zero). Other applications seem to have the same issue, like http://now.jit.su/ . I also filed a bug report at instagram, which went unanswered.
My questions are:
- has anything changed in the API?
- has anything changed in the app (so that not every photo will be published)?
- is anyone else experiencing this issue?
- is there anything I can try to get it working again?
I know this is not exactly a perfect SO question, but I was not able to dig anything up on google, and the instagram developer pages direct here for support. Any help is greatly appreciated.
Had some communication recently with a contact at Instagram and he mentioned that Instagram's real-time functionality will be limited to only user subscriptions in the future.
Apps created before November 17, 2015 will continue to receive updates but are being sampled because of the load they are experiencing and the fact that the architecture used for this does not scale well. He also mentioned that, as a result, real-time subscriptions will be deprecated for Tags, Locations and Geographies.
The developer guides also have some information regarding this:
OLD: https://www.instagram.com/developer/deprecated/realtime/
NEW: https://www.instagram.com/developer/subscriptions/
I am using https://api.instagram.com/v1/users/self/feed?access_token=AccessToken&count=100 to get my feeds.
You might be missing count in your api or let me know which api you are using

Adsense API data in local timezone

I'm working on an application to connect to the Google Adsense API. As I'm based in the UK, my reports on the Google Adsense web login are all set to UK local time. However, the API data all seems to be solely in Pacific Time, AKA Google Standard Time :-)
This isn't necessarily a huge issue, as it doesn't affect actual earnings. But it does make it harder to track things like CPC and CTR on a daily basis. It would be easier if I could drill down into the data to hourly level, as then I could easily reallocate out-of-zone hours to the adjacent day. But that doesn't seem to be an option either, unless I'm missing something.
I've searched the documentation, but can't seem to find any means of controlling the timezone of API data. Is there any way to get the APi to deliver the data in a local timezone, or do I just have to put up with getting my reports in Pacific time?
As a developer you can't define a time zone to use, but as a publisher you can change your local time zone in the AdSense web interface. After that, you can use useTimezoneReporting when requesting a report.
Read the full explanation and "Things to watch out for" in:
https://developers.google.com/adsense/management/timezone
Situated in the UK, I request a saved report from AdSense API and with "yesterdays" data.
When triggered after midnight our time it pulls data from the day before yesterday...
I didn't know the API was functioning on PST time and just believed it would follow the local timezone set on our account.
Even though the documentation in the comment above mentions reports will be done in "local time" when set in your account, the API will still operate calls based on its own timezone (PST). +8 hours GMT.
So if you need to get "yesterdays" report, be sure to set the date on your call or adjust your schedule to match the PST time zone.

What exactly is Page Response Time?

I use Visual Studio 2012 for doing some load testing in our web application, and one of the metrics we rely on is "Page Response Time". I found this article, but it doesn't really answer the question. I also found a Stack Overflow question that gives some details, but isn't quite what I'm looking for.
The software I'm testing is a web interface that uses a relational database back-end. If I look at the Total Average Page Response Time for a specific test, what exactly is that telling me?
Does it take into account the time that the database spent processing the request? Or just the time that the web page took to be processed on the web server and client machine?
Ultimately, I'm looking for a metric that would tell me the total response time and would also take into account time spent within SQL finding the information.
Is the time that takes to server to send all resources (or the time to send the last one) to client browser (this is why is bandwidth dependent). for example in the picture you can see the stack overflow response time (big red line) using chrome developer tool (press f12)

How to play a part of 24 hours video Web

I have 24 hours video, but based on users request I want to allow him watch only an interval of that video.
What player or what system should I use to achieve this solution.
You can use a schedule.
Take a look at this.

Resources