# Looking up the metric of an index via the api

**URL:** <https://community.pinecone.io/t/looking-up-the-metric-of-an-index-via-the-api/323>\
**Category:** Support\
**Created:** [March 31, 2022, 3:33am UTC](https://community.pinecone.io/t/looking-up-the-metric-of-an-index-via-the-api/323 "2022-03-31T03:33:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![startakovsky](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/startakovsky/32/119_2.png) [@startakovsky](https://community.pinecone.io/u/startakovsky)\
**Post date:** [March 31, 2022, 3:33am UTC](https://community.pinecone.io/t/looking-up-the-metric-of-an-index-via-the-api/323/1 "2022-03-31T03:33:07Z")

</div>

Hello,

I am wondering whether it is possible to lookup the metric of an index via the api. I would assume that would be in the `pinecone.Index` method named, `describe_index_stats`, except that returns this: `{'dimension': 8, 'index_fullness': 0.0, 'namespaces': {'': {'vector_count': 1}}}`. It also seems reasonable to be able to look up the `index_type` here to (i.e. \<‘approximated’|‘exact’\>) so that I could programmatically access those.

Thank you again,  
Steven

---

<div class="post-metadata">

**Author:** ![mutayroei](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mutayroei](https://community.pinecone.io/u/mutayroei)\
**Post date:** [March 31, 2022, 7:32am UTC](https://community.pinecone.io/t/looking-up-the-metric-of-an-index-via-the-api/323/2 "2022-03-31T07:32:53Z")

</div>

Hey,  
I believe that `pinecone.describe_index` [here](https://www.pinecone.io/docs/api/operation/describe_index/) - is what you’re looking for. It includes information regarding index\_type, metric\_type, number of pods, etc.

Cheers,  
Roei

---

<div class="post-metadata">

**Author:** ![startakovsky](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/startakovsky/32/119_2.png) [@startakovsky](https://community.pinecone.io/u/startakovsky)\
**Post date:** [March 31, 2022, 7:51am UTC](https://community.pinecone.io/t/looking-up-the-metric-of-an-index-via-the-api/323/3 "2022-03-31T07:51:35Z")

</div>

Thanks Roei, I will give that a try!

Best,  
Steven
