{"id":16432202,"url":"https://github.com/mazipan/how-to-call-api-in-nodejs","last_synced_at":"2025-02-25T14:46:12.362Z","repository":{"id":85444149,"uuid":"328689486","full_name":"mazipan/how-to-call-api-in-nodejs","owner":"mazipan","description":"❓ How to make an API call in Node.js ","archived":false,"fork":false,"pushed_at":"2021-01-17T13:30:24.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T05:37:13.021Z","etag":null,"topics":["fetch-api","javascript","nodejs","tutorial"],"latest_commit_sha":null,"homepage":"https://mazipan.space/cara-fetch-api-di-nodejs","language":"JavaScript","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/mazipan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"mazipan","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://mazipan.space/support"]}},"created_at":"2021-01-11T14:25:55.000Z","updated_at":"2021-09-12T12:18:59.000Z","dependencies_parsed_at":"2023-03-13T05:18:02.758Z","dependency_job_id":null,"html_url":"https://github.com/mazipan/how-to-call-api-in-nodejs","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/mazipan%2Fhow-to-call-api-in-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazipan%2Fhow-to-call-api-in-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazipan%2Fhow-to-call-api-in-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazipan%2Fhow-to-call-api-in-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazipan","download_url":"https://codeload.github.com/mazipan/how-to-call-api-in-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240689299,"owners_count":19841909,"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":["fetch-api","javascript","nodejs","tutorial"],"created_at":"2024-10-11T08:42:50.925Z","updated_at":"2025-02-25T14:46:12.318Z","avatar_url":"https://github.com/mazipan.png","language":"JavaScript","funding_links":["https://ko-fi.com/mazipan","https://mazipan.space/support"],"categories":[],"sub_categories":[],"readme":"# ❓ how-to-call-api-in-nodejs\n\n## Article (in Bahasa Indonesia)\n\nhttps://mazipan.space/cara-fetch-api-di-nodejs\n\n## Installations\n\n```shell\n# Install pnpm\n$ npm i -g pnpm\n\n# Install dependencies\n$ pnpm i\n```\n\n### 1. Native Node.js\n\nCode on [src/01-native-https.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/01-native-https.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:1\n```\n\n### 2. Node Fetch\n\nCode on [src/02-node-fetch.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/02-node-fetch.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:2\n```\n\n### 3. Axios\n\nCode on [src/03-axios.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/03-axios.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:3\n```\n\n### 4. SuperAgent\n\nCode on [src/04-superagent.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/04-superagent.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:4\n```\n\n### 5. Got\n\nCode on [src/05-got.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/05-got.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:5\n```\n\n### 6. Exec-Sync\n\nCode on [src/06-exec-sync.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/06-exec-sync.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:6\n```\n\n### 7. ShellJS\n\nCode on [src/07-shell.js](https://github.com/mazipan/how-to-call-api-in-nodejs/blob/master/src/07-shell.js)\n\nTest API Call:\n\n```shell\n$ pnpm run call:7\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazipan%2Fhow-to-call-api-in-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazipan%2Fhow-to-call-api-in-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazipan%2Fhow-to-call-api-in-nodejs/lists"}