Skip to content

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

fix(types): update maxAge default value to 2 days in baseScrapeOptions

Gergő Móricze57f1657032b
diff --git a/apps/api/src/controllers/v2/types.ts b/apps/api/src/controllers/v2/types.ts
index 64f0e7552..ffd02e9d5 100644
--- a/apps/api/src/controllers/v2/types.ts
+++ b/apps/api/src/controllers/v2/types.ts
@@ -320,7 +320,7 @@ const baseScrapeOptions = z
useMock: z.string().optional(),
blockAds: z.boolean().default(true),
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
- maxAge: z.number().int().gte(0).safe().default(14400000),
+ maxAge: z.number().int().gte(0).safe().default(2 * 24 * 60 * 60 * 1000),
storeInCache: z.boolean().default(true),
// @deprecated
__searchPreviewToken: z.string().optional(),