{"id":20211080,"url":"https://github.com/bitforger/tdee-api","last_synced_at":"2026-05-15T05:02:12.501Z","repository":{"id":243598045,"uuid":"812859398","full_name":"BitForger/TDEE-API","owner":"BitForger","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-02T01:11:00.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T10:43:24.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/BitForger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-10T03:14:24.000Z","updated_at":"2024-07-02T01:11:03.000Z","dependencies_parsed_at":"2025-01-13T21:31:31.161Z","dependency_job_id":"036d591d-6c82-4793-af2c-ae1d936b1d20","html_url":"https://github.com/BitForger/TDEE-API","commit_stats":null,"previous_names":["bitforger/tdee-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BitForger/TDEE-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitForger%2FTDEE-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitForger%2FTDEE-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitForger%2FTDEE-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitForger%2FTDEE-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BitForger","download_url":"https://codeload.github.com/BitForger/TDEE-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BitForger%2FTDEE-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33054454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-14T05:52:35.843Z","updated_at":"2026-05-15T05:02:12.477Z","avatar_url":"https://github.com/BitForger.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TDEE API\nThis is a simple API that calculates the Total Daily Energy Expenditure (TDEE) of a person based on their age, weight, height\n\n## Installation\n1. Clone the repository\n2. Install the dependencies\n    ```bash\n    go mod download\n    ```\n3. Run the server\n    ```bash\n    go run main.go\n    ```\n\n## Docker\n1. Build the image\n    ```bash\n    docker build -t tdee-api .\n    ```\n2. Run the container\n    ```bash\n    docker run -p 3000:3000 tdee-api\n    ```\n\n## Usage\nSend a GET request to the `/tdee/daily` endpoint with the following URL parameters:\n```http request\nGET http://localhost:3000/api/v1/tdee/daily\n    ?age=25\n    \u0026weight=\n    \u0026height=\n    \u0026sex=male\n    \u0026activity_level=\n```\nWeight is in pounds, height is in inches. The activity level can be one of the following:\n- sedentary\n  - little or no exercise\n- light_active\n  - light exercise/sports 1-3 days/week\n- moderate_active\n  - moderate exercise/sports 3-5 days/week\n- active\n  - hard exercise/sports 6-7 days a week\n- very_active\n  - very hard exercise/sports \u0026 physical job or 2x training\n\n## Example\n```http request\nGET http://localhost:3000/api/v1/tdee/daily\n    ?age=25\n    \u0026weight=180\n    \u0026height=72\n    \u0026sex=male\n    \u0026activity_level=active\n```\nThe response will be:\n\n```json\n{\n  \"maintenance_calories\": 3200,\n  \"deficits\": {\n    \"deficit_250\": 2950,\n    \"deficit_500\": 2700,\n    \"deficit_750\": 2450,\n    \"deficit_1000\": 2200\n  }\n}\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitforger%2Ftdee-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitforger%2Ftdee-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitforger%2Ftdee-api/lists"}