メインコンテンツへスキップ
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())