---
name: aprimo-dam-analytics-api-quickstart
description: Quick-start guide and field reference for the Aprimo Analytics API — pre-aggregated content engagement data (downloads, views, impressions, plays) for Aprimo DAM. Use when developers need authentication setup, query examples in their language, available measures/dimensions/facts, or troubleshooting Analytics API queries.
---

# Aprimo DAM Analytics API – Quick Start

Get your first query working in 5 minutes, then dive deeper into the full documentation.

:::important
The Analytics API is **DAM only**. It does not cover Aprimo Productivity Management (PM) or Aprimo Spend — for reporting on those, use the **Reporting API** instead (a different endpoint with a different query model). If asked about PM reporting, don't reach for this skill.
:::

## What This API Is For

The Analytics API returns **pre-aggregated content engagement data** — downloads, views, impressions, plays, and "zero engagement" sets — without requiring knowledge of Aprimo's underlying data schema. You send a single JSON query describing what you want (measures, dimensions, filters), and get back aggregated rows. It's designed for dashboards and BI tools (including Power BI), not for pulling individual line-level event records.

## 60-Second Setup

### 1. Get an API Key

Same registration flow as the rest of the Aprimo REST API. In your Aprimo DAM environment:
1. Navigate to **Administration** → **Integration** → **Registration**
2. Click **New** and fill out the form:
   - **OAuth Flow Type:** Client Credentials (recommended for integrations)
   - **Access Token Lifetime:** 10 minutes
3. Save the **Client ID** and **Client Secret**

### 2. Request an Access Token

```bash
curl -X POST 'https://<your-tenant>.aprimo.com/login/connect/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'grant_type=client_credentials' \
  -d 'scope=api' \
  -d 'client_id=YOUR_CLIENT_ID' \
  -d 'client_secret=YOUR_CLIENT_SECRET'
```

Save the `access_token` from the response.

### 3. Make Your First Query

The entire API surface is **one GET endpoint**. The query is a JSON object, stringified onto a single line, passed as the `query` query-string parameter:

```bash
curl -G 'https://<your-tenant>.aprimo.com/analytics/' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --data-urlencode 'query={"measures":["Downloads.count"]}'
```

That returns the total download count across your DAM. See below for dimensions, filters, and paging.

---

## Code Examples by Language

### Python

```python
import json
import requests

tenant = "your-tenant"
client_id = "YOUR_CLIENT_ID"
client_secret = "YOUR_CLIENT_SECRET"

# Step 1: Get access token
token_response = requests.post(
    f"https://{tenant}.aprimo.com/login/connect/token",
    data={
        "grant_type": "client_credentials",
        "scope": "api",
        "client_id": client_id,
        "client_secret": client_secret,
    },
)
access_token = token_response.json()["access_token"]

# Step 2: Run an analytics query
# `requests` URL-encodes dict values automatically, including the JSON string.
query = {
    "measures": ["Downloads.count"],
    "dimensions": ["Downloads.recordId"],
    "order": {"Downloads.count": "desc"},
    "limit": 50,
    "offset": 0,
}

response = requests.get(
    f"https://{tenant}.aprimo.com/analytics/",
    headers={"Authorization": f"Bearer {access_token}"},
    params={"query": json.dumps(query)},
)
results = response.json()
print(results)
```

### JavaScript / TypeScript

```javascript
const tenant = "your-tenant";
const clientId = "YOUR_CLIENT_ID";
const clientSecret = "YOUR_CLIENT_SECRET";

async function getAccessToken() {
  const params = new URLSearchParams({
    grant_type: "client_credentials",
    scope: "api",
    client_id: clientId,
    client_secret: clientSecret,
  });
  const response = await fetch(`https://${tenant}.aprimo.com/login/connect/token`, {
    method: "POST",
    body: params,
  });
  const data = await response.json();
  return data.access_token;
}

