Cookie consent

AstroBin saves small pieces of text information (cookies) on your device in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing AstroBin without changing the browser settings, you grant us permission to store that information on your device.

I agree

Deleted Images in API

astropical
28 Oct, 2019 05:14
Ciao Salvatore,
A quick note to inform that some images returned by the API have been deleted.
Example: https://www.astrobin.com/ipxh5t/?nc=user
However the link to the image in the JSON is intact and pops the image up.
Is this intentional?
Cheers
Robert
siovene
28 Oct, 2019 13:24
Hi Robert,
which API did you use to be able to retrieve a deleted image?
astropical
28 Oct, 2019 13:46
Hello Salvatore,
This call with PHP variables:
https://www.astrobin.com/api/v1/image/?user=$user&limit=$image_count&api_key=
siovene
28 Oct, 2019 13:48
Is it possible that that image was deleted after you retrieved the data? Do you fetch real time data or do you cache it? The image resource API definitely only looks at non deleted and public images.
astropical
28 Oct, 2019 13:59
I fetch the data any time the page loads. Since I made the page just 3 days ago, it is hard to believe that the images have been deleted so recently.
I am picking "hash" for a link back to Astrobin and "url_hd" to display the image on my web page. Maybe I should use another link to images, such
as "url_real" or "url_regular"?
 
Register or login to create to post a reply.