Documentation Index Fetch the complete documentation index at: https://docs.olostep.com/llms.txt
Use this file to discover all available pages before exploring further.
Olostep の /v1/answers エンドポイントを通じて、自然言語でウェブ検索を行い、AI によって生成された回答やデータを希望する JSON 形式で取得できます。これにより、製品を実世界のデータや情報源に基づかせ、データポイントやスプレッドシートを豊かにすることができます。
質問をしたり、AI に豊かにしたいデータポイントを提供したりします
オプション: 返してほしい JSON 構造を指定します
これにより:
ウェブ上で見つけたデータを検索、クリーン、検証し、返します
回答を生成するために使用した情報源を返します
データが検証できない場合は NOT_FOUND 値で不確実性を処理します
API の詳細については、回答エンドポイント API リファレンス を参照してください。
デフォルトでは、一般的なウェブインデックスとコスト効率の良い LLM バリデーターを使用しています。
エンタープライズ顧客は、業界特有の専用ウェブインデックス、電話番号やメールアドレスを含む排他的なプライベートデータ、そしてユースケースに最適なカスタム LLM モデルにアクセスできます。アクセスについてはお問い合わせください: info@olostep.com
ユースケース
回答エンドポイントは以下の用途に使用できます:
AI アプリケーションを実世界のデータや事実に基づかせる
採用、金融、コンサルティング、営業のためにスプレッドシートやデータポイントを豊かにする
こちらは回答エンドポイントによって強化された AI パワードスプレッドシートのデモです:
https://www.olostep.com/demos/spreadsheet-enrich
インストール
Python
Node
cURL
Node (API)
Python (API)
使用法
質問をして、出力を導くための JSON スキーマを渡します。json パラメータを渡さない場合、API は result フィールド内に回答テキストを含む json オブジェクトを返します。
Python
Node
cURL
Node (API)
Python (API)
from olostep import Olostep
client = Olostep( api_key = "YOUR_REAL_KEY" )
answer = client.answers.create(
task = "J.K.ローリングの最新の本は何ですか?" ,
json_format = { "book_title" : "" , "author" : "" , "release_date" : "" },
)
print (answer.json_content)
print (answer.sources)
レスポンス
他の Olostep エンドポイントと同様に、answer オブジェクトがレスポンスとして返されます。answer オブジェクトには id や result などのプロパティがあります。
{
"id" : "answer_9bi0sbj9xa" ,
"object" : "answer" ,
"created" : 1760327323 ,
"metadata" : {},
"task" : "J.K.ローリングの最新の本は何ですか?" ,
"result" : {
"json_content" : "{ \" book_title \" : \" The Hallmarked Man \" , \" author \" : \" J.K. Rowling (as Robert Galbraith) \" , \" release_date \" : \" 2 September 2025 \" }" ,
"json_hosted_url" : "https://olostep-storage.s3.us-east-1.amazonaws.com/answer_9bi0sbj9xa.json" ,
"sources" : [
"https://strikefans.com/the-books/" ,
"https://www.facebook.com/groups/496943608606523/posts/1136830134617864/" ,
"https://robert-galbraith.com/strike-books/" ,
"https://www.novelsuspects.com/series-list/robert-galbraith-cormoran-strike-series-in-order/" ,
"https://www.reddit.com/r/books/comments/1na833a/jk_rowlings_new_strike_novel_900_pages_of_romance/" ,
"https://www.harrypotter.com/writing-by-jk-rowling" ,
"https://stories.jkrowling.com/book-news/" ,
"https://deadline.com/2024/09/jk-rowling-writing-futuristic-novel-1236093909/" ,
"https://www.reddit.com/r/FantasticBeasts/comments/1cl1shn/jk_rowling_may_2024_ive_got_six_more_books_in_my/" ,
"https://www.jkrowling.com/news/"
]
}
}
json パラメータに従ってフォーマットされた回答は response.result.json_content にあり、情報源のリストは response.result.sources にあります。文字列化された JSON を解析して構造化データにアクセスできます。
{
"book_title" : "The Hallmarked Man" ,
"author" : "J.K. Rowling" ,
"release_date" : "2025年9月2日"
}
情報源の例:
[
"https://www.harrypotter.com/writing-by-jk-rowling" ,
"https://stories.jkrowling.com/book-news/" ,
"https://deadline.com/2024/09/jk-rowling-writing-futuristic-novel-1236093909/" ,
"https://www.reddit.com/r/FantasticBeasts/comments/1cl1shn/jk_rowling_may_2024_ive_got_six_more_books_in_my/" ,
"https://www.jkrowling.com/news/"
]
json パラメータを渡さない場合、API は result フィールド内に回答テキストを含む json オブジェクトを返します。
{
"result" : "J.K.ローリングの最新の本は The Hallmarked Man です。"
}
柔軟な json パラメータ
空の値を持つ JSON オブジェクトをスキーマとして提供するか、欲しいデータを説明する文字列を提供します。
エージェントが自信を持てない場合、そのフィールドには NOT_FOUND を返します。
from olostep import Olostep
client = Olostep( api_key = "YOUR_REAL_KEY" )
answer = client.answers.create(
task = "Olostep はいくら調達しましたか?" ,
json_format = { "amount" : "" },
)
print (answer.json_content)
これにより次のように返されます:
{
"amount" : "NOT_FOUND"
}
回答はリクエストごとに20クレジットかかります。