{"id":19595491,"url":"https://github.com/jayantur13/graphql-country-api","last_synced_at":"2026-04-16T05:04:12.501Z","repository":{"id":42466744,"uuid":"452157780","full_name":"jayantur13/GraphQL-Country-API","owner":"jayantur13","description":"This api provides data like code,isocode,area,population and GDP.","archived":false,"fork":false,"pushed_at":"2024-12-11T06:00:33.000Z","size":289,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T07:14:07.369Z","etag":null,"topics":["api-playground","express","graphql","js","json","nodejs","rest-api","restful-api"],"latest_commit_sha":null,"homepage":"https://locrian-alpine-bugle.glitch.me/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jayantur13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-01-26T05:56:49.000Z","updated_at":"2024-12-11T06:00:30.000Z","dependencies_parsed_at":"2024-03-29T08:24:02.720Z","dependency_job_id":"ba1938a0-18c7-4c86-a937-8256d2de480b","html_url":"https://github.com/jayantur13/GraphQL-Country-API","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/jayantur13%2FGraphQL-Country-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayantur13%2FGraphQL-Country-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayantur13%2FGraphQL-Country-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayantur13%2FGraphQL-Country-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayantur13","download_url":"https://codeload.github.com/jayantur13/GraphQL-Country-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240868565,"owners_count":19870635,"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-playground","express","graphql","js","json","nodejs","rest-api","restful-api"],"created_at":"2024-11-11T08:47:11.890Z","updated_at":"2026-04-16T05:04:12.472Z","avatar_url":"https://github.com/jayantur13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://pasteimg.com/images/2022/02/04/kindpng_5444695.th.png\"\u003e\u003cbr/\u003e\u003ch1 align=\"center\"\u003eGraphQL Country API\u003c/h1\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/jayantur13/GraphQL-Country-API/blob/master/CODE_OF_CONDUCT.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/Code%20Of%20Conduct-Please follow!-green\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/jayantur13/GraphQL-Country-API/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-green\"\u003e\u003c/a\u003e \n\u003c/p\u003e\n\nThis api provides data like code, isocode, area, population and GDP,though the data is collected from a reliable source its accuracy is not gauranteed.So, watch out and make contribute if neccessary with uptodate data by following the Code Of Conduct.Also, read the to-do to know what are the tasks remaining in the project.\n\n# To use this project,install all the dependencies\n### Type in terminal (this may not install nodemon)\n\u003ccode\u003enpm install\u003c/code\u003e\n\n# If you need nodemon,install it as a dev dependency\n### Type in terminal\n`npm install nodemon --save-dev`\n\n# To run the app (server)\n## Via node\n`npm run start`\n\n## Via nodemon\n`npm run devStart`\n###### But first,add one the below line in script\n`\"start\": \"node server.js\"`\u003cbr\u003e\n`\"devStart\": \"nodemon server.js\"`\n\n# Querying using GraphQL\n## Example 1. Returns a list of all countries\n```\n{\n    getcountries {\n      id\n      CountryName\n      CountryCode\n      IsoCode\n      Population\n      AreaKmSq\n      GDPUSD\n    }\n}\n```\n\n## Example 2. Get data of a single country using id (ID - From 1 to 241)\n```\n{\n    getcountrywid(id: ID) {\n      id\n      CountryName\n      CountryCode\n      IsoCode\n      Population\n      AreaKmSq\n      GDPUSD\n    }\n}\n```\n\n## Example 2. Get data of a single country using name (CountryName like India)\n```\n{\n    getcountrywname(CountryName:\"India\") {\n        id\n        CountryName\n        CountryCode\n        IsoCode\n        Population\n        AreaKmSq\n        GDPUSD\n    }\n}\n```\n\n##### There are more query types to retrieve different datas, checkout the project or the GraphQL playground for schema and docs.\n\n\u003e### Note: The project doesn't currently support mutations (updation,deletion and addition of data),this project is hosted on Heroku (Europe),as its free you may get response a little slow\n\n## To Do\n- [x] Update the project readme\n- [x] Switch to GraphiQL Playground\n- [x] Change the query by ID to query by country name (Both available)\n- [ ] Themes (once made available by Graphiql)\n\n\n## Contribute the project \nIf you want to contribute the project,please follow the [Contribution Guide](https://github.com/jayantur13/Country-API-GraphQL/blob/master/CODE_OF_CONDUCT.md) and make PR's if necessary\n\n## License\n```\nMIT License Copyright (c) 2022 jayantur13\n\nPermission is hereby granted, free of\ncharge, to any person obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice\n(including the next paragraph) shall be included in all copies or substantial\nportions of the Software.\n\n** Important - If you are going to use this project, please mention me or the source url. Use this project as reference only **\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO\nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n\n#### Last Updated: 04-04-22\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayantur13%2Fgraphql-country-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayantur13%2Fgraphql-country-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayantur13%2Fgraphql-country-api/lists"}