# Issues querying LSST SSOs through alerce\_client

**URL:** <https://www.rubin.community/t/issues-querying-lsst-ssos-through-alerce-client/12428>\
**Category:** ALeRCE\
**Created:** [August 6, 2026, 6:20pm UTC](https://www.rubin.community/t/issues-querying-lsst-ssos-through-alerce-client/12428 "2026-08-06T18:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![talister](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/talister/32/875_2.png) [@talister](https://www.rubin.community/u/talister)\
**Post date:** [August 6, 2026, 6:20pm UTC](https://www.rubin.community/t/issues-querying-lsst-ssos-through-alerce-client/12428/1 "2026-08-06T18:20:50Z")

</div>

Hi ALeRCE folks, first off, thank you very much for adding support for Solar System Objects to ALeRCE; it’s very nice to have an additional broker option.  
I’m following the `notebooks/LSST/ALeRCE_LSST_SSO.ipynb` example as a precursor to making these sort of queries in our TOM (FOMO) through the TOM Toolkit. I am running into issues when using the same example oid’s in the notebook through the `alerce_client`:

```auto
from alerce.core import Alerce
alerce = Alerce()

 lsst_query_parameters = 
{'classifiers': [],
 'format': 'json',
 'oid': '21163607367496779',
 'survey': 'lsst'}
alerce.query_object(**lsst_query_parameters)

```

This produces the following error:

```auto
File ~/venv/fomo_venv/lib/python3.12/site-packages/alerce/exceptions.py:23, in handle_error(response, response_format)
     20 code = response.status_code
     21 data = error
---> 23 raise codes.get(code, APIError)(
     24 message=message, code=code, data=data, response=response
     25 )

APIError: {'Error code': 500, 'Message': 'An error occurred', 'Data': {}}

```

Querying for ZTF objects seems to work, as does the TAP approach (as in the notebook)

---

<div class="post-metadata">

**Author:** ![ale\_munozarancibia](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ale_munozarancibia/32/3079_2.png) [@ale\_munozarancibia](https://www.rubin.community/u/ale_munozarancibia)\
**Post date:** [August 19, 2026, 3:47pm UTC](https://www.rubin.community/t/issues-querying-lsst-ssos-through-alerce-client/12428/2 "2026-08-19T15:47:12Z")

</div>

Hi Tim, apologies for the delay. At this time, Solar System objects in ALeRCE can only be queried through our [TAP service](https://tap.alerce.online/), as in the [notebook](https://github.com/alercebroker/usecases/blob/master/notebooks/LSST/ALeRCE_LSST_SSO.ipynb) you mention. Both our [python client and API](https://alerce.readthedocs.io/en/latest/) do not support Solar System queries yet; that’s the reason why they can’t be queried in our [web interface](https://lsst.alerce.online/) either. We’re working on that and will incorporate it in the future.
