Research owners
curl --request POST \
--url https://api.westkite.com/v1/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"property_ids": [
"<string>"
],
"webhook_url": "<string>"
}
'import requests
url = "https://api.westkite.com/v1/research"
payload = {
"property_ids": ["<string>"],
"webhook_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({property_ids: ['<string>'], webhook_url: '<string>'})
};
fetch('https://api.westkite.com/v1/research', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"runs": [
{
"id": "<string>",
"property_id": "<string>",
"status": "queued",
"created_at": "<string>",
"completed_at": "<string>",
"status_url": "<string>",
"queue_position": 123,
"poll_after_seconds": 123,
"error_code": "<string>",
"progress": {
"stage": "<string>",
"message": "<string>",
"sources_read": 123,
"people_found": 123,
"elapsed_seconds": 123,
"typical_seconds": 123,
"estimated_seconds_remaining": 123
},
"charged_usd": 123,
"result": {
"names_person": true,
"owner_of_record": "<string>",
"people": [
{
"person_id": "<string>",
"name": "<string>",
"roles": [
"<string>"
]
}
],
"companies": [
{}
],
"sources": [
{}
],
"summary": [
"<string>"
]
}
}
],
"webhook_url": "<string>"
},
"missing": [
{
"field": "<string>",
"reason": "not_covered",
"note": "<string>"
}
],
"billing": {
"operation_id": "<string>",
"operation": "<string>",
"charged_usd": 123,
"balance_usd": 123,
"replayed": true
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}Research
Research owners
Background research into who owns and runs each property (1 to 100). Answers 202 with run ids at once. A run usually takes about 5 minutes; the team runs its plan's research_concurrent at once and queues the rest (they never fail for it). Each run's status_url shows its stage and about how long is left. Each run holds $0.10; a run that names no person costs nothing. Unattended: the key's spend cap stands in for an approval. With webhook_url, each run's status is POSTed there when it finishes (complete, no person, or failed): the body is { event: "research.finished", data, missing }, data and missing as GET /research/{id} answers them, signed in the West-Kite-Signature header as t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>"> keyed by the lowercase hex SHA-256 of the API key that asked (as text). West-Kite-Delivery is the run id. A 2xx answer within 10 s is a delivery; otherwise West Kite retries after 1, 5, 30, 120 and 360 minutes. Redirects are not followed.
POST
/
research
Research owners
curl --request POST \
--url https://api.westkite.com/v1/research \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"property_ids": [
"<string>"
],
"webhook_url": "<string>"
}
'import requests
url = "https://api.westkite.com/v1/research"
payload = {
"property_ids": ["<string>"],
"webhook_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({property_ids: ['<string>'], webhook_url: '<string>'})
};
fetch('https://api.westkite.com/v1/research', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"runs": [
{
"id": "<string>",
"property_id": "<string>",
"status": "queued",
"created_at": "<string>",
"completed_at": "<string>",
"status_url": "<string>",
"queue_position": 123,
"poll_after_seconds": 123,
"error_code": "<string>",
"progress": {
"stage": "<string>",
"message": "<string>",
"sources_read": 123,
"people_found": 123,
"elapsed_seconds": 123,
"typical_seconds": 123,
"estimated_seconds_remaining": 123
},
"charged_usd": 123,
"result": {
"names_person": true,
"owner_of_record": "<string>",
"people": [
{
"person_id": "<string>",
"name": "<string>",
"roles": [
"<string>"
]
}
],
"companies": [
{}
],
"sources": [
{}
],
"summary": [
"<string>"
]
}
}
],
"webhook_url": "<string>"
},
"missing": [
{
"field": "<string>",
"reason": "not_covered",
"note": "<string>"
}
],
"billing": {
"operation_id": "<string>",
"operation": "<string>",
"charged_usd": 123,
"balance_usd": 123,
"replayed": true
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retryable": true,
"docs_url": "<string>",
"reason": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"quoted_usd": 123,
"concurrent": 123,
"balance_usd": 123,
"available_usd": 123,
"spend_cap_usd": 123,
"spent_usd": 123
},
"request_id": "<string>"
}Body
application/json