ZIP encryption discontinuedWe no longer use ZIP encryption for our reports, but some users may still encounter it. While we are working to remove it in favor of other security measures, you can use the optional
decryptparameter if you run into any issues. For example,report/pricing_monthly/latest?decrypt=true.
List available reports
GET /reports
GET /reports/<report_type>
Returns a list of all reports available for download that you can optionally filter by report type. Reports are sorted by date, with the latest report listed first.
Request parameters
| Parameter | Description |
|---|---|
report_type | Indicates the type of report |
Request example
GET https://{airline}.useselfie.com/api/selfie/v1/reports/pricingWill return a list of all available pricing reports.
Response parameters
| Parameter | Description |
|---|---|
id | Report identifier |
from_date | First day covered by the report |
to_date | Last day covered by the report |
report_type | Report type |
creation_date | Report creation date |
display_name | Report name |
Download report (by id)
GET /report/<id>
Downloads a specific report based on its id.
Request example
GET https://{airline}.useselfie.com/api/selfie/v1/report/42Will download the report with the id value 42.
Download report (latest)
GET /report/<report_type>/latest
Downloads the latest report within the specified report type as a ZIP archive with one or multiple CSV files.
Request example
GET https://{airline}.useselfie.com/api/selfie/v1/report/pricing_monthly/latestWill download the latest Pricing Monthly report.