import requestsurl = "https://api.keywordsai.co/api/logs/{log_id}/scores/{score_id}/"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())
Gets detailed information about a specific score for a log.
Copy
import requestsurl = "https://api.keywordsai.co/api/logs/{log_id}/scores/{score_id}/"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())
Aggregated score summaries are available in summary endpoints. These show average scores for numerical evaluators and true/false counts for boolean evaluators:
import requestsurl = "https://api.keywordsai.co/api/logs/{log_id}/scores/{score_id}/"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())