Google Finance API Time Period - google-finance

I am using a C# class to get the prices of a given stock from Google Finance.
The communication between the class and the Web Service is working well.
I am using the following url:
http://www.google.com/finance/historical?output=csv&q=BBAS3
The problem is that the returned prices are only from about 1 year ago.
I need to get all the available prices records.
If I search for stock ticker "BBAS3" in the Google webpage, it shows me a graph that goes until 2003.
As far I could find, there is no official documentation about the API.
I found some more info in this site:
Google's Undocumented Finance API
As it shows, I can use the following parameter:
p - Period. (A number followed by a "d" or "Y", eg. Days or years. Ex: 40Y = 40 years.)
Then I tried (&p=5Y):
http://www.google.com/finance/historical?output=csv&p=5Y&q=BBAS3
But the result was the same.
Does anyone knows another way to achieve what I need?

Google is changed Now.
I've been playing around with the undocumented Google Finance API. It provides intra-day data for the past 10 days and day-granularity data going back for years. Handy!
There are lots of web pages that attempt to describe how this thing works. I've pulled together a bunch of data from them, as well as a few of my own observations. You can watch this thing in action by popping open FireBug while messing about on with the google finance chart. It will make AJAX requests to this API.
Here's an example URL to pull all historical data for GOOG at daily granularity:
http://www.google.com/finance/getprices?q=GOOG&x=NASD&i=86400&p=40Y&f=d,c,v,k,o,h,l&df=cpct&auto=0&ei=Ef6XUYDfCqSTiAKEMg
Visit this Documentation
As You Search is Available at
https://www.google.com/finance/getprices?q=BBAS3&x=BVMF

Related

Getting exact data from Google Trends

I am searching on Google Trends who has searched on a particular topic (say 100 searches per month) , How can i extract data who are those people who have searched that particular topic, can i have their details or any thing using API?
thanks
I have tried to search online but not able to get the desired data
Google Trends data is aggregated and anonymized, so the information you're looking for is not available.
From Google Trends Help Center:
After search data is collected, we categorize it, connect it to a
topic, and remove any personal information.

How to insert mini calendar image by url

I'd like to put a mini calendar of the current month and next month into a document. I can insert images by url into most document programs, so I was hoping to find a free service out there that serves up images of mini month calendars. The idea being I would never have to worry about changing the calendar image, no matter when I print the document in the future.
Is there any services out there that can provide a basic image?
If it isn't clear what type of calendar I'm looking for, I just need an "at-a-glance" month, just like one of the months shown in this image:
If you're willing to use bootstrap, you could give this a shot: http://www.bootstrap-year-calendar.com/
Here's another one that just uses jQuery:
https://www.jqueryscript.net/demo/Full-Year-Calendar-Generator-jQuery/
You wouldn't have to worry about a third party service going down, since the calendar code would all be hosted on your own site.

Instagram Graph API Insights - Reach between two dates

In Instagram, the reach metric is a de-duplicated data source. In other words, the sum of 7 days worth of data does not necessarily equal the value for that week. This is similar to the Facebook Marketing reach metric.
I'd like to support this scenario: given two dates, give me the reach between those two dates.
In the FB Marketing API this is easily achieved using the since and until parameters to define the date boundaries, and then using a time_increment of all_days to retrieve the reach summed up across all those days.
For example, using the FB Marketing API Docs here is a FB Marketing url that requests a week's worth of data summed up:
{adaccount_id}/insights?metric=reach&since=2018-02-05&until=2018-02-11&time_increment=all_days
In the Instagram Graph API I can define a since and until parameter to define the date boundaries, but there is no parameter like time_increment.
Using the Instagram Graph API Docs, here is a url that requests a week's worth of data split up by day:
{instagram_business_account_id}/insights?metric=reach&period=day&since=1517788800&until=1518307200
Is there any way to change that around to get the summed up reach between two dates? I had hoped for a period option of all_days similar to the FB Marketing API's time_increment parameter but that doesn't exist.

Google Admin Reports API: Users Usage Report stats accuracy

I am trying to use Google Admin Reports API: Users Usage Report to pull emails received/sent per user per day in our org's google app.
When I use Google APIs Explorer to pull my own stats for a particular day and compared it with real situation, it seems the number is far off.
For example, on Sunday, 7th Dec 2014, I only sent out one email. But the stats shows there were 4 emails sent out by me on that day.
Any assistance would be appreciated
Cheers,
You should get the same results than searching in Gmail:
in:sent from:me after:2014/12/07 before:2014/12/08
The missing bit is the time zone the server is using which in my research it is always Pacific Standard Time.
Did you:
Send out any calendar invitations that day? (1 email per attendee)
Share any Google Drive files/folders that day (1 email per file shared)
Send mail from a Google Group
there are likely other actions you may have performed in other Google Apps which caused emails to go out in your name and count against your quota but not necessarily show in your Sent folder.
If you'd like for these messages to appear in your Sent folder, turn on Comprehensive Storage.

Guide to using google URL to get options chain data?

I'd like to enter a URL into google and get all options chain data for a particular stock. Is there a guide that shows you how to use it, like if I wanted to grab all options that expire in the next year without knowing the individual expiration dates, or if I just wanted a particular strike price? I found another question that gives me the basic outline, but doesn't specify the details:
Finance historical options data (with strikes etc) on google finance API
Here is an example on how to do this using the ImportHTML function, although there is a delay in the data of course.
=importhtml("http://finance.yahoo.com/q/op?s=QQQ&m=2013-12","table",0)