---
title: "Get the network activity of a Gradle build."
method: GET
path: "/api/builds/{id}/gradle-network-activity"
tags: ["Builds", "Develocity"]
---

# Get the network activity of a Gradle build.

`GET /api/builds/{id}/gradle-network-activity`

## Request

- Base URL: `https://develocity.example.com`
- URL: `https://develocity.example.com/api/builds/{id}/gradle-network-activity`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/develocity/apis/develocity-api/docs/api/builds/:id/gradle-network-activity/get.ts> (a function with typed inputs; its response is checked against the schema)

This model is Gradle specific and cannot be requested for another build tool. This model is only available starting with Gradle version 3.5 and Develocity Gradle Plugin version 1.6.

## Response `200`

The network activity of a Gradle build.

- GradleNetworkActivity: Information about the network activity of the build. It includes network activity during dependency resolution, java toolchain downloads, etc. For a comprehensive list see the Build Scan.
  - `networkRequestCount` integer, required: This represents the total count of network requests.
  - `serialNetworkRequestTime` integer, required: The duration in milliseconds representing the sum of times for potentially parallel network requests. It does not reflect wall clock time but offers a rough estimation of network activity.
  - `wallClockNetworkRequestTime` integer: The estimate in milliseconds representing the wall clock time spent on network requests during the current build. It is calculated by comparing the critical path within non-execution and execution phases with and without network requests, converted to wall clock time. This is null when Gradle version is lower than 6.2 or the Develocity plugin version is lower than 3.12.
  - `fileDownloadSize` integer, required: The total number of bytes downloaded for dependencies. It accounts only for the bytes of the files (e.g. POMs, JARs) downloaded and not the total network transfer.
  - `fileDownloadCount` integer, required: The total number of successfully downloaded files.
  - `methods` object: A breakdown of the network activity by HTTP method, when available.
  - `repositories` object: A breakdown of the network activity by repository URL, when available. This is empty when Gradle version is lower than 4.10, Develocity plugin version is lower than 1.16, or no repositories were captured.
  - `repositoryMethods` object: A breakdown of the network activity by HTTP method and repository, when available.

## Other responses

- `400`: The request cannot be fulfilled due to a problem.
- `404`: The referenced resource either does not exist or the permissions to know about it are missing.
- `500`: The server encountered an unexpected error.
- `503`: The server is not ready to handle the request.

---

[API](https://skmtc.dev/develocity/apis/develocity-api.md) - [All operations](https://skmtc.dev/develocity/apis/develocity-api/llms.txt) - [OpenAPI document](https://skmtc.dev/develocity/apis/develocity-api/revisions/b49835fbf065?raw)
