メインコンテンツへスキップ

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.

APIエンドポイントは、APIトークンを使用して認証する必要があります。

トークンを生成する

トークンはOlostepダッシュボードから生成できます。アカウントをこちらで作成してください。

トークンを使用する

すべてのHTTPコールにAuthorizationヘッダーを追加することで認証できます。Authorizationヘッダーは次のようにフォーマットされます: Authorization: Bearer <API-TOKEN><API-TOKEN>をあなたのトークンに置き換えてください。トークンがない場合は、Olostepのダッシュボードから無料で生成できます)。 例:
# pip install requests

import requests

endpoint = 'https://api.olostep.com/v1/scrapes/<SCRAPE_ID>'
headers = {
    'Authorization': 'Bearer <API-TOKEN>',
    'Accept': 'application/json'
}

response = requests.get(endpoint, headers=headers)
print(response.status_code)
print(response.json())