web_search

TBD

TOOLWEB_SEARCH

Parameters for the web search request.

Required attributes

  • Name
    query
    Type
    string
    Description

    Query to search in google. Can include quotes, google dorks, exclusions, etc... Just like in normal google. You can write accents and unicode characters directly without escaping them.

    1 length 100

Optional attributes

  • Name
    location
    Type
    string
    Description

    Location to search from. For example: Spain, Mexico, France, etc...

    2 length 16

  • Name
    language
    Type
    string
    Description

    Language code in which to show the results. For example: en, fr, es, pl, etc...

    2 length 2

    en
    
  • Name
    page
    Type
    integer
    Description

    The page of the search results to show. Default is 1, and for follow up paginations it can be 2, 3, 4,.. 10.

    1
    
  • Name
    num
    Type
    integer
    Description

    The number of results to show per page. Default is 10, other possible values are: 20, 30, 40, 50, 100

    10
    
  • Name
    tbs
    Type
    string
    Description

    The time based search to filter the results. Default is empty, other possible values are: qdr:y (last year), qdr:m (last month), qdr:w (last week), qdr:d (last day)

  • Name
    autocorrect
    Type
    boolean
    Description

    Whether to autocorrect the query. Default is False.

    False
    

Function Call

TOOL
WEB_SEARCH
#### WEB_SEARCH
```json
{
  "query": "artificial intelligence"
}
```

Response

#### Success

Was this page helpful?