API Reference
Submit a query
POST
/api/query
Primary end-point for query Athena news database.
Headers
Content-Type
application/json
Body
query
string (required)
Query string
api_key
string (required)
Your Athena API key.
sites
array (optional)
Array of strings ["cnn.com","nytimes.com"]
start_date
date (optional)
Date in ISO 8601 format
end_date
date (optional)
Date in ISO 8601 format
toggle_state
string (optional)
All Articles or Encoded Articles
embeddings
boolean (optional [true / false])
Returns embeddings with articles
page
int (required)
Page to iterate through results
Response
totalResults
string (required)
Query string
articles
array (optional)
Array of articles
state
date (optional)
Query success or fail
Article Details
Response
datePublished
string
Publish date of article
title
array
Article title
description
date
Article description
embeddings
array
Array of containing embeddings for title and description.
entities
array
Array of entities identified in the article
entity_relationships
array
Array of relationships identified between entities in the article.
image
string
String for article thumbnail
topics
array
Array of three primary topics
site
string
Site
score
float
Relevancy score
Last updated