> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Serp API Web Search Node

> Query the Serp API Web Search API

<img src="https://mintcdn.com/vectorshift/YP4-JQlrCs6FGFt3/images/platform/pipelines/data-loaders/web-search-serper.png?fit=max&auto=format&n=YP4-JQlrCs6FGFt3&q=85&s=c248331f3fe1d79379ddfb8ccbfea36e" alt="Serp API Web Search" width="906" height="632" data-path="images/platform/pipelines/data-loaders/web-search-serper.png" />

This node queries the SERP web search API.

## Node Inputs

1. Search Query: The search text for the SERP web search
   * Type: `Text`
2. API Key: Your SERP API key
   * Type: `Text`

## Node Outputs

1. Output: The results from the SERP web search
   * Type: `List<Text>`
   * Example usage: `{{serp_api_0.output}}`

## Considerations

* API key is required.
* Click on the “+” button on the right of the node to create and connect the node to a [semantic search node](/platform/pipelines/knowledge/semantic-search) to enable semantic search on the search results.

## Example

The below example is a pipeline which queries the SERP web search API and answers the query: `What is the tallest building in New York?`.

1. Input Node: Represents the search query
2. Serp API Web Search Node: Queries the SERP web search API
   * Search Query: `{{input_0.text}}`
   * API Key: `[API Key]`
3. LLM Node: Uses the LLM to answer the query, based on the results of the SERP API results
   * System (Instruction): `Answer the question based on the context.`
   * Prompt: `Question: {{input_0.text}} Context: {{serp_api_0.output}}`
4. Output Node: Displays the answer
   * Output: `{{openai_0.output}}`

<img src="https://mintcdn.com/vectorshift/YP4-JQlrCs6FGFt3/images/platform/pipelines/data-loaders/web-search-serper-example.png?fit=max&auto=format&n=YP4-JQlrCs6FGFt3&q=85&s=f496760c432da20bb039e336d6569000" alt="Serp API Web Search Example" width="1906" height="828" data-path="images/platform/pipelines/data-loaders/web-search-serper-example.png" />
