Skip to content

Maven Central API

5 endpointsDeveloper & TechGlobalsocial:read4 real examples

Returns Maven Central artifacts, their versions, group listings, POM details and artifacts containing a given class.

View as Markdown
GET/maven/searchMaven Central artifacts matching a search, with their latest version.
GET/maven/versionsThe published versions of one Maven artifact.
GET/maven/groupThe artifacts of one group id, in search order. Page with cursor.
GET/maven/pomThe project description of one Maven artifact version: name, license and dependencies, from its POM file.
GET/maven/classesMaven Central artifacts that contain a class, found by its fully qualified name.

versions

GET/v1/maven/versions

The published versions of one Maven artifact.

scope social:read1 unitcached 30 minpaginated

Parameters

group
string
required
Group id, such as com.google.guava.
e.g. com.google.guava
artifact
string
required
Artifact id, such as guava.
e.g. guava
limit
integer
Items per page, 1 to 100.
default 20
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

5 fields
artifactIdstring
groupIdstring
packagingstring
publishedAtstring
versionstring
curl "https://api.hoshime.com/v1/maven/versions?group=com.google.guava&artifact=guava" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "artifactId": "guava",
      "groupId": "com.google.guava",
      "packaging": "bundle",
      "publishedAt": "2025-04-14T17:25:22Z",
      "version": "33.4.8-jre"
    },
    {
      "artifactId": "guava",
      "groupId": "com.google.guava",
      "packaging": "bundle",
      "publishedAt": "2025-04-14T17:15:19Z",
      "version": "33.4.8-android"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "versions",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "maven",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

group

GET/v1/maven/group

The artifacts of one group id, in search order. Page with cursor.

scope social:read1 unitcached 30 minpaginated

Parameters

group
string
required
Group id, such as com.google.guava.
e.g. com.google.guava
limit
integer
Items per page, 1 to 100.
default 20
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

7 fields
artifactIdstring
groupIdstring
idstring
latestVersionstring
packagingstring
updatedAtstring
versionCountinteger (int64)
curl "https://api.hoshime.com/v1/maven/group?group=com.google.guava" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "artifactId": "guava-gwt",
      "groupId": "com.google.guava",
      "id": "com.google.guava:guava-gwt",
      "latestVersion": "33.4.8-jre",
      "packaging": "jar",
      "updatedAt": "2025-04-14T17:36:48Z",
      "versionCount": 94
    },
    {
      "artifactId": "guava-testlib",
      "groupId": "com.google.guava",
      "id": "com.google.guava:guava-testlib",
      "latestVersion": "33.4.8-jre",
      "packaging": "jar",
      "updatedAt": "2025-04-14T17:27:48Z",
      "versionCount": 145
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "group",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "maven",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

pom

GET/v1/maven/pom

The project description of one Maven artifact version: name, license and dependencies, from its POM file.

scope social:read1 unitcached 24 h

Parameters

group
string
required
Group id, such as com.google.guava.
e.g. com.google.guava
artifact
string
required
Artifact id, such as guava.
e.g. guava
version
string
required
Version, such as 33.4.0-jre.
e.g. 33.4.0-jre
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

16 fields
artifactIdstring
dependenciesDependency[]
artifactIdstring
groupIdstring
optionalboolean
scopestring
versionstring
descriptionstring
groupIdstring
licensesLicense[]
namestring
urlstring
namestring
packagingstring
urlstring
versionstring
curl "https://api.hoshime.com/v1/maven/pom?group=com.google.guava&artifact=guava&version=33.4.0-jre" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "artifactId": "abc123",
    "dependencies": [
      {
        "artifactId": "abc123",
        "groupId": "abc123",
        "optional": false,
        "scope": "…",
        "version": "…"
      }
    ],
    "description": "…",
    "groupId": "abc123",
    "licenses": [
      {
        "name": "…",
        "url": "https://…"
      }
    ],
    "name": "…",
    "packaging": "…",
    "url": "https://…",
    "version": "…"
  },
  "meta": {
    "cached": false,
    "endpoint": "pom",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "maven",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

classes

GET/v1/maven/classes

Maven Central artifacts that contain a class, found by its fully qualified name.

scope social:read1 unitcached 30 minpaginated

Parameters

class
string
required
Fully qualified class name, such as com.google.common.base.Preconditions.
e.g. com.google.common.base.Preconditions
limit
integer
Items per page, 1 to 100.
default 10
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
artifactIdstring
groupIdstring
idstring
packagingstring
publishedAtstring
versionstring
curl "https://api.hoshime.com/v1/maven/classes?class=com.google.common.base.Preconditions" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "artifactId": "guava-preconditions",
      "groupId": "com.cookingfox",
      "id": "com.cookingfox:guava-preconditions:0.1.4",
      "packaging": "jar",
      "publishedAt": "2016-06-13T11:42:04Z",
      "version": "0.1.4"
    },
    {
      "artifactId": "google-api-client-repackaged-com-google-common-base",
      "groupId": "com.google.api.client",
      "id": "com.google.api.client:google-api-client-repackaged-com-google-common-base:1.2.3-alpha",
      "packaging": "jar",
      "publishedAt": "2015-12-28T13:14:40Z",
      "version": "1.2.3-alpha"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "classes",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "maven",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open