Simple hello world on Search returning error, missing "integration" parameter in payload

I'm getting the following error in the most simple code for search
firecrawl.v2.utils.error_handler.BadRequestError: Bad Request: Failed to search. Invalid request body - [{'code': 'custom', 'message': "Invalid enum value. Expected 'dify' | 'zapier' | 'pipedream' | 'raycast' | 'langchain' | 'crewai' | 'llamaindex' | 'n8n' | 'camelai' | 'make' | 'flowise' | 'metagpt' | 'relevanceai'", 'path': ['integration']}]
firecrawl.v2.utils.error_handler.BadRequestError: Bad Request: Failed to search. Invalid request body - [{'code': 'custom', 'message': "Invalid enum value. Expected 'dify' | 'zapier' | 'pipedream' | 'raycast' | 'langchain' | 'crewai' | 'llamaindex' | 'n8n' | 'camelai' | 'make' | 'flowise' | 'metagpt' | 'relevanceai'", 'path': ['integration']}]
the code is:
python
from firecrawl import Firecrawl
firecrawl = Firecrawl(api_key=FIRECRAWL_API_KEY)

results = firecrawl.search(
"firecrawl",
sources=["web"],
limit=5,
location="BR"
)
python
from firecrawl import Firecrawl
firecrawl = Firecrawl(api_key=FIRECRAWL_API_KEY)

results = firecrawl.search(
"firecrawl",
sources=["web"],
limit=5,
location="BR"
)
What am i doing wrong?
7 Replies
vitor.deas
vitor.deasOP5w ago
I had to edit the file /Users/vitor/.pyenv/versions/3.12.4/envs/mbausp/lib/python3.12/site-packages/firecrawl/v2/methods/search.py and add the following:
data.pop("integration", None)
data.pop("integration", None)
micah.stairs
micah.stairs5w ago
Hey there! Which version of the Python SDK are you using?
vitor.deas
vitor.deasOP4w ago
% pip show firecrawl-py
Name: firecrawl-py
Version: 4.3.3
Summary: Python SDK for Firecrawl API
Home-page: https://github.com/firecrawl/firecrawl
Author: Mendable.ai
Author-email: "Mendable.ai" <nick@mendable.ai>
License: MIT License
Location: /Users/vitor/.pyenv/versions/mbausp/lib/python3.12/site-packages
Requires: aiohttp, httpx, nest-asyncio, pydantic, python-dotenv, requests, websockets
Required-by:
% pip show firecrawl-py
Name: firecrawl-py
Version: 4.3.3
Summary: Python SDK for Firecrawl API
Home-page: https://github.com/firecrawl/firecrawl
Author: Mendable.ai
Author-email: "Mendable.ai" <nick@mendable.ai>
License: MIT License
Location: /Users/vitor/.pyenv/versions/mbausp/lib/python3.12/site-packages
Requires: aiohttp, httpx, nest-asyncio, pydantic, python-dotenv, requests, websockets
Required-by:
hi! 4.3.3
micah.stairs
micah.stairs4w ago
We will get this bug fixed. Thanks for reporting it!
vitor.deas
vitor.deasOP4w ago
thanks a lot!
micah.stairs
micah.stairs4w ago
Hey Vitor, just pushed a fix. Thanks for letting us know. Should be good to go on 4.3.6.
vitor.deas
vitor.deasOP3w ago
thank you so much!

Did you find this page helpful?