APIs & Integrations

SKumar4547
Member

Pulling incremental data of company and contacts

Hi,

As per my requirement, I have to pull updated/created company and contacts records on daily basis(in payload I will pass the date ). In your V3 API section, there is no API to support this requirement. Could you please help me to achieve this?

Also in V2 APIs, there is one API to support this https://legacydocs.hubspot.com/docs/methods/companies/get_companies_modified

Can you tell me, for how long this API will be live and working?

 

0 Upvotes
3 Replies 3
dennisedson
HubSpot Product Team
HubSpot Product Team

Pulling incremental data of company and contacts

If possible, I would recommend employing webhooks for notification. If that is not an option, you could use the search endpoint and set the filters to accommodate your date requirements.

If you go that route, make sure your date is a unix timestamp in milliseconds 😉

0 Upvotes
SKumar4547
Member

Pulling incremental data of company and contacts

Hey @dennisedson , I tried to implement search API but it's not working properly. It's always giving me the below response.

{
"total": 0,
"results": []
}

on my input payload

"property_name": "hs_lastmodifieddate",
"operator": "GT",
"value": 1615340056000

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Pulling incremental data of company and contacts

Try something like this:

{
    "filterGroups": [
        {
            "filters": [
                {
                    "propertyName": "lastmodifieddate",
                    "operator": "GT",
                    "value": 1615340056000
                }
            ]
        }
    ]
}
0 Upvotes