Retrieve comprehensive information about different cancer types in JSON format.
GET /api/cancer/{cancerType}
Replace {cancerType}
with the desired type, e.g. lung
, breast
,
prostate
, Colorectal
, gastric
.
https://domain-name.com/api/cancer/lung
https://domain-name.com/api/cancer/breast
Paste the URL into your browser; JSON will display. To download it, right-click and choose Save As….
curl
curl -X GET "https://domain-name.com/api/cancer/lung" \
-H "Accept: application/json"
wget
wget https://domain-name.com/api/cancer/lung
requests
)import requests
url = "https://domain-name.com/api/cancer/lung"
response = requests.get(url, headers={"Accept": "application/json"})
if response.status_code == 200:
data = response.json()
print(data)
else:
print("Error:", response.status_code)
{"columns": ["country", "Specialized_Centers", "GeneMol_Centers", "Infra_Avg", "Treatment_Access", "Research_Funding", "Awareness_Campaigns", "Treatment_Avg", "Survival_Rates", "Early_Detection", "Palliative_Care", "SEdPc_Avg", "EGFR", "ALK", "PD_L1", "MET", "ROS1", "BRAF", "KRAS", "Biomark_Avg", "Clinical_Guideline", "Feasibility_Integration", "Adopt_inti", "Engagement_Updates", "ESMO", "Overall_Average", "Reimbursement", "No_cost", "Cancer_Screening"], "data": [{"country": "South Africa", "Specialized_Centers": 3, "GeneMol_Centers": 3, "Infra_Avg": 3.0, "Treatment_Access": 3, "Research_Funding": 3, "Awareness_Campaigns": 4, .........
{cancerType}
is a valid subtype (e.g., lung
, breast
,
prostate
, Colorectal
, gastric
).lung_cancer.json
.