{"id":18295463,"url":"https://github.com/fedeperin/harry-potter-api-english","last_synced_at":"2025-04-05T12:31:31.737Z","repository":{"id":143751147,"uuid":"366839725","full_name":"fedeperin/harry-potter-api-english","owner":"fedeperin","description":"A Harry Potter rest API that brings information about spells, characters, books and information itself.","archived":false,"fork":false,"pushed_at":"2024-08-17T20:06:19.000Z","size":215,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-21T04:01:48.516Z","etag":null,"topics":["api","api-of-harry-potter","harry-potter","harry-potter-api","harry-potter-series","heroku-deployment","javascript","json-api","json-api-response","json-server","node","nodejs","potter-api","rest","rest-api"],"latest_commit_sha":null,"homepage":"https://harry-potter-api-en.onrender.com/","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/fedeperin.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,"publiccode":null,"codemeta":null}},"created_at":"2021-05-12T20:03:58.000Z","updated_at":"2025-02-18T16:15:48.000Z","dependencies_parsed_at":"2024-11-05T14:43:47.278Z","dependency_job_id":"976977e5-9e72-454d-9660-dc747fff893e","html_url":"https://github.com/fedeperin/harry-potter-api-english","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeperin%2Fharry-potter-api-english","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeperin%2Fharry-potter-api-english/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeperin%2Fharry-potter-api-english/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeperin%2Fharry-potter-api-english/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedeperin","download_url":"https://codeload.github.com/fedeperin/harry-potter-api-english/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247338825,"owners_count":20922998,"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","api-of-harry-potter","harry-potter","harry-potter-api","harry-potter-series","heroku-deployment","javascript","json-api","json-api-response","json-server","node","nodejs","potter-api","rest","rest-api"],"created_at":"2024-11-05T14:35:33.384Z","updated_at":"2025-04-05T12:31:26.726Z","avatar_url":"https://github.com/fedeperin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Harry Potter API\n\u003e [!IMPORTANT]  \n\u003e [PotterAPI](https://github.com/fedeperin/potterapi) is a new version of this API, available en multiple languages and updated with new information. I recommend using that one instead of this one.\n\nA Harry Potter Rest API that returns information about spells, characters, books and information itself. I used node.js with the only package json-server for creating it. This Harry Potter API is hosted at Render\u003cbr\u003e\n\n* GitHub repository of json-server: https://github.com/typicode/json-server \u003cbr\u003e\n* Node js webpage: https://nodejs.org/ \u003cbr\u003e\n* Render's webpage: https://render.com/ \u003cbr\u003e\n\nFor installing the dependencies, execute by terminal with node js installed  ``npm install json-server``\n\n## How to use\nHere is a JavaScript example of fetching the entire API. Just change tha value of the const ``urlToFetch`` for changing the URL being fetched. ``urlToFetch`` value can be changed by an enpoint of this (or another) API for feching different APIs \u003cbr\u003e\n```javascript\nconst urlToFetch = \"https://harry-potter-api-en.onrender.com/db\"\n\nfetch(urlToFetch)\n\t.then((res) =\u003e res.json())\n\t.then((data) =\u003e {\n\t\t// It brings all data at the API and it shows it at the console\n\t\tconsole.log(data)\n\t})\n\t.catch((e) =\u003e console.log(e));\n```\nOr visit the main page of this API (that comes by default with json-server): https://harry-potter-api-en.onrender.com/\n\n## Endpoints\n* https://harry-potter-api-en.onrender.com/db Brings all the data at the API\n* https://harry-potter-api-en.onrender.com/spells It bring the spells at the API\n* https://harry-potter-api-en.onrender.com/info It brings the information of the API\n* https://harry-potter-api-en.onrender.com/characters It brings the information about the characters at the API\n* https://harry-potter-api-en.onrender.com/books It only bring the book part of the API \u003cbr\u003e\n\n\u003cbr\u003e\nTo access an specific element at the API, just secify the ID number of that element at the end of the route \u003cbr\u003e\u003cbr\u003e\n\n\n#### Examples: \n* With the route https://harry-potter-api-en.onrender.com/books/3 you only access the book at the API with ID 3\u003cbr\u003e\n* With the route https://harry-potter-api-en.onrender.com/spells/10 you only access the spell at the API with ID 10 \u003cbr\u003e\u003cbr\u003e\n---\nGitHub Repository of the Spanish version of this same API: https://github.com/fedeperin/harry-potter-api/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedeperin%2Fharry-potter-api-english","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedeperin%2Fharry-potter-api-english","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedeperin%2Fharry-potter-api-english/lists"}