Fetch and convert a remote image
curl --request GET \
--url https://beta.creatorcore.co/api/v2/utilities/img \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/utilities/img', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/utilities/img"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)"<string>"Utilities
Fetch and convert a remote image
Fetches an image from an allowed remote URL and returns the bytes. HEIC sources are converted to JPEG. Available to authenticated callers and anonymously for public embeds. Signed CDN URLs past oe / x-expires return 404. Upstream fetch failures return 502.
GET
/
api
/
v2
/
utilities
/
img
Fetch and convert a remote image
curl --request GET \
--url https://beta.creatorcore.co/api/v2/utilities/img \
--header 'Authorization: Bearer <token>' \
--header 'X-CreatorCore-Organization-Id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'X-CreatorCore-Organization-Id': '<api-key>'}
};
fetch('https://beta.creatorcore.co/api/v2/utilities/img', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://beta.creatorcore.co/api/v2/utilities/img"
headers = {
"Authorization": "Bearer <token>",
"X-CreatorCore-Organization-Id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)"<string>"Authorizations
Response
Image bytes (HEIC sources are converted to JPEG)
The response is of type file.
Was this page helpful?