A developer building a Dify agent that needs live web search results faces a multi-step problem: an HTTP Request node calling a plain search API returns URLs but not page content, so a separate node is needed to retrieve the content behind each result. Importing the EnConvert Lookup OpenAPI schema adds a custom tool that runs a web search and, when perceive_top is set, renders the top result pages in a real browser in the same round trip. The response comes back inline with no job_id and no polling. The imported web_search tool returns live search results and optionally rendered page Markdown for each top result, with no additional HTTP node.
How to Add Web Search to Dify
Add web search to a Dify agent with EnConvert Lookup, which returns live results and the rendered text of the top result pages in one round trip
Get API keyExample
json
{
"openapi": "3.0.0",
"info": {
"title": "EnConvert Lookup",
"description": "Web search for agents, with optional real-browser rendering of the top results.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://api.enconvert.com"
}
],
"paths": {
"/v2/lookup": {
"post": {
"operationId": "web_search",
"summary": "Search the web and optionally render the top result pages",
"description": "Search the web for current information. Returns ranked results with title, url, snippet, position, source and date. Set perceive_top to have the first N results rendered in a real browser; each rendered result includes perceive.outputs.markdown.url, a signed link to the page as Markdown that expires after 15 minutes. Use this tool whenever the user asks about recent events or facts that require current web information.",
"security": [
{
"ApiKeyAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["query"],
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 512,
"description": "The search query."
},
"category": {
"type": "string",
"default": "web",
"enum": ["web", "news", "images", "scholar", "patents", "maps"],
"description": "The search category."
},
"num_results": {
"type": "integer",
"default": 10,
"minimum": 1,
"maximum": 100,
"description": "Number of SERP results to return."
},
"perceive_top": {
"type": "integer",
"default": 0,
"minimum": 0,
"maximum": 10,
"description": "Render the first N result URLs in a real browser. Each rendered result bills 1 additional op."
},
"time_filter": {
"type": "string",
"enum": ["hour", "day", "week", "month", "year"],
"description": "Restrict results to a recency window."
},
"country": {
"type": "string",
"description": "Country code for localised results."
},
"locale": {
"type": "string",
"description": "Locale code for localised results."
}
}
}
}
}
},
"responses": {
"200": {
"description": "Search results.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": { "type": "string" },
"url": { "type": "string", "nullable": true },
"snippet": { "type": "string" },
"position": { "type": "integer" },
"source": { "type": "string" },
"date": { "type": "string" },
"perceive": {
"type": "object",
"description": "Present only on results that were rendered successfully.",
"properties": {
"outputs": {
"type": "object",
"properties": {
"markdown": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Signed Markdown URL, expires in 15 minutes."
}
}
}
}
}
}
}
}
}
},
"warnings": {
"type": "array",
"items": { "type": "string" }
}
}
}
}
}
},
"401": { "description": "Invalid API key." },
"402": { "description": "Ops allowance exhausted." },
"403": { "description": "Endpoint not on this key's allowlist." },
"422": { "description": "Validation failed." },
"502": { "description": "Provider error." },
"503": { "description": "Provider error." }
}
}
}
},
"components": {
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key"
}
}
}
}
What you get back
The agent receives SERP results with title, URL, snippet, position, source and date inline, plus a signed Markdown link to the rendered page for the first perceive_top results where rendering succeeded. An HTTP Request node calling a plain search API returns URLs with no page content, so each result needs its own node to retrieve the page. Lookup returns both in one round trip with no job_id and no polling.