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

# Interest

> What the person does, from their camera roll, on Rollup's activity taxonomy.

```swift theme={null}
public struct Interest: Identifiable, Codable, Sendable, Equatable
```

What `Rollup.shared.interests(window:view:includeAll:)` returns, decided on the iPhone from the activities of the person's visits. Each interest is scored against how often a typical adult who takes as many photos does it, so a rare activity done now and then can rank high.

**id** `String`

The activity's stable id, such as `sports.racket.tennis`.

**name** `String`

A name to show.

**path** `[String]`

Names from the top of the taxonomy down.

**iab** `[Int]`

Matching IAB Audience Taxonomy 1.1 interest segment ids. Empty where none fits.

**strength, lifetimeStrength** `Double`

From 0 (typical) to 1. `strength` weighs recent days most, `lifetimeStrength` every day alike.

**timesTypical, lifetimeTimesTypical** `Double`

How often it is done compared with a typical adult (1 is typical).

**days, daysLastYear** `Int`

Days with it, in all and in the last year.

**firstSeen, lastSeen** `String`

Local dates, `yyyy-MM-dd`.

**status** `Status`

`active`, `emerging` or `lapsed`. With `includeAll`, also `typical` and `moment` (one day only).

**photos** `[String]`

A photo from each of its strongest days, strongest first, at most 10.

## InterestWindow

| Case | What it returns |
| - | - |
| `now` | Active and emerging interests, by `strength`. |
| `lifetime` | Every interest, lapsed ones too, by `lifetimeStrength`. |

## ActivityNode

```swift theme={null}
public struct ActivityNode: Identifiable, Codable, Sendable, Equatable
```

One activity of Rollup's taxonomy, from `Rollup.shared.activityTaxonomy`. The same ids appear in `SearchResult.activities` and in interests. The taxonomy has nothing about health, religion, politics, sexuality or children.

**id** `String`

Stable and dotted from the top: `sports.racket.tennis` belongs to `sports.racket`.

**name, path** `String, [String]`

Its name, and the names from the top down.

**iab** `[Int]`

Matching IAB Audience Taxonomy 1.1 interest segment ids.

**typicalDaysPerYear** `Double`

Days a year a typical adult does it and takes photos of it.

## JSON

```json theme={null}
{ "id": "sports.racket.tennis", "name": "Tennis", "path": ["Sports & Fitness", "Racket Sports", "Tennis"], "iab": [669], "strength": 0.62, "lifetimeStrength": 0.48, "timesTypical": 5.3, "lifetimeTimesTypical": 3.8, "days": 14, "daysLastYear": 11, "firstSeen": "2025-04-12", "lastSeen": "2026-10-26", "status": "active", "photos": ["A1B2.../L0/001"] }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.