RxGuide
RxGuide · GPT Actions
OpenFDA Drug Product Labeling API
API for accessing drug product labeling information from the FDA's Structured Product Labeling (SPL) dataset. Provides data on both prescription and over-the-counter (OTC) drugs, including various labeling sections like indications for use, adverse reactions, etc.
GET /Retrieve drug product labeling information based on generic or brand name with pagination support
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "OpenFDA Drug Product Labeling API",
"version": "1.0",
"description": "API for accessing drug product labeling information from the FDA's Structured Product Labeling (SPL) dataset. Provides data on both prescription and over-the-counter (OTC) drugs, including various labeling sections like indications for use, adverse reactions, etc."
},
"servers": [
{
"url": "https://api.fda.gov/drug/label.json"
}
],
"paths": {
"/": {
"get": {
"summary": "Retrieve drug product labeling information based on generic or brand name with pagination support",
"operationId": "getDrugLabelingByNameWithLimitedResults",
"parameters": [
{
"name": "search",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "openfda.generic_name:\"levetiracetam\""
},
"description": "Search query for specific drug labeling information. Use 'openfda.generic_name:\\\"[GENERIC_NAME]\\\"' or 'openfda.brand_name:\\\"[BRAND_NAME]\\\"'."
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 1,
"maximum": 4
},
"description": "Number of records to return per request. The maximum limit is 4."
},
{
"name": "skip",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
},
"description": "Number of records to skip for pagination."
}
],
"responses": {
"200": {
"description": "Successful response with drug labeling data.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DrugLabelResponse"
}
}
}
},
"400": {
"description": "Bad request."
},
"404": {
"description": "Not found."
},
"413": {
"description": "Response too large."
}
}
}
}
},
"components": {
"schemas": {
"DrugLabelResponse": {
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"disclaimer": {
"type": "string"
},
"terms": {
"type": "string"
},
"license": {
"type": "string"
},
"last_updated": {
"type": "string"
},
"results": {
"type": "object",
"properties": {
"skip": {
"type": "integer"
},
"limit": {
"type": "integer"
},
"total": {
"type": "integer"
}
}
}
}
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"set_id": {
"type": "string"
},
"id": {
"type": "string"
},
"effective_time": {
"type": "string"
},
"active_ingredient": {
"type": "array",
"items": {
"type": "string"
}
},
"inactive_ingredient": {
"type": "array",
"items": {
"type": "string"
}
},
"indications_and_usage": {
"type": "array",
"items": {
"type": "string"
}
},
"dosage_and_administration": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"purpose": {
"type": "array",
"items": {
"type": "string"
}
},
"adverse_reactions": {
"type": "array",
"items": {
"type": "string"
}
},
"spl_product_data_elements": {
"type": "array",
"items": {
"type": "string"
}
},
"boxed_warning": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "array",
"items": {
"type": "string"
}
},
"clinical_pharmacology": {
"type": "array",
"items": {
"type": "string"
}
},
"contraindications": {
"type": "array",
"items": {
"type": "string"
}
},
"precautions": {
"type": "array",
"items": {
"type": "string"
}
},
"information_for_patients": {
"type": "array",
"items": {
"type": "string"
}
},
"laboratory_tests": {
"type": "array",
"items": {
"type": "string"
}
},
"drug_interactions": {
"type": "array",
"items": {
"type": "string"
}
},
"carcinogenesis_and_mutagenesis_and_impairment_of_fertility": {
"type": "array",
"items": {
"type": "string"
}
},
"pregnancy": {
"type": "array",
"items": {
"type": "string"
}
},
"nursing_mothers": {
"type": "array",
"items": {
"type": "string"
}
},
"geriatric_use": {
"type": "array",
"items": {
"type": "string"
}
},
"drug_abuse_and_dependence": {
"type": "array",
"items": {
"type": "string"
}
},
"controlled_substance": {
"type": "array",
"items": {
"type": "string"
}
},
"abuse": {
"type": "array",
"items": {
"type": "string"
}
},
"dependence": {
"type": "array",
"items": {
"type": "string"
}
},
"overdosage": {
"type": "array",
"items": {
"type": "string"
}
},
"how_supplied": {
"type": "array",
"items": {
"type": "string"
}
},
"spl_medguide": {
"type": "array",
"items": {
"type": "string"
}
},
"spl_medguide_table": {
"type": "array",
"items": {
"type": "string"
}
},
"package_label_principal_display_panel": {
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "string"
},
"openfda": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}
}
}