async function runAnalyticsQuery(accessToken) {
  const query = {
    measures: ["Downloads.count"],
    dimensions: ["Downloads.recordId"],
    order: { "Downloads.count": "desc" },
    limit: 50,
    offset: 0,
  };

  const url = `https://${tenant}.aprimo.com/analytics/?${new URLSearchParams({
    query: JSON.stringify(query),
  })}`;

  const response = await fetch(url, {
    headers: { Authorization: `Bearer ${accessToken}` },
  });
  return response.json();
}

(async () => {
  const token = await getAccessToken();
  const results = await runAnalyticsQuery(token);
  console.log(results);
})();
```

### C#

```csharp
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using Newtonsoft.Json;

class AprimoAnalyticsClient
{
    private string _tenant = "your-tenant";
    private string _clientId = "YOUR_CLIENT_ID";
    private string _clientSecret = "YOUR_CLIENT_SECRET";
    private HttpClient _httpClient = new HttpClient();

    async Task<string> GetAccessToken()
    {
        var tokenUrl = $"https://{_tenant}.aprimo.com/login/connect/token";
        var content = new FormUrlEncodedContent(new[]
        {
            new KeyValuePair<string, string>("grant_type", "client_credentials"),
            new KeyValuePair<string, string>("scope", "api"),
            new KeyValuePair<string, string>("client_id", _clientId),
            new KeyValuePair<string, string>("client_secret", _clientSecret)
        });

        var response = await _httpClient.PostAsync(tokenUrl, content);
        var json = await response.Content.ReadAsStringAsync();
        dynamic data = JsonConvert.DeserializeObject(json);
        return data.access_token;
    }

    async Task<string> RunAnalyticsQuery(string accessToken)
    {
        var query = new
        {
            measures = new[] { "Downloads.count" },
            dimensions = new[] { "Downloads.recordId" },
            order = new { ["Downloads.count"] = "desc" },
            limit = 50,
            offset = 0
        };
        var queryJson = JsonConvert.SerializeObject(query);
        var url = $"https://{_tenant}.aprimo.com/analytics/?query={HttpUtility.UrlEncode(queryJson)}";

        var request = new HttpRequestMessage(HttpMethod.Get, url);
        request.Headers.Add("Authorization", $"Bearer {accessToken}");

        var response = await _httpClient.SendAsync(request);
        return await response.Content.ReadAsStringAsync();
    }

