# Get account statistics (/id/growsocmed/docs/api-reference/insights/get-account-insights)

Account figures for the last 7, 30 or 90 days, the period before, and per day

GET /insights/accounts/{id}

```json
{
  "tags": [
    "Insights"
  ],
  "summary": "Get account statistics",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true,
      "name": "id",
      "in": "path"
    },
    {
      "schema": {
        "type": "number",
        "default": 30
      },
      "required": false,
      "name": "days",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "description": "Start day (YYYY-MM-DD); with `to` it replaces `days`"
      },
      "required": false,
      "description": "Start day (YYYY-MM-DD); with `to` it replaces `days`",
      "name": "from",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "required": false,
      "name": "to",
      "in": "query"
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "account_id": {
                "type": "string"
              },
              "platform": {
                "type": "string"
              },
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              },
              "totals": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "previous": {
                "type": "object",
                "additionalProperties": {
                  "type": "number"
                }
              },
              "engagement_rate": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "previous_engagement_rate": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "highlights": {
                "type": "object",
                "properties": {
                  "posts": {
                    "type": "number"
                  },
                  "previous_posts": {
                    "type": "number"
                  },
                  "unreplied_comments": {
                    "type": "number"
                  },
                  "top_post": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "caption": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "permalink": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "interactions": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "id",
                      "caption",
                      "permalink",
                      "interactions"
                    ]
                  }
                },
                "required": [
                  "posts",
                  "previous_posts",
                  "unreplied_comments",
                  "top_post"
                ]
              },
              "followers": {
                "type": "object",
                "properties": {
                  "current": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "change": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "current",
                  "change"
                ]
              },
              "daily": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "string"
                    },
                    "metrics": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "followers": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "day",
                    "metrics",
                    "followers"
                  ]
                }
              },
              "synced_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "account_id",
              "platform",
              "from",
              "to",
              "totals",
              "previous",
              "engagement_rate",
              "previous_engagement_rate",
              "highlights",
              "followers",
              "daily",
              "synced_at"
            ]
          }
        }
      }
    }
  },
  "operationId": "get-account-insights",
  "description": "Account figures for the last 7, 30 or 90 days, the period before, and per day"
}
```