- AstroBin IOTD. Home of astrophotography. AstroBin is an image hosting platform, social network, and marketplace for astrophotographers.
- AstroBin's read-only API.
AstroBin implements a basic set of RESTful APIs. AstroBin's APIs currently are limited to retrieving basic information and perform simple searches on images. The supported response types are XML and JSON.
It also has RSS and Atom feeds but with less resolution images aboard.
Contains several figure
elements which contains image info. See next example:
...
<figure>
<a href="/pcdsqs/">
<img src="https://cdn.astrobin.com/thumbs/rS59lKRrZJEs_1000x380_Yd0PTaOB.jpg"
data-preloaded="true" data-loaded="true" class="astrobin-image" width="1000" height="380"
data-user-id="4135" data-id="943875" data-id-or-hash="pcdsqs" data-alias="iotd" data-revision="0"
data-get-thumb-url="None" data-hires-loaded="false"
alt="NGC 3521 - the Bubble Galaxy, Herbert Walter" />
</a>
</figure>
</div>
<div class="data hidden-phone">
<h3>NGC 3521 - the Bubble Galaxy</h3>
<p>
08/09/2024,
<a class="astrobin-username astrobin-premium-member" title="Herbert Walter (Herbert_W): Premium member"
href="/users/Herbert_W/">
Herbert Walter
</a>
</p>
The key for a page with full image is <figure><a href="
. Let's FIGURE_HREF
= /pcdsqs/
So the result url is: https://www.astrobin.com/full/pcdsqs/0/
If there are revisions of image, the key FIGURE_HREF
may has a predefined tail. For example: FIGURE_HREF
= /pcdsqs/C/
Thus the link becomes: https://www.astrobin.com/full/pcdsqs/C/
<figure>
<a href="/pcdsqs/">
<img
src="https://cdn.astrobin.com/thumbs/rS59lKRrZJEs_1000x380_Yd0PTaOB.jpg"
alt="NGC 3521 - the Bubble Galaxy, Herbert Walter"
src
is an url for small image.alt
attribute contains complexTITLE, AUTHOR
. Where comma used as a delimiter but this is a weak condition.
<div class="data hidden-phone"><h3>THE TITLE</h3>
<div class="data hidden-phone">
...
<p>
08/09/2024,
<div class="data hidden-phone">
...
<p>
08/09/2024,
<a class="astrobin-username ">AUTHOR NAME</a>
<figure>
<img src="https://cdn.astrobin.com/thumbs/rS59lKRrZJEs_2560x0_esdlMP5Y.jpg"
The first figure
element contains img
element with src
attribute that leads us to the downloadable full size image.
Sometime there are no image but video:
<figure>
<video class="video...