985 questions
0
votes
0
answers
54
views
Azure Logic App GET to Google Custom Search returns 400 INVALID_ARGUMENT though same URL works in browser
I have a Consumption Logic App that retrieves two secrets from Key Vault (GOOGLE_API_KEY and GOOGLE_SEARCH_ENGINE_ID) and then calls Google Custom Search (customsearch.googleapis.com/customsearch/v1) ...
0
votes
1
answer
85
views
Using querySelector to find if a div exists in a Javascript Callback for Google Custom Search
I'm using the Javascript callback in Google Custom Search to style the web search results. https://developers.google.com/custom-search/docs/more_examples
I need to figure out a way using the ...
2
votes
1
answer
96
views
Creating and prepending a div with the Google Custom Search Javascript Callback
I'm using the Javascript callback in Google Custom Search to style the web search results.
https://developers.google.com/custom-search/docs/more_examples
One problem I have is with a simple loop to ...
1
vote
0
answers
148
views
How can I copy the css for the Custom Search engine search bar to make a similar looking dropdown box?
I tried copying the CSS from the developer tools when I inspected the search bar, but it doesn't exactly match the search bar's appearance. I don't know if it's possible, but if it is, it would be ...
0
votes
0
answers
138
views
Google CSE API returns different results than public CSE URL and regular Google search
I'm encountering inconsistent search results between Google's Custom Search JSON API, the public CSE URL, and regular Google searches despite identical queries and configuration. Here's my setup:
CSE ...
0
votes
1
answer
252
views
CSS styling while using a Javascript callback and tabs in Google Custom Search results
I'm using Google Custom Search (the hosted type, not the API) and have custom styled the results using the callback feature.
I have added margin-left on .gs-snippet to move the text snippet to the ...
0
votes
1
answer
79
views
Google Custom Search API returns 0 results for an indexed URL
I'm using the Google Custom Search JSON API to check whether a specific URL is indexed. However, even though I can find the page in Google manually, the API returns totalResults: 0
Here’s the URL I’m ...
0
votes
0
answers
100
views
How can I concatenate or append sorting variables to search URLs?
This is a followup to my earlier question How can I get tabbed site and image search results using Google Programmable Search?
I'm now trying to add date and sort parameters to the two URLs as ...
0
votes
1
answer
165
views
Query length in Custom Search API
I'm sending requests to Custom Search API like this:
GOOGLE_SEARCH_URL=f'https://www.googleapis.com/customsearch/v1?key={GOOGLE_SEARCH_API_KEY}&cx={SEARCH_ENGINE_ID}&q={encoded_text}'
The ...
3
votes
2
answers
292
views
How can I get tabbed site and image search results using Google Programmable Search?
I'm trying to develop a tabbed search results page using the Google Programmable Search Engine (PSE) and their JSON API in order to have the same appearance as Google's hosted search engine, which ...
0
votes
1
answer
81
views
Changing nested markup with getElementsByClassName
I'm working with the API of Google's Programmable Search Engine and using a callback to chnage the stying of output, specificaly the font size of the title of each search result snippet.
What I have ...
0
votes
0
answers
114
views
Is it possible to pass a location to the Google Custom Search API while querying it?
I'm working on integrating Google's Custom Search API into my application, and I’ve run into an issue with retrieving location-specific search results using the gl (geolocation) parameter.
What I’m ...
1
vote
0
answers
165
views
How to handle Google Custom Search API limitation of more than 32 keywords per request in Java?
I'm working with the Google Custom Search API in a Java Spring Boot application and facing a limitation where the API only supports up to 32 keywords per query. However, my application needs to ...
1
vote
0
answers
165
views
Differences Between API and Web Interface results in Google Custom Search Engine
I'm currently working on a project that utilizes the Google Custom Search Engine (CSE) API to retrieve fact-checked information based on user queries. However, I'm encountering a significant issue ...
0
votes
0
answers
85
views
Python exclude non accessible image with requests
I've written a really simple function with requests, which with a giver URL checks if it gets a response and if this response is an image. It actually works, but is crazy slow at times. I'm too
...
-1
votes
1
answer
348
views
How to get full title of website in google custom search api?
This is my code.
def google_search(query, **kwargs):
service = build("customsearch", "v1", developerKey=app.config.get("GOOGLE_API_KEY"))
res = service.cse().list(...
1
vote
0
answers
437
views
Google Programmable Search Engine Custom Search JSON API returning different results to CSE web interface for same Search engine ID
We see different results from the Google Programmable Search Engine Custom Search JSON API than from the Customer Search Engine web interface when using the exact same Search Engine ID. In some cases, ...
0
votes
0
answers
361
views
How can I extract more than ten results from Google's custom search API?
I've managed to wrangle this code together to turn a JSON file returned from a Google custom search engine into a .csv file. It works. The issue is that Google only returns ten results per page.
...
2
votes
1
answer
2k
views
I am getting a 403 "The caller does not have permission" error when using the Google Custom Search API that I haven't gotten before
I am getting the following error when I make calls to the Google Custom Search API:
{
"error": {
"code": 403,
"message": "The caller does not have ...
0
votes
1
answer
248
views
Searching inside the metadata of the PDF documents
I have been using Google custom search API for the following task:
Search for certain keywords with "filetype:pdf"
This works fine as expected, however it only allows searching within the ...
0
votes
0
answers
59
views
Google Custom Search Link Attribute Not Setting Properly
I am trying to accomplish the simple task of giving the user a checkbox in which they are able to set the link target for the results on a Google Custom Search "widget" (if you will). But ...
1
vote
1
answer
954
views
Why is my google programmable search engine showing "no results"?
I used Google programmable search engine to create a custom search for my website but every time I search something that I know is on the website I get the response "no results" but ads ...
1
vote
0
answers
317
views
Building a custom search engine that can search 1000 websites at once
I want to I build a custome search engine that has hundreds of websites. The problem with google's programmable search engine is that it becomes less accurate after 20 sites ""If your ...
-1
votes
1
answer
808
views
Why is my google custom search API call from python not working?
When I run the following code I am getting an error response (see the second snippet). I have checked and made sure the GOOGLE_SEARCH_KEY and the SEARCH_ENGINE_ID are valid and I have billing set up ...
0
votes
2
answers
778
views
How to download the images using google custom search api?
I have used google image api in python to download 500 images. After downloading few images, it is giving an bad request error. Below is the code
from google_images_search import GoogleImagesSearch
...
0
votes
1
answer
453
views
Excluding a list of urls or sites in Custom Search API
Excluding a list of urls in Custom Search API
Its good to be here and I hope I finally arrive at a solution after reading blogs, articles, community support answers and also Stackoverflows.
I'm trying ...
0
votes
0
answers
228
views
can't able to curl google even after using proxy
I'm trying to scrape data from google results and for this doing curl request which works fine for few searches but after that it starts showing "Our systems have detected unusual traffic from ...
1
vote
1
answer
463
views
Is there a way to get google's description through JSON?
I got the following code which is based on google api calls. What it currently returns is title + URL. What I am trying to get is the description of a linkedin page, and split the information in it by ...
1
vote
1
answer
127
views
How can I show the things I searched from Google Search Engine in the card layout?
I created a search engine with Google search engine and added it to my project. However, I am currently stuck. I want to stylize the results in a card layout and show them side by side. How can I ...
1
vote
1
answer
717
views
How can I paginate my items using custom search engine API?
I'm fetching data from the Google Custom Search Engine API in my ReactJs App. I know this API only returns the first 100 results and each page is divided in 10 results each.
My variable resultData....
0
votes
1
answer
729
views
Error while consuming the custom search engine google api
I have a ReactJs app with a search bar and i want to consume the API custom search engine of google and im having the following error:
"Request contains an invalid argument."
The docs of ...
0
votes
1
answer
282
views
printing the first item in google custom search api in python
I'm trying to conduct google custom search in python through api. by default it gives us 10 search results with items in it . what i want is to extract the item 'link' from all 10 results separately ...
0
votes
0
answers
608
views
Google Custom Search Engine does not appear in React project
I followed both the documentation, and the solution found here, on SO. But the input field just wouldn't load on localhost. It does however if I just add it into an index.html file.
<script ...
1
vote
0
answers
128
views
Custom search engine results differ between script and setup interface
I'm using Google custom search to download images from web, But when I search manually here (Where we tune the search engine) I get very good results, but when I do a query in python script I get too ...
0
votes
1
answer
311
views
Use full name as one word using Google Custom Search
I have a list of 14 keywords, as well as the name. I need to send a request through the Custom Search JSON API by building the following query:
"name * keyword1" OR "name * keyword2&...
1
vote
1
answer
2k
views
Google custom search: can't get api key
I want to programmatically search the web using Google, and after hours of Google searching I have found this answer, but it was written in 2016 and many things have changed since then.
Following the ...
0
votes
1
answer
275
views
Does Google Custom Search API returm ads data?
Is it possible to get google ads data with Google Custom Search API?
For example, is this possible if someone enters an input like "Cricket bats", all the ads running on that keyword show? ...
0
votes
1
answer
252
views
How can I parse through this JSON Response from Google Custom Search Engine?
Using a Custom Google Search Engine, I am getting this as a response:
// API callback
hndlr({
"kind": "customsearch#search",
"url": {
"type": "...
1
vote
0
answers
2k
views
How to search for web and images results from Google Custom Search JSON API?
I'm implementing Google's Custom Search JSON API into my application which shall search for both web and images. I am able to query for web and images independently.
For web: https://www.googleapis....
0
votes
0
answers
2k
views
Workaround for 403 error when using URLFETCH with Google Apps Script (external website)
I've used sof for many years (I almost always found all my answers!) but I'm quite stuck for the current project so this is the first time I post here. :)
I want to get the product price from www....
2
votes
0
answers
128
views
Google custom search missing information compared to google.com
I have created a programmable search engine to use inside Google custom search site restricted API but I don't see some information that appears when I search the exact same query. Can I change ...
0
votes
1
answer
1k
views
Google Custom Search Engine - Is it possible to make a script where I only get the results of a search word not written in the search bar?
I have a Spring Boot project with Thymeleaf where I try to search with an already given input that can be fetched with Thymeleaf, such that when they click a button the search word(s) from that input ...
0
votes
1
answer
1k
views
Google API Client returning 404 not fund
I am trying to get the best searches from google, using keyword, and GoogleAPI, but It is always returning "System.Net.WebException: 'The remote server returned an error: (404) Not Found.'"
...
1
vote
0
answers
59
views
Google Custom Search not sending data to Google Analytics
Google Custom Search data is not at all getting logged after configuring Google Analytics Site Search. It has stopped logging after July 2021. Do we need to manually push the data to GA?
4
votes
0
answers
627
views
Android Google Custom Search : Requested Entity Not Found Error
I want to use Google's Custom Search API to search for images by text entered by the user in the application.
I have done the following :
Created an API Key from here
Created a programmable search ...
1
vote
0
answers
225
views
Video tab in programmable search engine
i am working on kind of custom search engine provided by the google. i applied taht link into android studio using kotlin with help of webView.
everything is fine, Result are show with two tab(web,...
-1
votes
1
answer
501
views
How to get google search Results (Zero click search) from google API (Programmable Search Engine)? [closed]
when we search in google we get our extact answer without going into url or page. I want to get the same result from google api.
I do not get search result from API as I get results from browser.
I ...
0
votes
1
answer
1k
views
Google Programmable Search Engine: Search only for HTTPS websites
I want to configure my google search engine in order to search only for HTTPS websites. I found something like Google Programmable Search Engine. I am now struggling to configure the HTTPS-pattern of ...
0
votes
1
answer
1k
views
Pre-entered query in Google CSE (Custom Search Engine)
I'm trying to integrate Google custom search into my website using the code below:
<script async src="https://cse.google.com/cse.js?cx=aaa:bbb"></script>
<div class="gcse-...
1
vote
3
answers
1k
views
Limit number of ads in Google custom search
I am considering using Google Custom Search for my site. It seem to be pretty customizable and I can match my site's style. The only thing that holds e back is obscene number of ads shown above my ...