Separating data from different months in Google Analytics - google-analytics-api

I'm using the Google Analytics API to get info from my website and I want to collect info from more than one month at the same time, but the GA functions give me data from only the last month I ask for.
Here's an example:
I request info for dates from 1st of February of 2012 to today, but when I get the information, the API gives me data from 1st to 22th of March and then from 23th to 29th of February.
Is there any solution for sepatating this data and get the whole information?
Thank you!

You can add "start-date=" & "end-date" as query string to the request
such as start-date=2012-07-01&end-date=2012-07-25

You can try this tool provided by google: http://ga-dev-tools.appspot.com/explorer/
Just log in with your credentials and you can build your API queries in a simple GUI. Maybe you are just missing something?

Related

O365 : TenantUsage_getOffice365ActiveUserDetail not updated since a week?

I'm using Graph API to report and create PKI about my Office Tenant.
Since a week, when I ask for [getOffice365ActiveUserDetail] the report date is still the same : 2019-01-06... So no data updated since the 6th january.
The other log are updated !
You need a Premium license to view these activities and cannot see this information with a Free or Basic license. If you have recently switched to a Premium license it can take a few days for the data to show up and you'll only be able to retrieve data up to one week back. https://learn.microsoft.com/en-us/azure/active-directory/reports-monitoring/reports-faq
If you already have the right licensing then it is likely a problem with the filter you are using.

time interval after which analytics server is updated

I am creating a report, in which i have to show the number of sessions, users and registrations that have occurred today in a live feed. I see that the ga dashboard is updated only till 7 am in the morning although its 10:41 am right now. Can I know after what time interval does the analytics server is updated? I am using core analytics api to fetch the data as of now, if any other api suits my requirements do suggest.

Retrieving friend count delta

I've been looking through the Facebook-graph API for a way to get a kind of 'delta' of friend changes since a given date. it looks like the /<id>/friends end point will give me a total count at the current time. What I'd like is that same value but for a historic date (i.e. where the date is this time last year, so that I can see how many friends someone has made/lost since then).
(I was originally hoping Facebook would just let me see when people became friends, but it looks like a user's friends list, and all the related details, are off limits).
Unfortunately I can't just rely on the use of future dates, though that may be the solution I end up with (as in, I request the count at the current date, and then at some point in the future request it again and compare the difference).
I can see from my own Facebook account that they do track when a friend/connection was made, and I'm not looking to dig up details on the friend/connection. Ideally I'm looking for something like /<id>/friends?asat=<date>
As a follow up question assuming this feature isn't available through the facebook-graph API, how would I go about requesting this feature for a future version?
There is no way to get the history, you can only call the API endpoint on a regular basis and store the difference with date on your own.
Feature requests can be sent here: https://www.facebook.com/help/contact/268228883256323
...although, i doubt that they will implement this, to be honest. Those kind of "insights" are usually only available for Pages, but not for User Profiles.

Collecting Data from Facebook Group

I'm not one of the Facebook Developer, but I need some data for my thesis, regarding one group in Facebook which I'm currently observing.
The problem is, I must collect the data within the last 6 months of:
how many members have joined in the last 6 months, if possible, can be split by monthly.
how many postings in the group in the last 6 months, also.. if possible split by monthly
how many active users within the last 6 months.
Can somebody give me some hints of how to collect those information?
You're going to have a hard time doing this. Groups aren't very API friendly, and they don't have their own insights information.
You can try browsing the group's feed using the Graph API Explorer using the /GROUP_NAME_OR_ID/feed edge, and adding since and until filters to look at monthly data.
However, you won't see all the posts because of Facebook privacy filtering. To get the most reliable data, you'll need to manually count the entries of interest from within the Facebook webapp.

iPhone Native Stocks Application

Anyone know how apple uses yahoo finance api to get the historical data for stocks at different times of the dat. Also, how to get the quote price for a given stock at different times of the day for today instead of just the current quote?
It seems that the yahoo finance api can be used to get the current price, and the iChart.yahoo.. can be used to get closing prices for stocks each day. Thanks!
Josh
Try the Mergent Historical Securities Data API - http://www.mergent.com/servius