Web Analytics API: occuredAfter and occuredBefore parameters don't have any effect on the result

Hi

We are trying to use Web Analytics events API for fetching events per CRM object and found that we can’t filter events by time period using occuredAfter and occuredBefore parameters. No matter what values are passed the result is allways the same

Prerequisites:
  1. Contact CRM object with id = 401
  2. Custom Event airbyte_contact_custom_event
  3. Event is sent at 2023-11-24T23:23:27.710Z for the contact using the following API:

POST https://api.hubapi.com/events/v3/send

Body: {

“eventName”: “<prefix>_airbyte_contact_custom_event”,

“objectId”: “401”,

“properties”: {… standard properties}

}

Response: 204

How to reproduce the problem:
  1. Make a query with a time window specified before or after the date when the event occured 2023-11-24T23:23:27.710Z. This is an example of such a query: /events/v3/events?objectType=contact&objectId=401&occuredAfter=2023-11-25T00:00:00.000Z&occuredBefore=2023-11-26T00:00:00.000Z

Making any other time windows or trying to use timestamp instead of ISO8601 datetime string also has no effect.

Can someone help us understand what’s wrong with the API or what’s wrong with us using the API?

Hey, @airbyte :waving_hand: Did you get this working?

One thing I noticed was a small typo. You have occuredAfter and occuredBefore. But the documentation lists these params as occurredAfter and occurredBefore with two r’s

Talk soon! — Jaycee

Hey @Jaycee_Lewis

I did. This was really the root of the problem :slightly_smiling_face:

Thanks

Glad to hear it! That word always looks “wrong” to me when I type it out :upside_down_face: