{"id":13414631,"url":"https://dukengn.github.io/Dog-facts-API/","last_synced_at":"2025-03-14T22:31:56.054Z","repository":{"id":49838618,"uuid":"263717504","full_name":"DucNgn/Dog-facts-API-DEPRECATED-","owner":"DucNgn","description":"An API returns random dog facts 🐶","archived":false,"fork":false,"pushed_at":"2023-05-01T21:56:03.000Z","size":40,"stargazers_count":41,"open_issues_count":5,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T05:13:15.626Z","etag":null,"topics":["api","dogs","flask-application","python"],"latest_commit_sha":null,"homepage":"https://dukengn.github.io/Dog-facts-API/","language":"Python","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/DucNgn.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":"2020-05-13T18:54:32.000Z","updated_at":"2023-10-16T05:48:14.000Z","dependencies_parsed_at":"2024-05-03T15:36:47.911Z","dependency_job_id":null,"html_url":"https://github.com/DucNgn/Dog-facts-API-DEPRECATED-","commit_stats":null,"previous_names":["dukengn/dog-facts-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DucNgn%2FDog-facts-API-DEPRECATED-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DucNgn%2FDog-facts-API-DEPRECATED-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DucNgn%2FDog-facts-API-DEPRECATED-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DucNgn%2FDog-facts-API-DEPRECATED-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DucNgn","download_url":"https://codeload.github.com/DucNgn/Dog-facts-API-DEPRECATED-/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243657998,"owners_count":20326456,"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":["api","dogs","flask-application","python"],"created_at":"2024-07-30T21:00:31.608Z","updated_at":"2025-03-14T22:31:55.731Z","avatar_url":"https://github.com/DucNgn.png","language":"Python","funding_links":[],"categories":["Index","\u003ca id=\"animals\"\u003e\u003c/a\u003e🐶 Animals"],"sub_categories":["Animals","📚 Additional Resources"],"readme":"This project is deprecated and has been migrated to a new repo: [Dog-Facts-API-v2](https://github.com/DukeNgn/Dog-Facts-API-v2) with support for CORS, built with Python and FastAPI. This repository will be archived soon. The heroku api service will be kept alive for a while before terminated.\n\n# Dog Facts API (DEPRECATED)\n\n\nAn API that will return random facts about dog.\n\n## Inspirations \n+ The project is a port of [kinduff/dog-api](https://github.com/kinduff/dog-api) using Python with Flask.\n+ There is still no other dog facts api while there are many APIs supporting cat facts. It is unfair !!!\n+ I'm a dog person. Cats are jerks.\n\n## Usage:\n\n+ `https://dog-facts-api.herokuapp.com/api/v1/resources/dogs/all` to get all the facts at once.\n+ Change `all` to parameter `?number=` to specify the number of facts you want to receive.\n+ Change `all` to parameter `?index=` to specify the index of the fact you are targeting.\n\n\u003e Note: The project is being hosted by Heroku with free dyno; thus, there will be potential delay the first time you make a request (app went to sleep after dyno does not receive traffic in 1 hour). Please be patient, and the call will be faster next time.\n\n## Rebuild the project:\n+ Clone the repo.\n+ Run `python3 -m venv .env` to create a virtual environment.\n+ Run `source .env/bin/activate` to activate the virtual environment.\n+ Run `pip install requirements.txt`.\n+ Run `python3 app.py`.\n+ App starts at port 5000 by default, but can be configured with a `.env` file. \n\n## Example:\n+ `https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=1` returns:\n```JSON\n[\n    {\n        \"fact\": \"Many foot disorders in dogs are caused by long toenails.\"\n    }\n]\n```\n\n+ `https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=2` returns:\n```JSON\n[\n    {\n        \"fact\": \"Endal was the first dog to ride on the London Eye (the characteristic ferris wheel in London, England), and was also the first known dog to successfully use a ATM machine.\"\n    },\n    {\n        \"fact\": \"At the age of 4 weeks, most dogs have developed the majority of their vocalizations.\"\n    }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/dukengn.github.io%2FDog-facts-API%2F","html_url":"https://awesome.ecosyste.ms/projects/dukengn.github.io%2FDog-facts-API%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/dukengn.github.io%2FDog-facts-API%2F/lists"}