Get All time entries from a project

Is there a way that I can get all the time entries in a project. Currently to get all the time-entries in a project, I must iterate throught all the members of the project get every ones time-entry on that project. :frowning:

There will be numberOfMembers + 1 request to be made. ( + 1 to get the project with all it’s members).

Hi Stefan! You can use the reports endpoints to get the entries of all users, just filter it for the project you need.

how should a request look like?

https://reports.api.clockify.me/v1/workspaces/{workspaceId}/reports/summary?

How should I call it using Postman for example? Sorry for bothering you so much.

I would suggest using the detailed report rather than summary, since summary report gives you summarized totals, while detailed has time entries listed.

https://reports.api.clockify.me/v1/workspaces/{workspaceId}/reports/detailed

with POST method would be for the detailed report.

You can see the example in the documentation here.

1 Like

I solved it. Thnx for the reply. It’s ok if I leave a reply with an example of the body.
Maybe it will help someone later. Again thnx for the reply

{

    "dateRangeStart": "2020-05-22T00:00:00.000Z",

    "dateRangeEnd": "2020-10-30T23:59:59.000Z",

    "detailedFilter": {

        "page": 1,

        "pageSize": 100,

        "sortColumn": "DATE"

    },

    "sortOrder": "DESCENDING",

    "exportType": "JSON",

    "rounding": false,

    "amountShown": "HIDE_AMOUNT",

    "projects": {

        "ids": [

            "{yourProjectId}"

        ]

    }

}