# export_results_csv

Source: https://heyeveryone.ai/docs/mcp/export_results_csv

> Export published posts and their latest results as CSV text (RFC 4180, header row, one row per post, newest first), with the analytics filters: publishedAt range (from/to), channel account, platform, campaign label. Columns: published_at, content_title, content_id, post_id, campaigns, channel, handle, platform, format, permalink, metrics_status, fetched_at, impressions, views, likes, comments, shares, saves, clicks. An empty metric cell means the platform didn't report it, not zero; `metrics_status` is `reported`, `not_fetched` (not checked yet) or `not_available` (the platform reports nothing). Times are UTC ISO 8601. Text a spreadsheet would read as a formula gets a leading apostrophe. At most 5,000 rows (`scope.truncated`); narrow the range to export more. Read-only; costs no credits.

Export published posts and their latest results as CSV text (RFC 4180, header row, one row per post, newest first), with the analytics filters: publishedAt range (from/to), channel account, platform, campaign label. Columns: published_at, content_title, content_id, post_id, campaigns, channel, handle, platform, format, permalink, metrics_status, fetched_at, impressions, views, likes, comments, shares, saves, clicks. An empty metric cell means the platform didn't report it, not zero; `metrics_status` is `reported`, `not_fetched` (not checked yet) or `not_available` (the platform reports nothing). Times are UTC ISO 8601. Text a spreadsheet would read as a formula gets a leading apostrophe. At most 5,000 rows (`scope.truncated`); narrow the range to export more. Read-only; costs no credits.

## Access and cost

- Kind: query
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false

## Input schema

```json
{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "from": {
      "format": "date-time",
      "type": "string"
    },
    "to": {
      "format": "date-time",
      "type": "string"
    },
    "channelAccountId": {
      "format": "uuid",
      "type": "string"
    },
    "platform": {
      "enum": [
        "x",
        "linkedin",
        "threads",
        "bluesky",
        "instagram",
        "facebook",
        "tiktok",
        "youtube",
        "sandbox"
      ],
      "type": "string"
    },
    "campaign": {
      "maxLength": 60,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "filename": {
      "type": "string"
    },
    "csv": {
      "type": "string"
    },
    "rows": {
      "minimum": 0,
      "type": "integer"
    },
    "scope": {
      "additionalProperties": false,
      "properties": {
        "from": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "to": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "channelAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "platform": {
          "anyOf": [
            {
              "enum": [
                "x",
                "linkedin",
                "threads",
                "bluesky",
                "instagram",
                "facebook",
                "tiktok",
                "youtube",
                "sandbox"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "campaign": {
          "type": [
            "string",
            "null"
          ]
        },
        "truncated": {
          "type": "boolean"
        },
        "newestFetchAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "oldestFetchAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "from",
        "to",
        "channelAccountId",
        "platform",
        "campaign",
        "truncated",
        "newestFetchAt",
        "oldestFetchAt"
      ],
      "type": "object"
    }
  },
  "required": [
    "filename",
    "csv",
    "rows",
    "scope"
  ],
  "type": "object"
}
```

## Errors

```json
[]
```

## Annotations

```json
{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": true,
  "title": "Export results as CSV"
}
```