    static async Task Main()
    {
        var client = new AprimoAnalyticsClient();
        var token = await client.GetAccessToken();
        var results = await client.RunAnalyticsQuery(token);
        Console.WriteLine(results);
    }
}
```

---

## Essential Concepts

### Query Shape

Every request is one JSON object with these top-level keys:

```json
{
  "measures": ["Downloads.count"],
  "dimensions": ["Downloads.recordId", "RecordMetadata.title"],
  "filters": [
    { "member": "Downloads.downloadDate", "operator": "inDateRange", "values": ["2026-01-01", "2026-01-31"] }
  ],
  "order": { "Downloads.count": "desc" },
  "limit": 50,
  "offset": 0
}
```

- **measures** — the aggregated metric(s) to return, e.g. `Downloads.count`. Every Fact has a `.count` measure.
- **dimensions** — attributes to group or break the measure out by, e.g. `Downloads.recordId`. Dimensions can come from the fact itself or from a related shared dimension table (e.g. `RecordMetadata.title`, `Users.loginId`) — you don't need to declare a join, just reference the field.
- **filters** — `{ "member": "...", "operator": "...", "values": [...] }`. Operators include `equals`, `contains`, `inDateRange`, `gt`, `gte`, `lt`, `lte`, `set`, `notSet`.
- **order** — `{ "member": "asc"|"desc" }`. **Always include this if you're paging** — without it, result order (and therefore which rows land on which page) isn't guaranteed to be stable between calls.
- **limit** / **offset** — see Paging below.
- **timeDimensions** — an alternative to a plain time filter, for grouping by a granularity: `{ "dimension": "Impressions.hitDateTime", "dateRange": ["2026-01-01", "2026-01-31"], "granularity": "day" }`. `granularity` can be `day`, `month`, etc.

The full field catalog (which measures and dimensions exist per Fact, and the shared dimension tables) is in the **Field Reference** section near the end of this file — use it instead of guessing field names.

### Facts (Queryable Data Domains)

| Fact | What it measures |
|---|---|
| `Downloads` | Counts of downloads, by record, user, rendition, crop/trim, etc. |
| `Views` | Views of records in Content Workspace and Brand Portals. |
| `Impressions` | Individual Public Link requests (image loads, downloads). Video may fire multiple impressions per playback (chunked loading). |
| `ContentEngagement` | Views + downloads + plays combined in one query — fewer dimensions available than querying a single fact directly. |
| `Plays` (`PreviewPlaybacks`) | Counts of video plays. |
| `ZeroViews` (`ZeroViewRecords`) | Content with **no** views. |
| `ZeroDownloads` (`ZeroDownloadRecords`) | Content with **no** downloads. |
| `ZeroPlays` (`ZeroPreviewPlaybackRecords`) | Content with **no** plays. Not called out in the narrative docs but present in the schema. |

Note the naming mismatch on a few: the "friendly" name (`Plays`, `ZeroViews`, `ZeroDownloads`, `ZeroPlays`) is what the docs call the domain, but the field prefix you actually use in `measures`/`dimensions` is the longer underlying name (`PreviewPlaybacks.count`, `ZeroViewRecords.count`, etc.) — see the Field Reference section for the exact prefix per fact.

### Paging & Sorting

- `limit` — max **10,000** per request.
- `offset` — an **index**, not a page number. `offset=10, limit=10` returns items 11–20.
- Always set `order` when paging, or you risk gaps/duplicates across pages since result order isn't otherwise guaranteed stable.

### Performance

This API is built for **aggregate** queries, not line-level extraction. If a query would return more than ~100k rows, or you'd need to page through more than ~100 pages to get everything, expect it to be slow or time out — narrow with filters/dimensions instead of trying to page through everything.

### Required Headers

```
Authorization: Bearer YOUR_ACCESS_TOKEN
```

No `Content-Type` or `API-VERSION` header is needed — this is a single `GET` with everything in the query string.

---

## Rate Limiting

Aprimo's REST APIs enforce a **burst-based rate limit**. Each environment has a sustained
rate measured in requests per second, plus a burst buffer that absorbs short spikes. A
typical configuration is **15 requests per second with a burst buffer of 100 requests**,
but the exact figures are per-environment — confirm yours with your Aprimo Account
Executive, who can also discuss an increase.

Two properties of this model catch integrations out:

- **The budget is per environment, not per integration or per user.** Every application,
  script, and scheduled job pointed at the same tenant draws on the same allowance, so a
  bulk job can starve an interactive app running alongside it.
- **Excess requests are rejected, not queued.** Once both the sustained rate and the burst
  buffer are exhausted, further requests return `429 Too Many Requests` immediately. You
  get fast feedback rather than a silent delay, but your client has to handle it.

**Writing a well-behaved client:**

- **Retry a `429` with exponential backoff** — wait 1s, then 2s, 4s, 8s, and add a little
  random jitter so parallel workers don't all retry on the same beat.
- **Space out polling.** When waiting on a long-running operation, use progressive waits
  (1s, 3s, 5s…) rather than a tight loop.
- **Reuse access tokens** until they expire instead of requesting a fresh one per call.
- **Cache reference data** that rarely changes, and refresh it periodically.
- **Spread scheduled work out** rather than firing every request at the top of the hour.
- **Log every `429`** alongside the endpoint that caused it — the pattern usually points at
  a single hot loop.

---

## Common Tasks

### Total count for a Fact

```json
{ "measures": ["Downloads.count"] }
```

### Downloads by asset, within a date range

```json
{
  "measures": ["Downloads.count"],
  "dimensions": ["Downloads.recordId"],
  "filters": [
    { "member": "Downloads.downloadDate", "operator": "inDateRange", "values": ["2026-01-01", "2026-01-31"] }
  ]
}
```

### Views by user (partial last-name match)

```json
{
  "measures": ["Views.count"],
  "dimensions": ["Users.lastName", "Users.firstName", "Users.loginId"],
  "filters": [
    { "member": "Users.lastName", "operator": "contains", "values": ["A"] }
  ]
}
```

### Daily impressions over a date range

```json
{
  "measures": ["Impressions.count"],
  "timeDimensions": [
    { "dimension": "Impressions.hitDateTime", "dateRange": ["2026-01-01", "2026-01-31"], "granularity": "day" }
  ]
}
```

### Assets with zero downloads

```json
{
  "measures": ["ZeroDownloadRecords.count"],
  "dimensions": ["ZeroDownloadRecords.recordId"]
}
```

### Combined engagement per asset (views + downloads + plays)

```json
{
  "measures": ["ContentEngagement.downloadsCount", "ContentEngagement.viewsCount", "ContentEngagement.previewPlaybacksCount"],
  "dimensions": ["ContentEngagement.recordId", "RecordMetadata.title"]
}
```

---

## Troubleshooting

### 401 Unauthorized
- Token expired or malformed — request a new one via Client Credentials.

### 400 Bad Request / empty or unexpected results
- The `query` value must be **valid JSON on a single line** — a pretty-printed, multi-line JSON string passed directly in a URL usually breaks. Stringify it first (`JSON.stringify`, `json.dumps`, etc.) before URL-encoding.
- Double-check field prefixes against the Field Reference section — e.g. it's `PreviewPlaybacks.count`, not `Plays.count`.
- Results changing between paged calls with the same `offset`/`limit` almost always means a missing `order`.

### Slow or timing-out queries
- You're likely asking for line-level detail instead of an aggregate — add `dimensions`/`filters` to narrow the result set, or reconsider whether this is the right API for the use case (the Reporting API or Report Distribution may fit a full-extract use case better).

### 429 Too Many Requests
- You've exhausted the environment's sustained rate and its burst buffer.
- Back off exponentially (1s, 2s, 4s…) with jitter, then retry — the request was rejected
  outright, not queued.
- Remember the budget is shared tenant-wide: another integration may be the real cause.
- See the Rate Limiting section above.

---

## Field Reference

Every Fact (with its measures and dimensions) and every shared dimension-only table (`Classifications`, `Collections`, `DateDimension`, `RecordMetadata`, `Users`, `Spaces`, etc.) that can be referenced in `dimensions`/`filters` alongside any fact. Use it to look up exact field names and types instead of guessing — the Analytics API will silently return no match on a misspelled or wrong-case field name rather than erroring clearly.

Distilled from the Aprimo Analytics API documentation (Field Definitions + per-domain dimension listings) at https://developers.aprimo.com/docs/reporting/analytics-api. DAM only. Endpoint: `GET https://{tenant}.aprimo.com/analytics/?query={query}`.

