> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Get Campaign Statistics

- Component: `appmixer.woodpecker.core.GetCampaignStatistics`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.woodpecker 1.1.2](https://connectors.appmixer.com/connector/appmixer.woodpecker/1.1.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.woodpecker/1.1.2/component/appmixer.woodpecker.core.GetCampaignStatistics>

Retrieve statistics for a single campaign by its ID.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Campaign ID (`campaignId`) | text | The ID of the campaign to retrieve statistics for. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Campaign ID (`id`) | integer | - |
| Name (`name`) | string | - |
| Status (`status`) | string | - |
| Prospects (`prospects`) | integer | - |
| Sent (`sent`) | integer | - |
| Delivered (`delivery`) | integer | - |
| Opened (`opened`) | integer | - |
| Clicked (`clicked`) | integer | - |
| Replied (`replied`) | integer | - |
| Interested (`interested`) | integer | - |
| Bounced (`bounced`) | integer | - |
| Invalid (`invalid`) | integer | - |
| Opted Out (`optout`) | integer | - |
| In Queue (`queue`) | integer | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.woodpecker.core.GetCampaignStatistics",
  "label": "Get Campaign Statistics",
  "description": "Retrieve statistics for a single campaign by its ID.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:woodpecker"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "campaignId": {
            "type": "string"
          }
        },
        "required": [
          "campaignId"
        ]
      },
      "inspector": {
        "inputs": {
          "campaignId": {
            "type": "text",
            "label": "Campaign ID",
            "index": 1,
            "tooltip": "The ID of the campaign to retrieve statistics for."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "title": "Campaign ID",
            "example": 12345
          },
          "name": {
            "type": "string",
            "title": "Name",
            "example": "Q1 Outreach"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "example": "RUNNING"
          },
          "prospects": {
            "type": "integer",
            "title": "Prospects",
            "example": 120
          },
          "sent": {
            "type": "integer",
            "title": "Sent",
            "example": 100
          },
          "delivery": {
            "type": "integer",
            "title": "Delivered",
            "example": 98
          },
          "opened": {
            "type": "integer",
            "title": "Opened",
            "example": 54
          },
          "clicked": {
            "type": "integer",
            "title": "Clicked",
            "example": 9
          },
          "replied": {
            "type": "integer",
            "title": "Replied",
            "example": 8
          },
          "interested": {
            "type": "integer",
            "title": "Interested",
            "example": 3
          },
          "bounced": {
            "type": "integer",
            "title": "Bounced",
            "example": 1
          },
          "invalid": {
            "type": "integer",
            "title": "Invalid",
            "example": 1
          },
          "optout": {
            "type": "integer",
            "title": "Opted Out",
            "example": 1
          },
          "queue": {
            "type": "integer",
            "title": "In Queue",
            "example": 10
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
