{"id":22358408,"url":"https://github.com/thedvlprs/fetch-api-promises","last_synced_at":"2025-08-26T23:36:36.197Z","repository":{"id":114653881,"uuid":"317477821","full_name":"thedvlprs/fetch-api-promises","owner":"thedvlprs","description":"🔥 Basic code showing how to use Fetch API and Promises","archived":false,"fork":false,"pushed_at":"2020-12-01T08:42:42.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T13:48:26.477Z","etag":null,"topics":["demo","fetch-api","ghibli-api","json","promises"],"latest_commit_sha":null,"homepage":"https://jaded-hate.surge.sh/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thedvlprs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-12-01T08:41:47.000Z","updated_at":"2020-12-05T21:02:10.000Z","dependencies_parsed_at":"2024-02-08T05:22:44.035Z","dependency_job_id":"17ace31f-7e69-4cde-81cd-241f7d16951b","html_url":"https://github.com/thedvlprs/fetch-api-promises","commit_stats":null,"previous_names":["thedvlprs/fetch-api-promises"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thedvlprs/fetch-api-promises","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Ffetch-api-promises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Ffetch-api-promises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Ffetch-api-promises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Ffetch-api-promises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedvlprs","download_url":"https://codeload.github.com/thedvlprs/fetch-api-promises/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedvlprs%2Ffetch-api-promises/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272267505,"owners_count":24903706,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"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":["demo","fetch-api","ghibli-api","json","promises"],"created_at":"2024-12-04T15:14:45.379Z","updated_at":"2025-08-26T23:36:36.173Z","avatar_url":"https://github.com/thedvlprs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![forthebadge](https://forthebadge.com/images/badges/it-works-why.svg)](https://forthebadge.com)\n\n## Basic code showing how to use Fetch API and Promises\n\n```javascript\nconst URL = \"https://ghibliapi.herokuapp.com/people\";\nconst main = document.getElementById(\"main\");\nmain.innerHTML = \"\u003cp\u003eLoading...\";\nfetch(URL)\n  .then((response) =\u003e response.json())\n  .then((people) =\u003e main.innerHTML = getListOfNames(people));\nconst getListOfNames = (people) =\u003e {\n  const names = people\n    .map((person) =\u003e `\u003cli\u003e${person.name}\u003c/li\u003e`)\n    .join(\"\\n\");\nreturn `\u003cul\u003e${names}\u003c/ul\u003e`;\n};```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedvlprs%2Ffetch-api-promises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedvlprs%2Ffetch-api-promises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedvlprs%2Ffetch-api-promises/lists"}