```json
{
  "facts": {
    "Downloads": {
      "description": "Counts of downloads by record, user, rendition, and more.",
      "measures": [
        { "name": "Downloads.count", "type": "count" }
      ],
      "dimensions": [
        { "name": "Downloads.downloadDate", "type": "time" },
        { "name": "Downloads.dateDimensionId", "type": "number" },
        { "name": "Downloads.userId", "type": "number" },
        { "name": "Downloads.recordId", "type": "string" },
        { "name": "Downloads.versionId", "type": "string" },
        { "name": "Downloads.renditionId", "type": "string" },
        { "name": "Downloads.renditionType", "type": "string" },
        { "name": "Downloads.versionNumber", "type": "number" },
        { "name": "Downloads.cropHeight", "type": "number" },
        { "name": "Downloads.cropWidth", "type": "number" },
        { "name": "Downloads.cropType", "type": "string" },
        { "name": "Downloads.trimDuration", "type": "number" }
      ]
    },
    "Views": {
      "description": "Views of records in Aprimo's Content Workspace and Brand Portals.",
      "measures": [
        { "name": "Views.count", "type": "count" }
      ],
      "dimensions": [
        { "name": "Views.viewDate", "type": "time" },
        { "name": "Views.dateDimensionId", "type": "number" },
        { "name": "Views.userId", "type": "number" },
        { "name": "Views.recordId", "type": "string" },
        { "name": "Views.spaceId", "type": "string" },
        { "name": "Views.collectionId", "type": "string" },
        { "name": "Views.hasNoContext", "type": "boolean" },
        { "name": "Views.hasSpaceContext", "type": "boolean" },
        { "name": "Views.hasCollectionContext", "type": "boolean" }
      ]
    },
    "Impressions": {
      "description": "Individual requests to Public Links (e.g. an image loading, or a file download). Video assets may generate multiple impressions per playback because the video loads in chunks.",
      "measures": [
        { "name": "Impressions.count", "type": "count" },
        { "name": "Impressions.totalResponseSize", "type": "sum" }
      ],
      "dimensions": [
        { "name": "Impressions.id", "type": "number" },
        { "name": "Impressions.hitDateTime", "type": "time" },
        { "name": "Impressions.recordId", "type": "string" },
        { "name": "Impressions.fileVersionId", "type": "string" },
        { "name": "Impressions.fileName", "type": "string" },
        { "name": "Impressions.responseSize", "type": "number" }
      ]
    },
    "ContentEngagement": {
      "description": "Multiple content engagement metrics (views, downloads, plays) in a single query. May not expose all dimensions available to the individual fact for a given metric.",
      "measures": [
        { "name": "ContentEngagement.downloadsCount", "type": "count" },
        { "name": "ContentEngagement.impressionsCount", "type": "count" },
        { "name": "ContentEngagement.viewsCount", "type": "count" },
        { "name": "ContentEngagement.previewPlaybacksCount", "type": "count" }
      ],
      "dimensions": [
        { "name": "ContentEngagement.date", "type": "time" },
        { "name": "ContentEngagement.userId", "type": "number" },
        { "name": "ContentEngagement.recordId", "type": "string" }
      ]
    },
    "Plays": {
      "description": "Counts of plays on video content. Underlying member name is PreviewPlaybacks.",
      "measures": [
        { "name": "PreviewPlaybacks.count", "type": "count" }
      ],
      "dimensions": [
        { "name": "PreviewPlaybacks.previewPlaybackDate", "type": "time" },
        { "name": "PreviewPlaybacks.dateDimensionId", "type": "number" },
        { "name": "PreviewPlaybacks.userId", "type": "number" },
        { "name": "PreviewPlaybacks.recordId", "type": "string" },
        { "name": "PreviewPlaybacks.spaceId", "type": "string" },
        { "name": "PreviewPlaybacks.collectionId", "type": "string" },
        { "name": "PreviewPlaybacks.hasNoContext", "type": "boolean" },
        { "name": "PreviewPlaybacks.hasSpaceContext", "type": "boolean" },
        { "name": "PreviewPlaybacks.hasCollectionContext", "type": "boolean" }
      ]
    },
    "ZeroViews": {
      "description": "The set of content that has had no views. Underlying member name is ZeroViewRecords.",
      "measures": [
        { "name": "ZeroViewRecords.count", "type": "count" }
      ],
      "dimensions": [
        { "name": "ZeroViewRecords.recordId", "type": "string" },
        { "name": "ZeroViewRecords.fileCount", "type": "number" },
        { "name": "ZeroViewRecords.createUser", "type": "string" },
        { "name": "ZeroViewRecords.createDate", "type": "time" },
        { "name": "ZeroViewRecords.lastModifiedUser", "type": "string" },
        { "name": "ZeroViewRecords.lastModifiedDate", "type": "time" },
        { "name": "ZeroViewRecords.contentType", "type": "string" },
        { "name": "ZeroViewRecords.parentRecordId", "type": "string" }
      ]
    },
    "ZeroDownloads": {
      "description": "The set of content that has had no downloads. Underlying member name is ZeroDownloadRecords.",
      "measures": [
        { "name": "ZeroDownloadRecords.count", "type": "count" }
      ],
      "dimensions": [
        { "name": "ZeroDownloadRecords.recordId", "type": "string" },
        { "name": "ZeroDownloadRecords.fileCount", "type": "number" },
        { "name": "ZeroDownloadRecords.createUser", "type": "string" },
        { "name": "ZeroDownloadRecords.createDate", "type": "time" },
        { "name": "ZeroDownloadRecords.lastModifiedUser", "type": "string" },
        { "name": "ZeroDownloadRecords.lastModifiedDate", "type": "time" },
        { "name": "ZeroDownloadRecords.contentType", "type": "string" },
        { "name": "ZeroDownloadRecords.parentRecordId", "type": "string" }
      ]
    },
    "ZeroPlays": {
      "description": "The set of content that has had no plays. Underlying member name is ZeroPreviewPlaybackRecords. Not listed among the documented 'Available Data Domains' but present in the API's dimension reference.",
      "measures": [
        { "name": "ZeroPreviewPlaybackRecords.count", "type": "count" }
      ],
      "dimensions": [
        { "name": "ZeroPreviewPlaybackRecords.recordId", "type": "string" },
        { "name": "ZeroPreviewPlaybackRecords.fileCount", "type": "number" },
        { "name": "ZeroPreviewPlaybackRecords.createUser", "type": "string" },
        { "name": "ZeroPreviewPlaybackRecords.createDate", "type": "time" },
        { "name": "ZeroPreviewPlaybackRecords.lastModifiedUser", "type": "string" },
        { "name": "ZeroPreviewPlaybackRecords.lastModifiedDate", "type": "time" },
        { "name": "ZeroPreviewPlaybackRecords.contentType", "type": "string" },
        { "name": "ZeroPreviewPlaybackRecords.parentRecordId", "type": "string" }
      ]
    }
  },
  "sharedDimensionTables": {
    "$description": "These have no measures of their own. Their fields can be used as dimensions/filters alongside any fact above, joined implicitly by the query engine.",
    "Classifications": {
      "dimensions": [
        { "name": "Classifications.name", "type": "string" },
        { "name": "Classifications.identifier", "type": "string" },
        { "name": "Classifications.rootClassificationId", "type": "string" },
        { "name": "Classifications.parentClassificationId", "type": "string" },
        { "name": "Classifications.sortIndex", "type": "number" },
        { "name": "Classifications.sortOrder", "type": "string" },
        { "name": "Classifications.createUser", "type": "string" },
        { "name": "Classifications.createDate", "type": "time" },
        { "name": "Classifications.lastModifiedUser", "type": "string" },
        { "name": "Classifications.lastModifiedDate", "type": "time" },
        { "name": "Classifications.contentType", "type": "string" }
      ]
    },
    "Collections": {
      "dimensions": [
        { "name": "Collections.name", "type": "string" },
        { "name": "Collections.createUser", "type": "string" },
        { "name": "Collections.createDate", "type": "time" },
        { "name": "Collections.lastModifiedUser", "type": "string" },
        { "name": "Collections.lastModifiedDate", "type": "time" },
        { "name": "Collections.viewType", "type": "string" },
        { "name": "Collections.scope", "type": "string" },
        { "name": "Collections.isPublic", "type": "string" },
        { "name": "Collections.description", "type": "string" },
        { "name": "Collections.searchExpression", "type": "string" },
        { "name": "Collections.numberOfAssets", "type": "number" }
      ]
    },
    "DateDimension": {
      "dimensions": [
        { "name": "DateDimension.date", "type": "time" },
        { "name": "DateDimension.year", "type": "number" },
        { "name": "DateDimension.quarterLabelId", "type": "number" },
        { "name": "DateDimension.monthLabelId", "type": "number" },
        { "name": "DateDimension.weekdayLabelId", "type": "number" },
        { "name": "DateDimension.monthLongNameLabelId", "type": "number" },
        { "name": "DateDimension.weekdayLongNameLabelId", "type": "number" },
        { "name": "DateDimension.yearStartDate", "type": "time" },
        { "name": "DateDimension.yearEndDate", "type": "time" },
        { "name": "DateDimension.quarterStartDate", "type": "time" },
        { "name": "DateDimension.quarterEndDate", "type": "time" },
        { "name": "DateDimension.monthStartDate", "type": "time" },
        { "name": "DateDimension.weekStartDateSun", "type": "time" },
        { "name": "DateDimension.weekStartDateMon", "type": "time" },
        { "name": "DateDimension.monthEndDate", "type": "time" },
        { "name": "DateDimension.monthOrder", "type": "number" },
        { "name": "DateDimension.weekdayOrder", "type": "number" },
        { "name": "DateDimension.julianDayNumber", "type": "number" },
        { "name": "DateDimension.fiscalYear", "type": "string" },
        { "name": "DateDimension.fiscalQuarter", "type": "string" },
        { "name": "DateDimension.fiscalMonthLabelId", "type": "number" },
        { "name": "DateDimension.fiscalYearStartDate", "type": "time" },
        { "name": "DateDimension.fiscalYearEndDate", "type": "time" },
        { "name": "DateDimension.fiscalQuarterStartDate", "type": "time" },
        { "name": "DateDimension.fiscalQuarterEndDate", "type": "time" },
        { "name": "DateDimension.fiscalMonthStartDate", "type": "time" },
        { "name": "DateDimension.fiscalMonthEndDate", "type": "time" },
        { "name": "DateDimension.fiscalMonthOrder", "type": "number" }
      ]
    },
    "FiscalMonth": { "dimensions": [{ "name": "FiscalMonth.label", "type": "string" }] },
    "Groups": {
      "dimensions": [
        { "name": "Groups.active", "type": "number" },
        { "name": "Groups.name", "type": "string" },
        { "name": "Groups.loginId", "type": "string" }
      ]
    },
    "ImpressionValues": {
      "dimensions": [
        { "name": "ImpressionValues.hitId", "type": "number" },
        { "name": "ImpressionValues.trackingTypeId", "type": "number" },
        { "name": "ImpressionValues.trackingTypeValueId", "type": "number" }
      ]
    },
    "ImpressionTrackingTypes": {
      "dimensions": [
        { "name": "ImpressionTrackingTypes.id", "type": "number" },
        { "name": "ImpressionTrackingTypes.queryStringKey", "type": "string" }
      ]
    },
    "ImpressionTrackingTypeValues": {
      "dimensions": [
        { "name": "ImpressionTrackingTypeValues.id", "type": "number" },
        { "name": "ImpressionTrackingTypeValues.value", "type": "string" }
      ]
    },
    "Month": { "dimensions": [{ "name": "Month.label", "type": "string" }] },
    "MonthLongName": { "dimensions": [{ "name": "MonthLongName.label", "type": "string" }] },
    "Quarter": { "dimensions": [{ "name": "Quarter.label", "type": "string" }] },
    "RecordMetadata": {
      "dimensions": [
        { "name": "RecordMetadata.aprimoContentUsage", "type": "string" },
        { "name": "RecordMetadata.keywords", "type": "string" },
        { "name": "RecordMetadata.smartTags", "type": "string" },
        { "name": "RecordMetadata.title", "type": "string" }
      ]
    },
    "Records": {
      "dimensions": [
        { "name": "Records.fileCount", "type": "number" },
        { "name": "Records.createUser", "type": "string" },
        { "name": "Records.createDate", "type": "time" },
        { "name": "Records.lastModifiedUser", "type": "string" },
        { "name": "Records.lastModifiedDate", "type": "time" },
        { "name": "Records.contentType", "type": "string" },
        { "name": "Records.parentRecordId", "type": "string" }
      ]
    },
    "Spaces": { "dimensions": [{ "name": "Spaces.name", "type": "string" }] },
    "Users": {
      "dimensions": [
        { "name": "Users.active", "type": "number" },
        { "name": "Users.firstName", "type": "string" },
        { "name": "Users.lastName", "type": "string" },
        { "name": "Users.middleName", "type": "string" },
        { "name": "Users.emailAddress", "type": "string" },
        { "name": "Users.loginId", "type": "string" },
        { "name": "Users.company", "type": "string" },
        { "name": "Users.department", "type": "string" },
        { "name": "Users.employeeNumber", "type": "string" },
        { "name": "Users.costCenter", "type": "string" },
        { "name": "Users.departmentCode", "type": "string" },
        { "name": "Users.altUserId", "type": "string" }
      ]
    },
    "Weekday": { "dimensions": [{ "name": "Weekday.label", "type": "string" }] },
    "WeekdayLongName": { "dimensions": [{ "name": "WeekdayLongName.label", "type": "string" }] }
  },
  "filterOperators": [
    "equals", "contains", "inDateRange", "gt", "gte", "lt", "lte", "set", "notSet"
  ]
}
```

