Events
Get event documents
Get an event's press release or slides documents in PDF format - available as downloadable files.
GET /events/{event_id}/assets/{field}
Parameter | Type | DataType | Description |
---|---|---|---|
allow_estimated | query | boolean | Whether to include docs as soon as they are available in our system (before human review) |
as_attachment | query | boolean | Whether to return the PDF as a downloadable attachment |
NOTE
- field must be one of
press_url
orslides_url
- This is currently a V1 API endpoint and uses the
/events
url prefix instead of the latest/events-v2
path
Request
https://premium.aiera.com/api/events/2640524/assets/press_url?allow_estimated=true&as_attachment=true
Response
The PDF document rendered inline or as a file attachment.
Code Samples
Bash
curl --request GET \
--url 'https://premium.aiera.com/api/events/{event_id}/assets/press_url?allow_estimated=true&as_attachment=true' \
--header 'X-API-Key: xxx'
Python
import requests
requests.request(
"GET",
"https://premium.aiera.com/api/events/{event_id}/assets/press_url?allow_estimated=true",
headers={"X-API-Key": "xxx"},
)