# Historical Queries

**URL:** <https://forum.datomic.com/t/historical-queries/456>\
**Category:** Client API\
**Created:** [June 8, 2018, 2:10pm UTC](https://forum.datomic.com/t/historical-queries/456 "2018-06-08T14:10:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarrod](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jarrod/32/174_2.png) [@jarrod](https://forum.datomic.com/u/jarrod)\
**Post date:** [June 8, 2018, 2:10pm UTC](https://forum.datomic.com/t/historical-queries/456/1 "2018-06-08T14:10:31Z")

</div>

The cloud documentation references [tx-ids](https://docs.datomic.com/cloud/query/query-data-reference.html#tx-ids) as a built-in function.

The docs state:

> Given a database log, start, and end, tx-ids returns a collection of transaction ids.

And the abstract example shows passing a log, but it is not clear to me what actually gets passed as an argument to the query. Any help or specific examples would appreciated.

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [June 19, 2018, 3:48pm UTC](https://forum.datomic.com/t/historical-queries/456/2 "2018-06-19T15:48:24Z")

</div>

You can use `history`, `as-of`, and `since` database values as arguments to query when looking at historical data.

If you want to access a set of transactions by `t` or `tx`, you can use the [tx-range](https://docs.datomic.com/client-api/datomic.client.api.html#var-tx-range) API.

The section of the docs you referenced was incorrectly placed - those functions are used in Datomic On-Prem. I’ve corrected the doc page.