---

## Support & Next Steps

1. **Test your setup:** Verify you can get an access token and run `{"measures": ["Downloads.count"]}`.
2. **Pick your language:** Use the code examples above as a starting point.
3. **Explore the API:** Ask Claude questions like:
   - "Show me a query for views by space, sorted by view count."
   - "What dimensions are available on the Impressions fact?"
   - "Build a Power BI-ready query for downloads by classification."
4. **Build & integrate:** Reference the Field Reference section above for exact field names as you build out queries.

### Static Documentation

The full Aprimo developer documentation is available at **https://developers.aprimo.com**.

**For AI/Claude:** The site uses dynamic rendering. To fetch static, AI-readable versions:

1. **Browse available docs:** https://developers.aprimo.com/llms.txt
2. **Fetch specific articles as plaintext:**
   - Authentication details: `https://developers.aprimo.com/doc-content/docs/OAuth2.txt`
   - Full Analytics API reference (all facts, all examples): `https://developers.aprimo.com/doc-content/docs/reporting/analytics-api.txt`
   - External reporting tools overview (Power BI, Crystal Reports, etc.): `https://developers.aprimo.com/doc-content/docs/reporting/reporting-intro.txt`
   - Rate limiting: `https://developers.aprimo.com/doc-content/docs/rate-limiting.txt`

### Going Further: help.aprimo.com

Aprimo also publishes a product help site, **help.aprimo.com**, covering UI, configuration, and admin behavior that the REST API docs don't — reach for it when a question is about what a feature *is* or how it behaves on-screen, not about API syntax.

It requires an authenticated session, and there's no API key or service account for it — access rides on the user being logged into an Aprimo instance in the same browser. If your agent has browser tooling available:

1. **Ask the user to log in.** Have them sign in to their Aprimo instance in that browser, then load help.aprimo.com in the same session. Don't attempt to authenticate yourself and never ask for credentials.
2. **Search instead of guessing paths.** The site is built on MadCap Flare, so guessed URLs mostly 404. Use `https://help.aprimo.com/?q=<terms>` to find exact topic paths, then open the results from there.
3. **If you can run JavaScript in that browser**, fetching `/Content/<path>` with `credentials: 'include'` and reading the parsed body text is faster than clicking through topic by topic — topic bodies render into an iframe that plain text extraction can miss.

If access fails, tell the user plainly that the session is missing and ask them to log in again, rather than retrying the same request.

---

**Ready to build?** Start with the examples above, ask Claude questions as you build, and refer to the full documentation at developers.aprimo.com for advanced patterns and reference.
