# Get plugin-tag analytics

`GET /api/plugins/analytics/tags`

Retrieve analytics and statistics about plugin-tag relationships including most popular tags and most tagged plugins.

Authentication: no security requirement declared for this operation.

Parameters:

- `tenantId` (query, string, optional) - Filter analytics by tenant ID
  Type: string

- `organizationId` (query, string, optional) - Filter analytics by organization ID
  Type: string

Responses:

- 200: Successfully retrieved plugin-tag analytics

Content type: application/json

Type: object

- `totalRelationships` (optional)
  Type: number

- `taggedPlugins` (optional)
  Type: number

- `usedTags` (optional)
  Type: number

- `popularTags` (optional)
  Type: array
  
  Items:
    Type: object

- `mostTaggedPlugins` (optional)
  Type: array
  
  Items:
    Type: object

## Examples

### cURL

```bash
curl -X GET 'http://localhost:3000/api/plugins/analytics/tags'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugins/analytics/tags', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('http://localhost:3000/api/plugins/analytics/tags')
print(response.text)
```
