Skip to main content
POST
/
api
/
maven
/
artifacts
/
dependencies
/maven/artifacts/dependencies
curl --request POST \
  --url https://api.anysite.io/api/maven/artifacts/dependencies \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "artifact": "<string>",
  "timeout": 300,
  "version": "33.4.8-jre"
}
'
[
  {
    "group_id": "<string>",
    "artifact_id": "<string>",
    "@type": "MavenDependency",
    "version": "<string>",
    "scope": "<string>",
    "is_optional": false
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
artifact
string
required

Artifact coordinate 'groupId:artifactId:version' or a Maven artifact URL with a version

Minimum string length: 1
Examples:

"com.google.guava:guava:33.4.8-jre"

"https://central.sonatype.com/artifact/com.google.guava/guava/33.4.8-jre"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
version
string | null

Version (required if not included in the coordinate)

Example:

"33.4.8-jre"

Response

Successful Response

group_id
string
required
artifact_id
string
required
@type
string
default:MavenDependency
version
string | null
scope
string | null
is_optional
boolean
default:false