Search between date in api v2

I what to find all persons new to this table between 2 dates with the API V2. End, Start doesn't work and updated_since also
Answers
-
Hi @Izno,
It looks like there isn’t currently a built-in way to filter Persons by creation date directly in the API request. Parameters like
start
andend
are for pagination, andupdated_since
filters based on the last update time, not the add/creation date.That said, each Person does have an
add_time
field in the response, so a common workaround is to fetch the list of Persons and then filter them on your side using that field to match your desired date range.I know that’s not the lost efficient option if you have a large number of records, but it’s the best available approach at the moment from what I can tell.
I hope this helps clarify!
0 -
Hi @Izno,
Thanks for the follow-up!
You are correct that
add_time
isn’t a valid request parameter, so it can't be used to filter results directly in the API call. But just to clarify,add_time
is included in the response data for each Person, so the usual workaround is to:- Get the full list of Persons using the
/persons
endpoint. - Then, on your end, filter those results by checking the
add_time
field in the returned data.
0 - Get the full list of Persons using the