GET
/
companies
/
v2
/
companies
/
recent
/
modified
Get recently modified and created companies
curl --request GET \
  --url https://api.hubapi.com/companies/v2/companies/recent/modified
"\nExample URL to GET:\nhttps://api.hubapi.com/companies/v2/companies/recent/modified\n\nExample JSON Response:\n{\n  \"results\": [\n    {\n      \"portalId\": 62515,\n      \"companyId\": 19411477,\n      \"isDeleted\": false,\n      \"properties\": {\n        \"hs_analytics_num_visits\": {\n          \"value\": \"0\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_analytics_num_visits\",\n              \"value\": \"0\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"first_deal_created_date\": {\n          \"value\": \"1419966041287\",\n          \"timestamp\": 1419966041656,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"first_deal_created_date\",\n              \"value\": \"1419966041287\",\n              \"timestamp\": 1419966041656,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hs_lastmodifieddate\": {\n          \"value\": \"1419968097561\",\n          \"timestamp\": 1419968097561,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_lastmodifieddate\",\n              \"value\": \"1419968097561\",\n              \"timestamp\": 1419968097561,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"recent_deal_close_date\": {\n          \"value\": \"1415689200000\",\n          \"timestamp\": 1419966061962,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"recent_deal_close_date\",\n              \"value\": \"1415689200000\",\n              \"timestamp\": 1419966061962,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"recent_deal_amount\": {\n          \"value\": \"5000\",\n          \"timestamp\": 1419966061962,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"recent_deal_amount\",\n              \"value\": \"5000\",\n              \"timestamp\": 1419966061962,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"closedate\": {\n          \"value\": \"1415682000000\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"closedate\",\n              \"value\": \"1415682000000\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"createdate\": {\n          \"value\": \"1419966010576\",\n          \"timestamp\": 1419966010576,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"createdate\",\n              \"value\": \"1419966010576\",\n              \"timestamp\": 1419966010576,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hubspot_owner_assigneddate\": {\n          \"value\": \"1419966010576\",\n          \"timestamp\": 1419966010576,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hubspot_owner_assigneddate\",\n              \"value\": \"1419966010576\",\n              \"timestamp\": 1419966010576,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"first_contact_createdate\": {\n          \"value\": \"1419965931323\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"first_contact_createdate\",\n              \"value\": \"1419965931323\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"lifecyclestage\": {\n          \"value\": \"customer\",\n          \"timestamp\": 1419966061791,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"lifecyclestage\",\n              \"value\": \"customer\",\n              \"timestamp\": 1419966061791,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"total_revenue\": {\n          \"value\": \"5000\",\n          \"timestamp\": 1419966061962,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"total_revenue\",\n              \"value\": \"5000\",\n              \"timestamp\": 1419966061962,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hs_analytics_source\": {\n          \"value\": \"OFFLINE\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_analytics_source\",\n              \"value\": \"OFFLINE\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hs_analytics_num_page_views\": {\n          \"value\": \"0\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_analytics_num_page_views\",\n              \"value\": \"0\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hs_analytics_first_timestamp\": {\n          \"value\": \"1419965931323\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_analytics_first_timestamp\",\n              \"value\": \"1419965931323\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"name\": {\n          \"value\": \"madison Inc\",\n          \"timestamp\": 1419966010576,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"name\",\n              \"value\": \"madison Inc\",\n              \"timestamp\": 1419966010576,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"num_associated_contacts\": {\n          \"value\": \"1\",\n          \"timestamp\": 1419966011133,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"num_associated_contacts\",\n              \"value\": \"1\",\n              \"timestamp\": 1419966011133,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hubspot_owner_id\": {\n          \"value\": \"70\",\n          \"timestamp\": 1419966010576,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hubspot_owner_id\",\n              \"value\": \"70\",\n              \"timestamp\": 1419966010576,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"num_associated_deals\": {\n          \"value\": \"1\",\n          \"timestamp\": 1419966041656,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"num_associated_deals\",\n              \"value\": \"1\",\n              \"timestamp\": 1419966041656,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hs_analytics_source_data_2\": {\n          \"value\": \"\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_analytics_source_data_2\",\n              \"value\": \"\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        },\n        \"hs_analytics_source_data_1\": {\n          \"value\": \"API\",\n          \"timestamp\": 1419968066626,\n          \"source\": null,\n          \"sourceId\": null,\n          \"versions\": [\n            {\n              \"name\": \"hs_analytics_source_data_1\",\n              \"value\": \"API\",\n              \"timestamp\": 1419968066626,\n              \"sourceVid\": [\n                \n              ]\n            }\n          ]\n        }\n      }\n    },\n    \n  }\n],\n\"hasMore\": false,\n\"offset\": 4,\n\"total\": 4\n}"

Query Parameters

limit
string

The number of records to return. Defaults to 100, has a maximum value of 250.

offset
string

Used to page through the results. If there are more records in your portal than the limit= parameter, you will need to use the offset returned in the first request to get the next set of results.

properties
string

May be included multiple times. Used to include specific company properties in the results. By default, the results will only include the company ID, and will not include the values for any properties for your companies. Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties.Note: Companies that do not have a value set for a property will not include that property, even when you specify the property. A company without a value for the website property would not show the website property in the results, even with &properties=website in the URL.

propertiesWithHistory
string

May be included multiple times. Works similarly to properties=, but this parameter will include the history for the specified property, instead of just including the current value. Use this parameter when you need the full history of changes to a property's value.

includeMergeAudits
string

Returns any merge history if a company has been previously merged with another company record. Defaults to false.

Response

200 - application/json

Successful response - The create a company endpoint is used to create a company for a given account

The response is of type object.