FIRE-1 エージェント(ベータ)
ウェブページを知的にナビゲートし、対話できる AI エージェント
FIRE-1 は、Firecrawl のスクレイピング機能を強化する AI エージェントです。ブラウザのアクションを制御し、複雑なウェブサイト構造を自在に探索して、従来のスクレイピングを超える包括的なデータ抽出を実現します。
- データを取得するために計画を立て、アクションを実行する
- ボタン、リンク、入力欄などの動的要素を操作する
- ページネーションや複数ステップが必要な、複数ページにわたるデータを取得する
複数ページの移動や要素とのインタラクションを伴う複雑な抽出タスクには、/v1/extract エンドポイントで FIRE-1 エージェントを活用できます。
例:
import { Firecrawl, ExtractResponse } from 'firecrawl';
const app = new Firecrawl({apiKey: "fc-YOUR_API_KEY"});
// スキーマとプロンプトを使用してウェブサイトから抽出:
const extractResult = await app.extract(['https://example-forum.com/topic/123'], {
prompt: "Extract all user comments from this forum thread.",
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(`Failed to extract: ${extractResult.error}`)
}
console.log(extractResult)FIRE-1 のコストは一意に決まりません。各 Extract リクエストの基本コストは、クレジット計算ツールをご覧ください。
なぜ FIRE-1 のほうが高いのですか?
FIRE-1 は高度なブラウザ自動化と AI によるプランニングを用いて複雑なウェブページと対話するため、標準的な抽出に比べてより多くの計算リソースを要します。
/extract: 1分あたり10件のリクエスト
Was this page helpful?Suggest editsRaise issue