{"id":13708406,"url":"https://github.com/GomezMig03/MotivationalAPI","last_synced_at":"2025-05-06T13:30:22.155Z","repository":{"id":239564128,"uuid":"799864803","full_name":"GomezMig03/MotivationalAPI","owner":"GomezMig03","description":"Help people overcome their problems with catholic and secular motivational phrases.                         Addiction Helper: https://addiction-helper.vercel.app/","archived":false,"fork":false,"pushed_at":"2024-08-10T15:45:42.000Z","size":51,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T05:57:15.118Z","etag":null,"topics":["api","bible","catholic","catholicism","motivational-quotes"],"latest_commit_sha":null,"homepage":"https://gomezmig03.github.io/MotivationalAPI/","language":"HTML","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/GomezMig03.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-05-13T08:51:00.000Z","updated_at":"2025-05-05T19:08:08.000Z","dependencies_parsed_at":"2024-08-10T17:01:31.418Z","dependency_job_id":null,"html_url":"https://github.com/GomezMig03/MotivationalAPI","commit_stats":null,"previous_names":["gomezmig03/motivationalapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GomezMig03%2FMotivationalAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GomezMig03%2FMotivationalAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GomezMig03%2FMotivationalAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GomezMig03%2FMotivationalAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GomezMig03","download_url":"https://codeload.github.com/GomezMig03/MotivationalAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252693472,"owners_count":21789696,"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","bible","catholic","catholicism","motivational-quotes"],"created_at":"2024-08-02T23:00:21.988Z","updated_at":"2025-05-06T13:30:21.874Z","avatar_url":"https://github.com/GomezMig03.png","language":"HTML","funding_links":[],"categories":["APIs","API"],"sub_categories":[],"readme":"# What is this?\n\nThis is a public api using github pages for the Final Higher Education Project of Multiplatform Application Development. It consist of a series of motivational phrases to help the people using the app, [which is an addiction manager](https://addiction-helper.vercel.app/). \n\n# Can I contribute?\n\nAbsolutely! feel free to add your favourite phrases whether they are religoius or not. Use the religion camp on the json to clarify it. 1 = catholic, 0 = non religious.\nYou can also add new translations or fixing possible errors on the current ones.\n\nWe are not currently accepting web contributions. There are plans to migrate the documentation to Vue, which may affect the process in the future.\n\n# Can I use this for my project?\n\nYes you can, you can also fork this and use it however you want.\n\n# How can I use this API\n\nSimply make a HTTP request to\n```https://gomezmig03.github.io/MotivationalAPI/[language].json```\n\nThe current languages codes are the following:\n * English = en\n * Spanish = es\n * French = fr\n * Japanese = ja\n\n## Example of an HTTP request to get a random phrase and author on javascript\n```\nfetch('https://gomezmig03.github.io/MotivationalAPI/en.json')\n        .then(response =\u003e {\n          if (!response.ok) {\n            throw new Error('Unable to retrieve data from the server.');\n          }\n          return response.json();\n        })\n        .then(data =\u003e {\n          const randomIndex = Math.floor(Math.random() * data.length);\n          const phrase = data[randomIndex].phrase;\n          const author = data[randomIndex].author\n          console.log(('quote').textContent = `\"${phrase}\" - ${author}`);\n        })\n        .catch(error =\u003e {\n          console.error('Error:', error);\n        });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGomezMig03%2FMotivationalAPI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGomezMig03%2FMotivationalAPI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGomezMig03%2FMotivationalAPI/lists"}