Skip to content
Browse all functions

Web Search – Tavily or Google Results

data/websearch

websearch (Web Search – Tavily or Google Results) is a 1001fx API function in the group Data & JSON: POST https://api.1001fx.com/data/websearch, 12 credits per item. It works as a ready-made module in Make or as a plain HTTP call.

Searches the web and returns results in one format, with Tavily (a list of results with snippets) or Google (an AI answer with its source links). The query goes to the chosen provider. Tavily costs 12 credits per search, 24 with searchDepth advanced. Google costs 24 credits per query the model runs, a call can run several. Failed searches are not charged.

  • This service is provided by an external service provider: Tavily, Google. The data of the call is sent to the provider. More about service providers

Try it in the 1001fx app

Run websearch in your browser with your API key – fill the form, click Run and get the answer or the file.

websearch in the 1001fx app: the form with example values
Web Search – Tavily or Google Results in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/data/websearch
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • querystringrequired

    What to search for, at most 400 characters.

    Example:
    What does the EU AI Act require from small companies?
  • providerenumoptional

    tavily (default) returns a list of results with snippets. google returns an AI answer with its source links and is charged per query the model runs. Show a google answer only together with its searchSuggestions, to the person who asked.

    Values:
    tavily
    google
    Default:
    tavily
  • maxResultsnumberoptional

    Number of results, 1 to 20. Tavily only.

    Default:
    5
    Min:
    1
    Max:
    20
  • searchDepthenumoptional

    basic (default) or advanced (more relevant snippets, twice the credits). Tavily only.

    Values:
    basic
    advanced
    Default:
    basic
  • topicenumoptional

    general (default), news or finance. Tavily only.

    Values:
    general
    news
    finance
    Default:
    general
  • timeRangeenumoptional

    Only results from the last day, week, month or year. Tavily only.

    Values:
    day
    week
    month
    year
  • includeAnswerbooleanoptional

    Adds a short AI answer to the results. Tavily only, google always answers.

    Default:
    false
  • includeDomainsarray<string>optional

    Search only these domains, at most 300. Tavily only.

  • excludeDomainsarray<string>optional

    Leave out these domains, at most 150. Tavily only.

Examples

Search with Tavily

Web Search – Tavily or Google Results

Input

Expects a json body
{
  "query": "What does the EU AI Act require from small companies?"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/data/websearch' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"What does the EU AI Act require from small companies?"}'

Search with Google

Returns an AI answer with its source links. Show it together with searchSuggestions.

Input

Expects a json body
{
  "query": "What does the EU AI Act require from small companies?",
  "provider": "google"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/data/websearch' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"What does the EU AI Act require from small companies?","provider":"google"}'

Try websearch now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created
Ask 1001fx