{"id":15484202,"url":"https://github.com/zokioki/usda_fdc","last_synced_at":"2025-03-24T05:43:54.672Z","repository":{"id":45719773,"uuid":"452597458","full_name":"zokioki/usda_fdc","owner":"zokioki","description":"A Ruby interface to the USDA FoodData Central API","archived":false,"fork":false,"pushed_at":"2023-11-19T07:44:49.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T23:57:31.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zokioki.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-27T08:19:53.000Z","updated_at":"2022-07-16T02:19:05.000Z","dependencies_parsed_at":"2024-10-14T19:52:34.722Z","dependency_job_id":null,"html_url":"https://github.com/zokioki/usda_fdc","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"97b81ff7b4234cb17cff0554a1dd479f9abe3865"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zokioki%2Fusda_fdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zokioki%2Fusda_fdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zokioki%2Fusda_fdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zokioki%2Fusda_fdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zokioki","download_url":"https://codeload.github.com/zokioki/usda_fdc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217791,"owners_count":20579297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T05:23:24.937Z","updated_at":"2025-03-24T05:43:54.651Z","avatar_url":"https://github.com/zokioki.png","language":"Ruby","readme":"# UsdaFdc\n\n[![Gem Version](https://badge.fury.io/rb/usda_fdc.svg)](https://badge.fury.io/rb/usda_fdc)\n\nA Ruby interface to the USDA [FoodData Central](https://fdc.nal.usda.gov) API.\n\n## Installation\n\nTo install the latest release:\n\n    $ gem install usda_fdc\n\nTo include in a Rails project, add it to the Gemfile:\n\n```ruby\ngem 'usda_fdc'\n```\n\n## Usage\n\nAn API key is required to access the service. You can find details on how to obtain a key [here](https://fdc.nal.usda.gov/api-guide.html#bkmk-3).\n\nOnce you have an API key, you're able to make API calls via the client object:\n\n```ruby\nclient = UsdaFdc::Client.new('your_api_key')\nclient.food(534358)\n\n#=\u003e { \"dataType\" =\u003e \"Branded\", \"description\" =\u003e \"NUT 'N BERRY MIX\", \"fdcId\" =\u003e 534358, ... }\n```\n\nYou can also configure the default API key globally for all `UsdaFdc::Client` instances:\n\n```ruby\nUsdaFdc.configure do |config|\n  config.api_key = 'your_api_key'\nend\n```\n\nFor more information on interacting with the API, including accepted parameters and response formats, check out the official USDA FDC [API guide](https://fdc.nal.usda.gov/api-guide.html).\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzokioki%2Fusda_fdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzokioki%2Fusda_fdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzokioki%2Fusda_fdc/lists"}