Endpoints

⚠️

ZIP encryption discontinued

We 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 decrypt parameter 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

ParameterDescription
report_typeIndicates the type of report

Request example

GET https://{airline}.useselfie.com/api/selfie/v1/reports/pricing

Will return a list of all available pricing reports.

Response parameters

ParameterDescription
idReport identifier
from_dateFirst day covered by the report
to_dateLast day covered by the report
report_typeReport type
creation_dateReport creation date
display_nameReport 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/42

Will 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/latest

Will download the latest Pricing Monthly report.

Xeneta Footer - Fixed