# How to construct an API that would contain a white space within the name of a brain structure - SOLVED

**URL:** <https://community.brain-map.org/t/how-to-construct-an-api-that-would-contain-a-white-space-within-the-name-of-a-brain-structure-solved/2580>\
**Category:** General\
**Tags:** api\
**Created:** [September 10, 2023, 5:02pm UTC](https://community.brain-map.org/t/how-to-construct-an-api-that-would-contain-a-white-space-within-the-name-of-a-brain-structure-solved/2580 "2023-09-10T17:02:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faustino](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Faustino](https://community.brain-map.org/u/Faustino)\
**Post date:** [September 10, 2023, 5:02pm UTC](https://community.brain-map.org/t/how-to-construct-an-api-that-would-contain-a-white-space-within-the-name-of-a-brain-structure-solved/2580/1 "2023-09-10T17:02:09Z")

</div>

I would like to build an API equivalent to this one, offered as an example in the API section of the Allen Brain web:

_[http://api.brain-map.org/api/v2/data/query.json?criteria=service::mouse\_connectivity\_injection\_structure[injection\_structures$eqIsocortex][primary\_structure\_only$eqtrue]](http://api.brain-map.org/api/v2/data/query.json?criteria=service::mouse_connectivity_injection_structure%5Binjection_structures$eqIsocortex%5D%5Bprimary_structure_only$eqtrue%5D)_

but changing “Isocortex” for other ontology terms that contain white spaces, for example “Olfactory areas”.

I have tried either with the white space, or changing it for “-”, “\_” or "\ ", without success.

SOLVED: You need to use the abbreviation, “OLF” in this case, instead of the full name.
