Get company IPOs
curl --request GET \
--url https://app.tryspecter.com/api/v1/companies/{companyId}/ipos \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.tryspecter.com/api/v1/companies/{companyId}/ipos"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.tryspecter.com/api/v1/companies/{companyId}/ipos', 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://app.tryspecter.com/api/v1/companies/{companyId}/ipos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://app.tryspecter.com/api/v1/companies/{companyId}/ipos"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tryspecter.com/api/v1/companies/{companyId}/ipos")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/companies/{companyId}/ipos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"ipo_id": "ipo_dff0947b71f841d30d9d083c",
"company_id": "5fc743c1bf7e53924df4359d",
"company_name": "Hamilton Beach Brands Inc.",
"company_domain": "hamiltonbeachbrands.com",
"stock_exchange_symbol": "nyse",
"stock_symbol": "HBB",
"went_public_on": "2017-09-29",
"share_price_usd": 22,
"valuation_price_usd": 1192737304,
"money_raised_usd": 101200000
}
]{
"errorCode": "COMPANY_MERGED",
"message": "Company merged",
"superseded_by": "5e3bc2b700c8f4c966ad2bbd"
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "OUT_OF_CREDITS",
"message": "There are no more credits available to complete the request"
}{
"errorCode": "NOT_PERMITTED",
"message": "API key present, but you are not permitted"
}{
"errorCode": "NOT_FOUND",
"message": "Not Found"
}{
"errorCode": "VALIDATION_ERROR",
"message": "Field required (body.name)"
}{
"errorCode": "RATE_LIMITED",
"message": "You have been rate-limited"
}{
"errorCode": "clerk_unavailable",
"message": "Key verification is temporarily unavailable"
}Companies
Get company IPOs
Returns a company’s IPOs, newest first. Most companies have zero or one; dual-listed or re-listed companies may have more. Fetch a single IPO with Get IPO by ID, or the issuing company with Get company by ID.
Costs 1 credit per request, returning up to 50 results per page.
What you need
A Specter companyId in the path. If you only have a domain, website, or name, get
the ID first with Find company ID
(batch, free), or find it by name with Search entities by
name.
Walk the results with page and limit.
Behaviour
- Ordered by
went_public_ondescending, with nulls last. - Page through results with
limitandpage(pageis zero-based;limitdefaults to 50, max 50 per page). - Returns
404if the company ID doesn’t exist. A company with no IPOs returns200with an empty array.
What you do next
- Open an IPO. Pull exchange, ticker, and proceeds with Get IPO by ID.
- See the private raises. Pull the funding history before listing with Get company funding rounds.
GET
/
companies
/
{companyId}
/
ipos
Get company IPOs
curl --request GET \
--url https://app.tryspecter.com/api/v1/companies/{companyId}/ipos \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.tryspecter.com/api/v1/companies/{companyId}/ipos"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.tryspecter.com/api/v1/companies/{companyId}/ipos', 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://app.tryspecter.com/api/v1/companies/{companyId}/ipos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://app.tryspecter.com/api/v1/companies/{companyId}/ipos"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tryspecter.com/api/v1/companies/{companyId}/ipos")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tryspecter.com/api/v1/companies/{companyId}/ipos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"ipo_id": "ipo_dff0947b71f841d30d9d083c",
"company_id": "5fc743c1bf7e53924df4359d",
"company_name": "Hamilton Beach Brands Inc.",
"company_domain": "hamiltonbeachbrands.com",
"stock_exchange_symbol": "nyse",
"stock_symbol": "HBB",
"went_public_on": "2017-09-29",
"share_price_usd": 22,
"valuation_price_usd": 1192737304,
"money_raised_usd": 101200000
}
]{
"errorCode": "COMPANY_MERGED",
"message": "Company merged",
"superseded_by": "5e3bc2b700c8f4c966ad2bbd"
}{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}{
"errorCode": "OUT_OF_CREDITS",
"message": "There are no more credits available to complete the request"
}{
"errorCode": "NOT_PERMITTED",
"message": "API key present, but you are not permitted"
}{
"errorCode": "NOT_FOUND",
"message": "Not Found"
}{
"errorCode": "VALIDATION_ERROR",
"message": "Field required (body.name)"
}{
"errorCode": "RATE_LIMITED",
"message": "You have been rate-limited"
}{
"errorCode": "clerk_unavailable",
"message": "Key verification is temporarily unavailable"
}Query Parameters
Response
A page of IPOs for the company.
The Specter company ID of the issuing company. Use with Get company by ID to fetch the full company record.
Example:
"5fc743c1bf7e53924df4359d"
Was this page helpful?