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
Update extract.ts
Nicolasd196b9d93d6c
diff --git a/apps/api/src/controllers/v1/extract.ts b/apps/api/src/controllers/v1/extract.tsindex 1dff52360..f3dd199e0 100644--- a/apps/api/src/controllers/v1/extract.ts+++ b/apps/api/src/controllers/v1/extract.ts@@ -32,6 +32,13 @@ const MAX_EXTRACT_LIMIT = 100;const MAX_RANKING_LIMIT = 10;const SCORE_THRESHOLD = 0.75;+/**+ * Extracts data from the provided URLs based on the request parameters.+ * Currently in beta.+ * @param req - The request object containing authentication and extraction details.+ * @param res - The response object to send the extraction results.+ * @returns A promise that resolves when the extraction process is complete.+ */export async function extractController(req: RequestWithAuth<{}, ExtractResponse, ExtractRequest>,res: Response<ExtractResponse>