On Thursday, Anthropic unveiled a new web search capability integrated into its application programming interface (API). This enhancement enables developers and businesses to leverage Claude through the API, allowing for the creation of applications enriched with real-time knowledge and up-to-date information. The San Francisco-based artificial intelligence company stated that Claude will utilize reasoning to assess when a query could benefit from web search.
Anthropic API Finally Gets Web Search Support
In a recent announcement on its website, Anthropic introduced the incorporation of web search functionality within the Anthropic API. This launch follows the earlier implementation of the feature in the consumer version of Claude just two months prior. With this update, developers can now activate the web search tool when making requests to the Messages API, allowing the chatbot to provide real-world information.
Upon receiving a query with the web search feature enabled, Claude will employ its reasoning capabilities to decide if executing a search would enhance the response. If deemed necessary, it will create a specific search query, gather and analyze pertinent results, and deliver a detailed answer.
The API-version of Claude is designed to operate independently, conducting multiple separate web searches to gather comprehensive information for its responses. Developers can influence this behavior by adjusting the “max_uses” parameter according to their needs. Additionally, whenever Claude retrieves information from a web page, it will include proper citations.
For businesses, the Anthropic API offers further controls to ensure the retrieval of relevant information. The “Domain allow lists” feature enables organizations to specify which websites Claude can utilize for information, while the “Domain block lists” option allows them to restrict access to certain sites. Moreover, administrators can manage the web search feature at the organizational level, deciding whether to enable or disable it.
The new web search capability will also be incorporated into Claude Code, allowing the chatbot to access a range of web-based repositories, including technical articles, API documentation, code bases, tools, and libraries.