{"id":42,"date":"2012-01-09T09:41:55","date_gmt":"2012-01-09T14:41:55","guid":{"rendered":"https:\/\/uptimerobot.com\/blog\/?p=42"},"modified":"2025-11-13T15:18:02","modified_gmt":"2025-11-13T15:18:02","slug":"getting-uptime-ratios-of-any-period-via-api-now-possible","status":"publish","type":"post","link":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/","title":{"rendered":"Getting Uptime Ratios Of Any Period Via API &#8211; Now Possible!"},"content":{"rendered":"<p>Since the release of the API, the &#8220;all time uptime ratio&#8221; for each monitor is provided by default.<\/p>\n<p>Many users have asked for the ability to get weekly and\/or monthly uptime ratios to integrate more values into their websites\/apps.<\/p>\n<p>Today, we have added a new variable to the <a href=\"https:\/\/uptimerobot.com\/api\/#getMonitors\"><code>getMonitors<\/code><\/a> method which<strong> can return the uptime ratio of any given period<\/strong>.<\/p>\n<p>It can provide <strong>values back to 2 months<\/strong> (this is how long the logs are kept for).<\/p>\n<p>The new feature is smart enough to <strong>return the ratios of multiple intervals in a single API call<\/strong>.<\/p>\n<p>In order to use it, just add: <code>customUptimeRatio=7<\/code> to the <code>getMonitors<\/code> request for getting the 7 days uptime. Or you can go with <code>customUptimeRatio=7-30-60<\/code> to get uptime ratios of all 3 days.<\/p>\n<p>To learn more about the usage, just check the <a href=\"http:\/\/www.uptimerobot.com\/api\/#getMonitors\"><code>getMonitors<\/code><\/a> method in the API docs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the release of the API, the &#8220;all time uptime ratio&#8221; for each monitor is provided by default. Many users have asked for the ability to get weekly and\/or monthly uptime ratios to integrate more values into their websites\/apps. Today, we have added a new variable to the getMonitors method which can return the uptime [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_is_featured_guide":false,"_post_views":50,"_reading_completions":130,"footnotes":""},"categories":[2],"tags":[6],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-announcements","tag-api"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting Uptime Ratios Of Any Period Via API - Now Possible! | UptimeRobot Blog<\/title>\n<meta name=\"description\" content=\"New API variable added to UptimeRobot lets you pull uptime ratios for any given period via getMonitors, perfect for weekly or monthly stats.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Uptime Ratios Of Any Period Via API - Now Possible! | UptimeRobot Blog\" \/>\n<meta property=\"og:description\" content=\"New API variable added to UptimeRobot lets you pull uptime ratios for any given period via getMonitors, perfect for weekly or monthly stats.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\" \/>\n<meta property=\"og:site_name\" content=\"UptimeRobot Blog\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-09T14:41:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T15:18:02+00:00\" \/>\n<meta name=\"author\" content=\"Tomas Koprusak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomas Koprusak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\"},\"author\":{\"name\":\"Tomas Koprusak\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/4e351b3eb3c7a5987a73b413d8354468\"},\"headline\":\"Getting Uptime Ratios Of Any Period Via API &#8211; Now Possible!\",\"datePublished\":\"2012-01-09T14:41:55+00:00\",\"dateModified\":\"2025-11-13T15:18:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\"},\"wordCount\":147,\"commentCount\":25,\"keywords\":[\"API\"],\"articleSection\":[\"Announcements\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\",\"url\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\",\"name\":\"Getting Uptime Ratios Of Any Period Via API - Now Possible! | UptimeRobot Blog\",\"isPartOf\":{\"@id\":\"https:\/\/uptimerobot.com\/blog\/#website\"},\"datePublished\":\"2012-01-09T14:41:55+00:00\",\"dateModified\":\"2025-11-13T15:18:02+00:00\",\"author\":{\"@id\":\"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/4e351b3eb3c7a5987a73b413d8354468\"},\"description\":\"New API variable added to UptimeRobot lets you pull uptime ratios for any given period via getMonitors, perfect for weekly or monthly stats.\",\"breadcrumb\":{\"@id\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/uptimerobot.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Announcements\",\"item\":\"https:\/\/uptimerobot.com\/blog\/category\/announcements\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Getting Uptime Ratios Of Any Period Via API &#8211; Now Possible!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/#website\",\"url\":\"https:\/\/uptimerobot.com\/blog\/\",\"name\":\"UptimeRobot Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/uptimerobot.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/4e351b3eb3c7a5987a73b413d8354468\",\"name\":\"Tomas Koprusak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/42e6751dc39e91f1c7ab4926189550054308e366428ceb70e9621d680b843032?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/42e6751dc39e91f1c7ab4926189550054308e366428ceb70e9621d680b843032?s=96&d=retro&r=g\",\"caption\":\"Tomas Koprusak\"},\"description\":\"He has worked for Sygic as a marketer and co-led the implementation and development of a product acquired from a competitor. He has also worked as a freelance developer, helping clients from various areas. Tomas brings a wealth of industry experience to our team. He spent a few years in the blockchain industry, leading projects and marketing teams at multiple blockchain-based companies. He has presented products and managed deals in more than 10 countries around the world, managed the ICO, and built a successful marketing team at Fuergy that continues to thrive. Tomas managed a product team for the biggest job site in Slovakia, covering development and transformation to a new B2B app. Not only is Tomas skilled at web development, but he also has a deep understanding of SaaS businesses, which makes him an invaluable asset in shaping and leading various projects at UptimeRobot. His focus is always on the continual improvement of our service and user experience. In addition to his professional achievements, Tomas is a devoted father. His personal interests include cycling (he traveled around the whole country of Slovakia), playing guitar (he even played in a band), servicing bikes, music, and enjoying good beer.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/tomas-koprusak\"],\"url\":\"https:\/\/uptimerobot.com\/blog\/author\/tomas\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Uptime Ratios Of Any Period Via API - Now Possible! | UptimeRobot Blog","description":"New API variable added to UptimeRobot lets you pull uptime ratios for any given period via getMonitors, perfect for weekly or monthly stats.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/","og_locale":"en_US","og_type":"article","og_title":"Getting Uptime Ratios Of Any Period Via API - Now Possible! | UptimeRobot Blog","og_description":"New API variable added to UptimeRobot lets you pull uptime ratios for any given period via getMonitors, perfect for weekly or monthly stats.","og_url":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/","og_site_name":"UptimeRobot Blog","article_published_time":"2012-01-09T14:41:55+00:00","article_modified_time":"2025-11-13T15:18:02+00:00","author":"Tomas Koprusak","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomas Koprusak","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#article","isPartOf":{"@id":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/"},"author":{"name":"Tomas Koprusak","@id":"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/4e351b3eb3c7a5987a73b413d8354468"},"headline":"Getting Uptime Ratios Of Any Period Via API &#8211; Now Possible!","datePublished":"2012-01-09T14:41:55+00:00","dateModified":"2025-11-13T15:18:02+00:00","mainEntityOfPage":{"@id":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/"},"wordCount":147,"commentCount":25,"keywords":["API"],"articleSection":["Announcements"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/","url":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/","name":"Getting Uptime Ratios Of Any Period Via API - Now Possible! | UptimeRobot Blog","isPartOf":{"@id":"https:\/\/uptimerobot.com\/blog\/#website"},"datePublished":"2012-01-09T14:41:55+00:00","dateModified":"2025-11-13T15:18:02+00:00","author":{"@id":"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/4e351b3eb3c7a5987a73b413d8354468"},"description":"New API variable added to UptimeRobot lets you pull uptime ratios for any given period via getMonitors, perfect for weekly or monthly stats.","breadcrumb":{"@id":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/uptimerobot.com\/blog\/getting-uptime-ratios-of-any-period-via-api-now-possible\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/uptimerobot.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Announcements","item":"https:\/\/uptimerobot.com\/blog\/category\/announcements\/"},{"@type":"ListItem","position":3,"name":"Getting Uptime Ratios Of Any Period Via API &#8211; Now Possible!"}]},{"@type":"WebSite","@id":"https:\/\/uptimerobot.com\/blog\/#website","url":"https:\/\/uptimerobot.com\/blog\/","name":"UptimeRobot Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/uptimerobot.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/4e351b3eb3c7a5987a73b413d8354468","name":"Tomas Koprusak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/uptimerobot.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/42e6751dc39e91f1c7ab4926189550054308e366428ceb70e9621d680b843032?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42e6751dc39e91f1c7ab4926189550054308e366428ceb70e9621d680b843032?s=96&d=retro&r=g","caption":"Tomas Koprusak"},"description":"He has worked for Sygic as a marketer and co-led the implementation and development of a product acquired from a competitor. He has also worked as a freelance developer, helping clients from various areas. Tomas brings a wealth of industry experience to our team. He spent a few years in the blockchain industry, leading projects and marketing teams at multiple blockchain-based companies. He has presented products and managed deals in more than 10 countries around the world, managed the ICO, and built a successful marketing team at Fuergy that continues to thrive. Tomas managed a product team for the biggest job site in Slovakia, covering development and transformation to a new B2B app. Not only is Tomas skilled at web development, but he also has a deep understanding of SaaS businesses, which makes him an invaluable asset in shaping and leading various projects at UptimeRobot. His focus is always on the continual improvement of our service and user experience. In addition to his professional achievements, Tomas is a devoted father. His personal interests include cycling (he traveled around the whole country of Slovakia), playing guitar (he even played in a band), servicing bikes, music, and enjoying good beer.","sameAs":["https:\/\/www.linkedin.com\/in\/tomas-koprusak"],"url":"https:\/\/uptimerobot.com\/blog\/author\/tomas\/"}]}},"_links":{"self":[{"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:attachment":[{"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uptimerobot.com\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}