GithubHelp home page GithubHelp logo

fdc-food-api's Introduction

API DOCS

GET FOOD BY FOODNAME

PATH => /food/find

Post Body

{
  foodName: 'Jollof'
}

Response

[
      {
        fdcId: 699150,
        description: 'JOLLOF RICE PILAF SEASONING AUTHENTIC AFRICAN SPICES, JOLLOF RICE PILAF SEASONING',
        dataType: 'Branded',
        gtinUpc: '861521000203',
        publishedDate: '2019-12-06',
        brandOwner: 'IYA FOODS',
        ingredients: 'TURMERIC, PAPRIKA, CHILI PEPPER, BLACK PEPPER, CUMIN, CORIANDER, FENUGREEK, CLOVES, NUTMEG, ONION, GARLIC, GINGER, THYME, YELLOW MAIZE, SALT, SUGAR',
        foodNutrients: [
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object]
        ],
        allHighlightFields: '',
        score: -43.235466
      },
      {
        fdcId: 436752,
        description: "NEILLY'S FOODS, JOLLOF RICE MIX",
        dataType: 'Branded',
        gtinUpc: '188314000074',
        publishedDate: '2019-04-01',
        brandOwner: 'Ultimate Seasonings LLC',
        ingredients: 'LONG GRAIN PARBOILED RICE, TOMATO POWDER, SUNDRIED TOMATO, ONION FLAKES, CHOPPED GARLIC FLAKES, RED PEPPER, SALT, BLACK PEPPER, SPICES.',
        foodNutrients: [
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object],
          [Object], [Object]
        ],
        allHighlightFields: '',
        score: -60.56096
      }
]

Single Response From Array

{
      fdcId: 699150,
      description: 'JOLLOF RICE PILAF SEASONING AUTHENTIC AFRICAN SPICES, JOLLOF RICE PILAF SEASONING',
      dataType: 'Branded',
      gtinUpc: '861521000203',
      publishedDate: '2019-12-06',
      brandOwner: 'IYA FOODS',
      ingredients: 'TURMERIC, PAPRIKA, CHILI PEPPER, BLACK PEPPER, CUMIN, CORIANDER, FENUGREEK, CLOVES, NUTMEG, ONION, GARLIC, GINGER, THYME, YELLOW MAIZE, SALT, SUGAR',
      foodNutrients: [
        {
          nutrientId: 1003,
          nutrientName: 'Protein',
          nutrientNumber: '203',
          unitName: 'G',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        },
        {
          nutrientId: 1004,
          nutrientName: 'Total lipid (fat)',
          nutrientNumber: '204',
          unitName: 'G',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        },
        {
          nutrientId: 1005,
          nutrientName: 'Carbohydrate, by difference',
          nutrientNumber: '205',
          unitName: 'G',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        },
        {
          nutrientId: 1008,
          nutrientName: 'Energy',
          nutrientNumber: '208',
          unitName: 'KCAL',
          derivationCode: 'LCCS',
          derivationDescription: 'Calculated from value per serving size measure',
          value: 300
        },
        {
          nutrientId: 2000,
          nutrientName: 'Sugars, total including NLEA',
          nutrientNumber: '269',
          unitName: 'G',
          derivationCode: 'LCSL',
          derivationDescription: 'Calculated from a less than value per serving size measure',
          value: 20
        },
        {
          nutrientId: 1079,
          nutrientName: 'Fiber, total dietary',
          nutrientNumber: '291',
          unitName: 'G',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        },
        {
          nutrientId: 1087,
          nutrientName: 'Calcium, Ca',
          nutrientNumber: '301',
          unitName: 'MG',
          derivationCode: 'LCCS',
          derivationDescription: 'Calculated from value per serving size measure',
          value: 130
        },
        {
          nutrientId: 1089,
          nutrientName: 'Iron, Fe',
          nutrientNumber: '303',
          unitName: 'MG',
          derivationCode: 'LCCS',
          derivationDescription: 'Calculated from value per serving size measure',
          value: 7.2
        },
        {
          nutrientId: 1092,
          nutrientName: 'Potassium, K',
          nutrientNumber: '306',
          unitName: 'MG',
          derivationCode: 'LCCS',
          derivationDescription: 'Calculated from value per serving size measure',
          value: 260
        },
        {
          nutrientId: 1093,
          nutrientName: 'Sodium, Na',
          nutrientNumber: '307',
          unitName: 'MG',
          derivationCode: 'LCCS',
          derivationDescription: 'Calculated from value per serving size measure',
          value: 11800
        },
        {
          nutrientId: 1110,
          nutrientName: 'Vitamin D (D2 + D3), International Units',
          nutrientNumber: '324',
          unitName: 'IU',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        },
        {
          nutrientId: 1253,
          nutrientName: 'Cholesterol',
          nutrientNumber: '601',
          unitName: 'MG',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        },
        {
          nutrientId: 1257,
          nutrientName: 'Fatty acids, total trans',
          nutrientNumber: '605',
          unitName: 'G',
          derivationCode: 'LCCS',
          derivationDescription: 'Calculated from value per serving size measure',
          value: 0
        },
        {
          nutrientId: 1258,
          nutrientName: 'Fatty acids, total saturated',
          nutrientNumber: '606',
          unitName: 'G',
          derivationCode: 'LCCD',
          derivationDescription: 'Calculated from a daily value percentage per serving size measure',
          value: 0
        }
      ],
      allHighlightFields: '',
      score: -43.235466
    }

ON FAILED RESPONSE

  []

fdc-food-api's People

Contributors

charlesagyemang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.