addedInput schema / properties / cursor
Added value: +{
+ "description": "next_cursor from the previous page, with no skip and the same search, sort, and endpoint as that call; other inputs may change.",
+ "pattern": "^[A-Za-z0-9_-]+$",
+ "type": "string"
+}
changedInput schema / properties / limit / description
Previous value: -"Labels per page. Labels are large, and the cost of a sections selection is the section summed across every record on the page — so it scales with this limit. Lower it before widening a selection. Default 5; a larger value returns at most 1000 and says so."New value: +"Labels per page. A sections selection costs its size summed across every label on the page, so lower this before widening one. Default 5; a larger value returns at most 1000 and says so."
changedInput schema / properties / search / description
Previous value: -"Query targeting label fields. Examples: openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". To fetch one product's label, pass set_id with the SPL UUID returned in earlier results; it returns the label's current revision only, since openFDA does not serve earlier ones. Separate clauses with spaces. A \"+\" written in the URL style of openFDA's examples also reads as a space where it separates: beside AND, OR, NOT, or TO, after a closing quote, paren, or bracket, or between a term and the next \"field:\" prefix (a:\"x\"+AND+b:\"y\", [20200101+TO+20201231], c:x+d:y). In a query that marks a clause required with a leading +field:, only the AND/OR/NOT/TO positions read that way. Any other \"+\" is sent as written, and inside a quoted phrase \"+\" is a literal plus sign. Double quotes, parentheses, and range brackets must balance, and the query must not end on a backslash — each is rejected before the request."New value: +"Label query, e.g. openfda.brand_name:\"aspirin\", openfda.generic_name:\"metformin\", openfda.manufacturer_name:\"pfizer\". set_id with an SPL UUID from earlier results fetches that product's label, in its current revision only (openFDA serves no earlier ones). A brand search also matches repackagers' copies: to keep the original packager's label, add AND openfda.is_original_packager:true (several or none can remain), or take identity.spl_set_id from openfda_drug_profile. A \"+\" between clauses reads as a space; inside a quoted phrase it is a literal plus."
changedInput schema / properties / sections / description
Previous value: -"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"]. Names come from the outline an oversized page returns, or from openfda_describe_fields. Omit for the whole label — which returns the section outline instead when the page exceeds the inline size budget; an empty list is treated as omitted. A selection is returned whole even when it exceeds that budget, with its serialized size reported on the notice; the outline names a section measured to fit at the requested limit. Sections ending in _table hold SPL table markup: raw in structured results, rendered as Markdown tables in the text output. Metadata (openfda, set_id, id, effective_time, version) is returned either way and counts toward the size."New value: +"Label sections to return, e.g. [\"boxed_warning\",\"indications_and_usage\"], named by an oversized page's outline or by openfda_describe_fields. Omitted or [], the whole label comes back, or its outline when the page exceeds the inline size budget; a selection comes back whole even over that budget. Metadata (openfda, set_id, id, effective_time, version) always comes back and counts toward the size."
changedInput schema / properties / skip / description
Previous value: -"Number of records to skip for pagination (default 0). openFDA caps pagination at 25000 records; a higher value returns a pagination_limit_reached error."New value: +"Records to skip, at most 25000; to read past that, follow next_cursor from skip 0."
changedInput schema / properties / sort / description
Previous value: -"Sort expression — a field path optionally suffixed with :asc or :desc (any letter case; :ascending and :descending are also accepted, and every direction is sent as asc or desc); comma-separate for multi-field sort. Example: effective_time:desc. Field paths take only letters, digits, underscores, and dots; any other character or direction is rejected before the request. A well-formed but non-sortable field still causes a query error — use a documented field name."New value: +"A field path with :asc or :desc (any letter case; :ascending and :descending also work), several comma-separated, e.g. effective_time:desc. A search without sort returns openFDA's index order, not relevance."
changedOutput schema / properties / error / properties / data / properties / reason / description
Previous value: -"Machine-readable failure mode. Declared by this tool: `rate_limited`: The openFDA daily or per-minute request limit is exceeded. `upstream_error`: The openFDA API returned a 5xx server error. `malformed_search`: The search query leaves a double quote, parenthesis, or range bracket unclosed, or ends on a backslash. `query_error`: The search query was rejected by openFDA (malformed field name, invalid syntax). `pagination_limit_reached`: skip exceeds the 25000 record pagination ceiling. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `rate_limited`: The openFDA daily or per-minute request limit is exceeded. `upstream_error`: The openFDA API returned a 5xx server error. `malformed_search`: search leaves a double quote, parenthesis, or range bracket unclosed, ends on a backslash, or holds a character openFDA refuses. `query_error`: The search query was rejected by openFDA (malformed field name, invalid syntax). `pagination_limit_reached`: skip exceeds the 25000 record pagination ceiling. `invalid_cursor`: cursor does not decode, belongs to another endpoint, search, or sort, or comes with skip above 0, stage, or canvas_id. Other values are possible when a failure originates below the handler."
changedOutput schema / properties / error / properties / data / properties / reason / examples
Previous value: -[
- "rate_limited",
- "upstream_error",
- "malformed_search",
- "query_error",
- "pagination_limit_reached"
-]New value: +[
+ "rate_limited",
+ "upstream_error",
+ "malformed_search",
+ "query_error",
+ "pagination_limit_reached",
+ "invalid_cursor"
+]
changedOutput schema / properties / meta / description
Previous value: -"Pagination and freshness metadata."New value: +"Response metadata"
changedOutput schema / properties / meta / properties / lastUpdated / description
Previous value: -"Date the dataset was last updated."New value: +"Dataset last updated date"
changedOutput schema / properties / meta / properties / limit / description
Previous value: -"Page size applied to this request: the requested limit, the endpoint default when limit was omitted, or the endpoint cap when limit exceeded it (the notice then says so). A window running past the end of the matched set returns fewer records than this, so read the length of results for the actual count."New value: +"Page size applied: limit, the endpoint default, or the cap when limit exceeded it. The last page of a match holds fewer records."
changedOutput schema / properties / meta / properties / skip / description
Previous value: -"Number of results skipped."New value: +"Pagination offset"
changedOutput schema / properties / meta / properties / total / description
Previous value: -"Total matching results in the dataset."New value: +"Total matching records"
changedOutput schema / properties / meta / properties / totalUnverified / description
Previous value: -"Present (true) only on an empty page at skip > 0 whose total could not be confirmed: openFDA answers a page past the end and a search that matched nothing alike, and the follow-up request for the total failed. total then reads 0 without ruling out records at a lower skip — re-call with skip=0 to tell."New value: +"True on an empty page at skip > 0 whose total could not be confirmed: total 0 then does not rule out records — re-call with skip=0."
addedOutput schema / properties / next_cursor
Added value: +{
+ "description": "Pass as cursor for the next page; present on a page read at skip 0 or by cursor when more records follow.",
+ "type": "string"
+}
changedOutput schema / properties / notice / description
Previous value: -"Guidance for this page: how to broaden filters or correct field names when results are empty or paging overshot, the sized re-call example when a page overflowed to its section outline, section names no record carried, the serialized size when a sections selection exceeds the inline budget, and the requested value, the cap applied, and the next skip when limit exceeded the 1000-record cap. Absent when nothing needs saying."New value: +"Guidance for this page: empty result, paging on and the original packager's label, the sized re-call for an outline, section names no record carried, a selection over the inline budget, limit clamp, end of a cursor walk. Absent when nothing needs saying."
changedOutput schema / properties / outline / description
Previous value: -"Section names available across the matched page and their serialized size, largest first. Present when kind is \"outline\" — pass names back in sections to retrieve them."New value: +"When kind is \"outline\": the sections on the page and their serialized size summed across it, largest first; pass names back in sections."
addedOutput schema / properties / page_labels
Added value: +{
+ "description": "The label records this page holds, in page order. Present when kind is \"outline\", which otherwise names no record.",
+ "items": {
+ "additionalProperties": false,
+ "description": "One label record on the page.",
+ "properties": {
+ "brand_name": {
+ "description": "First openfda.brand_name.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bytes": {
+ "description": "This label's serialized UTF-8 size; one over 24000 bytes returns an outline even when re-called alone.",
+ "type": "number"
+ },
+ "effective_time": {
+ "description": "Label effective date (YYYYMMDD).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "generic_name": {
+ "description": "First openfda.generic_name.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "is_original_packager": {
+ "description": "True when openFDA flags the label as the original packager's, false for a label with an openfda block but no flag (a repackager's or relabeler's), null when the openfda block is empty — which nulls the three names too.",
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "manufacturer_name": {
+ "description": "First openfda.manufacturer_name.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "set_id": {
+ "description": "SPL set ID, the key to re-call this label alone.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "set_id",
+ "effective_time",
+ "brand_name",
+ "generic_name",
+ "manufacturer_name",
+ "is_original_packager",
+ "bytes"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
changedOutput schema / properties / results / description
Previous value: -"Drug label records, present when kind is \"full\". Each carries an openfda block (brand_name, generic_name, manufacturer_name, route) plus optional SPL sections like indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; section presence varies per label. Sections ending in _table carry raw SPL table markup (tags and character entities) exactly as openFDA returns it. Narrowed to the requested sections plus metadata when sections was supplied."New value: +"Label records when kind is \"full\": an openfda block (brand_name, generic_name, manufacturer_name, route) plus the SPL sections each label has, such as indications_and_usage, warnings, dosage_and_administration, contraindications, adverse_reactions; with sections, only those plus metadata. _table sections carry raw SPL table markup as openFDA returns it; the text output renders them as Markdown tables."
changedOutput schema / properties / truncated / description
Previous value: -"True when more labels matched than this page returned — page with skip for the rest."New value: +"True when more labels matched than this page returned — page with next_cursor or skip for the rest."