Axios is the HTTP client that became the de facto standard because it just works everywhere. You get a clean promise-based API for making requests in both browser and Node.js, with built-in interceptors for adding auth tokens or handling retries, and error handling that actually distinguishes between network failures and server errors. The real win is the interceptor pattern, it makes cross-cutting concerns like authentication, logging, and error handling trivial to implement once and forget about. If you're working with REST APIs or need reliable HTTP requests with progress tracking, timeouts, and automatic JSON transforms, this is the obvious choice.

skills.sh installs
211
GitHub stars
2
last updated
Aug 21, 2026

Install

$ npx -y skills add slanycukr/riot-api-project --skill axios --agent claude-code

Installs into .claude/skills of the current project.

Files

Axios HTTP Client

Axios is a promise-based HTTP client for the browser and Node.js. It provides a simple API for making HTTP requests and handling responses.

Quick Start

Basic GET Request

import axios from "axios";

// Promise-based
axios
  .get("/user?ID=12345")
  .then((response) => console.log(response.data))
  .catch((error) => console.error(error));

// Async/await
async function getUser() {
  try {
    const response = await axios.get("/user?ID=12345");
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

Basic POST Request

axios
  .post("/user", {
    firstName: "John",
    lastName: "Doe",
  })
  .then((response) => console.log(response.data))
  .catch((error) => console.error(error));

Common Patterns

Custom Instance

const api = axios.create({
  baseURL: "https://api.example.com",
  timeout: 1000,
  headers: { "X-Custom-Header": "foobar" },
});

// Use the instance
api.get("/users").then((response) => console.log(response.data));

Request with Configuration

Sponsors

Details

Repository
github.com/slanycukr/riot-api-project
Categories
Backend & APIs, Automation & Workflows
First seen
Jun 3, 2026
1heygen-com avatarhyperframes-cliheygen-com/hyperframesUse the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, 1.5Mskills.sh installs
2microsoft avatarentra-app-registrationmicrosoft/azure-skillsGuides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure O658.3Kskills.sh installs
3microsoft avatarazure-aigatewaymicrosoft/azure-skillsConfigure Azure API Management as an AI Gateway for AI models, MCP tools, and agents. WHEN: semantic caching, token limit, content safety, load balancing, AI mo657.6Kskills.sh installs
4microsoft avatarazure-messagingmicrosoft/azure-skillsTroubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing 649.3Kskills.sh installs
5microsoft avatarazure-computemicrosoft/azure-skillsAzure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight 614.1Kskills.sh installs
6google avatargoogle-agents-cli-deploygoogle/agents-cliThis skill should be used when the user wants to "deploy an agent", "deploy my ADK agent", "set up CI/CD", "configure secrets", "troubleshoot a deployment", or 560Kskills.sh installs