Retrieves NDC transaction statistics
curl --request GET \
--url https://sandbox-api.instockrx.com/api/v1/ndc-transaction-statistic \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'GET', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/api/v1/ndc-transaction-statistic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/ndc-transaction-statistic"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"highTransacted": {
"price": 123,
"quantity": 123
},
"lowTransacted": {
"price": 123,
"quantity": 123
},
"averageTransacted": {
"price": 123,
"quantity": 123
},
"mostRecentTransacted": {
"price": 123,
"quantity": 123
},
"highPriceOffered": {
"price": 123,
"quantity": 123
},
"lowPriceOffered": {
"price": 123,
"quantity": 123
},
"averagePriceOffered": {
"price": 123,
"quantity": 123
},
"mostRecentPriceOffered": {
"price": 123,
"quantity": 123
},
"highListed": {
"price": 123,
"quantity": 123
},
"lowListed": {
"price": 123,
"quantity": 123
},
"averageListed": {
"price": 123,
"quantity": 123
},
"mostRecentListed": {
"price": 123,
"quantity": 123
}
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Utility
Retrieves NDC transaction statistics
Provides transaction statistics for a specific National Drug Code (NDC), including transaction counts, volumes, and other relevant metrics.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| nationalDrugCode (query) | Yes | string | Must be a valid NDC (e.g. “12345678901”) |
GET
/
api
/
v1
/
ndc-transaction-statistic
Retrieves NDC transaction statistics
curl --request GET \
--url https://sandbox-api.instockrx.com/api/v1/ndc-transaction-statistic \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'GET', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/api/v1/ndc-transaction-statistic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/ndc-transaction-statistic"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"highTransacted": {
"price": 123,
"quantity": 123
},
"lowTransacted": {
"price": 123,
"quantity": 123
},
"averageTransacted": {
"price": 123,
"quantity": 123
},
"mostRecentTransacted": {
"price": 123,
"quantity": 123
},
"highPriceOffered": {
"price": 123,
"quantity": 123
},
"lowPriceOffered": {
"price": 123,
"quantity": 123
},
"averagePriceOffered": {
"price": 123,
"quantity": 123
},
"mostRecentPriceOffered": {
"price": 123,
"quantity": 123
},
"highListed": {
"price": 123,
"quantity": 123
},
"lowListed": {
"price": 123,
"quantity": 123
},
"averageListed": {
"price": 123,
"quantity": 123
},
"mostRecentListed": {
"price": 123,
"quantity": 123
}
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Authorizations
Response
OK