> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Account History

> Retrieves historical account activity and changes for Meta advertising accounts

Retrieves historical account activity and changes for Meta advertising accounts

|                      |                                |
| -------------------- | ------------------------------ |
| **App**              | Meta Ads                       |
| **Operation ID**     | `meta_ads_get_account_history` |
| **Type**             | Action                         |
| **Connection**       | `meta_ads` (required)          |
| **Credits per run**  | 1                              |
| **Agent / MCP tool** | Yes                            |

## Inputs

| Field        | Type                                          | Required | Default | Description                                                                                                                                                                                                          |
| ------------ | --------------------------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `accounts`   | array (also accepts a comma-separated string) | Yes      | -       | Select Meta Ads accounts to retrieve history for, ask the user for it if not provided                                                                                                                                |
| `time_range` | string or SelectableOption                    | No       | -       | Select time period for the account history. Facebook only allows access to account activity history from the last 7 days. Options: 'last\_7\_days' (Last 7 days), 'today' (Today only), 'yesterday' (Yesterday only) |
| `limit`      | integer                                       | No       | -       | Maximum number of activity records to return (1-1000)                                                                                                                                                                |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns account activity history.

**Fields**: dynamic (depend on the inputs)
