safe_extract: Safe Data Extraction from API Response
Description
This function extracts the value of a given field from the parsed API response.
It handles missing or empty data gracefully by returning NA if the field is missing.
Usage
safe_extract(x, field)
Value
The extracted field value, or NA if missing or empty.