{"id":13406880,"url":"https://github.com/sindresorhus/got","last_synced_at":"2025-05-12T15:15:09.018Z","repository":{"id":15460863,"uuid":"18193978","full_name":"sindresorhus/got","owner":"sindresorhus","description":"🌐 Human-friendly and powerful HTTP request library for Node.js","archived":false,"fork":false,"pushed_at":"2025-03-31T14:47:32.000Z","size":3109,"stargazers_count":14566,"open_issues_count":126,"forks_count":959,"subscribers_count":111,"default_branch":"main","last_synced_at":"2025-05-05T11:16:17.385Z","etag":null,"topics":["http","http-client","http-request","https","nodejs","npm-package"],"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/sindresorhus.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":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","buy_me_a_coffee":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2014-03-27T22:40:49.000Z","updated_at":"2025-05-05T01:58:32.000Z","dependencies_parsed_at":"2023-02-15T05:00:47.217Z","dependency_job_id":"2407b6e3-7523-413e-8c69-5c9b5f8269b0","html_url":"https://github.com/sindresorhus/got","commit_stats":{"total_commits":1449,"total_committers":206,"mean_commits":7.033980582524272,"dds":0.6866804692891649,"last_synced_commit":"f4f3ba88e4db2270792385e7d32a694d7432d232"},"previous_names":[],"tags_count":178,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fgot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/got/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252486930,"owners_count":21755835,"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":["http","http-client","http-request","https","nodejs","npm-package"],"created_at":"2024-07-30T19:02:41.910Z","updated_at":"2025-05-05T12:39:57.141Z","avatar_url":"https://github.com/sindresorhus.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cimg width=\"360\" src=\"media/logo.svg\" alt=\"Got\"\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003chr\u003e\n\t\u003cp\u003e\n\t\t\u003cp\u003e\n\t\t\t\u003csup\u003e\n\t\t\t\tSindre's open source work is supported by the community.\u003cbr\u003eSpecial thanks to:\n\t\t\t\u003c/sup\u003e\n\t\t\u003c/p\u003e\n\t\t\u003cbr\u003e\n\t\t\u003cbr\u003e\n\t\t\u003ca href=\"https://www.fame.fi#gh-light-mode-only\"\u003e\n\t\t\t\u003cimg src=\"https://sindresorhus.com/assets/thanks/fame-logo-light.svg\" width=\"200\" alt=\"Fame Helsinki\"\u003e\n\t\t\u003c/a\u003e\n\t\t\u003ca href=\"https://www.fame.fi#gh-dark-mode-only\"\u003e\n\t\t\t\u003cimg src=\"https://sindresorhus.com/assets/thanks/fame-logo-dark.svg\" width=\"200\" alt=\"Fame Helsinki\"\u003e\n\t\t\u003c/a\u003e\n\t\t\u003cbr\u003e\n\t\u003c/p\u003e\n\t\u003chr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\u003c/div\u003e\n\n\u003e Human-friendly and powerful HTTP request library for Node.js\n\n\u003c!-- [![Coverage Status](https://codecov.io/gh/sindresorhus/got/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/got/branch/main) --\u003e\n[![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got)\n[![Install size](https://packagephobia.com/badge?p=got)](https://packagephobia.com/result?p=got)\n\n[See how Got compares to other HTTP libraries](#comparison)\n\n---\n\n**You probably want [Ky](https://github.com/sindresorhus/ky) instead, by the same people. It's smaller, works in the browser too, and is more stable since it's built on [`Fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). Or [fetch-extras](https://github.com/sindresorhus/fetch-extras) for simple needs.**\n\n---\n\n**Support questions should be asked [here](https://github.com/sindresorhus/got/discussions).**\n\n## Install\n\n```sh\nnpm install got\n```\n\n**Warning:** This package is native [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) and no longer provides a CommonJS export. If your project uses CommonJS, you will have to [convert to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). Please don't open issues for questions regarding CommonJS / ESM.\n\n**Got v11 is no longer maintained and we will not accept any backport requests.**\n\n## Take a peek\n\n**A [quick start](documentation/quick-start.md) guide is available.**\n\n### JSON mode\n\nGot has a dedicated option for handling JSON payload.\\\nFurthermore, the promise exposes a `.json\u003cT\u003e()` function that returns `Promise\u003cT\u003e`.\n\n```js\nimport got from 'got';\n\nconst {data} = await got.post('https://httpbin.org/anything', {\n\tjson: {\n\t\thello: 'world'\n\t}\n}).json();\n\nconsole.log(data);\n//=\u003e {\"hello\": \"world\"}\n```\n\nFor advanced JSON usage, check out the [`parseJson`](documentation/2-options.md#parsejson) and [`stringifyJson`](documentation/2-options.md#stringifyjson) options.\n\n**For more useful tips like this, visit the [Tips](documentation/tips.md) page.**\n\n## Highlights\n\n- [Used by 10K+ packages and 5M+ repos](https://github.com/sindresorhus/got/network/dependents)\n- [Actively maintained](https://github.com/sindresorhus/got/graphs/contributors)\n- [Trusted by many companies](#widely-used)\n\n## Documentation\n\nBy default, Got will retry on failure. To disable this option, set [`options.retry.limit`](documentation/7-retry.md#retry) to 0.\n\n#### Main API\n\n- [x] [Promise API](documentation/1-promise.md)\n- [x] [Options](documentation/2-options.md)\n- [x] [Stream API](documentation/3-streams.md)\n- [x] [Pagination API](documentation/4-pagination.md)\n- [x] [Advanced HTTPS API](documentation/5-https.md)\n- [x] [HTTP/2 support](documentation/2-options.md#http2)\n- [x] [`Response` class](documentation/3-streams.md#response-2)\n\n#### Timeouts and retries\n\n- [x] [Advanced timeout handling](documentation/6-timeout.md)\n- [x] [Retries on failure](documentation/7-retry.md)\n- [x] [Errors with metadata](documentation/8-errors.md)\n\n#### Advanced creation\n\n- [x] [Hooks](documentation/9-hooks.md)\n- [x] [Instances](documentation/10-instances.md)\n- [x] [Progress events \u0026 other events](documentation/3-streams.md#events)\n- [x] [Plugins](documentation/lets-make-a-plugin.md)\n- [x] [Compose](documentation/examples/advanced-creation.js)\n\n#### Cache, Proxy and UNIX sockets\n\n- [x] [RFC compliant caching](documentation/cache.md)\n- [x] [Proxy support](documentation/tips.md#proxying)\n- [x] [Unix Domain Sockets](documentation/2-options.md#enableunixsockets)\n\n#### Integration\n\n- [x] [TypeScript support](documentation/typescript.md)\n- [x] [AWS](documentation/tips.md#aws)\n- [x] [Testing](documentation/tips.md#testing)\n\n---\n\n### Migration guides\n\n- [Request migration guide](documentation/migration-guides/request.md)\n  - [*(Note that Request is unmaintained)*](https://github.com/request/request/issues/3142)\n- [Axios](documentation/migration-guides/axios.md)\n- [Node.js](documentation/migration-guides/nodejs.md)\n\n## Got plugins\n\n- [`got4aws`](https://github.com/SamVerschueren/got4aws) - Got convenience wrapper to interact with AWS v4 signed APIs\n- [`gh-got`](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API\n- [`gl-got`](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API\n- [`gotql`](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings\n- [`got-fetch`](https://github.com/alexghr/got-fetch) - Got with a [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) interface\n- [`got-scraping`](https://github.com/apify/got-scraping) - Got wrapper specifically designed for web scraping purposes\n- [`got-ssrf`](https://github.com/JaneJeon/got-ssrf) - Got wrapper to protect server-side requests against SSRF attacks\n\n## Comparison\n\n|                       | `got`               | [`node-fetch`][n0]   | [`ky`][k0]               | [`axios`][a0]      | [`superagent`][s0]     |\n|-----------------------|:-------------------:|:--------------------:|:------------------------:|:------------------:|:----------------------:|\n| HTTP/2 support        | :heavy_check_mark:¹ | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:\\*\\* |\n| Browser support       | :x:                 | :heavy_check_mark:\\* | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Promise API           | :heavy_check_mark:  | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Stream API            | :heavy_check_mark:  | Node.js only         | :x:                      | :x:                | :heavy_check_mark:     |\n| Pagination API        | :heavy_check_mark:  | :x:                  | :x:                      | :x:                | :x:                    |\n| Request cancelation   | :heavy_check_mark:  | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| RFC compliant caching | :heavy_check_mark:  | :x:                  | :x:                      | :x:                | :x:                    |\n| Cookies (out-of-the-box) | :heavy_check_mark: | :x:                | :x:                      | :x:                | :x:                    |\n| Follows redirects     | :heavy_check_mark:  | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Retries on failure    | :heavy_check_mark:  | :x:                  | :heavy_check_mark:       | :x:                | :heavy_check_mark:     |\n| Progress events       | :heavy_check_mark:  | :x:                  | :heavy_check_mark:\\*\\*\\* | Browser only       | :heavy_check_mark:     |\n| Handles gzip/deflate  | :heavy_check_mark:  | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Advanced timeouts     | :heavy_check_mark:  | :x:                  | :x:                      | :x:                | :x:                    |\n| Timings               | :heavy_check_mark:  | :x:                  | :x:                      | :x:                | :x:                    |\n| Errors with metadata  | :heavy_check_mark:  | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| JSON mode             | :heavy_check_mark:  | :heavy_check_mark:   | :heavy_check_mark:       | :heavy_check_mark: | :heavy_check_mark:     |\n| Custom defaults       | :heavy_check_mark:  | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Composable            | :heavy_check_mark:  | :x:                  | :x:                      | :x:                | :heavy_check_mark:     |\n| Hooks                 | :heavy_check_mark:  | :x:                  | :heavy_check_mark:       | :heavy_check_mark: | :x:                    |\n| Issues open           | [![][gio]][g1]      | [![][nio]][n1]       | [![][kio]][k1]           | [![][aio]][a1]     | [![][sio]][s1]         |\n| Issues closed         | [![][gic]][g2]      | [![][nic]][n2]       | [![][kic]][k2]           | [![][aic]][a2]     | [![][sic]][s2]         |\n| Downloads             | [![][gd]][g3]       | [![][nd]][n3]        | [![][kd]][k3]            | [![][ad]][a3]      | [![][sd]][s3]          |\n| Coverage              | TBD                 | [![][nc]][n4]        | [![][kc]][k4]            | [![][ac]][a4]      | [![][sc]][s4]          |\n| Build                 | [![][gb]][g5]       | [![][nb]][n5]        | [![][kb]][k5]            | [![][ab]][a5]      | [![][sb]][s5]          |\n| Bugs                  | [![][gbg]][g6]      | [![][nbg]][n6]       | [![][kbg]][k6]           | [![][abg]][a6]     | [![][sbg]][s6]         |\n| Dependents            | [![][gdp]][g7]      | [![][ndp]][n7]       | [![][kdp]][k7]           | [![][adp]][a7]     | [![][sdp]][s7]         |\n| Install size          | [![][gis]][g8]      | [![][nis]][n8]       | [![][kis]][k8]           | [![][ais]][a8]     | [![][sis]][s8]         |\n| GitHub stars          | [![][gs]][g9]       | [![][ns]][n9]        | [![][ks]][k9]            | [![][as]][a9]      | [![][ss]][s9]          |\n| TypeScript support    | [![][gts]][g10]     | [![][nts]][n10]      | [![][kts]][k10]          | [![][ats]][a10]    | [![][sts]][s11]        |\n| Last commit           | [![][glc]][g11]     | [![][nlc]][n11]      | [![][klc]][k11]          | [![][alc]][a11]    | [![][slc]][s11]        |\n\n\\* It's almost API compatible with the browser `fetch` API.\\\n\\*\\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\\\n\\*\\*\\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\\\n¹ Requires Node.js 15.10.0 or above.\\\n:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\\\n:grey_question: Feature in early stage of development. Very experimental.\n\n\u003c!-- GITHUB --\u003e\n[k0]: https://github.com/sindresorhus/ky\n[n0]: https://github.com/node-fetch/node-fetch\n[a0]: https://github.com/axios/axios\n[s0]: https://github.com/visionmedia/superagent\n\n\u003c!-- ISSUES OPEN --\u003e\n[gio]: https://img.shields.io/github/issues-raw/sindresorhus/got?color=gray\u0026label\n[kio]: https://img.shields.io/github/issues-raw/sindresorhus/ky?color=gray\u0026label\n[nio]: https://img.shields.io/github/issues-raw/bitinn/node-fetch?color=gray\u0026label\n[aio]: https://img.shields.io/github/issues-raw/axios/axios?color=gray\u0026label\n[sio]: https://img.shields.io/github/issues-raw/visionmedia/superagent?color=gray\u0026label\n\n[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[k1]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc\n\n\u003c!-- ISSUES CLOSED --\u003e\n[gic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/got?color=blue\u0026label\n[kic]: https://img.shields.io/github/issues-closed-raw/sindresorhus/ky?color=blue\u0026label\n[nic]: https://img.shields.io/github/issues-closed-raw/bitinn/node-fetch?color=blue\u0026label\n[aic]: https://img.shields.io/github/issues-closed-raw/axios/axios?color=blue\u0026label\n[sic]: https://img.shields.io/github/issues-closed-raw/visionmedia/superagent?color=blue\u0026label\n\n[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[k2]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc\n\n\u003c!-- DOWNLOADS --\u003e\n[gd]: https://img.shields.io/npm/dm/got?color=darkgreen\u0026label\n[kd]: https://img.shields.io/npm/dm/ky?color=darkgreen\u0026label\n[nd]: https://img.shields.io/npm/dm/node-fetch?color=darkgreen\u0026label\n[ad]: https://img.shields.io/npm/dm/axios?color=darkgreen\u0026label\n[sd]: https://img.shields.io/npm/dm/superagent?color=darkgreen\u0026label\n\n[g3]: https://www.npmjs.com/package/got\n[k3]: https://www.npmjs.com/package/ky\n[n3]: https://www.npmjs.com/package/node-fetch\n[a3]: https://www.npmjs.com/package/axios\n[s3]: https://www.npmjs.com/package/superagent\n\n\u003c!-- COVERAGE --\u003e\n[gc]: https://img.shields.io/coveralls/github/sindresorhus/got?color=0b9062\u0026label\n[kc]: https://img.shields.io/codecov/c/github/sindresorhus/ky?color=0b9062\u0026label\n[nc]: https://img.shields.io/coveralls/github/bitinn/node-fetch?color=0b9062\u0026label\n[ac]: https://img.shields.io/coveralls/github/mzabriskie/axios?color=0b9062\u0026label\n[sc]: https://img.shields.io/codecov/c/github/visionmedia/superagent?color=0b9062\u0026label\n\n[g4]: https://coveralls.io/github/sindresorhus/got\n[k4]: https://codecov.io/gh/sindresorhus/ky\n[n4]: https://coveralls.io/github/bitinn/node-fetch\n[a4]: https://coveralls.io/github/mzabriskie/axios\n[s4]: https://codecov.io/gh/visionmedia/superagent\n\n\u003c!-- BUILD --\u003e\n[gb]: https://github.com/sindresorhus/got/actions/workflows/main.yml/badge.svg\n[kb]: https://github.com/sindresorhus/ky/actions/workflows/main.yml/badge.svg\n[nb]: https://img.shields.io/travis/bitinn/node-fetch?label\n[ab]: https://img.shields.io/travis/axios/axios?label\n[sb]: https://img.shields.io/travis/visionmedia/superagent?label\n\n[g5]: https://github.com/sindresorhus/got/actions/workflows/main.yml\n[k5]: https://github.com/sindresorhus/ky/actions/workflows/main.yml\n[n5]: https://travis-ci.org/github/bitinn/node-fetch\n[a5]: https://travis-ci.org/github/axios/axios\n[s5]: https://travis-ci.org/github/visionmedia/superagent\n\n\u003c!-- BUGS --\u003e\n[gbg]: https://img.shields.io/github/issues-raw/sindresorhus/got/bug?color=darkred\u0026label\n[kbg]: https://img.shields.io/github/issues-raw/sindresorhus/ky/bug?color=darkred\u0026label\n[nbg]: https://img.shields.io/github/issues-raw/bitinn/node-fetch/bug?color=darkred\u0026label\n[abg]: https://img.shields.io/github/issues-raw/axios/axios/bug-fix?color=darkred\u0026label\n[sbg]: https://img.shields.io/github/issues-raw/visionmedia/superagent/Bug?color=darkred\u0026label\n\n[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[k6]: https://github.com/sindresorhus/ky/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug\n[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22bug-fix%22\n[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug\n\n\u003c!-- DEPENDENTS --\u003e\n[gdp]: https://badgen.net/npm/dependents/got?color=orange\u0026label\n[kdp]: https://badgen.net/npm/dependents/ky?color=orange\u0026label\n[ndp]: https://badgen.net/npm/dependents/node-fetch?color=orange\u0026label\n[adp]: https://badgen.net/npm/dependents/axios?color=orange\u0026label\n[sdp]: https://badgen.net/npm/dependents/superagent?color=orange\u0026label\n\n[g7]: https://www.npmjs.com/package/got?activeTab=dependents\n[k7]: https://www.npmjs.com/package/ky?activeTab=dependents\n[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents\n[a7]: https://www.npmjs.com/package/axios?activeTab=dependents\n[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents\n\n\u003c!-- INSTALL SIZE --\u003e\n[gis]: https://packagephobia.com/badge?p=got\n[kis]: https://packagephobia.com/badge?p=ky\n[nis]: https://packagephobia.com/badge?p=node-fetch\n[ais]: https://packagephobia.com/badge?p=axios\n[sis]: https://packagephobia.com/badge?p=superagent\n\n[g8]: https://packagephobia.com/result?p=got\n[k8]: https://packagephobia.com/result?p=ky\n[n8]: https://packagephobia.com/result?p=node-fetch\n[a8]: https://packagephobia.com/result?p=axios\n[s8]: https://packagephobia.com/result?p=superagent\n\n\u003c!-- GITHUB STARS --\u003e\n[gs]: https://img.shields.io/github/stars/sindresorhus/got?color=white\u0026label\n[ks]: https://img.shields.io/github/stars/sindresorhus/ky?color=white\u0026label\n[ns]: https://img.shields.io/github/stars/bitinn/node-fetch?color=white\u0026label\n[as]: https://img.shields.io/github/stars/axios/axios?color=white\u0026label\n[ss]: https://img.shields.io/github/stars/visionmedia/superagent?color=white\u0026label\n\n[g9]: https://github.com/sindresorhus/got\n[k9]: https://github.com/sindresorhus/ky\n[n9]: https://github.com/node-fetch/node-fetch\n[a9]: https://github.com/axios/axios\n[s9]: https://github.com/visionmedia/superagent\n\n\u003c!-- TYPESCRIPT SUPPORT --\u003e\n[gts]: https://badgen.net/npm/types/got?label\n[kts]: https://badgen.net/npm/types/ky?label\n[nts]: https://badgen.net/npm/types/node-fetch?label\n[ats]: https://badgen.net/npm/types/axios?label\n[sts]: https://badgen.net/npm/types/superagent?label\n\n[g10]: https://github.com/sindresorhus/got\n[k10]: https://github.com/sindresorhus/ky\n[n10]: https://github.com/node-fetch/node-fetch\n[a10]: https://github.com/axios/axios\n[s10]: https://github.com/visionmedia/superagent\n\n\u003c!-- LAST COMMIT --\u003e\n[glc]: https://img.shields.io/github/last-commit/sindresorhus/got?color=gray\u0026label\n[klc]: https://img.shields.io/github/last-commit/sindresorhus/ky?color=gray\u0026label\n[nlc]: https://img.shields.io/github/last-commit/bitinn/node-fetch?color=gray\u0026label\n[alc]: https://img.shields.io/github/last-commit/axios/axios?color=gray\u0026label\n[slc]: https://img.shields.io/github/last-commit/visionmedia/superagent?color=gray\u0026label\n\n[g11]: https://github.com/sindresorhus/got/commits\n[k11]: https://github.com/sindresorhus/ky/commits\n[n11]: https://github.com/node-fetch/node-fetch/commits\n[a11]: https://github.com/axios/axios/commits\n[s11]: https://github.com/visionmedia/superagent/commits\n\n[Click here][InstallSizeOfTheDependencies] to see the install size of the Got dependencies.\n\n[InstallSizeOfTheDependencies]: https://packagephobia.com/result?p=@sindresorhus/is@7.0.0,@szmarczak/http-timer@5.0.1,cacheable-lookup@7.0.0,cacheable-request@12.0.1,decompress-response@6.0.0,form-data-encoder@4.0.2,http2-wrapper@2.2.1,lowercase-keys@3.0.0,p-cancelable@4.0.1,responselike@3.0.0,type-fest@4.19.0\n\n## Maintainers\n\n[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak)\n---|---\n[Sindre Sorhus](https://sindresorhus.com) | [Szymon Marczak](https://github.com/szmarczak)\n\n\u003ca name=\"widely-used\"\u003e\u003c/a\u003e\n## These amazing companies are using Got\n\n\u003ctable\u003e\n\u003ctbody\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://segment.com\"\u003e\n\t\t\t\t\u003cimg width=\"90\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/697676/47693700-ddb62500-dbb7-11e8-8332-716a91010c2d.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://antora.org\"\u003e\n\t\t\t\t\u003cimg width=\"100\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/79351/47706840-d874cc80-dbef-11e8-87c6-5f0c60cbf5dc.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://getvoip.com\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/10832620/47869404-429e9480-dddd-11e8-8a7a-ca43d7f06020.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://github.com/exoframejs/exoframe\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/365944/47791460-11a95b80-dd1a-11e8-9070-e8f2a215e03a.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"http://karaokes.moe\"\u003e\n\t\t\t\t\u003cimg width=\"140\" valign=\"middle\" src=\"https://karaokes.moe/assets/images/index.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://github.com/renovatebot/renovate\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://avatars.githubusercontent.com/u/38656520?s=200\u0026v=4\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://resist.bot\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/3322287/51992724-28736180-2473-11e9-9764-599cfda4b012.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://www.naturalcycles.com\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/170270/92244143-d0a8a200-eec2-11ea-9fc0-1c07f90b2113.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://microlink.io\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/36894700/91992974-1cc5dc00-ed35-11ea-9d04-f58b42ce6a5e.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://radity.com\"\u003e\n\t\t\t\t\u003cimg width=\"150\" valign=\"middle\" src=\"https://user-images.githubusercontent.com/29518613/91814036-97fb9500-ec44-11ea-8c6c-d198cc23ca29.png\"\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- \u003cbr\u003e --\u003e\n\n\u003c!-- *Creating an awesome product? Open an issue to get listed here.* --\u003e\n\n\u003cbr\u003e\n\n\u003e Segment is a happy user of Got! Got powers the main backend API that our app talks to. It's used by our in-house RPC client that we use to communicate with all microservices.\n\u003e\n\u003e — \u003ca href=\"https://github.com/vadimdemedes\"\u003eVadim Demedes\u003c/a\u003e\n\n\u003e Antora, a static site generator for creating documentation sites, uses Got to download the UI bundle. In Antora, the UI bundle (aka theme) is maintained as a separate project. That project exports the UI as a zip file we call the UI bundle. The main site generator downloads that UI from a URL using Got and streams it to vinyl-zip to extract the files. Those files go on to be used to create the HTML pages and supporting assets.\n\u003e\n\u003e — \u003ca href=\"https://github.com/mojavelinux\"\u003eDan Allen\u003c/a\u003e\n\n\u003e GetVoIP is happily using Got in production. One of the unique capabilities of Got is the ability to handle Unix sockets which enables us to build a full control interfaces for our docker stack.\n\u003e\n\u003e — \u003ca href=\"https://github.com/danielkalen\"\u003eDaniel Kalen\u003c/a\u003e\n\n\u003e We're using Got inside of Exoframe to handle all the communication between CLI and server. Exoframe is a self-hosted tool that allows simple one-command deployments using Docker.\n\u003e\n\u003e — \u003ca href=\"https://github.com/yamalight\"\u003eTim Ermilov\u003c/a\u003e\n\n\u003e Karaoke Mugen uses Got to fetch content updates from its online server.\n\u003e\n\u003e — \u003ca href=\"https://github.com/AxelTerizaki\"\u003eAxel Terizaki\u003c/a\u003e\n\n\u003e Renovate uses Got, gh-got and gl-got to send millions of queries per day to GitHub, GitLab, npmjs, PyPi, Packagist, Docker Hub, Terraform, CircleCI, and more.\n\u003e\n\u003e — \u003ca href=\"https://github.com/rarkins\"\u003eRhys Arkins\u003c/a\u003e\n\n\u003e Resistbot uses Got to communicate from the API frontend where all correspondence ingresses to the officials lookup database in back.\n\u003e\n\u003e — \u003ca href=\"https://github.com/chris-erickson\"\u003eChris Erickson\u003c/a\u003e\n\n\u003e Natural Cycles is using Got to communicate with all kinds of 3rd-party REST APIs (over 9000!).\n\u003e\n\u003e — \u003ca href=\"https://github.com/kirillgroshkov\"\u003eKirill Groshkov\u003c/a\u003e\n\n\u003e Microlink is a cloud browser as an API service that uses Got widely as the main HTTP client, serving ~22M requests a month, every time a network call needs to be performed.\n\u003e\n\u003e — \u003ca href=\"https://github.com/Kikobeats\"\u003eKiko Beats\u003c/a\u003e\n\n\u003e We’re using Got at Radity. Thanks for such an amazing work!\n\u003e\n\u003e — \u003ca href=\"https://github.com/MirzayevFarid\"\u003eMirzayev Farid\u003c/a\u003e\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://buymeacoffee.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Packages","Tools","TypeScript","Repository","包","Back-end","请求处理","目录","Uncategorized","Misc","http","HTTP","nodejs","Programming Languages","三、开发者必备工具","1. 后端开发","Node.js"],"sub_categories":["HTTP","For Electron","Querying other servers","redux 扩展","Uncategorized","Web","JavaScript","4. 网络与文件处理","调试","1.1 HTTP"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fgot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fgot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fgot/lists"}