axios vs got

NPM Package Comparison - Which one should you use?

axios

🏆Most Popular⭐Most StarredðŸŠķLightweight🔄Recently Updated📘TypeScript

Promise based HTTP client for the browser and node.js

View Repository →
npm install axios

got

ðŸ“ĶSmallest

Human-friendly and powerful HTTP request library for Node.js

View Repository →
npm install got

Download Trends (Last 12 Weeks)

When to Choose Each

👉Choose axios if:

  • ✓You want the most battle-tested solution with a larger community
  • ✓You prefer fewer dependencies to reduce supply chain risk
  • ✓You're working with TypeScript and need first-class type support
  • ✓Community popularity and ecosystem support matter to you

👉Choose got if:

  • ✓Bundle size is critical for your project

Comparison

Metricaxiosgot
Weekly Downloads79.9M26.9M
GitHub Stars108.5k14.9k
Bundle Size2.3 MB304.1 KB
Dependencies312
Last UpdatedYesterday4 weeks ago
TypeScriptYesNo
LicenseMITMIT
Version1.13.414.6.6

Related Comparisons