DagsHub Repos API

The Repos API from DagsHub — 2 operation(s) for repos.

Operations 3

GET /repos/{owner}/{repo} Get repository metadata #
DELETE /repos/{owner}/{repo} Delete a repository #
GET /repos/{owner}/{repo}/contents/{path} Get file or directory contents #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dagshub-repos-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dagshub-repos-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DagsHub REST Repos API
  description: DagsHub's REST API mirrors the Gitea API for repositories, issues, pull requests, branches, and users, with DagsHub-specific extensions for data storage (DVC/S3), data engine queries, and storage integrations. Authenticates with an API token via Bearer header or basic auth.
  version: 1.0.0
servers:
- url: https://dagshub.com/api/v1
  description: DagsHub REST API base URL
security:
- bearerAuth: []
- basicAuth: []
tags:
- name: Repos
paths:
  /repos/{owner}/{repo}:
    parameters:
    - in: path
      name: owner
      required: true
      schema:
        type: string
    - in: path
      name: repo
      required: true
      schema:
        type: string
    get:
      tags:
      - Repos
      summary: Get repository metadata
      responses:
        '200':
          description: Repository
      operationId: getReposByOwnerByRepo
      x-operation-id-source: derived
    delete:
      tags:
      - Repos
      summary: Delete a repository
      responses:
        '204':
          description: Deleted
      operationId: deleteReposByOwnerByRepo
      x-operation-id-source: derived
  /repos/{owner}/{repo}/contents/{path}:
    parameters:
    - in: path
      name: owner
      required: true
      schema:
        type: string
    - in: path
      name: repo
      required: true
      schema:
        type: string
    - in: path
      name: path
      required: true
      schema:
        type: string
    - in: query
      name: ref
      schema:
        type: string
    get:
      tags:
      - Repos
      summary: Get file or directory contents
      responses:
        '200':
          description: Contents
      operationId: getReposByOwnerByRepoContentsByPath
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: DagsHub access token sent as a Bearer token.
    basicAuth:
      type: http
      scheme: basic
      description: Username and DagsHub access token via HTTP Basic auth.