# Maven Central artifact API

Get Maven Central Artifact data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including artifact coordinates, maven group identifier, maven artifact identifier, selected version, and published licence labels for dependency review, and integration planning, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/maven-central/maven-central-artifact-api/d5e509b2-edc2-4b8e-8c6a-a804d9e27029/
API ID: d5e509b2-edc2-4b8e-8c6a-a804d9e27029
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/maven-central/v1/artifact
Page update time: 2026-12-03T02:44:46.750Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:44:45.975Z. This is not a price-change timestamp.
```json
{
  "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": []
  }
}
```

## Usage and limits
## Maven Central Artifact API

id accepts group:artifact, optionally with :version, or a supported Sonatype, MVNRepository or repo1.maven.org link. version defaults to the latest release. Metadata includes Maven and Gradle declarations, packaging, licences and source-reported dependency counts; it does not install or resolve a build.

## What You Can Build

- **Dependency review**: Record the requested package identity and selected version before comparing requirements or related package metadata.
- **Integration planning**: Use the returned source metadata to plan a compatibility review; installation, code execution and runtime validation remain separate steps.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Artifact coordinates |
| `group_id` | Maven group identifier |
| `artifact_id` | Maven artifact identifier |
| `version` | Selected version |
| `licenses` | Published licence labels |
| `maven` | Maven dependency declaration |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Maven Central artifact API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Artifact as group:artifact (com.google.guava:guava), optionally :version, or a central.sonatype.com / mvnrepository.com / repo1.maven.org link."
        },
        "version": {
          "type": "string",
          "description": "Version (default: the latest release)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "artifact_id": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "classifiers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "declared_dependency_count": {
      "type": "integer"
    },
    "dependency_count": {
      "type": "integer"
    },
    "dependent_count": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "developers": {
      "type": "array",
      "items": {}
    },
    "file_extensions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gradle": {
      "type": "string"
    },
    "group_id": {
      "type": "string"
    },
    "homepage": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "issue_management": {
      "type": "null"
    },
    "last_updated": {
      "type": "string"
    },
    "latest": {
      "type": "string"
    },
    "latest_published": {
      "type": "string"
    },
    "latest_release": {
      "type": "string"
    },
    "latest_version": {
      "type": "string"
    },
    "licenses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "maven": {
      "type": "string"
    },
    "maven_plugin_prefix": {
      "type": "null"
    },
    "name": {
      "type": "string"
    },
    "organization": {
      "type": "null"
    },
    "packaging": {
      "type": "string"
    },
    "parent": {
      "type": "object",
      "properties": {
        "artifact_id": {
          "type": "string"
        },
        "group_id": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "pom_description": {
      "type": "string"
    },
    "pom_licenses": {
      "type": "array",
      "items": {}
    },
    "pom_packaging": {
      "type": "string"
    },
    "project_name": {
      "type": "string"
    },
    "scm": {
      "type": "null"
    },
    "url": {
      "type": "string"
    },
    "used_by_applications": {
      "type": "integer"
    },
    "used_by_organizations": {
      "type": "integer"
    },
    "version": {
      "type": "string"
    },
    "version_count": {
      "type": "integer"
    },
    "version_url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which coordinate format is accepted?
Use group:artifact, optionally :version; supported source links are also accepted.

### Which version is selected by default?
The latest release; set version for a specific release.

### Does this resolve my project’s complete dependency graph?
No. It reads artifact metadata and declarations rather than executing your build.

### Are latest_release and latest_version always identical?
Preserve the source fields separately; release channels and version ordering can differ.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/maven-central/maven-central-artifact-api/d5e509b2-edc2-4b8e-8c6a-a804d9e27029/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
