# Maven Central Artifact Search API

> Search Java and JVM libraries on Maven Central by group, artifact, class or keyword: versions

- Vendor: `mavencentralartifactsearchapi` · version 1.0 · category Developer Tools · tags maven central api, java libraries api, maven search api, jvm dependencies api, artifact versions api, package search api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/mavencentralartifactsearchapi
- This document: https://apiclay.com/docs/mavencentralartifactsearchapi.md
- OpenAPI 3.1: https://apiclay.com/api/mavencentralartifactsearchapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `mavencentralartifactsearchapi`
- Updated: 2026-11-18

## About

## Maven Central Artifact Search API

Search Maven Central, the main repository of Java/Kotlin/Scala libraries: artifacts by keyword, group id, artifact id or class name, with the latest version, version count and last update, or every version of one artifact.

Data comes from **central.sonatype.com** (https://central.sonatype.com). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/search?q=g:com.google.guava&amp;rows=5`, then `/search?q=g:com.google.guava AND a:guava&amp;core=gav&amp;rows=20`.

### Routes

#### GET `/search` - Search artifacts
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| q | query | string | yes | Query: words, or `g:` group, `a:` artifact, `v:` version, `c:` class name, combined with `AND`. |
| rows | query | number | no | Results (default 20). |
| start | query | number | no | Offset. |
| core | query | string | no | `gav` to list every version of an artifact. |

Returns: `response.numFound`, `response.docs[]` with `id`, `g`, `a`, `latestVersion` (or `v`), `versionCount`, `timestamp`, `p` (packaging).

### Caveats

- Search covers Maven Central only.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by central.sonatype.com.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /search — Search artifacts
- Gateway: `GET https://api.apiclay.com/v1/api/mavencentralartifactsearchapi/search`
- Public query params: `q` (string, required), `rows` (number), `start` (number), `core` (string)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/mavencentralartifactsearchapi/search?q=<q>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
