Get analysis

Request

GET https://www.activityinfo.org/resources/reports/{reportId}/analyses/{analysisId}

Response

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/reports/cht8p4kdeimokm5/analyses/cv5wyndkqv9yuuq2

The above command returns JSON structured like this:

{
  "id": "cv5wyndkqv9yuuq2",
  "model": {
    "visualization": "TABLE",
    "measures": [
      {
        "id": "ir3j61lh1x8y8e5",
        "code": "",
        "label": "Number",
        "formId": "ck8pu9ha07",
        "formula": "Number",
        "statistics": [
          "SUM"
        ],
        "display": "DEFAULT",
        "numberFormat": null,
        "calculated": false
      }
    ],
    "dimensions": [
      {
        "id": "t0sbg9lh1x8y8j6",
        "label": "",
        "mappings": [
          {
            "formula": "Gender",
            "type": "VALUE"
          }
        ],
        "axis": "ROW",
        "totals": false,
        "missingIncluded": false,
        "dateLevel": null,
        "totalLabel": null,
        "missingLabel": null,
        "categoryMappings": [
          {
            "label": "Male",
            "source": [
              "Male"
            ],
            "visible": false
          }
        ],
        "mapTemplateId": null
      }
    ],
    "filters": [
      
    ],
    "columnWidths": {
      
    }
  },
  "modelType": "pivot"
}
Next item
Get analysis results