Skip to main content

Oxylabs Search Results

Overviewโ€‹

This notebook goes over how to use the Oxylabs search results component.

Integration detailsโ€‹

ClassPackage
OxylabsSearchResultlangchain-community

Tool featuresโ€‹

Returns artifactPricing
โœ…Free 5,000 results for 1 week

Setupโ€‹

The integration lives in the langchain-community package. We also need to install the oxylabs package.

%pip install -U langchain-community oxylabs
Looking in indexes: https://pypi.org/simple, https://gitlab%2Bdeploy-token-4:****@gitlab.snx.lt/api/v4/projects/25/packages/pypi/simple
Requirement already satisfied: langchain-community in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (0.3.5)
Requirement already satisfied: oxylabs in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (1.0.6)
Requirement already satisfied: PyYAML>=5.3 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (6.0.2)
Requirement already satisfied: SQLAlchemy<2.0.36,>=1.4 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (2.0.35)
Requirement already satisfied: aiohttp<4.0.0,>=3.8.3 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (3.10.6)
Requirement already satisfied: dataclasses-json<0.7,>=0.5.7 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (0.6.7)
Requirement already satisfied: httpx-sse<0.5.0,>=0.4.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (0.4.0)
Requirement already satisfied: langchain<0.4.0,>=0.3.6 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (0.3.7)
Requirement already satisfied: langchain-core<0.4.0,>=0.3.15 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (0.3.15)
Requirement already satisfied: langsmith<0.2.0,>=0.1.125 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (0.1.128)
Requirement already satisfied: numpy<2,>=1 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (1.26.4)
Requirement already satisfied: pydantic-settings<3.0.0,>=2.4.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (2.5.2)
Requirement already satisfied: requests<3,>=2 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (2.32.3)
Requirement already satisfied: tenacity!=8.4.0,<10,>=8.1.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-community) (8.5.0)
Requirement already satisfied: aiohappyeyeballs>=2.3.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (2.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (1.3.1)
Requirement already satisfied: attrs>=17.3.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (24.2.0)
Requirement already satisfied: frozenlist>=1.1.1 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (1.4.1)
Requirement already satisfied: multidict<7.0,>=4.5 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (6.1.0)
Requirement already satisfied: yarl<2.0,>=1.12.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (1.12.1)
Requirement already satisfied: async-timeout<5.0,>=4.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from aiohttp<4.0.0,>=3.8.3->langchain-community) (4.0.3)
Requirement already satisfied: marshmallow<4.0.0,>=3.18.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from dataclasses-json<0.7,>=0.5.7->langchain-community) (3.22.0)
Requirement already satisfied: typing-inspect<1,>=0.4.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from dataclasses-json<0.7,>=0.5.7->langchain-community) (0.9.0)
Requirement already satisfied: langchain-text-splitters<0.4.0,>=0.3.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain<0.4.0,>=0.3.6->langchain-community) (0.3.0)
Requirement already satisfied: pydantic<3.0.0,>=2.7.4 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain<0.4.0,>=0.3.6->langchain-community) (2.9.2)
Requirement already satisfied: jsonpatch<2.0,>=1.33 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-core<0.4.0,>=0.3.15->langchain-community) (1.33)
Requirement already satisfied: packaging<25,>=23.2 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-core<0.4.0,>=0.3.15->langchain-community) (24.1)
Requirement already satisfied: typing-extensions>=4.7 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langchain-core<0.4.0,>=0.3.15->langchain-community) (4.12.2)
Requirement already satisfied: httpx<1,>=0.23.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langsmith<0.2.0,>=0.1.125->langchain-community) (0.27.2)
Requirement already satisfied: orjson<4.0.0,>=3.9.14 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from langsmith<0.2.0,>=0.1.125->langchain-community) (3.10.7)
Requirement already satisfied: python-dotenv>=0.21.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from pydantic-settings<3.0.0,>=2.4.0->langchain-community) (1.0.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from requests<3,>=2->langchain-community) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from requests<3,>=2->langchain-community) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from requests<3,>=2->langchain-community) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from requests<3,>=2->langchain-community) (2024.8.30)
Requirement already satisfied: greenlet!=0.4.17 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from SQLAlchemy<2.0.36,>=1.4->langchain-community) (3.1.1)
Requirement already satisfied: anyio in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from httpx<1,>=0.23.0->langsmith<0.2.0,>=0.1.125->langchain-community) (4.6.0)
Requirement already satisfied: httpcore==1.* in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from httpx<1,>=0.23.0->langsmith<0.2.0,>=0.1.125->langchain-community) (1.0.5)
Requirement already satisfied: sniffio in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from httpx<1,>=0.23.0->langsmith<0.2.0,>=0.1.125->langchain-community) (1.3.1)
Requirement already satisfied: h11<0.15,>=0.13 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->langsmith<0.2.0,>=0.1.125->langchain-community) (0.14.0)
Requirement already satisfied: jsonpointer>=1.9 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from jsonpatch<2.0,>=1.33->langchain-core<0.4.0,>=0.3.15->langchain-community) (3.0.0)
Requirement already satisfied: annotated-types>=0.6.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from pydantic<3.0.0,>=2.7.4->langchain<0.4.0,>=0.3.6->langchain-community) (0.7.0)
Requirement already satisfied: pydantic-core==2.23.4 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from pydantic<3.0.0,>=2.7.4->langchain<0.4.0,>=0.3.6->langchain-community) (2.23.4)
Requirement already satisfied: mypy-extensions>=0.3.0 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from typing-inspect<1,>=0.4.0->dataclasses-json<0.7,>=0.5.7->langchain-community) (1.0.0)
Requirement already satisfied: exceptiongroup>=1.0.2 in /home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages (from anyio->httpx<1,>=0.23.0->langsmith<0.2.0,>=0.1.125->langchain-community) (1.2.2)

