# sources

Query

List the listening sources (hashtags, @-mentions and keywords) of the current workspace, newest first. A source id is what `ItemFilterInput.sourcesIds` takes. Archive Radar finds the brand in the visual content of posts. Radar is set up by Archive; the API cannot show or change whether it is on. An item Radar found can carry a source id that this list does not include. Add mentions with `addMentionSources`; a mention of a connected account is managed in the Archive app under Settings › Sources. Keywords are managed there as YouTube Tracked terms where available, otherwise by Archive. For Radar or keywords, contact your Archive account manager or support. The source writes are `addTrackedHashtag`, `addMentionSources` and `removeTrackedSource` (a hashtag, or a mention with no connected account).

Available to agents as MCP tool `getSources` — see [Read tools](/api/v2/docs/mcp/read-tools#get-sources).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `after` | `String` | No | `null` | Cursor for fetching the next page of results. |
| `filter` | [`SourceFilterInput`](/api/v2/docs/types/source-filter-input) | No | `{}` | Filter criteria for listening sources. |
| `first` | `Int` | No | `20` | Number of sources to return (page size, default 20, max 100). |

## Returns

A paginated connection of [`Source`](/api/v2/docs/types/source) nodes. See [Pagination](/api/v2/docs/types/pagination) for the connection shape.

## Examples

### List listening sources

Page the workspace's tracked hashtags and mentions, newest first; a source id is what sourcesIds takes.

```graphql
query SourcesDefault($first: Int, $after: String, $filter: SourceFilterInput) {
  sources(first: $first, after: $after, filter: $filter) {
    totalCount
    nodes {
      id
      type
      provider
      name
      pulling
      detection
      createdAt
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
```

Variables:

```json
{
  "first": 20,
  "filter": {
    "types": [
      "HASHTAG",
      "MENTION"
    ]
  }
}
```

Response — HTTP 200:

```json
{
  "data": {
    "sources": {
      "totalCount": 2,
      "nodes": [
        {
          "id": "990200002",
          "type": "MENTION",
          "provider": "INSTAGRAM",
          "name": "northwindbotanicals",
          "pulling": true,
          "detection": true,
          "createdAt": "2024-12-31T11:00:00Z"
        },
        {
          "id": "990200001",
          "type": "HASHTAG",
          "provider": "TIKTOK",
          "name": "plantcare",
          "pulling": true,
          "detection": true,
          "createdAt": "2024-12-31T10:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": false,
        "endCursor": "Z2lkOi8vYXJjaGl2ZS9Tb3VyY2UvMjAyNC0xMi0zMVQxMDowMDowMC4wMDAwMDBafDk5MDIwMDAwMQ=="
      }
    }
  }
}
```
