Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. π₯
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
docs: rename the index
PhantomInTheWire929582d1f3bc
diff --git a/apps/js-sdk/firecrawl/README.md b/apps/js-sdk/firecrawl/README.mdindex 2b9663246..a09467c9c 100644--- a/apps/js-sdk/firecrawl/README.md+++ b/apps/js-sdk/firecrawl/README.md@@ -236,9 +236,9 @@ console.log(evidence.repos); // indexed-status echoes for requested repos`archived`, `fork`, and `skills: 'only'`. Supplying both `repos` and `sources`OR-combines GitHub-backed and documentation results.-### Legal and regulatory search+### Government search-Use `legalRegulatorySearch` to search the Legal and Regulatory Index: primary+Use `legalRegulatorySearch` to search the Firecrawl Government Index: primarylaw and regulatory material from US federal, state, and local governmentsources, including statutes, regulations, codes, court opinions, and othergovernment publications. Results come back in the ordinary web-result shape.diff --git a/apps/js-sdk/firecrawl/src/v2/client.ts b/apps/js-sdk/firecrawl/src/v2/client.tsindex 975b034cd..945609796 100644--- a/apps/js-sdk/firecrawl/src/v2/client.ts+++ b/apps/js-sdk/firecrawl/src/v2/client.ts@@ -310,7 +310,7 @@ export class FirecrawlClient {}/**- * Search the Legal and Regulatory Index: primary law and regulatory material+ * Search the Government Index: primary law and regulatory material* from US federal, state, and local government sources.*/async legalRegulatorySearch(diff --git a/apps/js-sdk/firecrawl/src/v2/methods/legalRegulatory.ts b/apps/js-sdk/firecrawl/src/v2/methods/legalRegulatory.tsindex b4baaab27..8b7e797a3 100644--- a/apps/js-sdk/firecrawl/src/v2/methods/legalRegulatory.ts+++ b/apps/js-sdk/firecrawl/src/v2/methods/legalRegulatory.ts@@ -10,7 +10,7 @@ import {const ENDPOINT = "/v2/search/gov";-/** Search the Legal and Regulatory Index. */+/** Search the Government Index. */export async function legalRegulatorySearch(http: HttpClient,query: string,@@ -25,12 +25,12 @@ export async function legalRegulatorySearch(});if (response.status !== 200 || !response.data?.success) {- throwForBadResponse(response, "search legal and regulatory sources");+ throwForBadResponse(response, "search the Government Index");}return response.data;} catch (error: any) {if (error?.isAxiosError) {- return normalizeAxiosError(error, "search legal and regulatory sources");+ return normalizeAxiosError(error, "search the Government Index");}throw error;}diff --git a/apps/js-sdk/firecrawl/src/v2/types.ts b/apps/js-sdk/firecrawl/src/v2/types.tsindex 5ef12d48c..283531ff2 100644--- a/apps/js-sdk/firecrawl/src/v2/types.ts+++ b/apps/js-sdk/firecrawl/src/v2/types.ts@@ -983,7 +983,7 @@ export interface AlexandriaOptions {* - `pdf` β restrict results to PDFs (adds `filetype:pdf`).* - `developer` β developer-index results (issues, pull requests, READMEs and* documentation) served in `web`; cannot be combined with other categories.- * - `gov` β legal and regulatory results served in `web`; cannot be combined+ * - `gov` β Government Index results served in `web`; cannot be combined* with other categories.** β οΈ `categories: ["research"]` is **not** Firecrawl's research paper index.diff --git a/apps/python-sdk/README.md b/apps/python-sdk/README.mdindex 517399473..98095bf64 100644--- a/apps/python-sdk/README.md+++ b/apps/python-sdk/README.md@@ -258,9 +258,9 @@ print(evidence.repos) # indexed-status echoes for requested repos`archived`, `fork`, and `skills="only"`. Supplying both `repos` and `sources`OR-combines GitHub-backed and documentation results.-### Legal and regulatory search+### Government search-Use `legal_regulatory_search` to search the Legal and Regulatory Index: primary+Use `legal_regulatory_search` to search the Firecrawl Government Index: primarylaw and regulatory material from US federal, state, and local governmentsources, including statutes, regulations, codes, court opinions, and othergovernment publications. Results come back in the ordinary web-result shape.diff --git a/apps/python-sdk/firecrawl/v2/client.py b/apps/python-sdk/firecrawl/v2/client.pyindex 3aaea5a0f..0ece91cc2 100644--- a/apps/python-sdk/firecrawl/v2/client.py+++ b/apps/python-sdk/firecrawl/v2/client.py@@ -592,7 +592,7 @@ class FirecrawlClient:query: str,k: Optional[int] = None,) -> LegalRegulatorySearchResponse:- """Search the Legal and Regulatory Index of US primary law and regulatory material."""+ """Search the Government Index of US primary law and regulatory material."""return legal_regulatory_module.legal_regulatory_search(self.http_client, query, k=k)diff --git a/apps/python-sdk/firecrawl/v2/client_async.py b/apps/python-sdk/firecrawl/v2/client_async.pyindex c698d9569..d2bc611bc 100644--- a/apps/python-sdk/firecrawl/v2/client_async.py+++ b/apps/python-sdk/firecrawl/v2/client_async.py@@ -363,7 +363,7 @@ class AsyncFirecrawlClient:query: str,k: Optional[int] = None,) -> LegalRegulatorySearchResponse:- """Search the Legal and Regulatory Index of US primary law and regulatory material."""+ """Search the Government Index of US primary law and regulatory material."""return await async_legal_regulatory.legal_regulatory_search(self.async_http_client, query, k=k)diff --git a/apps/python-sdk/firecrawl/v2/methods/aio/legal_regulatory.py b/apps/python-sdk/firecrawl/v2/methods/aio/legal_regulatory.pyindex 6d27bd365..4ef5b1d27 100644--- a/apps/python-sdk/firecrawl/v2/methods/aio/legal_regulatory.py+++ b/apps/python-sdk/firecrawl/v2/methods/aio/legal_regulatory.py@@ -1,4 +1,4 @@-"""Async Legal and Regulatory Index search functionality for Firecrawl v2."""+"""Async Government Index search functionality for Firecrawl v2."""from typing import Optional@@ -16,15 +16,15 @@ async def legal_regulatory_search(*,k: Optional[int] = None,) -> LegalRegulatorySearchResponse:- """Search the Legal and Regulatory Index asynchronously."""+ """Search the Government Index asynchronously."""if not query or not query.strip():raise ValueError("query cannot be empty")request = LegalRegulatorySearchRequest(query=query, k=k)response = await client.post(ENDPOINT, request.model_dump(exclude_none=True))if response.status_code != 200:- handle_response_error(response, "search legal and regulatory sources")+ handle_response_error(response, "search the Government Index")response_data = response.json()if not response_data.get("success"):- handle_response_error(response, "search legal and regulatory sources")+ handle_response_error(response, "search the Government Index")return LegalRegulatorySearchResponse.model_validate(response_data)diff --git a/apps/python-sdk/firecrawl/v2/methods/legal_regulatory.py b/apps/python-sdk/firecrawl/v2/methods/legal_regulatory.pyindex e168c1359..0db499a18 100644--- a/apps/python-sdk/firecrawl/v2/methods/legal_regulatory.py+++ b/apps/python-sdk/firecrawl/v2/methods/legal_regulatory.py@@ -1,4 +1,4 @@-"""Legal and Regulatory Index search functionality for Firecrawl v2."""+"""Government Index search functionality for Firecrawl v2."""from typing import Optional@@ -15,15 +15,15 @@ def legal_regulatory_search(*,k: Optional[int] = None,) -> LegalRegulatorySearchResponse:- """Search the Legal and Regulatory Index."""+ """Search the Government Index."""if not query or not query.strip():raise ValueError("query cannot be empty")request = LegalRegulatorySearchRequest(query=query, k=k)response = client.post(ENDPOINT, request.model_dump(exclude_none=True))if response.status_code != 200:- handle_response_error(response, "search legal and regulatory sources")+ handle_response_error(response, "search the Government Index")response_data = response.json()if not response_data.get("success"):- handle_response_error(response, "search legal and regulatory sources")+ handle_response_error(response, "search the Government Index")return LegalRegulatorySearchResponse.model_validate(response_data)diff --git a/apps/python-sdk/firecrawl/v2/types.py b/apps/python-sdk/firecrawl/v2/types.pyindex ffe87f296..1eb4df9b7 100644--- a/apps/python-sdk/firecrawl/v2/types.py+++ b/apps/python-sdk/firecrawl/v2/types.py@@ -635,7 +635,7 @@ class Category(BaseModel):- "pdf": Filter results to PDF files (adds filetype:pdf to search)- "developer": Developer-index results (issues, pull requests, READMEs anddocumentation) served in `web`; cannot be combined with other categories- - "gov": Legal and regulatory results served in `web`; cannot be combined+ - "gov": Government Index results served in `web`; cannot be combinedwith other categories.. warning::@@ -2415,7 +2415,7 @@ class DeveloperSearchResponse(BaseModel):class LegalRegulatorySearchRequest(BaseModel):- """Request for the Legal and Regulatory Index search endpoint."""+ """Request for the Government Index search endpoint."""query: strk: Optional[int] = Field(default=None, ge=1, le=100)