Skip to main content
POST
/
analytics
/
weekly
Retrieve weekly analytics
curl --request POST \
  --url https://da.liteapi.travel/analytics/weekly \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "from": "2026-07-01",
  "to": "2026-07-07"
}
'
{
  "message": "Weekly analytics data retrieved successfully",
  "data": {
    "success": true,
    "data": {
      "arr": [
        {
          "weeks": "week 12",
          "sales": 112828
        },
        {
          "weeks": "week 13",
          "sales": 275628
        },
        {
          "weeks": "week 14",
          "sales": 235668
        }
      ]
    }
  }
}

Authorizations

X-Api-Key
string
header
required

API key required for authorization

Body

application/json
from
string<date>
required

Start date for the analytics data YYYY-MM-DD (ISO 8601)

to
string<date>
required

End date for the analytics data YYYY-MM-DD (ISO 8601)

Response

200 - application/json

Weekly analytics data retrieved successfully