Skip to content

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

Merge branch 'v1-webscraper' of https://github.com/mendableai/firecrawl into v1-webscraper

Nicolas674adee14477
diff --cc apps/api/src/controllers/v1/types.ts
index 39f34abec,afb8ab18b..4dcb32fc5
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@@ -97,14 -99,12 +99,13 @@@ const crawlerOptions = z.object(
export type CrawlerOptions = z.infer<typeof crawlerOptions>;
- export const crawlRequestSchema = z.object({
+ export const crawlRequestSchema = crawlerOptions.extend({
url,
origin: z.string().optional().default("api"),
- crawlerOptions: crawlerOptions.default({}), // TODO: Get rid of this
scrapeOptions: scrapeOptions.omit({ timeout: true }).default({}),
webhook: z.string().url().optional(),
- limit: z.number().default(10000), //
- });
++ limit: z.number().default(10000),
+ }).strict(strictMessage);
// export type CrawlRequest = {
// url: string;