Heyhey,
for the analytics endpoint POST /analytics/query there are filters. These filters accept properties. Is there somewhere a list of these properties?
{
"collection": "post",
"type": "count",
"filters": [
{
"prop": "type",
"op": "eq",
"val": "discussion_add"
} ],
"interval": "monthly",
"start": "2023-01-01T00:00:00",
"end": "2024-12-31T00:00:00"
}
By the analytics dashboards I could determine the following labels but I was failing in retrieving the right tokens to use in the API for prop:
Category ID
Category Name
Parent Category ID (Level 1)
Type
Parent Category Name (Level 1)
Parent Category ID (Level 2)
Parent Category Name (Level 2)
Comment Name
Comment ID
Comment URL
First Comment?
Time
Discussion Comment Count
Date Added
Discussion Name
Comment Discussion Type
Post Start Date
Discussion ID
Discussion Type
Discussion Author Name
Discussion Author Rank
Discussion Author Role Type
Discussion Author Role Names
Discussion Author Role IDs
Discussion Author ID
Discussion Author UUID
Country
Country Code
User Name
User Rank
User Role Type
User Role Name
User Role ID
User Session ID
User ID
User UUID
Same question also for the related val of the prop - for normal strings and IDs its pretty clear, but for example all the type properties.
For example: I see there must be a discussion_add for the type prop
Can you please provide me a list of filter properties to be used with the analytics API or point me to the article with this information (I coulnd find one :( )
Ideally this is added in the API documention in here:
https://success.vanillaforums.com/kb/articles/202-api-v2-reference-endpoints#/analytics/post_analytics_query
All the best,
Florian