Note: This endpoint is in public beta. If you have any feedback,
contact Datadog support .
GET https://api.ap1.datadoghq.com/api/v1/service_dependencies/{service} https://api.ap2.datadoghq.com/api/v1/service_dependencies/{service} https://api.datadoghq.eu/api/v1/service_dependencies/{service} https://api.ddog-gov.com/api/v1/service_dependencies/{service} https://api.datadoghq.com/api/v1/service_dependencies/{service} https://api.us3.datadoghq.com/api/v1/service_dependencies/{service} https://api.us5.datadoghq.com/api/v1/service_dependencies/{service}
Overview Get a specific service’s immediate upstream and downstream services.
The services retrieved are filtered by environment and a primary tag, if one is defined.
Arguments Path Parameters The name of the service go get dependencies for.
Query Strings Specify what APM environment to query service dependencies by.
Specify what primary tag to query service dependencies by.
Specify the start of the timeframe in epoch seconds to query for. (defaults to 1 hour before end parameter)
Specify the end of the timeframe in epoch seconds to query for. (defaults to current time)
Response OK
An object with information on APM services that call, and are called by a given service.
Expand All
List of service names that call the given service.
List of service names called by the given service.
Name of the APM service being searched for.
{
"called_by" : [
"service-a" ,
"service-b"
],
"calls" : [
"service-d" ,
"service-e"
],
"name" : "service-c"
} Bad Request
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Authentication Error
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Too many requests
Error response object.
Expand All
Array of errors returned by the API.
{
"errors" : [
"Bad Request"
]
} Code Example Copy
# Path parameters export service = "service-c" # Required query arguments export env = "prod" # Curl command curl -X GET "https://api.ap1.datadoghq.com "https://api.ap2.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v1/service_dependencies/${service} ? env = ${env} " \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} "