[notice] A new release of pip is available: 24.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Note: you may need to restart the kernel to use updated packages.

Credentialsโ€‹

Set up the proper API keys and environment variables. Create your API user credentials: Sign up for a free trial or purchase the product in the Oxylabs dashboard to create your API user credentials (OXYLABS_USERNAME and OXYLABS_PASSWORD).

import getpass
import os

os.environ["OXYLABS_USERNAME"] = getpass.getpass()
os.environ["OXYLABS_PASSWORD"] = getpass.getpass()

Instantiationโ€‹

from langchain_community.tools.oxylabs_search import OxylabsSearchResults
from langchain_community.utilities import OxylabsSearchAPIWrapper

oxylabs_wrapper = OxylabsSearchAPIWrapper()
tool_ = OxylabsSearchResults(wrapper=oxylabs_wrapper)

Invocationโ€‹

Invoke directly with argsโ€‹

The OxylabsSearchResults tool takes a single "query" argument, which should be a natural language query and returns all raw results in JSON format:

import json

response_results = tool_.invoke({"query": "Visit restaurants in Vilnius."})
response_results = json.loads(response_results)
for item in response_results:
print(item)
{'paid': [], 'organic': [{'pos': 1, 'url': 'https://www.tripadvisor.com/Restaurants-g274951-Vilnius_Vilnius_County.html', 'desc': 'Some of the best restaurants in Vilnius for families with children include: Momo grill Vilnius ยท Jurgis ir Drakonas Ogmios ยท RoseHip Vegan\xa0...', 'title': 'THE 10 BEST Restaurants in Vilnius (Updated November ...', 'sitelinks': {'inline': [{'url': 'https://www.tripadvisor.com/Restaurants-g274951-zfp58-Vilnius_Vilnius_County.html', 'title': 'Vilnius Dinner Restaurants'}, {'url': 'https://www.tripadvisor.com/Restaurants-g274951-zfp2-Vilnius_Vilnius_County.html', 'title': 'Vilnius Breakfast Restaurants'}, {'url': 'https://www.tripadvisor.com/Restaurants-g274951-c8-Vilnius_Vilnius_County.html', 'title': 'Cafรฉs in Vilnius'}]}, 'url_shown': 'https://www.tripadvisor.com โ€บ ... โ€บ Vilnius', 'pos_overall': 1, 'favicon_text': 'Tripadvisor'}, {'pos': 2, 'url': 'https://www.amsterdamfoodie.nl/2022/foodie-guide-to-vilnius-lithuania/', 'desc': 'Dec 2, 2022 โ€” Vilnius takes the top spot for most creative dining with the fabulous restaurant Amandus. Modern gastronomy, with a nod to Lithuanian tradition, goes hand in\xa0...', 'title': "A Foodie's Guide to Vilnius, Lithuania", 'url_shown': 'https://www.amsterdamfoodie.nl โ€บ blog', 'pos_overall': 2, 'favicon_text': 'Amsterdam Foodie'}, {'pos': 3, 'url': 'https://www.reddit.com/r/Vilnius/comments/uudd1p/good_restaurants_street_food_in_vilnius/', 'desc': '- Alinฤ— Leiฤiai - also traditional peasant food of history but in a more upscale environment, and more expensive, table service and more diverse\xa0...', 'title': 'Good restaurants & street food in Vilnius?', 'url_shown': '10+ comments  ยท  2 years ago', 'pos_overall': 3, 'favicon_text': 'Reddit\xa0ยท\xa0r/Vilnius'}, {'pos': 4, 'url': 'https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania', 'desc': "Jun 24, 2024 โ€” Lithuania's capital has established itself as an affordable culinary hotspot as four of the city's restaurants awarded Michelin stars.", 'title': 'Star quality: a foodie guide to Vilnius', 'sitelinks': {'inline': [{'url': 'https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania#:~:text=Nineteen18,-With%20its%20%60%60sleek%20and', 'title': 'Nineteen18'}, {'url': 'https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania#:~:text=D%C5%BEiaugsmas,-D%C5%BEiaugsmas', 'title': 'Dลพiaugsmas'}, {'url': 'https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania#:~:text=Gaspar%27s', 'title': "Gaspar's"}]}, 'url_shown': 'https://theweek.com โ€บ Culture & Life โ€บ Food & Drink', 'pos_overall': 4, 'favicon_text': 'The Week'}], 'local_pack': {'items': [{'cid': '13950149882539119249', 'pos': 1, 'title': 'Etno Dvaras', 'rating': 4.5, 'address': 'Lithuanian', 'rating_count': 0}, {'cid': '7630589473191639738', 'pos': 2, 'title': 'Senoji trobelฤ—', 'rating': 4.4, 'address': 'Lithuanian', 'rating_count': 0}, {'cid': '6362402554387935672', 'pos': 3, 'title': 'Ertlio Namas', 'rating': 4.7, 'address': 'ล v. Jono g. 7', 'subtitle': 'Lithuanian', 'rating_count': 0}], 'pos_overall': 5}, 'related_searches': {'pos_overall': 6, 'related_searches': ['Best restaurants in Vilnius old town', 'Best visit restaurants in vilnius', 'Unique places to eat in Vilnius', 'Best Lithuanian restaurants in Vilnius', 'Vilnius restaurants Michelin', 'Restaurants Vilnius old Town', 'Tripadvisor Vilnius Restaurants', 'Fine dining Vilnius']}, 'search_information': {'query': 'Visit restaurants in Vilnius.', 'geo_location': 'United States', 'showing_results_for': 'Visit restaurants in Vilnius.', 'total_results_count': 1250000}, 'total_results_count': 1250000}

