<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Thema "Betreff: How are the API-calls counted?" in The Viessmann API</title>
    <link>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/309317#M1374</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have as well the impression that API calls are not counted as should be:&lt;/P&gt;&lt;P&gt;I am polling data every 30 minutes. For some testing, I added another job to poll every minute starting 1.00 (at night). At around 12.30 (noon), I exceeded the API limit - with 1 call/minute, it should have been working almost&amp;nbsp; the whole day (due to the additional 30 min calls).&lt;/P&gt;&lt;P&gt;What I forgot - due to issues retrieving data, I added auto-retry into my coding&amp;nbsp;&amp;nbsp; in case the API call failed and didn't retrieve data, it tried up to 5 times.&lt;/P&gt;&lt;P&gt;My impression:&lt;/P&gt;&lt;P&gt;1) The retries due to failures got counted&lt;/P&gt;&lt;P&gt;2) The API fails quiet frequently&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why that?&lt;/P&gt;&lt;P&gt;Thanks, Cbo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Feb 2023 13:41:41 GMT</pubDate>
    <dc:creator>cbo</dc:creator>
    <dc:date>2023-02-04T13:41:41Z</dc:date>
    <item>
      <title>How are the API-calls counted?</title>
      <link>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/216516#M547</link>
      <description>&lt;P&gt;Starting in November/December 2021 I noticed that the count of my monthly API Calls doubled without any change on the algorithms on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where there any changes how the calls are counted in the last few moths?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are the calls counted anyway?:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does autorisation request / access call count as 2 seperate calls (means using refresh token instead of new authorisation request saves one call?)&lt;/LI&gt;&lt;LI&gt;If there is no server response or an error from the Viessmann side, is the call still counted:&lt;UL&gt;&lt;LI&gt;"DEVICE_COMMUNICATION_ERROR" -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;"Internal server error" -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;No server response from viessmann (cron timeout) -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;"503 Service Temporarily Unavailable" -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;"... as there was a problem with external service" -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;"Error during authentication process" -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;"Token provided in request is expired or invalid" -&amp;gt; is this counted?&lt;/LI&gt;&lt;LI&gt;"TCP connection reset by peer" -&amp;gt; is this counted?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any clarification would be highly appreciated...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:30:49 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/216516#M547</guid>
      <dc:creator>davids1</dc:creator>
      <dc:date>2022-02-02T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How are the API-calls counted?</title>
      <link>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/217939#M550</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.viessmann.de/t5/user/viewprofilepage/user-id/32814"&gt;@davids1&lt;/a&gt; ,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am happy to clarify the counting of the API calls.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;First, there should not have&amp;nbsp;been any change to the API that leads&amp;nbsp;to the counting of the API calls to double. Are you running into rate limitation now? Could you send me a screenshot of your activity graph from the Developer Portal?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Concerning which calls are counted, the authorization calls are not counted to the rate limit of the API. For the other examples, I will have them checked to let you know, how each of the responses are treated in terms of API call counting.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 15:17:28 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/217939#M550</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2022-02-08T15:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How are the API-calls counted?</title>
      <link>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/217970#M553</link>
      <description>&lt;P&gt;Here is an update: In general,&amp;nbsp;all 5XX&amp;nbsp;errors are not counted, while 4XX are counted (except for authorization errors).&amp;nbsp;So I think none of your examples&amp;nbsp;should be counted.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 17:04:46 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/217970#M553</guid>
      <dc:creator>CustomerCareMichael</dc:creator>
      <dc:date>2022-02-08T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: How are the API-calls counted?</title>
      <link>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/218506#M557</link>
      <description>&lt;P&gt;Thanks for the precise and complete answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 12:40:55 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/218506#M557</guid>
      <dc:creator>davids1</dc:creator>
      <dc:date>2022-02-10T12:40:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: How are the API-calls counted?</title>
      <link>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/309317#M1374</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have as well the impression that API calls are not counted as should be:&lt;/P&gt;&lt;P&gt;I am polling data every 30 minutes. For some testing, I added another job to poll every minute starting 1.00 (at night). At around 12.30 (noon), I exceeded the API limit - with 1 call/minute, it should have been working almost&amp;nbsp; the whole day (due to the additional 30 min calls).&lt;/P&gt;&lt;P&gt;What I forgot - due to issues retrieving data, I added auto-retry into my coding&amp;nbsp;&amp;nbsp; in case the API call failed and didn't retrieve data, it tried up to 5 times.&lt;/P&gt;&lt;P&gt;My impression:&lt;/P&gt;&lt;P&gt;1) The retries due to failures got counted&lt;/P&gt;&lt;P&gt;2) The API fails quiet frequently&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why that?&lt;/P&gt;&lt;P&gt;Thanks, Cbo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 13:41:41 GMT</pubDate>
      <guid>https://community.viessmann.de/t5/The-Viessmann-API/How-are-the-API-calls-counted/m-p/309317#M1374</guid>
      <dc:creator>cbo</dc:creator>
      <dc:date>2023-02-04T13:41:41Z</dc:date>
    </item>
  </channel>
</rss>

