get_ontology_analytics
Retrieve visitor analytics for BioPortal ontologies, with filtering by month, year, or specific ontology acronym to analyze traffic patterns.
Instructions
Get visitor analytics for BioPortal ontologies.
This function retrieves Google Analytics data for ontology visits. You can get analytics for all ontologies, filter by month/year, or get detailed analytics for a specific ontology.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year to filter analytics (e.g., 2024). Only valid when ontology_acronym is None. | |
| month | No | Month number (1-12) to filter analytics. Only valid when ontology_acronym is None. | |
| api_key | No | BioPortal API key. If not provided, uses BIOPORTAL_API_KEY environment variable. | |
| ontology_acronym | No | Ontology acronym to get analytics for (e.g., "NCIT", "GO"). If None, returns analytics for all ontologies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||