# How to retrieve implicit block ID

**URL:** <https://forum.obsidian.md/t/how-to-retrieve-implicit-block-id/101915>\
**Category:** Devs: Plugins & API\
**Tags:** api, block-reference\
**Created:** [June 14, 2025, 6:30pm UTC](https://forum.obsidian.md/t/how-to-retrieve-implicit-block-id/101915 "2025-06-14T18:30:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mortacci](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@Mortacci](https://forum.obsidian.md/u/Mortacci)\
**Post date:** [June 14, 2025, 6:30pm UTC](https://forum.obsidian.md/t/how-to-retrieve-implicit-block-id/101915/1 "2025-06-14T18:30:47Z")

</div>

I’m trying to develop a plugin that performs a search at block level and then as results it previews the blocks found.

**++DISCLAIMER++ I have basically no idea how to code, I’m doing everything with artificial intelligence with a lot of patience. Sorry for all the real developers out there**

Anyway, I’m at the point where I’m managing to preview blocks, but only those that have already been referenced, i.e. the blocks that already have their ID written ad the end.

Which API\* should I use in order to access to implicit blocks and preview them even if they don’t have an explicit ID? I’m sure that it’s possible, given that when you make a block reference Obsidian preview every block, explicit or implicit. The AI says that MetadataCache only stores explicit blocks (sorry, I don’t read the documentation simply because I’m not able to understand it), so where should I look? The AI is not able to tell me and it’s inventing alternative workaround to determine a block based on markdown structure (which is a good workaround, but I don’t like it anyway).

\*I don’t know if it’s the correct term.

---

<div class="post-metadata">

**Author:** ![mnaoumov](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mnaoumov/32/22325_2.png) [@mnaoumov](https://forum.obsidian.md/u/mnaoumov)\
**Post date:** [June 16, 2025, 12:02am UTC](https://forum.obsidian.md/t/how-to-retrieve-implicit-block-id/101915/2 "2025-06-16T00:02:15Z")

</div>

You can look at [sections - Developer Documentation](https://docs.obsidian.md/Reference/TypeScript+API/CachedMetadata/sections) , it has all blocks with and without block ids

---

<div class="post-metadata">

**Author:** ![Mortacci](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@Mortacci](https://forum.obsidian.md/u/Mortacci)\
**Post date:** [June 21, 2025, 11:14am UTC](https://forum.obsidian.md/t/how-to-retrieve-implicit-block-id/101915/3 "2025-06-21T11:14:21Z")

</div>

Thanks! I used the types ‘table’ ‘list’ ‘footnoteDefinition’ ‘callout’ and ‘paragraph’ and it works well

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [July 19, 2025, 11:14am UTC](https://forum.obsidian.md/t/how-to-retrieve-implicit-block-id/101915/4 "2025-07-19T11:14:24Z")

</div>

Closed on July 19, 2025, 11:14am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
