# Api Finding an Element by ID

**URL:** <https://community.dhis2.org/t/api-finding-an-element-by-id/61129>\
**Category:** Support - Assistance technique\
**Tags:** api\
**Created:** [19 September 2024 12:24 UTC](https://community.dhis2.org/t/api-finding-an-element-by-id/61129 "2024-09-19T12:24:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake\_Lamers](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jake_lamers/32/42900_2.png) [@Jake\_Lamers](https://community.dhis2.org/u/Jake_Lamers)\
**Post date:** [19 September 2024 12:24 UTC](https://community.dhis2.org/t/api-finding-an-element-by-id/61129/1 "2024-09-19T12:24:57Z")

</div>

Hello I am wondering if given an id for a indicator ie “qDXW7WMLT99” or indicator name ie ARV Adult - 1d = AZT/3TC+DTG 150/300mg + 50mg 1st line if there is a way using the api to find the data elements location so I can query it.

For example I inspect elements from a generated report to determine where the data is coming from and I get.

`<span class="val" data-de="wfaQBIVQxWo" data-co="NtjMVmRfvHH">2</span>`

but when I go to the data set wfaQBIVQxWo it doesn’t contain NtjMVmRfvHH also I can not find NtjMVmRfvHH when I scrap the dataElement ids from dataElements but the value of 2 is clearly coming from somewhere so how can I find that end point?

Thank you for your help

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [19 September 2024 14:57 UTC](https://community.dhis2.org/t/api-finding-an-element-by-id/61129/2 "2024-09-19T14:57:24Z")

</div>

Hi @Jake_Lamers

You can find the data element’s UID by going to the configuration in the Maintenance app and selecting its details. See screenshot below:

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/a/e/ae5f7f5b7dd26eba5d716ccfd1ebb6ad58ad0ed1.png)

---

<div class="post-metadata">

**Author:** ![Stephan\_Mestach](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/stephan_mestach/32/40053_2.png) [@Stephan\_Mestach](https://community.dhis2.org/u/Stephan_Mestach)\
**Post date:** [20 September 2024 11:33 UTC](https://community.dhis2.org/t/api-finding-an-element-by-id/61129/3 "2024-09-20T11:33:24Z")

</div>

note if you found somewhere in an html or logs a uid  
you can find to what it refers via the api

```auto
https://play.im.dhis2.org/stable-2-41-1/api/identifiableObjects/<replacewithuid>.json

```

you’ll find out that it’s a data element

```auto
https://play.im.dhis2.org/stable-2-41-1/api/identifiableObjects/FTRrcoaog83.json

```

and this one a category option combos

```auto
https://play.im.dhis2.org/stable-2-41-1/api/identifiableObjects/S34ULMcHMca.json

```
