{"id":572,"date":"2021-06-22T14:51:53","date_gmt":"2021-06-22T14:51:53","guid":{"rendered":"https:\/\/imagify.io\/documentation\/?p=572"},"modified":"2024-08-16T08:40:52","modified_gmt":"2024-08-16T08:40:52","slug":"using-imagify-api-optimize-images","status":"publish","type":"post","link":"https:\/\/imagify.io\/documentation\/using-imagify-api-optimize-images\/","title":{"rendered":"Using the Imagify API To Optimize Images"},"content":{"rendered":"<p>If your website is not based on WordPress but you&#8217;d still like to use Imagify&#8217;s image optimization service, then the Imagify API can be used in order to create a custom solution. To get started, you can visit the <a href=\"https:\/\/imagify.io\/docs\/api\/\" target=\"_blank\" rel=\"noopener\">Imagify API Documentation<\/a>.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-574\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-documentation-page.png\" alt=\"\" width=\"797\" height=\"371\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-documentation-page.png 797w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-documentation-page-300x140.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-documentation-page-768x358.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/>\n<p>The documentation is available in PHP, Python, and Shell versions and contains code examples to help you along the way.<\/p>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-576\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-code-example.png\" alt=\"\" width=\"392\" height=\"287\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-code-example.png 392w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/06\/api-code-example-300x220.png 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/>\n<h2>Ready to use Imagify API Clients<\/h2>\n<p>There are a couple of available &#8220;ready-to-use&#8221; Imagify API clients you might consider using.<\/p>\n<p>Python API Client &#8211; <a href=\"https:\/\/github.com\/wp-media\/imagify-python\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/wp-media\/imagify-python<\/a><\/p>\n<p>PHP API Client &#8211; <a href=\"https:\/\/github.com\/wp-media\/imagify-php\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/wp-media\/imagify-php<\/a><\/p>\n<h3>Third party clients (not maintained by Imagify team)<\/h3>\n<p>There are some unofficial clients as well. While these should work just fine, please note that these are not maintained by our team and we can not provide support for any technical issues related to them.<\/p>\n<p>#1 NodeJS API Client &#8211; <a href=\"https:\/\/www.npmjs.com\/package\/imagify-nodejs\" target=\"_blank\" rel=\"noopener\">https:\/\/www.npmjs.com\/package\/imagify-nodejs<\/a><\/p>\n<p>#2 NodeJS API Client &#8211; <a href=\"https:\/\/www.npmjs.com\/package\/node-imagify-api\" target=\"_blank\" rel=\"noopener\">https:\/\/www.npmjs.com\/package\/node-imagify-api<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your website is not based on WordPress but you&#8217;d still like to use Imagify&#8217;s image optimization service, then the Imagify API can be used in order to create a custom solution. To get started, you can visit the Imagify API Documentation. The documentation is available in PHP, Python, and Shell versions and contains code [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/comments?post=572"}],"version-history":[{"count":4,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":1030,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/572\/revisions\/1030"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/media?parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/categories?post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/tags?post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}