Developers /Datasets API

Get related records

Rows of other datasets that share an entity with this row (a company by CIK or ticker, a county by FIPS, ...): free where your team follows them; with `lookup`, other rows of catalogue datasets are lookups of that dataset; otherwise only the count.

GET/datasets/v1/{dataset}/records/{record_key}/related
GET example
curl --request GET \
  --url 'https://factget.dev/datasets/v1/{dataset}/records/{record_key}/related' \
  --header "Authorization: Bearer $FACTGET_DATASETS_KEY"

Replace IDs and sample values with your own. Examples are not executed in your browser.

Authorization

Authorizationstring · header · required

Bearer Datasets API key with the required scope. Learn about authentication →

Parameters

Path parameters

datasetstringrequired
record_keystringrequired

Responses

200Successful response
application/json
relatedobject[]required
Show item properties
datasetstringrequired
viaobjectrequired
Show nested properties
columnstringrequired

The column of this row that names the entity.

entity_typestringrequired

company, us_county, in_state, in_district or string.

entity_keystringrequired

E.g. cik:0000320193 or fips:51107.

labelstringrequired
accessstringrequired
Allowed: "followed", "looked_up", "not_followed"
rowsobject[]required
Show item properties
identifierstringrequired

The identifier the row belongs to, e.g. "Loudoun County, VA".

record_keystring | null

The row's key, e.g. "Loudoun County|VA|data_center"; null on a requested placeholder.

collected_bystring
Default: "workflow"Allowed: "workflow", "agent"
last_checkedstring | null

When the row was last refreshed.

row_statusstring

stale: not checked within the dataset's refresh window; requested: a placeholder for an identifier not in the dataset yet.

Default: "live"Allowed: "live", "stale", "removed", "requested"
receiptsobject | null

One receipt per visible data column (expand=receipts, and single-row reads).

correctedstring[] | null

Columns whose value Factget corrected after a customer report (left out when none).

relatedobject | null

With join=<slug>: the rows of that dataset linked to this row, by slug.

expected_atstring | null

Requested placeholders only.

request_idstring | null

Requested placeholders only.

countintegerrequired

Linked rows in that dataset, returned or not.

identifiersstring[]

Identifiers of linked rows not returned, in a published dataset only (follow or look them up to read their rows).

chargedobjectrequired
Show nested properties
lookupintegerrequired

Lookup checks this call charged.

401Missing, unknown or revoked key (invalid_key).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

402Not enough checks left for the lookups this call needs (insufficient_checks); nothing is charged.
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

403The key lacks a scope (insufficient_scope), or the team does not subscribe (not_subscribed).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

404Unknown dataset, row or request, or another team's (not_found).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

429Over the key's per-minute limit (rate_limited), or every identifier was refreshed on demand in the last hour (refresh_too_soon); wait for Retry-After.
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

503The Datasets API is turned off (datasets_off).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

The API schema lists the responses above. Long-running operations can also return 202; see async jobs. For application errors, see errors & retries.