Data Types
The Sayari API uses specific data types to structure the information returned in API responses.
Dates
- Format:
YYYY[-MM[-DD]]
- Description: Dates are formatted as year-month-day, though partial dates (for example, just year
**2000**
or year-month**2000-10**
) are acceptable. This flexibility accommodates data where full date details might not be available. - Usage: Dates are common in fields indicating time frames, like
from_date
,to_date
, orpublication_date
.
Countries
- Format: ISO 3166-1 alpha-3 codes
- Description: Countries are represented using three-letter codes as defined by the International Organization for Standardization (ISO). This ensures consistency and ease of understanding across international datasets.
- Usage: This data type is useful in filtering or identifying the geographical context of entities or records.
Source
- Description: This type provides metadata about the data source, including its unique identifier, a human-readable label, and the associated country.
- Usage: Source information is essential for understanding the origin of the data, which can be critical for verification or compliance purposes.
Example:
Sample Source Object
EmbeddedEntity
After June 25th, 2024, use the
trade_count
object, to understand if an entity has related shipments.- Description: This data type represents a summarized view of an entity, such as a
company
orperson
, within the dataset. It includes identifiers, basic attributes, and links to detailed information. - Usage: This type is used to provide a snapshot of an entity, often in the context of relationships or search results.
Sample Embedded Entity Object
EmbeddedRecord
- Description: This is a concise representation of a record, typically a document or filing, including its source, publication and acquisition dates, and a reference count.
- Usage: This is useful for making quick reference to official records or documents linked to an entity.
Sample Embedded Record Object
PathSegment
- Description: This type details a segment of a relationship path in the data, showing how different entities are connected through various relationships.
- Usage: Often used in network analysis or due diligence, this type is key in understanding complex inter-entity relationships.
Sample Path Segment Object
PossiblySameAsMatches
- Description: This type indicates potential matches for an entity based on similarity in attributes or relationships. It’s used to suggest possible connections or identity overlaps.
- Usage: Entities are grouped as possibly the same and may qualify as potentially duplicate or related entities. This data type is important for risk and entity assessment.
Sample PSA Object