Documentation Index
Fetch the complete documentation index at: https://firecrawl-mog-search-exclude-include-domains.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
FIRE-1 は、Firecrawl のスクレイピング機能を強化する AI エージェントです。ブラウザのアクションを制御し、複雑なウェブサイト構造を自在に探索して、従来のスクレイピングを超える包括的なデータ抽出を実現します。
- データを取得するために計画を立て、アクションを実行する
- ボタン、リンク、入力欄などの動的要素を操作する
- ページネーションや複数ステップが必要な、複数ページにわたるデータを取得する
複数ページの移動や要素とのインタラクションを伴う複雑な抽出タスクには、/v1/extract エンドポイントで FIRE-1 エージェントを活用できます。
例:
import FirecrawlApp, { ExtractResponse } from '@mendable/firecrawl-js';
const app = new FirecrawlApp({apiKey: "fc-YOUR_API_KEY"});
// スキーマとプロンプトを使用してウェブサイトから抽出:
const extractResult = await app.extract(['https://example-forum.com/topic/123'], {
prompt: "このフォーラムスレッドから、すべてのユーザーコメントを抽出してください。",
schema: {
type: "object",
properties: {
comments: {
type: "array",
items: {
type: "object",
properties: {
author: {type: "string"},
comment_text: {type: "string"}
},
required: ["author", "comment_text"]
}
}
},
required: ["comments"]
},
agent: {
model: 'FIRE-1'
}
}) as ExtractResponse;
if (!extractResult.success) {
throw new Error(`抽出に失敗しました:${extractResult.error}`)
}
console.log(extractResult)
FIRE-1 のコストは一意に決まりません。各 Extract リクエストの基本コストは、クレジット計算ツールをご覧ください。
なぜ FIRE-1 のほうが高いのですか?
FIRE-1 は高度なブラウザ自動化と AI によるプランニングを用いて複雑なウェブページと対話するため、標準的な抽出に比べてより多くの計算リソースを要します。