# Issue downloading LSST alert light curves from Lasair API

**URL:** <https://www.rubin.community/t/issue-downloading-lsst-alert-light-curves-from-lasair-api/11717>\
**Category:** Lasair\
**Created:** [March 10, 2026, 11:39am UTC](https://www.rubin.community/t/issue-downloading-lsst-alert-light-curves-from-lasair-api/11717 "2026-03-10T11:39:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anindyaganguly19](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/anindyaganguly19/32/4049_2.png) [@anindyaganguly19](https://www.rubin.community/u/anindyaganguly19)\
**Post date:** [March 10, 2026, 11:39am UTC](https://www.rubin.community/t/issue-downloading-lsst-alert-light-curves-from-lasair-api/11717/1 "2026-03-10T11:39:01Z")

</div>

Hi,

I was trying to generate light curves from recent LSST alerts using Lasair. I was able to create SQL queries and successfully download the desired object tables using the Lasair API within a Python framework.

However, when I attempt to download the individual light curves for these objects using Lasair lightcurves module, I encounter the following error:

“HTTP return code 404 for [https://api.lasair.lsst.ac.uk/api/lightcurves/](https://api.lasair.lsst.ac.uk/api/lightcurves/)”

I checked several of these objects individually on the Lasair web portal, and they do appear to have light curves available. I have also checked with different network connections and found the same issue.

Could you please let me know what might be causing this issue, or if there is something I might be missing in the API request?

Best regards,  
Anindya  
IUCAA, Pune, India

---

<div class="post-metadata">

**Author:** ![heloise](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/heloise/32/3680_2.png) [@heloise](https://www.rubin.community/u/heloise)\
**Post date:** [March 10, 2026, 11:58am UTC](https://www.rubin.community/t/issue-downloading-lsst-alert-light-curves-from-lasair-api/11717/2 "2026-03-10T11:58:39Z")

</div>

As far as I know the Lasair API does not have a lightcurves end point, but I might be wrong.  
If you want to grab lightcurves through the API you can do it following recepies on the on the lasair-example github repo on [lsst:uk](https://github.com/lsst-uk) or if you want an astronomer made tutorial I have a verbose version that shows you how to grab the object information and make lightcurves of all kinds (difference, forced, in flux and mag): [lasair\_user\_tutorials/API\_recipes.ipynb at main · LasairVRAs/lasair\_user\_tutorials · GitHub](https://github.com/LasairVRAs/lasair_user_tutorials/blob/main/API_recipes.ipynb)

I use pandas a lot so that’s what in my recipes but if you like astropy tables it should work essentially the same as they have very similar syntax 🙂

---

<div class="post-metadata">

**Author:** ![gpfrancis](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/gpfrancis/32/1889_2.png) [@gpfrancis](https://www.rubin.community/u/gpfrancis)\
**Post date:** [March 10, 2026, 12:08pm UTC](https://www.rubin.community/t/issue-downloading-lsst-alert-light-curves-from-lasair-api/11717/3 "2026-03-10T12:08:36Z")

</div>

Lasair ZTF did have a `lightcurves` end point in the past, but it has been deprecated for several versions as it effectively duplicates the function of `object`. Lasair LSST has never had it.

In addition to the resources @heloise points out, there is documentation for how to extract lightcurves using the `object` endpoint at [https://lasair-lsst.readthedocs.io/en/main/core\_functions/client.html](https://lasair-lsst.readthedocs.io/en/main/core_functions/client.html#object) and an example notebook demonstrating it at [https://github.com/lsst-uk/lasair-examples/blob/main/notebooks/object.ipynb](https://github.com/lsst-uk/lasair-examples/blob/main/notebooks/object.ipynb)

---

<div class="post-metadata">

**Author:** ![anindyaganguly19](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/anindyaganguly19/32/4049_2.png) [@anindyaganguly19](https://www.rubin.community/u/anindyaganguly19)\
**Post date:** [March 13, 2026, 12:29pm UTC](https://www.rubin.community/t/issue-downloading-lsst-alert-light-curves-from-lasair-api/11717/4 "2026-03-13T12:29:24Z")

</div>

Hi,  
Thanks a lot. I am going through the resources given my @heloise and @gpfrancis. Now, I can download the image cutouts and the light curves for each of these objects separately. Thanks again.
