{"id":19268505,"url":"https://github.com/probro27/citation-gen-api","last_synced_at":"2026-06-12T22:32:12.738Z","repository":{"id":126976360,"uuid":"564968990","full_name":"probro27/citation-gen-api","owner":"probro27","description":"Node API to generate citations automatically","archived":false,"fork":false,"pushed_at":"2022-11-16T00:20:45.000Z","size":210,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T19:46:16.666Z","etag":null,"topics":["node-api","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/probro27.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":"2022-11-12T00:03:01.000Z","updated_at":"2022-12-09T18:02:52.000Z","dependencies_parsed_at":"2023-06-19T12:02:49.351Z","dependency_job_id":null,"html_url":"https://github.com/probro27/citation-gen-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/probro27/citation-gen-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probro27%2Fcitation-gen-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probro27%2Fcitation-gen-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probro27%2Fcitation-gen-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probro27%2Fcitation-gen-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probro27","download_url":"https://codeload.github.com/probro27/citation-gen-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probro27%2Fcitation-gen-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34265491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["node-api","typescript"],"created_at":"2024-11-09T20:16:31.411Z","updated_at":"2026-06-12T22:32:12.720Z","avatar_url":"https://github.com/probro27.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Citation Generation API\n\n## Summary\n\nThis is a Node API to generate citations automatically. Right now it only supports APA 7 citations. \nSupport for MLA and BibTex citations can be added by creating more classes and making them child classes of \n`Citation` class.\n\nWe have utilized an Object-Oriented Architecture to separate everything and minimize coupling and maximize cohesion for a great design. \n\nHere is the Unified Modelling Language (UML) diagram for the models:\n\n```mermaid\nclassDiagram\nCitation \u003c|-- Apa\nCitation o-- Source\nSource \u003c|-- Article\nCitation o-- IDetails\nCitation : getCitation()\nCitation : retreiveData()\nCitation : source\nCitation : details\nApa : getCitation()\nApa : version\nSource o-- IDetails\nSource : extractData()\nSource : details\nSource : url\nArticle *-- Metascraper\nArticle : _metascraper\nArticle : metadata\nArticle : fetchPage()\nArticle : getContent()\nArticle : assignMetadata()\nArticle : extractData()\nIDetails : author\nIDetails : title\nIDetails : publisher\nIDetails : yearOfPublication\nIDetails : pageNumbers\n```\n\nThis API uses `metascraper` to extract the data about websites. Credits: [Metascraper](https://metascraper.js.org/)\n\n### Input\n\nRight now a **POST** request can be sent to the endpoint `/api/citation/article`. \nThe body is as follows:\n```json\n{\n    \"url\": \"https://doi.org/10.1007/s10639-021-10650-9\"\n}\n```\n\n### Output\n\nThe output will be provided as follows:\n\n```json\n{\n    \"citation\": \"Alaattin Parlakkiliç (2021-07-12T00:00:00.000Z), Evaluating the effects of responsive design on the usability of academic websites in the pandemic - Education and Information Technologies, SpringerLink, https://doi.org/10.1007/s10639-021-10650-9\"\n}\n```\n\nIt's not perfect right now, and might return null values for some stuff so it needs to be fixed. \nPlease contribute to this repository to improve the code. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobro27%2Fcitation-gen-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobro27%2Fcitation-gen-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobro27%2Fcitation-gen-api/lists"}