Vai al contenuto principale
Gli endpoint API richiedono che tu ti autentichi utilizzando un token API.

Genera un token

Il token può essere generato dalla dashboard di Olostep. Per favore crea un account qui.

Usa il tuo token

Puoi autenticarti aggiungendo un’intestazione Authorization a tutte le tue chiamate HTTP. L’intestazione Authorization è formattata come segue: Authorization: Bearer <API-TOKEN> (sostituisci <API-TOKEN> con il tuo token. Se non hai un token, puoi generarne uno gratuitamente dalla dashboard di Olostep). Esempi:
# 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())