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.
openapi: 3.2.0
info:
title: Maven Central Search Download API
summary: Search artifact metadata in Maven Central Repository.
description: REST API for searching and retrieving metadata about artifacts in Maven Central. Backed by Solr, the API supports queries for groupId, artifactId, classnames, SHA-1 checksums, tags, and other attributes used to discover Java and other JVM-based libraries.
version: '1.0'
contact:
name: Sonatype Central
url: https://central.sonatype.org/search/rest-api-guide/
license:
name: Documentation Terms
url: https://central.sonatype.org/publish/terms/
servers:
- url: https://search.maven.org/solrsearch
description: Maven Central Solr search service
tags:
- name: Download
paths:
/remotecontent:
get:
summary: Download artifact content
description: Download a file from the Central Repository by relative path.
operationId: downloadArtifact
tags:
- Download
parameters:
- name: filepath
in: query
required: true
description: Path to the artifact in Maven Central.
schema:
type: string
example: com/google/inject/guice/5.1.0/guice-5.1.0.jar
responses:
'200':
description: Artifact bytes.
content:
application/octet-stream:
schema:
type: string
format: binary
'404':
description: Artifact not found.