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 Downloads108.6M35.5M
GitHub Stars109.1k14.9k
Bundle Size2.8 MB354.9 KB
Dependencies412
Last Updated1 weeks ago2 weeks ago
TypeScriptYesNo
LicenseMITMIT
Version1.16.115.0.5

Related Comparisons