{
  "id": "usda_fdc_id",
  "kind": "datatype",
  "status": "draft",
  "name": "USDA FoodData Central ID (FDC ID)",
  "doc": "Numeric identifier of a food record in FoodData Central, the food composition database of the US Department of Agriculture. It covers Foundation Foods, SR Legacy, FNDDS and branded foods, and is used in the API path /v1/food/<fdcId>. Current IDs have six or seven digits.",
  "is_pii": false,
  "categories": [
    "agriculture"
  ],
  "country": [
    "US"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[1-9]\\d{5,7}$",
  "examples": [
    {
      "value": "171688",
      "description": "Apples, raw, with skin (SR Legacy, NDB number 09003)",
      "valid": true
    },
    {
      "value": "747997",
      "description": "Eggs, Grade A, Large, egg white (Foundation Foods)",
      "valid": true
    },
    {
      "value": "09003",
      "description": "NDB number of the same apple record, not an FDC ID",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P12917"
  },
  "links": [
    {
      "type": "doc",
      "url": "https://fdc.nal.usda.gov/api-guide/"
    },
    {
      "type": "doc",
      "url": "https://fdc.nal.usda.gov/"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P12917"
    }
  ],
  "translations": {
    "ru": {
      "name": "Идентификатор продукта в FoodData Central (FDC ID)",
      "doc": "Числовой идентификатор записи о продукте в базе данных о составе пищевых продуктов FoodData Central Минсельхоза США."
    }
  },
  "quality": {
    "score": 90,
    "missing": [
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/US/agriculture/usda_fdc_id.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/US/agriculture/usda_fdc_id.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/agriculture/usda_fdc_id.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/usda_fdc_id",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/usda_fdc_id.json"
  }
}