List disruption exposure by product
curl --request GET \
--url https://api.insightchain.ai/v1/disruptions/exposure_by_product \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/disruptions/exposure_by_product"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/disruptions/exposure_by_product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "daa1a691-4f5f-4e27-bdaf-f69d450ca1a7",
"filters": {
"window_days": 90,
"item": null
},
"total": 27,
"data": [
{
"item_id": "cc7b6a7f-785d-4c16-ac76-e76ea513b425",
"external_id": "MAT-00000557",
"description": "Accessories - Style 00000557",
"on_hand": 126,
"demand_qty": 17,
"single_sourced": false,
"events": [
{
"id": "74e5a673-7b85-4cb6-8ea0-0209ea801116",
"title": "Chinese New Year factory shutdown 2027",
"event_type": "factory_shutdown",
"severity": 4,
"signal_class": "supply_risk"
}
],
"max_severity": 4,
"event_count": 24
}
],
"has_more": false,
"next_cursor": null,
"object": "list"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Disruptions
List disruption exposure by product
Exposure per item.
Key scope: read (or execute). Module: disruptions. Answers the list object (object, data, has_more, next_cursor).
GET
/
v1
/
disruptions
/
exposure_by_product
List disruption exposure by product
curl --request GET \
--url https://api.insightchain.ai/v1/disruptions/exposure_by_product \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.insightchain.ai/v1/disruptions/exposure_by_product"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.insightchain.ai/v1/disruptions/exposure_by_product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "daa1a691-4f5f-4e27-bdaf-f69d450ca1a7",
"filters": {
"window_days": 90,
"item": null
},
"total": 27,
"data": [
{
"item_id": "cc7b6a7f-785d-4c16-ac76-e76ea513b425",
"external_id": "MAT-00000557",
"description": "Accessories - Style 00000557",
"on_hand": 126,
"demand_qty": 17,
"single_sourced": false,
"events": [
{
"id": "74e5a673-7b85-4cb6-8ea0-0209ea801116",
"title": "Chinese New Year factory shutdown 2027",
"event_type": "factory_shutdown",
"severity": 4,
"signal_class": "supply_risk"
}
],
"max_severity": 4,
"event_count": 24
}
],
"has_more": false,
"next_cursor": null,
"object": "list"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>"
},
"request_id": "<string>",
"details": [
"<unknown>"
],
"limit": 123,
"code": "<string>",
"field": "<string>"
}Authorizations
Query Parameters
Response
OK