技
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/search | Maven Central artifacts matching a search, with their latest version. |
| GET | /maven/versions | The published versions of one Maven artifact. |
| GET | /maven/group | The artifacts of one group id, in search order. Page with cursor. |
| GET | /maven/pom | The project description of one Maven artifact version: name, license and dependencies, from its POM file. |
| GET | /maven/classes | Maven Central artifacts that contain a class, found by its fully qualified name. |
search
GET
/v1/maven/searchMaven Central artifacts matching a search, with their latest version.
scope social:read1 unitcached 30 minpaginated
Parameters
querystring required | Words to search for, such as guava. e.g. guava |
limitinteger | Items per page, 1 to 100. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artifactId | string |
groupId | string |
id | string |
latestVersion | string |
packaging | string |
updatedAt | string |
versionCount | integer (int64) |
curl "https://api.hoshime.com/v1/maven/search?query=guava" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/maven/search?query=guava", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/maven/search?query=guava", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "artifactId": "guava", "groupId": "com.google.guava", "id": "com.google.guava:guava", "latestVersion": "33.4.8-jre", "packaging": "bundle", "updatedAt": "2025-04-14T17:25:22Z", "versionCount": 150 }, { "artifactId": "guava", "groupId": "com.github.cowwoc.requirements", "id": "com.github.cowwoc.requirements:guava", "latestVersion": "11.0", "packaging": "jar", "updatedAt": "2025-02-18T19:26:40Z", "versionCount": 36 } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "maven", "requestId": "req_2Xb9kQ…", "units": 1 } }
versions
GET
/v1/maven/versionsThe published versions of one Maven artifact.
scope social:read1 unitcached 30 minpaginated
Parameters
groupstring required | Group id, such as com.google.guava. e.g. com.google.guava |
artifactstring required | Artifact id, such as guava. e.g. guava |
limitinteger | Items per page, 1 to 100. default 20 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artifactId | string |
groupId | string |
packaging | string |
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/maven/versions?group=com.google.guava&artifact=guava" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/maven/versions?group=com.google.guava&artifact=guava", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/maven/versions?group=com.google.guava&artifact=guava", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/groupThe artifacts of one group id, in search order. Page with cursor.
scope social:read1 unitcached 30 minpaginated
Parameters
groupstring required | Group id, such as com.google.guava. e.g. com.google.guava |
limitinteger | Items per page, 1 to 100. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artifactId | string |
groupId | string |
id | string |
latestVersion | string |
packaging | string |
updatedAt | string |
versionCount | integer (int64) |
curl "https://api.hoshime.com/v1/maven/group?group=com.google.guava" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/maven/group?group=com.google.guava", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/maven/group?group=com.google.guava", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/pomThe project description of one Maven artifact version: name, license and dependencies, from its POM file.
scope social:read1 unitcached 24 h
Parameters
groupstring required | Group id, such as com.google.guava. e.g. com.google.guava |
artifactstring required | Artifact id, such as guava. e.g. guava |
versionstring required | Version, such as 33.4.0-jre. e.g. 33.4.0-jre |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artifactId | string |
dependencies | Dependency[] |
artifactId | string |
groupId | string |
optional | boolean |
scope | string |
version | string |
description | string |
groupId | string |
licenses | License[] |
name | string |
url | string |
name | string |
packaging | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/maven/pom?group=com.google.guava&artifact=guava&version=33.4.0-jre" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/maven/pom?group=com.google.guava&artifact=guava&version=33.4.0-jre", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/maven/pom?group=com.google.guava&artifact=guava&version=33.4.0-jre", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/classesMaven Central artifacts that contain a class, found by its fully qualified name.
scope social:read1 unitcached 30 minpaginated
Parameters
classstring required | Fully qualified class name, such as com.google.common.base.Preconditions. e.g. com.google.common.base.Preconditions |
limitinteger | Items per page, 1 to 100. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artifactId | string |
groupId | string |
id | string |
packaging | string |
publishedAt | string |
version | string |
curl "https://api.hoshime.com/v1/maven/classes?class=com.google.common.base.Preconditions" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/maven/classes?class=com.google.common.base.Preconditions", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/maven/classes?class=com.google.common.base.Preconditions", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }