Google Custom Search Does not show correct results - ajax

I'm creating an app in javascript in which I need some total number of google results. I tried using Google custom search api but it does not show all the results and the number of results are less than the number of results on google search.
Many people are facing this problem, I have tried some solutions but didn't work for me. I wonder how some sites are able to get exact results for a keyword on google.

me too.
The result is 0 when searchType = image.
enter image description here

Related

Correct way to search videos with multiple keywords with OR condition for youtube search API

I'm trying to use youtube data search and video API in my web application to display top view-counted videos related with several keywords. I'm planing to use totally two calls: the first call get id list with search API, and the second call get details for the ids hit on the first call, with video API.
My question is with regard to search API. Based on my trial and error, If I input multiple keyword with space separation in the parameter q for search API, it's looks behaves as AND condition it's not same as common behavior such as google. To search with multiple keywords with OR condition, As far as I tried, it's looks working if I Include the OR between keywords, but I would like to confirm my assumption correct, officially if possible.
I should be able to find this kind of specification in the official documentation, but finally I have no luck. It's very helpful if you could share these links if exists or give me the official answer.
By the way, it is my first post to stackoverflow. If there is missing point of my question, please kindly advice.

Large discrepancy in quantmod "getSymbols" data vs. online yahoo data

Using:
getSymbols("LMT")
I get the the following returns data
As can be seen the Adj. price is very different to closing. Going to yahoo you also see different results:
Here the Adj. prtice is $77 on the 9tnh vs $60 for the getSymobls data
Any Idea why the $17 difference or how to correct it?
Yahoo is just broken in some cases. Sometimes, what is displayed on their web page differs from what their API returns. If you click on the "download data link", you will see that what the Yahoo API returns and that it matches the quantmod results.
http://chart.finance.yahoo.com/table.csv?s=LMT&a=5&b=1&c=2010&d=5&e=30&f=2010&g=d&ignore=.csv
In this particular case, the API data seems to make more sense. If you add up the dividends (which yahoo adjust for, along with splits), you get the adjusted price. You can get the dividends with getDividends("LMT", src="yahoo", auto.assign = FALSE)
I have seen these internal discrepancies cropping up more and more frequently with Yahoo. Caveat emptor
I just found the same problem while looking into GSPC but both results website's and the API's disagree with my own extraction using this:
getSymbols('GSPC',src='yahoo',return.class = 'xts',from = Sys.Date()-10,auto.assign=FALSE,to = Sys.Date())

Google Sitelinks don't appear with the domain in some search cases

I'm facing a weird problem with Google search , when I search for my website using these keywords "dardasha newspaper" ... I got the expected correct result. my site comes first with site-links included.
https://www.google.com/search?q=dardasha+newspaper&ie=utf-8&oe=utf-8
But when I search for my website using these keywords "جريدة دردشة", I got the correct result but with no site-links
https://www.google.com/search?q=dardasha+newspaper&ie=utf-8&oe=utf-8#q=%D8%AC%D8%B1%D9%8A%D8%AF%D8%A9+%D8%AF%D8%B1%D8%AF%D8%B4%D8%A9
Even my website's language is "Arabic" - the second one used for the search. ... Why are the search results different based on used keywords?
The results are expanded to site-links in Google results when you search by website domain or very close.
Your website is www.dardashanewspaper.com and you searched by dardasha newspaper which is the domain name.
Another problem is that Google thinks that dardasha in Arabic is : درداشا not دردشة.

Google Places API no Longer Returns Picture Links for Radius Searches, Only RankBy Distance?

I am seeing a recent change to the Google Places API where, when I run a query like so, I get photos.
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=34.1686107,-83.9003022&rankby=distance&types=bakery|food|cafe|restaurant&key=xyz
When I run one like so, I no longer get photos.
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=34.203979,-83.943787&radius=2000&types=bakery|food|cafe|restaurant&key=xyz
Is anyone else seeing this issue? The only difference is the radius vs. rankby argument. I used to see the photos for both queries.
Thanks!

How does Market Samurai and Long Tail Pro handle retrieving the top 10 Google search results for a keyword?

I'm curious to know how Market Samurai, Long Tail Pro and other software handle retrieving the top 10 Google search results and not running into limits. It appears that these software packages use the users own Google account. Google Custom Search limits users to 100 queries per day (the free limit) but people tend to do keyword research on hundreds or even thousands of keywords per day and don't pay any additional amounts to Google.
Are they paying extra for this service, are they using a different API (perhaps the Adwords API?) or are they scraping the Google search results page (violation of TOS)? Really would like to know! Thanks.
i have done this in one of my project (in java).
this is very simple, in java there is one library call JSoup by using this library you can send get request to google, for example:
https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=<your url encoded search term>
this will return you an HTML code of google search result with your own term.
using Jsoup u can find specific HTML tag with specific class or id. this concept helps you to extract url link, title and description from google search result.
for working example check here, in that example you can extract google serach result links with custom search term.
i hope this will help you.

Resources