メインコンテンツへスキップ
GET
/
v1
/
searches
/
{search_id}
Suche abrufen
curl --request GET \
  --url https://api.olostep.com/v1/searches/{search_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "<string>",
  "created": 123,
  "metadata": {},
  "query": "<string>",
  "result": {
    "json_content": "<string>",
    "json_hosted_url": "<string>",
    "links": [
      {
        "url": "<string>",
        "title": "<string>",
        "description": "<string>"
      }
    ]
  }
}

検索を取得

指定された search_id に基づいて検索の詳細を取得します。

リクエスト

GET /v1/searches/{search_id}

パスパラメータ

  • search_id (string) - 取得したい検索の一意の識別子。

レスポンス

成功した場合、検索の詳細を含む JSON オブジェクトが返されます。

レスポンス例

{
  "id": "12345",
  "status": "completed",
  "results": [
    {
      "title": "Example Result",
      "url": "https://example.com"
    }
  ]
}

エラーレスポンス

エラーが発生した場合、適切な HTTP ステータスコードとエラーメッセージが返されます。

エラー例

  • 404 Not Found - 指定された search_id が存在しない場合。
  • 401 Unauthorized - 認証に失敗した場合。

使用例

以下は、検索を取得するためのサンプルリクエストです。
curl -X GET "https://api.olostep.com/v1/searches/12345" -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
このリクエストは、指定された search_id に関連する検索の詳細を取得します。

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

search_id
string
必須

Eindeutiger Bezeichner für die abzurufende Suche.

レスポンス

Erfolgreiche Antwort mit dem Suchobjekt.

id
string
object
string
created
integer
metadata
object
query
string
result
object