# semantic layer sql

**URL:** <https://discourse.getdbt.com/t/semantic-layer-sql/18747>\
**Category:** In-Depth Discussions\
**Tags:** semantic-layer\
**Created:** [March 21, 2025, 3:42pm UTC](https://discourse.getdbt.com/t/semantic-layer-sql/18747 "2025-03-21T15:42:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpwils98](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/rpwils98/32/5471_2.png) [@rpwils98](https://discourse.getdbt.com/u/rpwils98)\
**Post date:** [March 21, 2025, 3:42pm UTC](https://discourse.getdbt.com/t/semantic-layer-sql/18747/1 "2025-03-21T15:42:04Z")

</div>

Hi, I wanted to know if when using the api is it possible to get the sql that is generated by the semantic layer without running the sql.

---

<div class="post-metadata">

**Author:** ![imsamant](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/imsamant/32/5506_2.png) [@imsamant](https://discourse.getdbt.com/u/imsamant)\
**Post date:** [May 17, 2025, 3:41am UTC](https://discourse.getdbt.com/t/semantic-layer-sql/18747/2 "2025-05-17T03:41:25Z")

</div>

I have tried it with graphql apis.  
Here’s the link:

> **[JDBC | dbt Developer Hub](https://docs.getdbt.com/docs/dbt-cloud-apis/sl-jdbc#query-with-just-compiling-sql)**
>
> Integrate and use the JDBC API to query your metrics.
