# analytics_overview

Read daily publication trends, audience by account and views by social network.

REST · `POST /api/v1/operations/analytics_overview` · MCP · `analytics_overview`

Required scope · `analytics`. This operation reads data.

## Example request body

~~~json
{
  "from": "2030-07-01",
  "to": "2030-07-30",
  "timezone": "America/Sao_Paulo"
}
~~~

REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.

For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.

## JSON Schema · Input

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "to": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    },
    "timezone": {
      "type": "string",
      "maxLength": 80
    },
    "platform": {
      "type": "string",
      "enum": [
        "youtube",
        "instagram",
        "tiktok"
      ]
    },
    "accountId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "required": [
    "from",
    "to",
    "timezone"
  ],
  "additionalProperties": false
}
~~~

## JSON Schema · Output

~~~json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "overview": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "views": {
            "type": [
              "number",
              "null"
            ]
          },
          "likes": {
            "type": [
              "number",
              "null"
            ]
          },
          "comments": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "day",
          "views",
          "likes",
          "comments"
        ],
        "additionalProperties": false
      }
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          },
          "points": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "views": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "likes": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "comments": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "followers": {
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "day",
                "views",
                "likes",
                "comments",
                "followers"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "accountId",
          "points"
        ],
        "additionalProperties": false
      }
    },
    "ranking": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string"
          },
          "views": {
            "type": "number"
          }
        },
        "required": [
          "platform",
          "views"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "overview",
    "accounts",
    "ranking"
  ],
  "additionalProperties": false
}
~~~
