---
title: "Comprehensive analytics dashboard query"
description: "Build analytics dashboard with faceting, range faceting, field selection, and multiple filters"
source: https://apitube.io/cookbook/comprehensive-analytics-dashboard-query
---

#### Input parameters

| Parameter            | Description                                    | Type    | Default | Required |
|:---------------------|:-----------------------------------------------|:--------|:--------|:---------|
| organization.name    | Organization filter.                            | string  |         | Yes      |
| facet                | Enable regular faceting.                        | boolean | true    | Yes      |
| facet.field          | Multiple fields for faceting.                   | string  |         | Yes      |
| facet.range          | Enable range faceting.                          | boolean | true    | Yes      |
| facet.range.field    | Field for range faceting.                       | string  |         | Yes      |
| facet.range.start    | Start date for range.                            | string  |         | Yes      |
| facet.range.end      | End date for range.                             | string  |         | Yes      |
| facet.range.gap      | Gap between ranges.                              | string  |         | Yes      |
| fl                   | Field selection.                                 | string  |         | Yes      |
| source.rank.opr.min  | Minimum source quality.                         | string  |         | Yes      |
| api_key              | Your API key.                                  | string  |         | Yes      |
| per_page             | Maximum number of articles to retrieve.       | integer | 50      | No       |

#### Workflow examples

##### Request for comprehensive analytics dashboard:

```shell
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Tesla&facet=true&facet.field=source.id,language.id,sentiment.overall.polarity,published.day_of_week&facet.range=true&facet.range.field=published_at&facet.range.start=2024-01-01&facet.range.end=2024-12-31&facet.range.gap=1MONTH&fl=id,title,published_at,sentiment.overall.score&source.rank.opr.min=5&api_key=YOUR_API_KEY"
```

##### Request for sentiment strength analysis:

```shell
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Tesla&facet=true&facet.field=sentiment.strength,sentiment.overall.polarity&api_key=YOUR_API_KEY"
```

##### Request for yearly trend analysis:

```shell
curl -X GET "https://api.apitube.io/v1/news/everything?topic.id=artificial_intelligence&facet=true&facet.field=published.year,published.month&published_at.start=2020-01-01&api_key=YOUR_API_KEY"
```

---

#### Related Examples

- [Get articles with faceting for analytics](/cookbook/get-articles-with-faceting-for-analytics)
- [Advanced faceting with multiple filters](/cookbook/advanced-faceting-with-multiple-filters)
- [Combined regular and range faceting](/cookbook/combined-regular-and-range-faceting)
- [Select specific fields](/cookbook/select-specific-fields-to-reduce-payload-size)
- [Sort by engagement score](/cookbook/sort-articles-by-engagement-score)

