Get recently created companies
curl --request GET \
--url https://api.hubapi.com/companies/v2/companies/recent/createdimport requests
url = "https://api.hubapi.com/companies/v2/companies/recent/created"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hubapi.com/companies/v2/companies/recent/created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hubapi.com/companies/v2/companies/recent/created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hubapi.com/companies/v2/companies/recent/created"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hubapi.com/companies/v2/companies/recent/created")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/companies/v2/companies/recent/created")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"value": "0",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_num_visits",
"value": "0",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "1419966041287",
"timestamp": 1419966041656,
"source": null,
"sourceId": null,
"versions": [
{
"name": "first_deal_created_date",
"value": "1419966041287",
"timestamp": 1419966041656,
"sourceVid": []
}
]
},
{
"value": "1419968097561",
"timestamp": 1419968097561,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "1419968097561",
"timestamp": 1419968097561,
"sourceVid": []
}
]
},
{
"value": "1415689200000",
"timestamp": 1419966061962,
"source": null,
"sourceId": null,
"versions": [
{
"name": "recent_deal_close_date",
"value": "1415689200000",
"timestamp": 1419966061962,
"sourceVid": []
}
]
},
{
"value": "5000",
"timestamp": 1419966061962,
"source": null,
"sourceId": null,
"versions": [
{
"name": "recent_deal_amount",
"value": "5000",
"timestamp": 1419966061962,
"sourceVid": []
}
]
},
{
"value": "1415682000000",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "closedate",
"value": "1415682000000",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "1419966010576",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "createdate",
"value": "1419966010576",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1419966010576",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hubspot_owner_assigneddate",
"value": "1419966010576",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1419965931323",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "first_contact_createdate",
"value": "1419965931323",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "customer",
"timestamp": 1419966061791,
"source": null,
"sourceId": null,
"versions": [
{
"name": "lifecyclestage",
"value": "customer",
"timestamp": 1419966061791,
"sourceVid": []
}
]
},
{
"value": "5000",
"timestamp": 1419966061962,
"source": null,
"sourceId": null,
"versions": [
{
"name": "total_revenue",
"value": "5000",
"timestamp": 1419966061962,
"sourceVid": []
}
]
},
{
"value": "OFFLINE",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_source",
"value": "OFFLINE",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "0",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_num_page_views",
"value": "0",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "1419965931323",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_first_timestamp",
"value": "1419965931323",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "madison Inc",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "name",
"value": "madison Inc",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1",
"timestamp": 1419966011133,
"source": null,
"sourceId": null,
"versions": [
{
"name": "num_associated_contacts",
"value": "1",
"timestamp": 1419966011133,
"sourceVid": []
}
]
},
{
"value": "70",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hubspot_owner_id",
"value": "70",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1",
"timestamp": 1419966041656,
"source": null,
"sourceId": null,
"versions": [
{
"name": "num_associated_deals",
"value": "1",
"timestamp": 1419966041656,
"sourceVid": []
}
]
},
{
"value": "",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_source_data_2",
"value": "",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "API",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_source_data_1",
"value": "API",
"timestamp": 1419968066626,
"sourceVid": []
}
]
}
]v2
Get recently created companies
Returns a list of all companies sorted by the date the companies were most recently modified or created.
GET
/
companies
/
v2
/
companies
/
recent
/
created
Get recently created companies
curl --request GET \
--url https://api.hubapi.com/companies/v2/companies/recent/createdimport requests
url = "https://api.hubapi.com/companies/v2/companies/recent/created"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.hubapi.com/companies/v2/companies/recent/created', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hubapi.com/companies/v2/companies/recent/created",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hubapi.com/companies/v2/companies/recent/created"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hubapi.com/companies/v2/companies/recent/created")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hubapi.com/companies/v2/companies/recent/created")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"value": "0",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_num_visits",
"value": "0",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "1419966041287",
"timestamp": 1419966041656,
"source": null,
"sourceId": null,
"versions": [
{
"name": "first_deal_created_date",
"value": "1419966041287",
"timestamp": 1419966041656,
"sourceVid": []
}
]
},
{
"value": "1419968097561",
"timestamp": 1419968097561,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_lastmodifieddate",
"value": "1419968097561",
"timestamp": 1419968097561,
"sourceVid": []
}
]
},
{
"value": "1415689200000",
"timestamp": 1419966061962,
"source": null,
"sourceId": null,
"versions": [
{
"name": "recent_deal_close_date",
"value": "1415689200000",
"timestamp": 1419966061962,
"sourceVid": []
}
]
},
{
"value": "5000",
"timestamp": 1419966061962,
"source": null,
"sourceId": null,
"versions": [
{
"name": "recent_deal_amount",
"value": "5000",
"timestamp": 1419966061962,
"sourceVid": []
}
]
},
{
"value": "1415682000000",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "closedate",
"value": "1415682000000",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "1419966010576",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "createdate",
"value": "1419966010576",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1419966010576",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hubspot_owner_assigneddate",
"value": "1419966010576",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1419965931323",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "first_contact_createdate",
"value": "1419965931323",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "customer",
"timestamp": 1419966061791,
"source": null,
"sourceId": null,
"versions": [
{
"name": "lifecyclestage",
"value": "customer",
"timestamp": 1419966061791,
"sourceVid": []
}
]
},
{
"value": "5000",
"timestamp": 1419966061962,
"source": null,
"sourceId": null,
"versions": [
{
"name": "total_revenue",
"value": "5000",
"timestamp": 1419966061962,
"sourceVid": []
}
]
},
{
"value": "OFFLINE",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_source",
"value": "OFFLINE",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "0",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_num_page_views",
"value": "0",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "1419965931323",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_first_timestamp",
"value": "1419965931323",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "madison Inc",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "name",
"value": "madison Inc",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1",
"timestamp": 1419966011133,
"source": null,
"sourceId": null,
"versions": [
{
"name": "num_associated_contacts",
"value": "1",
"timestamp": 1419966011133,
"sourceVid": []
}
]
},
{
"value": "70",
"timestamp": 1419966010576,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hubspot_owner_id",
"value": "70",
"timestamp": 1419966010576,
"sourceVid": []
}
]
},
{
"value": "1",
"timestamp": 1419966041656,
"source": null,
"sourceId": null,
"versions": [
{
"name": "num_associated_deals",
"value": "1",
"timestamp": 1419966041656,
"sourceVid": []
}
]
},
{
"value": "",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_source_data_2",
"value": "",
"timestamp": 1419968066626,
"sourceVid": []
}
]
},
{
"value": "API",
"timestamp": 1419968066626,
"source": null,
"sourceId": null,
"versions": [
{
"name": "hs_analytics_source_data_1",
"value": "API",
"timestamp": 1419968066626,
"sourceVid": []
}
]
}
]Scope requirements
Scope requirements
クエリパラメータ
The number of records to return in a single request. Supports values up to 100.
Each response will include a hasMore value and an offset object. If hasMore is true, then you would use the offset object in the next request to get the next set of results.
レスポンス
200 - application/json
Successful response
The response is of type object.
最終更新日 2026年4月10日
⌘I