Skip to content

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

sdk allowexternallinks

rafaelmmiller41b45a844b1c
diff --git a/apps/js-sdk/firecrawl/src/index.ts b/apps/js-sdk/firecrawl/src/index.ts
index 2b3ca2b35..cee054d4d 100644
--- a/apps/js-sdk/firecrawl/src/index.ts
+++ b/apps/js-sdk/firecrawl/src/index.ts
@@ -242,6 +242,7 @@ export interface ExtractParams {
prompt: string;
schema?: zt.ZodSchema;
systemPrompt?: string;
+ allowExternalLinks?: boolean;
}
/**
diff --git a/apps/python-sdk/firecrawl/firecrawl.py b/apps/python-sdk/firecrawl/firecrawl.py
index bae2797da..9dc9b47b3 100644
--- a/apps/python-sdk/firecrawl/firecrawl.py
+++ b/apps/python-sdk/firecrawl/firecrawl.py
@@ -29,6 +29,7 @@ class FirecrawlApp:
prompt: str
schema: Optional[Any] = None
system_prompt: Optional[str] = None
+ allow_external_links: Optional[bool] = False
class ExtractResponse(pydantic.BaseModel):
"""
@@ -484,7 +485,11 @@ class FirecrawlApp:
try:
response = self._post_request(
f'{self.api_url}/v1/extract',
- {**jsonData, 'schema': jsonSchema},
+ {
+ **jsonData,
+ 'allowExternalLinks': params.get('allow_external_links', False),
+ 'schema': jsonSchema
+ },
headers
)
if response.status_code == 200: