Will get the pages indexed via analytics API? - api

I am using analytics API https://www.googleapis.com/analytics/v2.4/data to get the below mentioned metrics,
$metrics = array("sessions","avgSessionDuration","bounceRate","Pageviews","percentNewSessions","users","pageviewsPerSession","newUsers");
Can I get the pages indexed data thorugh this API? I want the number of pages indexed, also the pages list which indexed in google.
If possible via analytics API, please share me the metrics name to get the indexed pages data.

Google Analytics does not provide information about indexed pages. You will need to use the Google Search Console API instead.

Related

Google Analytics Reporting API dimension Ad Content ID

I have found on Google Analytics API page that there is an Ad Content field. However I am wondering whether there is an Ad Content ID field for the Google Analytics Reporting API as a dimension?
When it comes to pulling AdWords data via the Google Analytics Reporting API, some of the information is limited. For example, you cannot pull calls from ads using the Analytics Reporting API.
I've never pulled calls from ads data before using API's, but I believe you can use the AdWords API, so you may have to use the Adwords API to grab the data you need.
I live by Google's Dimensions and Metrics Explorer:
https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/
If I ever need to grab a dimension or metric name, I look here.
Looking at AdWords data specifically, there are a number of different dimensions you can include into your object query when you ping the API. I'm a little out of my depth with Adwords so I could be wrong, but I don't believe I see an Ad Content ID available to be used as a dimension in the Analytics Reporting API.

Using google custom search API to find images

I want to use Google's Custom Search API to find images using GET request. Like described here. But I don't want to look on images on one specific site, but want to get results like this. How I can do this with the Custom Search API?
Sending this request returns nothing:
https://www.googleapis.com/customsearch/v1?key=[MY_KEY]&cx=017576662512468239146:omuauf_lfve&q=some+request&&safe=off&searchType=image&fileType=png. This cx is from google's manual
I must set cx param, but this value links my request to site, specified in cse control panel. However I don't want to limit my results to one site.
According to the documentation here:
Google Custom Search > Overview
Google Custom Search enables you to create a search engine for your website, your blog, or a collection of websites.
It doesn't sound like that is what you are trying to do (you don't seem to want to search a predefined subset of resources).
I'm aware the question is over 6 years old, but better late than never. It's possible to create a Google programmable search engine that can search the entire web for images. When you create a programmable search engine, there is an option to search the entire web instead of just web sites that you specify. See https://programmablesearchengine.google.com/about/.
As an alternative, you could try Bing Image Search API. There is a limit to the number of image searches you can submit per day for free, but I have rarely hit the limit.

Live Google search results in my website - can it be done?

I'm playing around with ideas for my dissertation.
Is it possible to get live search results from Google in my own webpage?
I found this example of a live search (similar to Twitters) but it uses it's own database, has Google got an API that I can access to pull through search results in a similar manner?
Example: http://demos.9lessons.info/instantsearch.php
Please refer to custom search JSON api. You would need Search engine ID and API key which can be obtained from Google Cloud Console.

accessing External Referrers with Facebook Graph API

How do I go about accessing External Referrers? I see this information in the new Insights/Reach, but can't find it in the Graph API at all.
thanks.
You can get them via the Graph API by querying into the FQL insights table.
https://developers.facebook.com/docs/reference/fql/insights/
An example of one of the referrals I see there is page_views_external_referrals, however, there are dozens more listed on that documentation page.

Google search results API usage?

My question is regarding the google AJAX search api. I have been trying to figure this out by exploring their site with no luck. How can I use this API on my site but have the results only be the google results from within my site (i.e. only shows the site:mydomain.com results and NOT the results from a standard google.com search)? Is this even allowed per their terms of usage? Thanks.
You can make a Google custom search and tie it to that.