Landing Analytics LogoLanding Analytics

Get current scenario for a project

Retrieve the current running scenario constructed from tracking data with calculated winner

GET
/current_scenario/{id_project}
AuthorizationBearer <token>

In: header

Path Parameters

id_projectstring

The unique identifier for the project

Response Body

curl -X GET "https://backend-landing-analytics.fly.dev/api/v0/exploration/current_scenario/string"
{
  "success": true,
  "message": "string",
  "content": {
    "start_at": "2019-08-24T14:15:22Z",
    "finished_at": "2019-08-24T14:15:22Z",
    "winner_alternative": "string",
    "alternatives": [
      {
        "name": "string",
        "visits": 0,
        "total_time": 0,
        "sections": [
          {
            "name": "string",
            "impressions": 0,
            "total_time_ms": 0
          }
        ],
        "started_at": "2019-08-24T14:15:22Z"
      }
    ]
  }
}
{
  "success": true,
  "message": "string",
  "content": {}
}