# google (3)

Search

/search API endpoint allows you to scrape the results from Google search engine via our SerpApi service.

### Request samples <a href="#kape6koulevp" id="kape6koulevp"></a>

In the following example, we are requesting a page of results for the search term coffee.

#### curl <a href="#ukwis3sc1ah4" id="ukwis3sc1ah4"></a>

curl --get <https://serpapi.abcproxy.com/search>

-d engine="google"

-d q="Coffee"

-d no\_cache=“false”

#### cuby <a href="#g1yvfqur7vs7" id="g1yvfqur7vs7"></a>

require 'google\_search\_results'

params = {

engine: "google",

q: "Coffee",

no\_cache: "false",

}

search = GoogleSearch.new(params)

hash\_results = search.get\_hash

剩下的还有其他程序的代码

### Geographic Location <a href="#cmpiy5z4ob7a" id="cmpiy5z4ob7a"></a>

| Source         | Default Value | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| -------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| location       | -             | Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the [/locations.json API](https://serpapi.com/locations-api) if you need more precise control. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy. |
| uule           | -             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| google\_search | -             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |

### Advanced Google Parameters <a href="#jdsa37qu4hzg" id="jdsa37qu4hzg"></a>

| Source         | Default Value | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| -------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| location       | -             | Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the [/locations.json API](https://serpapi.com/locations-api) if you need more precise control. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy. |
| uule           | -             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| google\_search | -             |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doctest.linkstatic.com/google-3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
