Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. πŸ”₯

docs: rename the index

PhantomInTheWire929582d1f3bc
diff --git a/apps/js-sdk/firecrawl/README.md b/apps/js-sdk/firecrawl/README.md
index 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: primary
law and regulatory material from US federal, state, and local government
sources, including statutes, regulations, codes, court opinions, and other
government 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.ts
index 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.ts
index 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.ts
index 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.md
index 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: primary
law and regulatory material from US federal, state, and local government
sources, including statutes, regulations, codes, court opinions, and other
government 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.py
index 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.py
index 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.py
index 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.py
index 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.py
index 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 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
.. 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: str
k: Optional[int] = Field(default=None, ge=1, le=100)