---
title: "Web Search"
description: "Answer a query from current web pages with OpenAI's web search, on your ChatGPT sign-in instead of an API key."
canonical: https://docs.nodetool.ai/nodes/codex/text/websearch
markdown: https://docs.nodetool.ai/nodes/codex/text/websearch.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/codex/text/websearch.md
---

# Web Search

**Type:** `codex.text.WebSearch`

**Namespace:** `codex.text`

## Description

Answer a query from current web pages with OpenAI's web search, on your ChatGPT sign-in instead of an API key.
    codex, chatgpt, openai, web, search, internet, current, sources

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| query | `str` | The question to research on the web. | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| text | `str` |  |
| sources | `list` |  |

## Related Nodes

Browse other nodes in the [codex.text](/nodes/codex/text/) namespace.
