{"id":237,"date":"2020-01-24T15:40:01","date_gmt":"2020-01-24T15:40:01","guid":{"rendered":"https:\/\/stockpack.co\/blog\/?p=237"},"modified":"2020-03-11T08:06:48","modified_gmt":"2020-03-11T08:06:48","slug":"how-are-requests-counted","status":"publish","type":"post","link":"https:\/\/stockpack.co\/blog\/how-are-requests-counted\/","title":{"rendered":"How are requests counted"},"content":{"rendered":"\n<p>Lately, I have seen a lot of people mentioning that they do not clearly understand what the pricing page means by <strong>request<\/strong>.<\/p>\n\n\n\n<p>Here&#8217;s a detailed breakdown of how that works. Don&#8217;t worry it&#8217;s not that long \ud83d\ude42<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>A request is counted when the plugin makes a call to the server. Here&#8217;s when the plugin makes that call<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>When you search any query it counts as 1 request per page<\/li><li>A download counts as 1 request. <\/li><li>A query into the license cost of an image counts as 1 request<\/li><\/ol>\n\n\n\n<p>There are a few things to be added:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>If you do not refresh the page the search is cached, so if you want to search the same thing again, it will work instantly and you will not consume a request<\/li><li>Searches load automatically as you scroll to fill the page. This is the same as how the native media library does it. If you have a large screen you will load 2 pages when you search. This is because one page has 30 images. <\/li><li>When you switch the provider a search is made automatically to update the images, so that counts as a separate request<\/li><\/ol>\n\n\n\n<p>Also, you need to keep in mind:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Even if you do not get 30 images in a search, or even no images, a request is still counted. That is because the provider does not have an answer but a call is still made.<\/li><li>When the quota is reached, you will get a timer that will show you how much time you will have to wait for the queries. Since this is per hour, it will always be less than an hour. <\/li><\/ol>\n\n\n\n<p>If you have any questions please feel free to reach us. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately, I have seen a lot of people mentioning that they do not clearly understand what the pricing page means by request. Here&#8217;s a detailed breakdown of how that works. Don&#8217;t worry it&#8217;s not that long \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":238,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-help"],"_links":{"self":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":5,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/posts\/237\/revisions\/266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/media\/238"}],"wp:attachment":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}