retrieve dashboard stats
1 min
GET
https://api.waydev.co/v2/stats/dashboard
Query Parameters
- teams_idstringrequiredDescription
- repositoriesstringrequiredDescription
- end_datestringDescription
- start_datestringDescription
- periodintegerDescription
Header Parameters
- AuthorizationstringrequiredDescription
Responses
200
- DashboardItemDescription
- mainMainStatsItem
- impactstringExample
- efficiencyintegerExample
- active_daysintegerExample
- commits_per_daystringExample
- code_newintegerExample
- code_refactorintegerExample
- code_helpintegerExample
- code_churnintegerExample
- percentsMainStatsPercentsItem
- impactintegerExample
- active_daysintegerExample
- commits_per_dayintegerExample
- efficiencyintegerExample
- developersDeveloperStatsItem[]
- idintegerExample
- namestringExample
- usernamestringExample
- avatarstringExample
- impactstringExample
- efficiencyintegerExample
- active_daysintegerExample
- commits_per_daystringExample
- code_newintegerExample
- code_refactorintegerExample
- code_helpintegerExample
- code_churnintegerExample
- infoDeveloperInfoItem[]
- display_namestringExample
- display_avatarstringExample
- is_processingboolean
- paid_licencesintegerExample
- status_codeintegerExample
401
curl
curl --request GET \
--url 'https://api.waydev.co/v2/stats/dashboard?teams_id=string&repositories=string' \
--header 'accept: application/json' \
--header 'authorization: string'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.waydev.co/v2/stats/dashboard?teams_id=string&repositories=string", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.waydev.co/v2/stats/dashboard?teams_id=string&repositories=string")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["authorization"] = "string"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.waydev.co/v2/stats/dashboard?teams_id=string&repositories=string"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'authorization': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// search results matching criteria
{
"main": {
"impact": "157.13",
"efficiency": 96,
"active_days": 4,
"commits_per_day": "3.00",
"code_new": 61,
"code_refactor": 35,
"code_help": 1,
"code_churn": 3,
"percents": {
"impact": 50,
"active_days": -15,
"commits_per_day": 25,
"efficiency": 73
}
},
"developers": [
{
"id": 3542,
"name": "John Doe",
"username": "johndoe64",
"avatar": "https://avatars3.githubusercontent.com/u/2746712?v=4",
"impact": "157.13",
"efficiency": 96,
"active_days": 4,
"commits_per_day": "3.00",
"code_new": 61,
"code_refactor": 35,
"code_help": 1,
"code_churn": 3,
"info": [
{
"display_name": "Andrew Bush",
"display_avatar": "https://avatars3.githubusercontent.com/u/2746712?v=4"
}
]
}
],
"is_processing": false,
"paid_licences": 1,
"status_code": 200
}401
// bad input parameter