# API call with exact timestamps

**URL:** <https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [February 23, 2022, 10:30am UTC](https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245 "2022-02-23T10:30:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Litodrako1992](https://avatars.discourse-cdn.com/v4/letter/l/e99b99/32.png) [@Litodrako1992](https://community.dynatrace.com/u/Litodrako1992)\
**Post date:** [February 23, 2022, 10:30am UTC](https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245/1 "2022-02-23T10:30:41Z")

</div>

Hello!

When I make an API call to get metrics information I always use the “from” parameter and add a “now-24h”, for example.

I’m trying to see, but I can’t, what I can do to put absolute times, for example: 2022-02-23 10:00 - 2022-02-22: 10:00

If you could tell me where to find the documentation I would appreciate it, because I have found something similar, but in my case it doesn’t apply.

Greetings!

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [April 1, 2022, 11:00am UTC](https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245/2 "2022-04-01T11:00:49Z")

</div>

Hi&nbsp;[@Litodrako1992](https://community.dynatrace.com/user/47291),

the following format is supported by the API for the ‘from’ and ‘now’ fields:

```markup
params = {
'from': '2022-03-20T00:00:00.000+02:00',
'now': '2022-03-31T00:00:00.000+02:00'
}

```

The +02:00 defines the UTC timezone, which for my case is +02:00, adjust this value to your timezone as needed, default is UTC +00:00 (basically means you could also leave that last part out)

You can also leave the milliseconds out, just in case you may need them.

So a simplified version of the timestamp could look like this:&nbsp;2022-03-20T00:00:00

Best,

Mark
