NCI pack-year smoking exposure
NCI pack-year smoking exposure: pack_years = packs_per_day x years_smoked. One pack per day for one year is one pack-year; two packs per day for 0.5 year is the same. Provide packs_per_day (0-10) or cigarettes_per_day (0-200; 20 cigarettes = 1 pack), not both, plus years_smoked (0-80). magent does not take a smoking history interview. Not a lung-cancer screening order, COPD diagnosis, or medical device.
Answeringour last check, 2026-09-28
1 of 1checks answered this week
261 msmedian answer time
$0.005listed price per call
$0.005price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/pack_years
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.005 | 261 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"cigarettes_per_day": 10,
"packs_per_day": 1,
"years_smoked": 1
},
{
"cigarettes_per_day": 10,
"packs_per_day": 1,
"years_smoked": 1
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"cigarettes_per_day": {
"description": "Cigarettes smoked per day (0-200, magent clamp). Converted as packs_per_day = cigarettes_per_day / 20. Provide this or packs_per_day, not both.",
"type": "number"
},
"packs_per_day": {
"description": "Cigarette packs smoked per day (0-10, magent clamp; NCI does not publish an input band). Provide this or cigarettes_per_day, not both. NCI: 1 pack/day for 1 year = 1 pack-year.",
"type": "number"
},
"years_smoked": {
"description": "Years smoked (0-80, magent clamp; NCI does not publish an input band). NCI: 2 packs/day for 0.5 year = 1 pack-year. magent does not take a smoking history interview.",
"type": "number"
}
},
"required": [
"years_smoked"
],
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"const": "POST",
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}