Get Project Vote Data
GET
/api/v2/analytics/projects/vote-counts
Analyticsv2
type (str): Query type ('fixed' or 'range')
days (int): Number of days to look back (for 'fixed' type)
start_date (str): Start date in ISO format (for 'range' type)
end_date (str): End date in ISO format (for 'range' type)
time_series (bool): Whether to return data in time series format
bucket_type (str): Type of time bucket ('day', 'week', 'month')
limit (int): Number of top entities to return per date bucket (default: 10)
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v2/analytics/projects/vote-counts'
Response Response Example
200 - Standard Response
{
"success": true,
"message": "Project votes data retrieved successfully",
"data": {
"votes": [
{
"project_name": "Example Project",
"upvote_count": 25,
"downvote_count": 5
}
]
}
}
Request
Query Params
bucket_type
enum<string>Â
optional
Allowed values:
daymonthweek
Default:
day
Example:
day
days
integerÂ
optional
Example:
30
end_date
stringÂ
optional
Example:
2024-03-31
limit
integerÂ
optional
Default:
10
Example:
10
project_id
array[integer]
optional
start_date
stringÂ
optional
Example:
2024-03-01
time_series
booleanÂ
optional
Default:
false
Example:
true
type
enum<string>Â
optional
Allowed values:
fixedrange
Example:
fixed