{"info":{"_postman_id":"f4728811-2c2d-420c-b256-314c1fcdb4e0","name":"ImageTranslate","description":"<html><head></head><body><p>An automated way to translate images with text to recreate and reuse the translated images. (<a href=\"http://www.imagetranslate.com\">www.imagetranslate.com</a>).<br>This documentation includes basic API calls to create project and retrieve results from <a href=\"https://www.imagetranslate.com?ref=postman\">ImageTranslate</a></p>\n<p><strong>Pre-requisites to access the APIs:</strong></p>\n<ul>\n<li>You need to have an \"organization\" type account on ImageTranslate. You can request it at <em><a href=\"mailto:team@imagetranslate.com\">team@imagetranslate.com</a></em> </li>\n<li>You will need to generate an API Key using the ImageTranslate dashboard (<a href=\"https://www.imagetranslate.com/user/account\">https://www.imagetranslate.com/user/account</a>) to start using the APIs. \nThis API Key has to be passed in the headers for all requests.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9539413","collectionId":"f4728811-2c2d-420c-b256-314c1fcdb4e0","publishedId":"TzCQamUm","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"f51d6b"},"publishDate":"2021-04-05T07:18:42.000Z"},"item":[{"name":"Create Project","id":"42c706ca-7821-4d39-a002-2dea262a7460","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":""},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"source_language\": \"language ISO code\",\n    \"target_languages\": \"comma separated language ISO codes\",\n    \"image_urls\": [\"url-to-image-asset-1\", \"url-to-image-asset-2\"],\n    \"title\": \"optional title\"\n}"},"url":"https://www.imagetranslate.com/api/create","description":"<p>Creates project and returns an ID if successful</p>\n<p>A project is a set of input images to be translated. \nThe parameters to be passed in the body:</p>\n<ul>\n<li><strong>source_language</strong>: <em>String</em><br /> The iso code language of text on input images. You can only pass images with the same source language at once.</li>\n<li><strong>target_language</strong>: <em>Array</em><br />Set iso codes of languages for the required output images</li>\n<li><strong>image_urls</strong>: <em>Array</em><br />Accessible public URLs of images</li>\n<li><strong>title</strong>: <em>String</em><br />Name of the project (optional)</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","create"],"host":["www","imagetranslate","com"],"query":[],"variable":[]}},"response":[{"id":"240a1c68-37ce-40a1-9e6b-417a697c19e3","name":"Create Project","originalRequest":{"method":"POST","header":[{"key":"api-key","value":""},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"source_language\": \"language ISO code\",\n    \"target_languages\": \"comma separated language ISO codes\",\n    \"image_urls\": [\"url-to-image-asset-1\", \"url-to-image-asset-2\"],\n    \"title\": \"optional title\"\n}","options":{"raw":{"language":"json"}}},"url":"https://www.imagetranslate.com/api/create"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5cc6a5d81f89fd509faa86b3\",\n    \"message\": \"Project created successfully\"\n}"}],"_postman_id":"42c706ca-7821-4d39-a002-2dea262a7460"},{"name":"Get Project","id":"a0e3311e-7a6e-421b-a810-f4e5f43735d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":""}],"url":"https://www.imagetranslate.com/api/get/PROJECT-ID","description":"<p>Retrieve results of a project that has been created.\nThe <strong>processed</strong> flag in the response indicates whether an individual image is completely processed or not.</p>\n<ul>\n<li><em>true</em>: image is processed completely and ready to be downloaded</li>\n<li><em>false</em>: image is still under processing\nResponse Structure:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"id\": \"project_id\",\n  \"message\": \"Use the processed flag to continue or stop polling\",\n  \"results\": [ //set of output images\n                { //image1\n                   *&lt;target_lang1_iso_code&gt;*: {\n                   \"editor_url\": *A url where you can access the image in browser to make some manual edits*,\n                   \"export_url\": *Url to download the translated image*,\n                   \"processed\": *status of this image.(true/false)*\n                     },\n                \n                   *&lt;target_lang2_iso_code&gt;*: {\n                   \"editor_url\": \"\",\n                   \"export_url\": \"\",\n                   \"processed\": \"\"\n                    }\n               },\n               { //image2\n                   *&lt;target_lang1_iso_code&gt;*: {\n                   \"editor_url\": \"\",\n                   \"export_url\": \"\",\n                   \"processed\": \"\"\n                    },\n                    *&lt;target_lang2_iso_code&gt;*: {\n                   \"editor_url\": \"\",\n                   \"export_url\": \"\",\n                   \"processed\": \"\"\n                    }\n\n               }\n]\n</code></pre><p>To save the image file, you can <code>wget</code> the <code>export_url</code>.</p>\n<p><code>wget -O image.png export_url</code></p>\n","urlObject":{"protocol":"https","path":["api","get","PROJECT-ID"],"host":["www","imagetranslate","com"],"query":[],"variable":[]}},"response":[{"id":"f286fc90-13d8-4532-8b50-0faa47edb1e8","name":"Get Project","originalRequest":{"method":"GET","header":[{"key":"api-key","value":""}],"url":{"raw":"https://www.imagetranslate.com/api/get/PROJECT-ID?api-key=","protocol":"https","host":["www","imagetranslate","com"],"path":["api","get","PROJECT-ID"],"query":[{"key":"api-key","value":"","type":"text"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"5cc6a5d81f89fd509faa86b3\",\n    \"message\": \"Use the processed flag to continue or stop polling\",\n    \"results\": [\n        {\n            \"ja\": {\n                \"editor_url\": \"https://www.imagetranslate.com/editor/target/5cc6a5d81f89fd509faa86b3/Japanese\",\n                \"export_url\": \"https://www.imagetranslate.com/export/5cc6a5d81f89fd509faa86aa\",\n                \"processed\": true\n            },\n            \"ru\": {\n                \"editor_url\": \"https://www.imagetranslate.com/editor/target/5cc6a5d81f89fd509faa86b3/Russian\",\n                \"export_url\": \"https://www.imagetranslate.com/export/5cc6a5d81f89fd509faa86b0\",\n                \"processed\": true\n            },\n            \"th\": {\n                \"editor_url\": \"https://www.imagetranslate.com/editor/target/5cc6a5d81f89fd509faa86b3/Thai\",\n                \"export_url\": \"https://www.imagetranslate.com/export/5cc6a5d81f89fd509faa86ad\",\n                \"processed\": true\n            }\n        },\n        {\n            \"ja\": {\n                \"editor_url\": \"https://www.imagetranslate.com/editor/target/5cc6a5d81f89fd509faa86b3/Japanese\",\n                \"export_url\": \"https://www.imagetranslate.com/export/5cc6a5d81f89fd509faa86ab\",\n                \"processed\": true\n            },\n            \"ru\": {\n                \"editor_url\": \"https://www.imagetranslate.com/editor/target/5cc6a5d81f89fd509faa86b3/Russian\",\n                \"export_url\": \"https://www.imagetranslate.com/export/5cc6a5d81f89fd509faa86b1\",\n                \"processed\": true\n            },\n            \"th\": {\n                \"editor_url\": \"https://www.imagetranslate.com/editor/target/5cc6a5d81f89fd509faa86b3/Thai\",\n                \"export_url\": \"https://www.imagetranslate.com/export/5cc6a5d81f89fd509faa86ae\",\n                \"processed\": true\n            }\n        }\n    ]\n}"}],"_postman_id":"a0e3311e-7a6e-421b-a810-f4e5f43735d6"},{"name":"Delete Project","id":"be3bdf8c-3bb3-4f4e-90a8-6978ef02db6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"api-key","value":""}],"body":{"mode":"formdata","formdata":[]},"url":"https://www.imagetranslate.com/api/delete/PROJECT-ID","description":"<p>Delete an existing project</p>\n","urlObject":{"protocol":"https","path":["api","delete","PROJECT-ID"],"host":["www","imagetranslate","com"],"query":[],"variable":[]}},"response":[{"id":"716090db-64b0-4688-b767-2563b0042695","name":"Delete Project","originalRequest":{"method":"DELETE","header":[{"key":"api-key","value":""}],"body":{"mode":"formdata","formdata":[]},"url":"https://www.imagetranslate.com/api/delete/PROJECT-ID"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Project deleted successfully\"\n}"}],"_postman_id":"be3bdf8c-3bb3-4f4e-90a8-6978ef02db6a"}],"event":[{"listen":"prerequest","script":{"id":"fbb1911f-0af0-4a11-a00a-85258841e94d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"96cd8ead-2b66-473b-97b4-726641b74463","type":"text/javascript","exec":[""]}}],"variable":[{"id":"8c2e8407-1ea4-41a0-9aac-eff2fcfd55af","key":"YOUR-API-KEY","value":"","type":"string"}]}