Invoke with ToolCallโ€‹

from pprint import pprint

model_generated_tool_call = {
"args": {
"query": "Visit restaurants in Vilnius.",
"geo_location": "Vilnius,Lithuania",
},
"id": "1",
"name": "oxylabs_search",
"type": "tool_call",
}
tool_call_result = tool_.invoke(model_generated_tool_call)

# The content is a JSON string of results
pprint(tool_call_result.content)
('[{"paid": [], "organic": [{"pos": 1, "url": '
'"https://www.tripadvisor.com/Restaurants-g274951-Vilnius_Vilnius_County.html", '
'"desc": "Some of the best restaurants in Vilnius for families with children '
'include: Momo grill Vilnius \\u00b7 Jurgis ir Drakonas Ogmios \\u00b7 '
'RoseHip Vegan\\u00a0...", "title": "THE 10 BEST Restaurants in Vilnius '
'(Updated November ...", "sitelinks": {"inline": [{"url": '
'"https://www.tripadvisor.com/Restaurants-g274951-zfp58-Vilnius_Vilnius_County.html", '
'"title": "Vilnius Dinner Restaurants"}, {"url": '
'"https://www.tripadvisor.com/Restaurants-g274951-zfp2-Vilnius_Vilnius_County.html", '
'"title": "Vilnius Breakfast Restaurants"}, {"url": '
'"https://www.tripadvisor.com/Restaurants-g274951-c8-Vilnius_Vilnius_County.html", '
'"title": "Caf\\u00e9s in Vilnius"}]}, "url_shown": '
'"https://www.tripadvisor.com\\u203a ... \\u203a Vilnius", "pos_overall": 1, '
'"favicon_text": "Tripadvisor"}, {"pos": 2, "url": '
'"https://www.amsterdamfoodie.nl/2022/foodie-guide-to-vilnius-lithuania/", '
'"desc": "Dec 2, 2022 \\u2014 Vilnius takes the top spot for most creative '
'dining with the fabulous restaurant Amandus. Modern gastronomy, with a nod '
'to Lithuanian tradition, goes hand in\\u00a0...", "title": "A Foodie\'s '
'Guide to Vilnius, Lithuania", "url_shown": '
'"https://www.amsterdamfoodie.nl\\u203a blog", "pos_overall": 2, '
'"favicon_text": "Amsterdam Foodie"}, {"pos": 3, "url": '
'"https://www.reddit.com/r/Vilnius/comments/uudd1p/good_restaurants_street_food_in_vilnius/", '
'"desc": "- Alin\\u0117 Lei\\u010diai - also traditional peasant food of '
'history but in a more upscale environment, and more expensive, table service '
'and more diverse\\u00a0...", "title": "Good restaurants & street food in '
'Vilnius?", "url_shown": "10+ comments \\u00b7 2 years ago", "pos_overall": '
'3, "favicon_text": "Reddit\\u00a0\\u00b7\\u00a0r/Vilnius"}, {"pos": 4, '
'"url": '
'"https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania", '
'"desc": "Jun 24, 2024 \\u2014 Lithuania\'s capital has established itself as '
"an affordable culinary hotspot as four of the city's restaurants awarded "
'Michelin stars.", "title": "Star quality: a foodie guide to Vilnius", '
'"sitelinks": {"inline": [{"url": '
'"https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania#:~:text=Nineteen18,-With%20its%20%60%60sleek%20and", '
'"title": "Nineteen18"}, {"url": '
'"https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania#:~:text=D%C5%BEiaugsmas,-D%C5%BEiaugsmas", '
'"title": "D\\u017eiaugsmas"}, {"url": '
'"https://theweek.com/culture-life/food-drink/foodie-guide-to-vilnius-lithuania#:~:text=Gaspar%27s", '
'"title": "Gaspar\'s"}]}, "url_shown": "https://theweek.com\\u203a Culture & '
'Life \\u203a Food & Drink", "pos_overall": 4, "favicon_text": "The Week"}], '
'"local_pack": {"items": [{"cid": "13950149882539119249", "pos": 1, "title": '
'"Etno Dvaras", "rating": 4.5, "address": "Lithuanian", "rating_count": 0}, '
'{"cid": "7630589473191639738", "pos": 2, "title": "Senoji trobel\\u0117", '
'"rating": 4.4, "address": "Lithuanian", "rating_count": 0}, {"cid": '
'"6362402554387935672", "pos": 3, "title": "Ertlio Namas", "rating": 4.7, '
'"address": "\\u0160v. Jono g. 7", "subtitle": "Lithuanian", "rating_count": '
'0}], "pos_overall": 5}, "related_searches": {"pos_overall": 6, '
'"related_searches": ["Best restaurants in Vilnius old town", "Unique places '
'to eat in Vilnius", "Best visit restaurants in vilnius", "Best Lithuanian '
'restaurants in Vilnius", "Restaurants Vilnius old Town", "Vilnius '
'restaurants Michelin", "Fine dining Vilnius", "Tripadvisor Vilnius '
'Restaurants"]}, "search_information": {"query": "Visit restaurants in '
'Vilnius.", "geo_location": "United States", "showing_results_for": "Visit '
'restaurants in Vilnius.", "total_results_count": 1260000}, '
'"total_results_count": 1260000}]')

