# Access model ids from specimen\_id

**URL:** <https://community.brain-map.org/t/access-model-ids-from-specimen-id/4742>\
**Category:** Allen Cell Types Database\
**Created:** [November 5, 2025, 4:18pm UTC](https://community.brain-map.org/t/access-model-ids-from-specimen-id/4742 "2025-11-05T16:18:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aquaresima](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.brain-map.org/aquaresima/32/2413_2.png) [@aquaresima](https://community.brain-map.org/u/aquaresima)\
**Post date:** [November 5, 2025, 4:18pm UTC](https://community.brain-map.org/t/access-model-ids-from-specimen-id/4742/1 "2025-11-05T16:18:17Z")

</div>

Hello,

I am trying to programmatically download a set of GLIF models that correspond to cells with specific properties (in particular, SST-positive, layer2/3).

I can easily retrieve the specimen ids and run my search on the ‘cell\_types\_specimen\_details.csv’ database. This way, I have a list of about 40 cells. Using:

`specimen_ids = [id for id in ids_sst if cta.get_cell(id)[‘m__glif’]>0]`

I verify which cells have a model and then … I am stuck. How can I retrieve the id of the model from the specimen\_id?

My end goal is to have the model accessible by:

`nm = glif_api.get_neuronal_models_by_id(model_id)`

and follow your tutorial to retrieve the GLIF parameter from there!

Thanks ahead 🙂
