Web Search
Real-time web search integration with the Responses API Alpha
Alpha API
This API is in alpha stage and may have breaking changes.
The Responses API Alpha supports web search integration, allowing models to access real-time information from the internet and provide responses with proper citations and annotations.
Web Search Plugin
Enable web search using the plugins
parameter:
Plugin Configuration
Configure web search behavior:
Structured Message with Web Search
Use structured messages for more complex queries:
Online Model Variants
Some models have built-in web search capabilities using the :online
variant:
Response with Annotations
Web search responses include citation annotations:
Annotation Types
Web search responses can include different annotation types:
URL Citation
Complex Search Queries
Handle multi-part search queries:
Web Search in Conversation
Include web search in multi-turn conversations:
Streaming Web Search
Monitor web search progress with streaming:
Annotation Processing
Extract and process citation information:
Best Practices
- Limit results: Use appropriate
max_results
to balance quality and speed - Handle annotations: Process citation annotations for proper attribution
- Query specificity: Make search queries specific for better results
- Error handling: Handle cases where web search might fail
- Rate limits: Be mindful of search rate limits
Next Steps
- Learn about Tool Calling integration
- Explore Reasoning capabilities
- Review Basic Usage fundamentals