---
updatedAt: 2025-05-19T20:08:13.000Z
agentTools:
  projectIndex: https://apidocs.goodays.co/llms.txt
---

# /stats/dissatisfaction

Returns the dissatisfaction alert metrics calculated by Goodays. Use `by`, `by_context` or `by_level_category` (one at a time) to get one result per group. See [Dissatisfaction](doc:dissatisfaction).

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Goodays API",
    "description": "",
    "version": "v2"
  },
  "paths": {
    "/stats/dissatisfaction": {
      "get": {
        "operationId": "stats_dissatisfaction_list",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DissatisfactionMetric_read"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "by",
            "required": false,
            "in": "query",
            "description": "The field used to aggregate the metric.",
            "schema": {
              "type": "string",
              "enum": [
                "day",
                "month",
                "nps_category",
                "place",
                "quarter",
                "remark_type",
                "source",
                "survey",
                "year"
              ]
            }
          },
          {
            "name": "by_context",
            "required": false,
            "in": "query",
            "description": "The key from the context used to aggregate the metric.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "by_level_category",
            "required": false,
            "in": "query",
            "description": "The level category value used to aggregate the metric.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "place",
            "required": false,
            "in": "query",
            "description": "Filter on a point of sale: Place ID from [/places](ref:places_list). The External ID is not accepted.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "places",
            "required": false,
            "in": "query",
            "description": "Filter on several points of sale: Place IDs separated by commas.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "level",
            "required": false,
            "in": "query",
            "description": "Filter on the points of sale of a level: ID from [/levels](ref:levels_list).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "levels",
            "required": false,
            "in": "query",
            "description": "Filter on the points of sale of several levels: level IDs separated by commas.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "question",
            "required": false,
            "in": "query",
            "description": "Filter on a question: question ID from [/surveys/{id}](ref:surveys_read).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "survey",
            "required": false,
            "in": "query",
            "description": "Filter on a survey: ID from [/surveys](ref:surveys_list).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nps",
            "required": false,
            "in": "query",
            "description": "Filter on the NPS category of the end customer: `detractor`, `passive` or `promoter`.",
            "schema": {
              "type": "string",
              "enum": [
                "detractor",
                "passive",
                "promoter"
              ]
            }
          },
          {
            "name": "remark_type",
            "required": false,
            "in": "query",
            "description": "Filter on the remark type of the verbatim.",
            "schema": {
              "type": "string",
              "enum": [
                "Idea",
                "Message",
                "NoType",
                "Praise",
                "Problem",
                "Question"
              ]
            }
          },
          {
            "name": "source",
            "required": false,
            "in": "query",
            "description": "Filter on the source (collection channel).",
            "schema": {
              "type": "string",
              "enum": [
                "api",
                "apple_app_store",
                "critizr",
                "email",
                "facebook",
                "facebook_messenger",
                "facebook_reviews",
                "google",
                "google_messaging",
                "google_play_store",
                "merci",
                "outbound_call",
                "pagesjaunes",
                "plv",
                "receipt",
                "sdk",
                "sms",
                "sms_conv",
                "sms_text",
                "sms_trans",
                "terminal",
                "tripadvisor",
                "uber_eats",
                "undefined",
                "whatsapp",
                "widget",
                "wifi"
              ]
            }
          },
          {
            "name": "begin",
            "required": false,
            "in": "query",
            "description": "Start of the period, ISO 8601 date and time, for example `2026-05-01T00:00:00Z`. Must be before `end`. Its timezone is also used to cut days, months, quarters and years with `by`. See [Timezone And Date Management](doc:timezone-and-date-management).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end",
            "required": false,
            "in": "query",
            "description": "End of the period, ISO 8601 date and time, for example `2026-05-31T23:59:59Z`. Must be after `begin`. See [Timezone And Date Management](doc:timezone-and-date-management).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "stats"
        ],
        "description": "Returns the dissatisfaction alert metrics calculated by Goodays. Use `by`, `by_context` or `by_level_category` (one at a time) to get one result per group. See [Dissatisfaction](doc:dissatisfaction)."
      }
    }
  },
  "x-explorer-enabled": false,
  "servers": [
    {
      "url": "https://api.goodays.co/v2"
    }
  ],
  "components": {
    "schemas": {
      "DissatisfactionMetric_read": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "count": {
                  "type": "integer"
                },
                "percentage": {
                  "type": "number"
                },
                "pending": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "percentage": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "spam": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "percentage": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "ignored": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "percentage": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "call": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "percentage": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                },
                "text": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "percentage": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": {
          "type": "string"
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": true
  }
}
```