Chainingโ€‹

# Install the required libraries
%pip install --upgrade --quiet langchain langchain-openai langchainhub langchain-community

[notice] A new release of pip is available: 24.1 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Note: you may need to restart the kernel to use updated packages.
import getpass
import os

from langchain import hub
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_openai import ChatOpenAI

# Set up OpenAI API credentials
os.environ["OPENAI_API_KEY"] = getpass.getpass("Enter your OpenAI API key: ")

# Define assistant instructions and pull a base prompt template
instructions = """You are an assistant."""
base_prompt = hub.pull("langchain-ai/openai-functions-template")
prompt = base_prompt.partial(instructions=instructions)

# Initialize OpenAI chat model
llm = ChatOpenAI(openai_api_key=os.environ["OPENAI_API_KEY"])

# Define tools and agent setup
tool_ = OxylabsSearchResults(wrapper=oxylabs_wrapper)
tools_ = [tool_]
agent = create_tool_calling_agent(llm, tools_, prompt)

# Set up and invoke the agent executor
agent_executor = AgentExecutor(
agent=agent,
tools=tools_,
verbose=True,
)
agent_executor.invoke({"input": "What happened in the latest Burning Man floods?"})
/home/karolisk/workspace/langchain/.venv/lib/python3.10/site-packages/langsmith/client.py:323: LangSmithMissingAPIKeyWarning: API key must be provided when using hosted LangSmith API
warnings.warn(
``````output


> Entering new AgentExecutor chain...
``````output
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
``````output

Invoking: `oxylabs_search_results` with `{'query': 'latest Burning Man floods news', 'geo_location': 'Nevada,United States'}`


[{"paid": [], "videos": {"items": [{"pos": 1, "url": "https://www.youtube.com/watch?v=a1xBz6g1Kc8", "title": "Thousands leaving Burning Man festival after flooding from ...", "author": "YouTube"}, {"pos": 2, "url": "https://www.youtube.com/watch?v=SyoLFsB0qxc", "title": "Burning Man flooding leaves thousands isolated for days", "author": "YouTube"}, {"pos": 3, "url": "https://www.youtube.com/watch?v=iu_42b9vTJM", "title": "Burning Man festival-goers trapped in Nevada desert as rain ...", "author": "YouTube"}], "pos_overall": 1}, "organic": [{"pos": 1, "url": "https://abcnews.go.com/US/burning-man-flooding-happened-stranded-festivalgoers/story?id=102908331", "desc": "Sep 4, 2023 \u2014 Tens of thousands of Burning Man attendees are now able to leave the festival after a downpour and massive flooding left them stranded over the weekend.", "title": "Burning Man flooding: What happened to stranded ...", "url_shown": "https://abcnews.go.com", "pos_overall": 2, "favicon_text": "ABC News - Breaking News, Latest News and Videos"}, {"pos": 2, "url": "https://www.foxweather.com/weather-news/burning-man-festivalgoers-experience-travel-issues-black-rock-city-nevada-rain", "desc": "Aug 24, 2024 \u2014 Monsoon rains on Friday and over the weekend caused flash flooding at Burning Man, turning the usually dry, desert landscape of the festival\u00a0...", "title": "Travel to Burning Man delayed due to thunderstorms", "url_shown": "https://www.foxweather.com", "pos_overall": 3, "favicon_text": "FOX Weather"}, {"pos": 3, "url": "https://www.outsideonline.com/outdoor-adventure/exploration-survival/burning-man-2023-flooding-rain/", "desc": "Sep 6, 2023 \u2014 When storms left Burning Man 2023 a muddy mess, attendees plotted their way out.", "title": "How One Man Escaped From Burning Man 2023's Floods", "url_shown": "https://www.outsideonline.com", "pos_overall": 4, "favicon_text": "Outside Magazine"}, {"pos": 4, "url": "https://www.nbcnews.com/news/us-news/live-blog/live-updates-burning-man-flooding-keeps-thousands-stranded-nevada-site-rcna103193", "desc": "Sep 4, 2023 \u2014 Burning Man flooding keeps thousands stranded at Nevada site as authorities investigate 1 death. Attendees at the countercultural music and arts\u00a0...", "title": "Burning Man flooding keeps thousands stranded at ...", "url_shown": "https://www.nbcnews.com", "pos_overall": 5, "favicon_text": "NBC News"}], "related_searches": {"pos_overall": 6, "related_searches": ["Latest burning man floods news today", "Latest burning man floods news nevada", "Burning Man 2023 flood death", "Burning Man 2023 Flood pictures", "Burning Man flood 2024", "Flooded Festival 2024", "Burning Man 2024", "Burning Man tickets"]}, "search_information": {"query": "latest Burning Man floods news", "geo_location": "United States", "showing_results_for": "latest Burning Man floods news", "total_results_count": 32000000}, "total_results_count": 32000000}]
``````output
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
``````output
The latest Burning Man festival experienced flooding due to monsoon rains, causing flash flooding at the event in Black Rock City, Nevada. Tens of thousands of attendees were stranded at the festival site over the weekend. Authorities investigated one death related to the flooding. Festival-goers faced travel delays and challenges as they navigated the muddy conditions caused by the floods. If you would like more detailed information, you can read further on [ABC News](https://abcnews.go.com/US/burning-man-flooding-happened-stranded-festivalgoers/story?id=102908331).

> Finished chain.
{'input': 'What happened in the latest Burning Man floods?',
'output': 'The latest Burning Man festival experienced flooding due to monsoon rains, causing flash flooding at the event in Black Rock City, Nevada. Tens of thousands of attendees were stranded at the festival site over the weekend. Authorities investigated one death related to the flooding. Festival-goers faced travel delays and challenges as they navigated the muddy conditions caused by the floods. If you would like more detailed information, you can read further on [ABC News](https://abcnews.go.com/US/burning-man-flooding-happened-stranded-festivalgoers/story?id=102908331).'}
agent_executor.invoke(
{"input": "What is the most profitable company in lithuania in 2024?"}
)


> Entering new AgentExecutor chain...
``````output
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
``````output

Invoking: `oxylabs_search_results` with `{'query': 'most profitable company in Lithuania 2024'}`


[{"paid": [], "organic": [{"pos": 1, "url": "https://ceoworld.biz/2024/02/19/lithuanias-largest-companies-by-market-capitalization-2024/", "desc": "Feb 19, 2024 \u2014 As of October 24, 2024, AB IGNITIS GRUPE is the most valuable company in Lithuania, with a market cap of $1.51 billion. Following it are TELIA\u00a0...", "title": "Lithuania's Largest Companies by market capitalization, ...", "url_shown": "https://ceoworld.biz\u203a Latest \u203a Banking and Finance", "pos_overall": 1, "favicon_text": "CEOWORLD magazine"}, {"pos": 2, "url": "https://lithuania.lt/news/business-and-innovations-in-lithuania/which-startups-will-be-making-waves-in-lithuania-in-2024/", "desc": "Jan 23, 2024 \u2014 Which startups will be making waves in Lithuania in 2024? \u00b7 1. Cast AI: \u00b7 2. Amlyze: \u00b7 3. Vinted Go: \u00b7 4. PV Case: \u00b7 5. Atrandi Biosciences: \u00b7 6.", "title": "Which startups will be making waves in Lithuania in 2024?", "url_shown": "https://lithuania.lt\u203a News", "pos_overall": 2, "favicon_text": "lithuania.lt"}, {"pos": 3, "url": "https://www.f6s.com/companies/lithuania/lo", "desc": "Oct 24, 2024 \u2014 Detailed info and reviews on 100 top companies and startups in Lithuania in 2024. Get the latest updates on their products, jobs, funding,\u00a0...", "title": "100 top Companies and Startups in Lithuania in October ...", "url_shown": "https://www.f6s.com\u203a companies \u203a lithuania", "pos_overall": 3, "favicon_text": "F6S"}, {"pos": 4, "url": "https://www.eu-startups.com/2024/02/10-promising-lithuanian-startups-you-should-keep-an-eye-on-in-2024/", "desc": "Feb 13, 2024 \u2014 Prominent startups such as NordSecurity and Surfshark doubled their valuations. Noteworthy sectors experiencing considerable traction include\u00a0...", "title": "10 promising Lithuanian startups you should keep an eye ...", "url_shown": "https://www.eu-startups.com\u203a Lithuania-Startups", "pos_overall": 4, "favicon_text": "EU-Startups"}, {"pos": 5, "url": "https://www.hithorizons.com/eu/analyses/country-statistics/lithuania", "desc": "Lithuania: TOP 10 Companies with Highest Sales 194,288 registered companies ; 1. ORLEN LIETUVA AB \u20ac 4.264B ; 2. MAXIMA LT UAB \u20ac 1.985B ; 3. THERMO FISHER\u00a0...", "title": "Industry Breakdown of Companies in Lithuania", "url_shown": "https://www.hithorizons.com\u203a analyses \u203a country-statistics", "pos_overall": 5, "favicon_text": "HitHorizons.com"}], "related_searches": {"pos_overall": 6, "related_searches": ["Top 10 most profitable company in lithuania 2024", "Top 20 most profitable company in lithuania 2024", "Most profitable company in lithuania 2024 by revenue", "International companies in Lithuania", "IT companies in Lithuania", "Best companies to work in Lithuania", "Manufacturing companies in Lithuania", "Industries in Lithuania"]}, "search_information": {"query": "most profitable company in Lithuania 2024", "geo_location": "United States", "showing_results_for": "most profitable company in Lithuania 2024", "total_results_count": 63000000}, "total_results_count": 63000000}]
``````output
INFO:httpx:HTTP Request: POST https://api.openai.com/v1/chat/completions "HTTP/1.1 200 OK"
``````output
The most valuable company in Lithuania in 2024 is AB IGNITIS GRUPE, with a market capitalization of $1.51 billion.

> Finished chain.
{'input': 'What is the most profitable company in lithuania in 2024?',
'output': 'The most valuable company in Lithuania in 2024 is AB IGNITIS GRUPE, with a market capitalization of $1.51 billion.'}

API referenceโ€‹

For detailed documentation of all OxylabsSearchResults features and configurations head to the API reference: https://python.langchain.com/api_reference/community/tools/langchain_community.tools.oxylabs_search.tool.OxylabsSearchResult.html


Was this page helpful?