Maven Central artifact API
Use the Maven Central artifact API to retrieve package metadata and the source's published package details. Provide source record ID (id); refine the result with release version (version). Package details identify the chosen release and its published licence or project references, providing the metadata needed to distinguish the library, application or module before inspecting its ecosystem-specific details. Identify a package release, inspect its licence and distribution metadata and select the version to examine for integration. The detail page provides the supported parameters, request examples, available response examples and usage pricing for this operation.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent Maven Central artifact API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
artifact_idstringcachedbooleancategoriesstring[]classifiersstring[]credits_usedintegerdeclared_dependency_countintegerdependency_countintegerdependent_countintegerdescriptionstringdevelopersunknown[]file_extensionsstring[]gradlestringgroup_idstringhomepagestringidstringissue_managementnulllast_updatedstringlateststringlatest_publishedstringlatest_releasestringlatest_versionstringlicensesstring[]mavenstringmaven_plugin_prefixnullnamestringorganizationnullpackagingstringparentobjectartifact_idstringgroup_idstringversionstring
pom_descriptionstringpom_licensesunknown[]pom_packagingstringproject_namestringscmnullurlstringused_by_applicationsintegerused_by_organizationsintegerversionstringversion_countintegerversion_urlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
artifact_id?: string;
cached?: boolean;
categories?: Array<string>;
classifiers?: Array<string>;
credits_used?: number;
declared_dependency_count?: number;
dependency_count?: number;
dependent_count?: number;
description?: string;
developers?: Array<unknown>;
file_extensions?: Array<string>;
gradle?: string;
group_id?: string;
homepage?: string;
id?: string;
issue_management?: null;
last_updated?: string;
latest?: string;
latest_published?: string;
latest_release?: string;
latest_version?: string;
licenses?: Array<string>;
maven?: string;
maven_plugin_prefix?: null;
name?: string;
organization?: null;
packaging?: string;
parent?: {
artifact_id?: string;
group_id?: string;
version?: string;
};
pom_description?: string;
pom_licenses?: Array<unknown>;
pom_packaging?: string;
project_name?: string;
scm?: null;
url?: string;
used_by_applications?: number;
used_by_organizations?: number;
version?: string;
version_count?: number;
version_url?: string;
};- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/maven-central/v1/artifact- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/apish/maven-central/v1/artifact?id=com.google.guava%3Aguava&output=json' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | URL query parametersquery | string | Yes | Artifact as group:artifact (com.google.guava:guava), optionally :version, or a central.sonatype.com / mvnrepository.com / repo1.maven.org link. |
version | URL query parametersquery | string | No | Version (default: the latest release). |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed. enum: "json" |
records | URL query parametersquery | string | No | Native CSV/NDJSON record selector; it has no effect on this JSON-only product. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"artifact_id": "guava",
"cached": false,
"categories": [
"Programming Language Utilities",
"Collections"
],
"classifiers": [
"javadoc",
"sources"
],
"credits_used": 1,
"declared_dependency_count": 5,
"dependency_count": 5,
"dependent_count": 1,
"description": "Guava is a suite of core and expanded libraries that include\n utility classes, Google's collections, I/O classes, and\n much more.",
"developers": [],
"file_extensions": [
".module",
"-sources.jar",
"… 3 more"
],
"gradle": "implementation(\"com.google.guava:guava:33.8.0-jre\")",
"group_id": "com.google.guava",
"homepage": "https://github.com/google/guava",
"id": "com.google.guava:guava",
"issue_management": null,
"last_updated": "2026-11-02T18:07:48Z",
"latest": "33.8.0-jre",
"latest_published": "2026-11-02T18:06:38.000Z",
"latest_release": "33.8.0-jre",
"latest_version": "33.8.0-android",
"licenses": [
"Apache License, Version 2.0"
],
"maven": "<dependency>\n <groupId>com.google.guava</groupId>\n <artifactId>guava</artifactId>\n <version>33.8.0-jre</version>\n</dependency>",
"maven_plugin_prefix": null,
"name": "Guava: Google Core Libraries for Java",
"organization": null,
"packaging": "bundle",
"parent": {
"artifact_id": "guava-parent",
"group_id": "com.google.guava",
"version": "33.8.0-jre"
},
"pom_description": "Guava is a suite of core and expanded libraries that include\n utility classes, Google's collections, I/O classes, and\n much more.",
"pom_licenses": [],
"pom_packaging": "bundle",
"project_name": "Guava: Google Core Libraries for Java",
"scm": null,
"url": "https://central.sonatype.com/artifact/com.google.guava/guava",
"used_by_applications": 564708,
"used_by_organizations": 506,
"version": "33.8.0-jre",
"version_count": 162,
"version_url": "https://central.sonatype.com/artifact/com.google.guava/guava/33.8.0-jre"
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 billing credit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Maven Central artifact API
Use the Maven Central artifact API to retrieve package metadata and the source's published package details. Provide source record ID (id); refine the result with release version (version). Package details identify the chosen release and its published licence or project references, providing the metadata needed to distinguish the library, application or module before inspecting its ecosystem-specific details. Identify a package release, inspect its licence and distribution metadata and select the version to examine for integration. The detail page provides the supported parameters, request examples, available response examples and usage pricing for this operation.
## Available implementations
apish · Maven Central artifact API: https://openany.si/markets/apis/capabilities/maven-central-artifact-api?offering=d5e509b2-edc2-4b8e-8c6a-a804d9e27029 · $0.002 / billing credit
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/maven-central-artifact-api
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/maven-central/v1/artifact
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/apish/maven-central/v1/artifact?id=com.google.guava%3Aguava&output=json' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Maven Central artifact API",
"endpoint": "https://api.openany.si/v1/agent-apis/apish/maven-central/v1/artifact",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Artifact as group:artifact (com.google.guava:guava), optionally :version, or a central.sonatype.com / mvnrepository.com / repo1.maven.org link.",
"location": "query",
"name": "id",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "Version (default: the latest release).",
"location": "query",
"name": "version",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
"enum_values": [
"0",
"1"
],
"location": "query",
"name": "raw",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
"location": "query",
"name": "fields",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "1 skips the 24-hour cache and fetches live.",
"enum_values": [
"1"
],
"location": "query",
"name": "fresh",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
"enum_values": [
"json"
],
"location": "query",
"name": "output",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product.",
"location": "query",
"name": "records",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "rules",
"parameters": [],
"policy_version": 2,
"sale": {
"addons": [],
"base_price_micro_usd": "0",
"max_cost_micro_usd": "2000",
"quantities": [
{
"id": "upstream_credits",
"label": "Actual API.SH credits consumed",
"max_quantity": "1",
"measure": "value",
"pointer": "/credits_used",
"price_micro_usd": "2000",
"quantity_scale": 0,
"source": "response",
"unit": "credit",
"unit_quantity": "1"
}
],
"rounding": "ceil",
"variants": []
}
},
"examples": [
{
"http_status": 200,
"name": "Official example · Official documentation response · Supplier-tr",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"id": "com.google.guava:guava",
"output": "json"
}
},
"response_body": {
"artifact_id": "guava",
"cached": false,
"categories": [
"Programming Language Utilities",
"Collections"
],
"classifiers": [
"javadoc",
"sources"
],
"credits_used": 1,
"declared_dependency_count": 5,
"dependency_count": 5,
"dependent_count": 1,
"description": "Guava is a suite of core and expanded libraries that include\n utility classes, Google's collections, I/O classes, and\n much more.",
"developers": [],
"file_extensions": [
".module",
"-sources.jar",
"… 3 more"
],
"gradle": "implementation(\"com.google.guava:guava:33.8.0-jre\")",
"group_id": "com.google.guava",
"homepage": "https://github.com/google/guava",
"id": "com.google.guava:guava",
"issue_management": null,
"last_updated": "2026-11-02T18:07:48Z",
"latest": "33.8.0-jre",
"latest_published": "2026-11-02T18:06:38.000Z",
"latest_release": "33.8.0-jre",
"latest_version": "33.8.0-android",
"licenses": [
"Apache License, Version 2.0"
],
"maven": "<dependency>\n <groupId>com.google.guava</groupId>\n <artifactId>guava</artifactId>\n <version>33.8.0-jre</version>\n</dependency>",
"maven_plugin_prefix": null,
"name": "Guava: Google Core Libraries for Java",
"organization": null,
"packaging": "bundle",
"parent": {
"artifact_id": "guava-parent",
"group_id": "com.google.guava",
"version": "33.8.0-jre"
},
"pom_description": "Guava is a suite of core and expanded libraries that include\n utility classes, Google's collections, I/O classes, and\n much more.",
"pom_licenses": [],
"pom_packaging": "bundle",
"project_name": "Guava: Google Core Libraries for Java",
"scm": null,
"url": "https://central.sonatype.com/artifact/com.google.guava/guava",
"used_by_applications": 564708,
"used_by_organizations": 506,
"version": "33.8.0-jre",
"version_count": 162,
"version_url": "https://central.sonatype.com/artifact/com.google.guava/guava/33.8.0-jre"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example · Official documentation response · Supplier-tr
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 7
Review these request fields before running. Keep the published provider and request method unchanged.
id- Artifact as group:artifact (com.google.guava:guava), optionally :version, or a central.sonatype.com / mvnrepository.com / repo1.maven.org link.
version- Version (default: the latest release).
raw- 0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
fields- Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
fresh- 1 skips the 24-hour cache and fetches live.
output- JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
records- Native CSV/NDJSON record selector; it has no effect on this JSON-only product.
Terminal · cURL