APIYard
Back to APIs
DevOpsBearer TokenFree tier

Vercel

The Vercel REST API lets you manage projects, trigger deployments, configure domains, and access deployment logs programmatically.

Base URL

https://api.vercel.com
deploymentsprojectsdomainsedge functionsCI/CD

Endpoints

GET/v9/projects

List all projects in your Vercel account.

const response = await fetch("https://api.vercel.com/v9/projects?limit=10", {
  method: "GET",
  headers: {
  "Content-Type": "application/json",
  "Authorization": "Bearer YOUR_ACCESS_TOKEN"
  }
});

const data = await response.json();
console.log(data);

Response Preview

{
  "projects": [{
    "id": "prj_abc123",
    "name": "my-nextjs-app",
    "framework": "nextjs",
    "latestDeployments": [{
      "url": "my-nextjs-app.vercel.app",
      "state": "READY",
      "createdAt": 1714000000000
    }]
  }]
}
GET/v6/deployments

List recent deployments across your account.

const response = await fetch("https://api.vercel.com/v6/deployments?limit=5", {
  method: "GET",
  headers: {
  "Content-Type": "application/json",
  "Authorization": "Bearer YOUR_ACCESS_TOKEN"
  }
});

const data = await response.json();
console.log(data);

Response Preview

{
  "deployments": [{
    "uid": "dpl_abc123",
    "name": "my-nextjs-app",
    "url": "my-nextjs-app-git-main.vercel.app",
    "state": "READY",
    "createdAt": 1714000000000,
    "target": "production"
  }]
}