import requestsurl = "https://api.keywordsai.co/api/logs/{log_id}/scores/"api_key = "YOUR_KEY" # Replace with your actual Keywords AI API keyheaders = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}response = requests.get(url, headers=headers)print(response.json())
Retrieves all scores associated with a specific log.
Copy
import requestsurl = "https://api.keywordsai.co/api/logs/{log_id}/scores/"api_key = "YOUR_KEY" # Replace with your actual Keywords AI API keyheaders = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}response = requests.get(url, headers=headers)print(response.json())
When you retrieve log details, scores are automatically included in the response under a scores field with enriched information including evaluator names and score values.
import requestsurl = "https://api.keywordsai.co/api/logs/{log_id}/scores/"api_key = "YOUR_KEY" # Replace with your actual Keywords AI API keyheaders = { "Authorization": f"Bearer {api_key}", "Content-Type": "application/json"}response = requests.get(url, headers=headers)print(response.json())