{"id":19989,"date":"2017-07-14T13:44:54","date_gmt":"2017-07-14T18:44:54","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=19989"},"modified":"2022-02-03T13:27:53","modified_gmt":"2022-02-03T19:27:53","slug":"account-api-search-and-pagination","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/devicehq\/account-api\/account-api-search-and-pagination\/","title":{"rendered":"Account API &#8211; Search and Pagination"},"content":{"rendered":"<p>Devices can be searched and paginated within the \/api\/v2\/devices route. This search is similar to searches on\u00a0 the\u00a0DeviceHQ\u00a0website.<\/p>\n<ul>\n<li>A query parameter ( &#8220;q&#8221; ) will match against the various fields of the devices collection.<\/li>\n<li>Limit and skip parameters may be included. If no limit parameter is included, it will default to 500<\/li>\n<li>Examples:\n<ul>\n<li>GET https:\/\/devicehq.com\/api\/v2\/devices?limit=30\n<ul>\n<li>Retrieves the first 30 devices for an account.<\/li>\n<\/ul>\n<\/li>\n<li>GET https:\/\/devicehq.com\/api\/v2\/devices?limit=20&amp;skip=30\n<ul>\n<li>Retrieves devices 30 through 49 for an account.<\/li>\n<\/ul>\n<\/li>\n<li>GET https:\/\/devicehq.com\/api\/v2\/devices?q=MTCDT\n<ul>\n<li>Retrieves all the devices for an account matching on the phrase &#8220;MTCDT&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Devices can be searched and paginated within the \/api\/v2\/devices route. This search is similar to searches on\u00a0 the\u00a0DeviceHQ\u00a0website. A query parameter ( &#8220;q&#8221; ) will match against the various fields of the devices collection. Limit and skip parameters may be included. If no limit parameter is included, it will default to 500 Examples: GET https:\/\/devicehq.com\/api\/v2\/devices?limit=30 [&hellip;]<\/p>\n","protected":false},"author":2082,"featured_media":0,"parent":19942,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-19989","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/19989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/2082"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=19989"}],"version-history":[{"count":11,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/19989\/revisions"}],"predecessor-version":[{"id":28480,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/19989\/revisions\/28480"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/19942"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=19989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}