{"id":22728,"date":"2025-04-17T14:06:01","date_gmt":"2025-04-17T14:06:01","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22728"},"modified":"2026-04-22T12:32:13","modified_gmt":"2026-04-22T12:32:13","slug":"how-to-export-data-via-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/troubleshooting\/general-api-troubleshooting\/how-to-export-data-via-api","title":{"rendered":"How to export data via API"},"content":{"rendered":"\n<p class=\"translation-block\">You can export data (e.g. reports) using the following API call. The key-value parameter for export type is <code>exportType<\/code>. Available values include <code>JSON<\/code>, <code>CSV<\/code>, <code>XLSX<\/code>, and <code>PDF<\/code>.<\/p>\n\n\n\n<div class=\"wp-block-custom-highlight-box custom-box color-green\"><div class=\"box-header\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\"><mask id=\"mask-green\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"24\" height=\"24\"><rect width=\"24\" height=\"24\" fill=\"#D9D9D9\"><\/rect><\/mask><g mask=\"url(#mask-green)\"><path d=\"M5 21.0001C4.45 21.0001 3.97917 20.8043 3.5875 20.4126C3.19583 20.0209 3 19.5501 3 19.0001V5.0001C3 4.4501 3.19583 3.97926 3.5875 3.5876C3.97917 3.19593 4.45 3.0001 5 3.0001H13.925L11.925 5.0001H5V19.0001H19V12.0501L21 10.0501V19.0001C21 19.5501 20.8042 20.0209 20.4125 20.4126C20.0208 20.8043 19.55 21.0001 19 21.0001H5ZM9 15.0001V10.7501L18.175 1.5751C18.375 1.3751 18.6 1.2251 18.85 1.1251C19.1 1.0251 19.35 0.975098 19.6 0.975098C19.8667 0.975098 20.1208 1.0251 20.3625 1.1251C20.6042 1.2251 20.825 1.3751 21.025 1.5751L22.425 3.0001C22.6083 3.2001 22.75 3.42093 22.85 3.6626C22.95 3.90426 23 4.1501 23 4.4001C23 4.6501 22.9542 4.89593 22.8625 5.1376C22.7708 5.37926 22.625 5.6001 22.425 5.8001L13.25 15.0001H9ZM11 13.0001H12.4L18.2 7.2001L17.5 6.5001L16.775 5.8001L11 11.5751V13.0001Z\" fill=\"#4CAF50\"><\/path><\/g><\/svg><span class=\"box-label\">Note<\/span><\/div><div class=\"box-content\">\n<p>If you are on a Free plan, you can only have 30 API requests per hour for the free workspace.<\/p>\n\n\n\n<p>Export to CSV\/Excel is a paid feature available in Basic plan or higher.<\/p>\n<\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example: Exporting Detailed Report as CSV<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/docs.clockify.me\/#tag\/Time-Entry-Report\/operation\/generateDetailedReport\"><code>POST \/v1\/workspaces\/{workspaceId}\/reports\/detailed<\/code><\/a><\/code><\/pre>\n\n\n\n<p>Headers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"X-Api-Key\": \"yourApiKey\", \n \n\"Content-Type\":\"application\/json\"\n\n&nbsp;&nbsp;<\/code><\/pre>\n\n\n\n<p>Body: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\n&nbsp;&nbsp;\"dateRangeStart\": \"2024-01-01T00:00:00.000\",\n\n&nbsp;&nbsp;\"dateRangeEnd\": \"2024-12-31T23:59:59.000\",\n\n&nbsp;&nbsp;\"exportType\": \"CSV\",\n\n&nbsp;&nbsp;\"detailedFilter\": {\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"page\": 1,\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"pageSize\": 1000\n\n&nbsp;&nbsp;}\n\n}\n\n\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Example: Exporting Summary Report as CSV<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code><code><a href=\"https:\/\/docs.clockify.me\/#tag\/Time-Entry-Report\/operation\/generateSummaryReport\">POST \/v1\/workspaces\/{workspaceId}\/reports\/summary<\/a><\/code><\/code><\/pre>\n\n\n\n<p>Headers:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"X-Api-Key\": \"yourApiKey\", \n \n\"Content-Type\":\"application\/json\"<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Body:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\n&nbsp;&nbsp;\"dateRangeStart\": \"2018-11-01T00:00:00Z\",\n\n&nbsp;&nbsp;\"dateRangeEnd\": \"2018-11-30T23:59:59.999Z\",\n\n&nbsp;&nbsp;\"exportType\": \"JSON\",\n\n&nbsp;&nbsp;\"summaryFilter\": {\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"groups\": 1,\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"sortColumn\": GROUP\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"summaryChartType\": \"PROJECT\"\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"page\": 1,\n\n&nbsp;&nbsp;&nbsp;&nbsp;\"pageSize\": 1000\n\n&nbsp;&nbsp;}\n\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"You can export data (e.g. reports) using the following API call. The key-value p&#8230;","protected":false},"author":25,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_status":1,"_searchwp_excluded":"","footnotes":""},"categories":[73],"tags":[],"class_list":["post-22728","post","type-post","status-publish","format-standard","hentry","category-general-api-troubleshooting"],"acf":[],"featured_image_src":null,"author_info":{"display_name":"tamara radijevac","author_link":"https:\/\/clockify.me\/help\/author\/tamara-radijevac"},"_links":{"self":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/comments?post=22728"}],"version-history":[{"count":7,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22728\/revisions"}],"predecessor-version":[{"id":30971,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22728\/revisions\/30971"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/media?parent=22728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/categories?post=22728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/tags?post=22728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}