biowarB
Apify & Crawleeโ€ข3w agoโ€ข
12 replies
biowar

Image format in every actors

General๐Ÿ› ๏ธAPI
Hi, I was wondering, why when I use the instagram Scrape actor, or the facebook or even the tiktok actor, the displayURL in the JSON is an instagram,facebook,tiktok link but when I click on it from the output response it's an apify link? How can I always have the apify link in my code?
Solution
Ah, I see what you mean. Basically, this is a feature of our Apify Console UI. When you include an image URL in your output, our UI will download the image and display it in the resulting table, making it look better. But the "real" data is just the URL string.

You can't always rely on this; some images might be broken or something, but you can always rely on the fact that your dataset will contain the exact data you put there.

So no, you can't include this link in your code, since it will be generated after your results are added to the Dataset...

Your other option is to save the image into the Key Value Store, and that way create your own Apify link like
https://api.apify.com/v2/key-value-stores/<ID>/records/<record-key>
Was this page helpful?