Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Nick: fixed integrations bug in search method

Nicolas18c4b13b2260
diff --git a/apps/python-sdk/firecrawl/__init__.py b/apps/python-sdk/firecrawl/__init__.py
index e4d2c1fa5..c6e140c62 100644
--- a/apps/python-sdk/firecrawl/__init__.py
+++ b/apps/python-sdk/firecrawl/__init__.py
@@ -17,7 +17,7 @@ from .v1 import (
V1ChangeTrackingOptions,
)
-__version__ = "4.3.5"
+__version__ = "4.3.6"
# Define the logger for the Firecrawl project
logger: logging.Logger = logging.getLogger("firecrawl")
diff --git a/apps/python-sdk/firecrawl/v2/methods/search.py b/apps/python-sdk/firecrawl/v2/methods/search.py
index 46a2615a2..113cf64a2 100644
--- a/apps/python-sdk/firecrawl/v2/methods/search.py
+++ b/apps/python-sdk/firecrawl/v2/methods/search.py
@@ -194,7 +194,11 @@ def _prepare_search_request(request: SearchRequest) -> Dict[str, Any]:
data["scrapeOptions"] = scrape_data
data.pop("scrape_options", None)
- if (str(getattr(validated_request, "integration", "")).strip()):
- data["integration"] = str(validated_request.integration).strip()
+ # Only include integration if it was explicitly provided and non-empty
+ integration_value = getattr(validated_request, "integration", None)
+ if integration_value is not None:
+ integration_str = str(integration_value).strip()
+ if integration_str:
+ data["integration"] = integration_str
return data