Retrieve group results for a topic

GET /api/v1/topics/{topic_code}/results/group-types/{group_type_code}

Path parameters

  • topic_code string Required

    The code for a topic

  • group_type_code string Required

    The code for the group type

Query parameters

  • date string

    Optional. The date for the results. In YYYY-MM-DD format. Defaults to latest results date.

Responses

  • 200 application/json

    Results for topic on a particular date, broken down by group within the specified group type

    Hide response attributes Show response attributes object
    • sample_date string

      The date when the question was asked

    • score integer | null

      The score between 0 and 100. Null if no score is available.

    • response_rate integer

      Percentage of people who responded

    • response_count integer

      Number of people who responded

    • total_count integer

      Total number of people who could respond

    • group object
      Hide group attributes Show group attributes object
      • id integer

        Group ID

      • code string

        Group code

      • name string

        Group name

GET /api/v1/topics/{topic_code}/results/group-types/{group_type_code}
curl \
 --request GET 'https://app.fridaypulse.com/api/v1/topics/{topic_code}/results/group-types/{group_type_code}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "group": {
      "id": 34,
      "code": "sales-team",
      "name": "Sales Team"
    },
    "score": 75,
    "sample_date": "2019-07-03",
    "total_count": 198,
    "response_rate": 58,
    "response_count": 114
  }
]