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
Merge branch 'main' into feat/improving-reative-paths
Nicolas60245343c910
diff --cc apps/api/src/index.tsindex 26fb2a9e2,9358672ad..8cd928b76--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@@ -89,8 -87,10 +87,11 @@@ async function authenticateUser(req, reapp.post("/v0/scrape", async (req, res) => {try {// make sure to authenticate user first, Bearer <token>- const team_id = await authenticateUser(req, res, "scrape");+ const { success, team_id, error, status } = await authenticateUser(req, res, "crawl");+ if (!success) {+ return res.status(status).json({ error });+ }+ const crawlerOptions = req.body.crawlerOptions ?? {};try {const { success: creditsCheckSuccess, message: creditsCheckMessage } =