-
Notifications
You must be signed in to change notification settings - Fork 0
period parameter H v. He and MN v. MNe
Data API / REST API / Response structure parameters rest / “period” parameter: “H” v. “He” & “MN” v. “MNe”
When requesting the API on specific time ranges (hours or minutes), it’s all about deciding whether you want either:
- all the events from the visits that started during this time frame (“H” and “MN”), or
- all the events that happened during this time range (“He” and “MNe”).
Luckily, the AT Internet Reporting API allows you to query both scenarios:
- “H” and “He” helps you work on hours;
- “MN” and “MNe” helps you work on minutes.
All the examples provided below work the same way with “MN” and “MNe”.
Let’s take the case of this visit:
- Started at 9.52am
- Closed at 10.01am
- 16 pages loaded
- 12 before 10am
- 4 after 10am

Now, let’s narrow the results down by using the “{H:2017-01-06T>09}” parameter:
https://apirest.atinternet-solutions.com/data/v2/html/getData?&columns={d_visit_id,d_date_hour_event,d_page,m_page_loads}&sort={d_date_hour_event}&space={s:xxxxxx}&period=
{H:2017-01-06T09}
It returns all the events of the visits that started during the 9th hour. In our case, all the events of our visits are listed.
Let’s now use the “{H:2017-01-06T10}” parameter to get the events of the visits that happened during the 10th hour:
https://apirest.atinternet-solutions.com/data/v2/html/getData?&columns={d_visit_id,d_date_hour_event,d_page,m_page_loads}&sort={d_date_hour_event}&space={s:xxxxxx}&period=
{H:2017-01-06T10}
Please refer to this note if you’re using SSO to login to AT Internet services.
In this case, none of the events of this visit will be returned as it didn’t start between 10am and 10.59am.
How can I retrieve the events that happened between 9am and 9.59am? You can use the “{He:2017-01-06T09}” parameter:
https://apirest.atinternet-solutions.com/data/v2/html/getData?&columns={d_visit_id,d_date_hour_event,d_page,m_page_loads}&sort={d_date_hour_event}&space={s:xxxxxx}&period=
{He:2017-01-06T09}
Please refer to this note if you’re using SSO to login to AT Internet services.

All the events of the this visit that happened after 10am are not listed. If I need them, I can use the “{He:2017-01-06T10}” parameter:
https://apirest.atinternet-solutions.com/data/v2/html/getData?&columns={d_visit_id,d_date_hour_event,d_page,m_page_loads}&sort={d_date_hour_event}&space={s:xxxxxx}&period=
{He:2017-01-06T10}
Please refer to this note if you’re using SSO to login to AT Internet services.

Even though the visit started at 9am, its events from 10am are correctly listed.
Now, let’s imagine I want to segment on visits containing the page “gallery.php”:
- {H:2017-01-06T09}: the context is all the visits that started between 9am and 9.59am and that contains the page “gallery.php”. The full visit will show up in the results:
- {He:2017-01-06T09}: the context is all visits with “gallery.php” as an event between 9am and 9.59am. The visit will not show up in the results.
- {H:2017-01-06T10}: the context is all the visits that started between 10am and 10.59am and that contains the page “gallery.php”. The visit will not show up in the results as it started between 9am and 9.59am.
- {He:2017-01-06T10}: the context is all visits with “gallery.php” as an event between 10am and 10.59am. The 4 events of the visits will then show up in the results:
Last update: 22/01/2019
-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android