import aiohttp import asyncio async def search_website(): payload = { "url": "https://www.artificialintelligence-news.com/", "query": "Latest AI News", "depth": 2 } headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" } async with aiohttp.ClientSession() as session: async with session.post( "https://api.browser-use.com/api/v1/search-url", json=payload, headers=headers ) as response: return await response.json() result = asyncio.run(search_website()) print(result)
{ "url": "https://example.com", "content": "Relevant content extracted from the website based on your query..." }
Extract specific content from a given URL using AI
1 cent × depth
Was this page helpful?