Hi folks,
I’m currently working on a project where I’m pulling all contacts with a list of properties into another data tool.
To make it more efficent — I’m curious if there’s an API version for listing contacts that supports the addition of a creatdate parameter to only fecth contacts created from a specific date?
tia!
Adrian
Hey, @AidyLove
Quick question, have you tried using the Search API? For example, you can use the BETWEEN operator to look at object records within a specific date range. It’s worth looking at the options there, as they offer a bit more customization in filtering your results.
A quick example:
{
"filterGroups": [
{
"filters": [
{
"propertyName": "createdAt",
"operator": "BETWEEN",
"minValue": "1569958401000",
"maxValue": "1596230401000"
}
]
}
]
}
Have fun building! Jaycee
Amazing, thanks @Jaycee_Lewis !
Definitely worth adding a reference to the search API in the contacts doc, under the Retrieve contacts section: Accounts Dashboard | HubSpot