Use the available Shipment endpoints to retrieve shipment records, or perform analysis over shipment records.
Use this endpoint to retrieve Shipment records. Review the available Shipment Search documentation for details on sorting shipments. Additionally, review the Shipment Schema to understand the common attributes of Shipment records.
| data_source required | string |
| offset | integer [ 0 .. 4500 ] |
| size | integer [ 0 .. 500 ] |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. | |
Array of objects Default: "record_date" This parameter controls the order by which shipment results are organized prior to being returned. |
{- "data_source": "global",
- "query": {
- "text": "clothing"
}, - "filters": {
- "record_date": {
- "gte": "2020-01-01"
}
}
}{- "record_count": {
- "total": 0,
- "returned": 0
}, - "records": [
- {
- "<record-property>": "string"
}
], - "analytics": {
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}
}
}Use this endpoint to list the top-values for specific shipment record attributes. Review the available Refinement Documentation to learn more.
| data_source required | string |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
| fields required | Array of strings Items Enum: "data_source" "trade_direction" "transport_type" "bol_type" "financial_countries" "origin_countries" "destination_countries" "shipment_month" "shipment_year" "gics_code" "us_export_type" "port_lading_name" "port_lading_country" "port_lading_un_locode" "port_lading_coast" "port_unlading_name" "port_unlading_country" "port_unlading_un_locode" "port_unlading_coast" "port_destination_name" "port_destination_country" "port_destination_un_locode" "consignee_country" "consignee_region" "consignee_region_2" "consignee_region_3" "consignee_simple_industry" "consignee_trade_roles" "consignee_data_available" "shipper_country" "shipper_region" "shipper_region_2" "shipper_region_3" "shipper_simple_industry" "shipper_trade_roles" "shipper_data_available" |
{- "data_source": "global",
- "query": {
- "text": "clothing"
}, - "filters": {
- "record_date": {
- "gte": "2020-01-01"
}
}, - "fields": [
- "destination_countries",
- "origin_countries"
]
}{- "record_count": {
- "total": 0,
- "returned": 0
}, - "analytics": {
- "refinements": {
- "<specified-refinement-field>": [
- {
- "<specified-refinement-field>": "string",
- "record_count": 0
}
]
}
}
}Use this endpoint to calculate metrics on shipment attributes, further aggregated into specified time-series intervals. Review the available Time Series Documentation to learn more.
| data_source required | string |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
required | Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. |
| interval required | string Enum: "week" "month" "quarter" "year" |
| min_date | string <date> |
| max_date | string <date> |
{- "data_source": "global",
- "query": {
- "text": "clothing"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "avg"
}
], - "interval": "month",
- "min_date": "2020-01-01",
- "max_date": "2022-01-01"
}{- "record_count": {
- "total": 0,
- "returned": 0
}, - "analytics": {
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "time_series": {
- "<specified-interval>": [
- {
- "<interval>_start_date": "2019-08-24",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}
}
]
}
}
}Use this endpoint to categorize records against the top values of specific attributes up to 3 separate times. Rollups are complex operations, please review the available Rollup Documentation to learn more.
| data_source required | string |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. | |
object This parameter aggregates the entire set of shipment results for which the provided criteria matches, bounded by the start and end date provided and bucketed by the interval specified. Please review the available Time Series Documentation to learn more. | |
required | Array of objects [ 1 .. 3 ] items This parameter allows for the categorization of records against the top values of specific fields up to 3 separate times. The dimensions parameter is complex, please review the Rollup Documentation to learn more. |
{- "data_source": "global",
- "query": {
- "text": "clothing"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "time_series": {
- "interval": "month",
- "min_date": "2020-01-01",
- "max_date": "2022-01-01"
}, - "dimensions": [
- {
- "field": "port_unlading_country",
- "size": 20,
- "offset": 10,
- "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}
}, - {
- "field": "port_unlading_name",
- "size": 10,
- "sort": {
- "key": "count",
- "op": "sum",
- "order": "desc"
}
}
]
}{- "record_count": {
- "total": 0,
- "returned": 0
}, - "analytics": {
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}, - "<specified-dimension-sort-key>": {
- "cardinality": 0
}
}, - "rollup": {
- "<first-specified-dimension-field>": [
- {
- "<specified-dimension-field>": "string",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "rollup": {
- "<second-specified-dimension-field>": [
- {
- "<specified-dimension-field>": "string",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": null
}
}, - "rollup": {
- "<third-specified-dimension-field>": [
- null
]
}
}
]
}
}
]
}
}
}Use the available Company endpoints to retrieve company records, or perform analysis over company records such as constructing a supply-chain network.
Companies exist in different forms within Panjiva data, please refer to this documentation to review the different company entities.
Additionally, companies exist as either a shipper or receiver (consignee) of goods in relation to shipping records.
As such, all company endpoints return an object with shippers and consignees.
Use this endpoint to retrieve Company entities. Review the available Company Search documentation for details on searching and sorting results. Additionally, review the Company Schema to understand the common attributes of Company entities.
| size | integer [ 0 .. 5000 ] |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. | |
object | |
| company_type | string Default: "country_company_name" Enum: "ccn" "country_company_name" "pid" "capiq" "ultimate_parent_capiq" The type of company entity specified and returned for the request. Please refer to the company entity documentation to learn more. |
| direction | string Default: "bidirectional" Enum: "bidirectional" "consignee" "shipper" This parameter controls which trade direction the company search is performed against. |
{- "size": 1000,
- "company_type": "country_company_name",
- "direction": "bidirectional",
- "query": {
- "text": "clothing"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}
}{- "consignees": [
- {
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "<company-field>": "string"
}
], - "shippers": [
- {
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "<company-field>": "string"
}
]
}Use this endpoint to categorize company entities against the top values of specific attributes up to 3 separate times. Rollups are complex operations, please review the available Rollup Documentation to learn more.
| company_ids | Array of integers The |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. | |
Array of objects [ 1 .. 3 ] items This parameter allows for the categorization of records against the top values of specific fields up to 3 separate times. The dimensions parameter is complex, please review the Rollup Documentation to learn more. | |
| company_type | string Default: "country_company_name" Enum: "ccn" "country_company_name" "pid" "capiq" "ultimate_parent_capiq" The type of company entity specified and returned for the request. Please refer to the company entity documentation to learn more. |
| direction | string Default: "bidirectional" Enum: "bidirectional" "consignee" "shipper" This parameter controls which trade direction the company search is performed against. |
{- "company_type": "country_company_name",
- "company_ids": [
- 89172432,
- 85220344,
- 89458782
], - "direction": "bidirectional",
- "query": {
- "text": "clothing"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "dimensions": [
- {
- "field": "port_unlading_country",
- "size": 20,
- "offset": 10,
- "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}
}, - {
- "field": "port_unlading_name",
- "size": 10,
- "sort": {
- "key": "count",
- "op": "sum",
- "order": "desc"
}
}
]
}{- "consignees": [
- {
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "<company-field>": "string",
- "rollup": {
- "<first-specified-dimension-field>": [
- {
- "<specified-dimension-field>": "string",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "rollup": {
- "<second-specified-dimension-field>": [
- {
- "<specified-dimension-field>": "string",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": { }
}, - "rollup": {
- "<third-specified-dimension-field>": [ ]
}
}
]
}
}
]
}
}
], - "shippers": [
- {
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "<company-field>": "string",
- "rollup": {
- "<first-specified-dimension-field>": [
- {
- "<specified-dimension-field>": "string",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}, - "rollup": {
- "<second-specified-dimension-field>": [
- {
- "<specified-dimension-field>": "string",
- "record_count": 0,
- "metrics": {
- "<specified-metric>": { }
}, - "rollup": {
- "<third-specified-dimension-field>": [ ]
}
}
]
}
}
]
}
}
]
}Use this endpoint to find the trading partners for the specified company.
The direction of the network dictates the structure of the compiled trading relationships,
please review the available Company Network Documentation to learn more.
| company_id | integer The |
| company_type | string Default: "country_company_name" Enum: "ccn" "country_company_name" "pid" "capiq" "ultimate_parent_capiq" The type of company entity specified and returned for the request. Please refer to the company entity documentation to learn more. |
| direction | string Default: "bidirectional" Enum: "bidirectional" "consignee" "shipper" This parameter dictates the structure of the company network that is compiled. |
| size | integer [ 0 .. 5000 ] This parameter controls the number of trading partners to aggregate for the provided company. Note, the second tier of the network is restricted to a limit of 100 results. |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. | |
object |
{- "company_id": 89172432,
- "company_type": "country_company_name",
- "size": 1000,
- "query": {
- "text": "clothing"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}, - "direction": "bidirectional"
}{- "<root-company-id>": {
- "top-shippers": [
- {
- "name": "Tier 1 Shipper",
- "company_id": 1,
- "top-shippers": [
- {
- "name": "Tier 2 Shipper",
- "company_id": 2
}
]
}
], - "top-consignees": [
- {
- "name": "Tier 1 Consignee",
- "company_id": 3,
- "top-shippers": [
- {
- "name": "Tier 2 Consignee",
- "company_id": 4
}
]
}
]
}
}Use this endpoint to retrieve company entities with provided company identifiers.
| company_id | integer The ID of a singular company to lookup. Note: This will be ignored if |
| company_ids | Array of integers |
| company_type | string Default: "country_company_name" Enum: "ccn" "country_company_name" "pid" "capiq" "ultimate_parent_capiq" The type of company entity specified and returned for the request. Please refer to the company entity documentation to learn more. |
{- "company_id": 89172432,
- "company_ids": [
- 89172433,
- 89172434,
- 89172435
], - "company_type": "country_company_name"
}{- "companies": [
- {
- "ccn_id": 112233,
- "name": "Company Name"
}
]
}Use the available Async endpoints to retrieve shipment or company records in quantities that exceed the limits of the regular shipment and company search endpoints.
Review the documentation on performing Large Searches to learn more.
Use this endpoint to retrieve a large set of shipment records for a particular shipment search.
| output_format | string Default: "jsonl" Enum: "jsonl" "csv"
|
| notify_email | string The (singular) email address to send a notification when the bulk-async job is ready for download. Note: The |
| data_source required | string |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects Default: "record_date" This parameter controls the order by which shipment results are organized prior to being returned. |
{- "output_format": "jsonl",
- "notify_email": "myemail@domain.com",
- "data_source": "global",
- "query": {
- "text": "clothing"
}, - "filters": {
- "record_date": {
- "gte": "2020-01-01"
}
}
}{- "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
- "status": "submitted"
}Use this endpoint to retrieve a large set of aggregated shipment values for a particular shipment search.
| output_format | string Default: "jsonl" Enum: "jsonl" "csv"
|
| notify_email | string The (singular) email address to send a notification when the bulk-async job is ready for download. Note: The |
| data_source required | string |
object This parameter allows for free-text searching across data-points on the shipment records. It is a complex parameter, please review the Text Search Documentation to understand its different properties and functions. | |
Array of objects <= 500 items This parameter allows for distinct search terms across separate search groups. | |
object This parameter allows for precise and exact matching of records by evaluating specific shipment attributes against provided constraints. Filters may be very complex, please review the Filters Documentation to understand how to compose filters properly. | |
Array of objects This parameter allows for the calculation of aggregate statistics across the entire set of selected shipments. Please review the Metric Documentation to learn more. | |
required | Array of objects = 1 items This parameter allows for the categorization of records against the top values of a specific field. The dimensions parameter is complex, please review the Rollup Documentation to learn more. |
{- "output_format": "jsonl",
- "notify_email": "myemail@domain.com",
- "data_source": "global",
- "query": {
- "text": "clothing"
}, - "filters": {
- "record_date": {
- "gte": "2020-01-01"
}
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "dimensions": [
- {
- "field": "port_unlading_country",
- "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}
}
]
}{- "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
- "status": "submitted"
}For all bulk-async endpoints, the "job" that is queued-up and (asynchronously) executed is assigned a unique ID which is provided in the response – this ID can subsequently be used to call the status endpoint in order to poll the given job's latest information and status.
| job-id required | string <uuid> The ID of the job to fetch the status for |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "notify_email": "string",
- "parameters": {
- "<parameter-field>": "string"
}, - "status": "submitted",
- "last_changed": "2019-08-24T14:15:22Z",
- "download_url": "string"
}Use this endpoint to retrieve results for a large number of separate company searches.
| notify_email | string The (singular) email address to send a notification when the bulk-async job is ready for download. Note: The |
| output_format | string Default: "jsonl" Enum: "jsonl" "csv"
|
Array of objects |
{- "output_format": "jsonl",
- "notify_email": "myemail@domain.com",
- "requests": [
- {
- "size": 1000,
- "query": {
- "text": "clothing"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}
}, - {
- "size": 1000,
- "query": {
- "text": "shoes"
}, - "filters": {
- "destination_countries": "United States"
}, - "metrics": [
- {
- "metric": "weight_kg",
- "op": "sum"
}
], - "sort": {
- "key": "weight_kg",
- "op": "sum",
- "order": "desc"
}
}
]
}{- "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
- "status": "submitted"
}| job-id required | string <uuid> The ID of the job to fetch the status for |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "type": "string",
- "notify_email": "string",
- "parameters": {
- "<parameter-field>": "string"
}, - "status": "submitted",
- "last_changed": "2019-08-24T14:15:22Z",
- "download_url": "string"
}The Harmonized System is an international standard of 2, 4, or 6-digit codes maintained by the World Customs Organization. Each country may have its own more detailed set of codes beyond that - we expose the US International Trade Commission's Harmonized Tariff Schedule, which also includes 8 & 10-digit codes.
Search across known HS codes using a familiar query with some filters.
Review the available HS Code Search Documentation to learn more.
| offset | integer [ 0 .. 4500 ] |
| size | integer [ 0 .. 500 ] |
required | object Free-text search for HS Codes |
Array of objects | |
object |
{- "size": 10,
- "query": {
- "text": "clothing"
}, - "filters": {
- "AND": {
- "level": 6
}, - "NOT": {
- "section": 12
}
}
}{- "record_count": {
- "total": 0,
- "returned": 0
}, - "results": [
- {
- "commodity": "string",
- "description": "string",
- "level": "string",
- "parent": "string",
- "section": "string"
}
], - "analytics": {
- "metrics": {
- "<specified-metric>": {
- "<specified-operation>": 0
}
}
}
}Use this endpoint to determine the available data-sources for your organization. Please review the available Data-Source Documentation to learn more.
{- "data_sources": [
- "string"
]
}Use this endpoint to determine the available fields for parameters such as query or filter.
The available fields for these parameters are also available in the API Reference.
In some cases, the desired data-source must be selected in the drop-down for the relevant fields to present themselves.
| data-source required | string Example: global The data source to list metadata for |
{- "query": {
- "groups": {
- "<group-name>": [
- "string"
]
}, - "defaults": {
- "group": "string",
- "operator": "string"
}
}, - "filters": [
- {
- "field": "string",
- "type": "string",
- "format": "string"
}
], - "sort": {
- "valid_keys": [
- "string"
], - "default": [
- {
- "field": "string",
- "order": "asc"
}
]
}, - "metrics": [
- {
- "name": "string",
- "valid_ops": [
- "sum"
]
}
], - "dimensions": [
- "string"
], - "refinements": [
- "string"
]
}Use this endpoint to review the exact shipment record schemas that will be returned by the Shipment Search. Common attributes on these shipment records are further described in the Shipment Schema Documentation
| data-source required | string Example: global The data source to list metadata for |
{- "<country>-<direction>": {
- "fields": [
- "string"
], - "<nested-object>": {
- "fields": [
- "string"
]
}
}
}| grant_type | string Value: "client_credentials" |
| client_id | string |
| client_secret | string |
{- "grant_type": "client_credentials",
- "client_id": "string",
- "client_secret": "string"
}{- "token": "string",
- "expires_at": "2019-08-24T14:15:22Z"
}