Can I grab historic weather data from the api? - here-api

My use case would be to send an API request in the morning, based on a lat/long.
I would hope to get back weather data that was recorded every 4 hours.
Can't find any documentation, is something like this possible?

With the existing APIs available for weather data, we are not providing any historic weather data API. However if the demand from users surge, this can be developed as we have this data available.
Please drop your request at
www.here.com/contact?cid=www.here.com_navigatyesion-company

Related

Trouble Requesting Data - Historical Traffic

I am trying to extract historical traffic data.
The documentation specified the time needs to be in the format: 2022-08-31T00:00:00-07:00 (midnight today).
My issue is that no matter what time I enter it only returns data associated with right now.
I have written a function that would extract traffic data every 15 minutes for a historical date and bounding box, however, it does not return unique data.
An example request URL is as follows:
https://traffic.ls.hereapi.com/traffic/6.2/flow.json?apiKey=#############&bbox=50.08518,-123.237232;49.447285,-123.049602&units=metric&responseattributes=shape&time=2022-08-31T00:00:00-07:00&minjamfactor=0
Could anyone assist with how exactly to extract historical traffic data for a given time?
Sorry for the inconvenience. But the current HERE traffic API V6.2/V7 provides the real-time traffic and incidents, not the historical traffic data.

Is it possible to get historical weather data from HERE API for a specific date?

I am looking to download the historical weather data for a location by sending a HERE API request containing a specific date.
The documentation here: https://developer.here.com/documentation/destination-weather/dev_guide/topics/overview.html is only about current weather data and I couldn't find any documentation about historical weather data for a specific date. Is something like this possible?
You could try https://open-meteo.com/en/docs/historical-weather-api
With start and end date parameters you can specifically select one day
Yes, this is possible, but you will need to contact one of our sales agents because this specific feature you are asking for is restricted to a different base plan:
https://www.here.com/pricing?form_id=2227&form_category=contact-us&cta_id=73306_contact-us&detailed_source=www.here.com%2Fpricing
You can always check our HERE Base Plan Pricing for more details.

How to extract Google Analytics historical data using APIs. Pros and cons?

I'm doing a quick proof of concept to understand the procedure to extract historical data from Google Analytics to be further used for offline data stitching to generate a holistic view of data and its analysis. I have not found any detailed online documentation available to understand pros and cons.
Would like to know any limitations on:
The time period for which data can be extracted or any limitation for max. calendar days?
Whether all dimensions/metrics can be extracted or any specific ones?
Will the data be real-time or sampled?
Can all data be pulled into a single table or separate ones?
Will it be available for both freeware and premium version?
The time period for which data can be extracted or any limitation for max. calendar days?
Start date can not be before the launch of Google analytics on '2005-01-01'. Due to processing time lag extracting data that is newer then 2 days old can result in incomplete data. Recommend checking the isDataGolden flag on the response.
Requesting large date ranges can result in sampling which can not be prevented. Its best to request the data in small chunks.
Whether all dimensions/metrics can be extracted or any specific ones?
A list of the dimensions and metrics you can extract can be found here. Each request can contain a maximum of 7 dimensions and 10 metrics.
Will the data be real-time or sampled?
Real-time API and Reporting API are two different APIs. Real-time API is not to my knowledge sampled but as its only about five minutes of data I find it hard to think anyone but really big websites will hit this problem if it is.
Will it be available for both freeware and premium version?
Accessing Google Analytics APIs is free there is no charge. There are however limits on how much data you can extract in a given day.
By default your application can run a maximum of 50k request a day. This can be extended.
Each view you are extracting from can make a maximum of 10k requests day. This can not be extended.
See: limits and quotas for more info.
Note: I am a developer on a business intelligence application that extracts Google Analytics data. I can tell you that its definitely doable.

Using analytics for non web-related project

I'm looking to use google analytics for its web interface only. A large dataset such as gasoline prices would be submitted to analytics via the api and viewed. Is this possible? Or is analytics purely tailored to viewing website statistics?
The Google Analytics data model is really geared toward datasets that can be thought of in terms of users, sessions, and hits (hits being things like pageviews and events).
If your data can be thought of in these terms, it will probably work. If, on the other hand, you're trying to do things like joins or calculate averages or other statistical operations, you're probably better of using something else.
While the others are correct, Google Analytics is geared towards users, sessions, and hits. It is none the less simply an application for data analysis. The question will be how to get the data into the system.
I think you need to give us a little more information about your data set. But let me assume a few things.
You have a dataset with gasoline prices over a period of days.
you have a dataset with gasoline prices for different gas stations.
It would be really nice if this wasn't old data that this is new gas prices coming in.
If I had this dataset I could insert it into Google Analytics. Directly using the measurement protocol.
The measurement protocol has a few required things, the first being hit type. 'pageview', 'screenview', 'event', 'transaction', 'item', 'social', 'exception', 'timing'. the second would cid or session id.
Now cid I think I would probably set to the different gas stations and probably add a custom dimension with the gas station name.
As for hit I think I would probably say screenview and make an application Google Analytics account. Mainly because well this isn't a website its a little different.
Then every time the price of Gas changes I would send a screenview, cid of the station with the custom dimension of the station, add a custom metric with the price.
The main problem you are going to have is that Google analytics doesn't handle old data well. If you are going to insert this data with a date associated the date and time cant be grater then 4 hours ago or the server wont process it.
Have you considered putting it in big Query instead?
This question really is to broad or opinion based, but it was fun to consider.
It is possible to send all kinds of hits with the Measurement Protocol. But Philip is correct in stating that the data model is largely geared towards users, sessions and hits. But you could probably get a good ways with custom dimensions and metrics.

Can Google Analytics pull historical data?

Trying to dig in to GA here. I have a site built on a wiki platform (confluence) that has not had any GA setup prior. Trying to see if I could do something crafty with the GAPI to pull historical data as the site has been up for some ~3 years.
Is there any way to pull data if GA was not set up on any of the pages, or am I SOL? Took a gander at https://developers.google.com/analytics/devguides/reporting/core/v3/reference but didn't see a clear answer
I have only used Google Analytics to track data as it comes in. If you have the historical data stored somewhere, you could probably write a script to iterate over the standard ga script and send off trackpageviews with the data you want, but unless you or someone else actually have the usage data tracked somewhere, you won't be able to materialize it out of thin air.

Resources