---
title: "Maven Central API: Search artifacts | Perceptlayer"
description: "Java and JVM artifacts on Maven Central by keyword, group ID or artifact ID, with latest version, packaging and last update."
url: https://perceptlayer.com/apis/maven-central/search
---

[APIs](https://perceptlayer.com/apis) / [Maven Central](https://perceptlayer.com/apis/maven-central) / Search artifacts

# Maven Central: Search artifacts

Java and JVM artifacts on Maven Central by keyword, group ID or artifact ID, with latest version, packaging and last update.

GET `/v1/maven-central/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 200 characters Words to match in the group or artifact ID. Set this, group\_id or artifact\_id. |
| `group_id` | string | Optional | Up to 200 characters Exact group ID, for example com.google.guava. |
| `artifact_id` | string | Optional | Up to 200 characters Exact artifact ID, for example guava. |
| `page` | integer | Optional | Any Results page, from 1. |
| `per_page` | integer | Optional | Any Results per page, 1 to 100. Default 20. Search reaches the first 1,000 results. |

## Example request

Maven Central

GET /v1/maven-central/search?group\_id=com.google.guava&per\_page=10 

```
{
  "success": true,
  "data": {
    "total": 21,
    "page": 1,
    "has_more": true,
    "count": 10,
    "items": [
      {
        "group_id": "com.google.guava",
        "artifact_id": "failureaccess",
        "coordinates": "com.google.guava:failureaccess",
        "latest_version": "1.0.3",
        "packaging": "jar",
        "updated_at": "2025-03-19T16:15:50.983Z",
        "url": "https://central.sonatype.com/artifact/com.google.guava/failureaccess"
      },
      {
        "group_id": "com.google.guava",
        "artifact_id": "guava",
        "coordinates": "com.google.guava:guava",
        "latest_version": "33.8.0-android",
        "packaging": "bundle",
        "updated_at": "2026-11-02T18:06:38.000Z",
        "url": "https://central.sonatype.com/artifact/com.google.guava/guava"
      },
      {
        "group_id": "com.google.guava",
        "artifact_id": "guava-annotations",
        "coordinates": "com.google.guava:guava-annotations",
        "latest_version": "r03",
        "packaging": "jar",
        "updated_at": "2010-04-26T13:06:49.000Z",
        "url": "https://central.sonatype.com/artifact/com.google.guava/guava-annotations"
      }
    ]
  },
  "meta": {
    "request_id": "req_9da9a5c844b64351922688681327a9be",
    "credits_charged": 1,
    "credits_remaining": 456
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/maven-central?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.items` has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `group_id` | string |
| `artifact_id` | string |
| `coordinates` | string |
| `latest_version` | string |
| `packaging` | string |
| `updated_at` | string |
| `url` | url |
