Canonical: https://weaveos.com/reference/launchdarkly/compare-flag-environments

1. [Software capabilities](https://weaveos.com/reference)
2. /[LaunchDarkly](https://weaveos.com/reference/launchdarkly)
3. /How to compare a LaunchDarkly flag across environments

[LLaunchDarkly](https://weaveos.com/reference/launchdarkly)

# How to compare a LaunchDarkly flag across environments

Read a flag’s environment settings through the REST API for a scripted comparison, or open the Flag comparison screen to inspect two environments side by side.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: GET /api/v2/flags/{projectKey}/{featureFlagKey}](https://weaveos.com/reference/launchdarkly/compare-flag-environments#method-1)
2. [2Interface: Flag comparison screen](https://weaveos.com/reference/launchdarkly/compare-flag-environments#method-2)

API

### GET /api/v2/flags/{projectKey}/{featureFlagKey}

Read one flag’s configuration across environments. Use the env parameter to limit the environments returned.

[Read source: LaunchDarkly Get feature flag](https://launchdarkly.com/docs/api/feature-flags/get-feature-flag)

- Requirements

  A LaunchDarkly API access token with read permission, the project key, and the feature flag key.

- Limitations

  The default response includes every environment’s configuration and can be large. Request only the environments you need with env.

Example shell

Copy

```
curl --fail -H "Authorization: $LD_API_TOKEN" \
  "https://app.launchdarkly.com/api/v2/flags/$PROJECT_KEY/$FLAG_KEY"
```

Interface

### Flag comparison screen

Open Feature management > Flags, choose Compare to another environment, and inspect the flag settings and targeting differences.

[Read source: LaunchDarkly compare and copy flag settings](https://launchdarkly.com/docs/home/flags/compare-copy)

- Requirements

  A LaunchDarkly member with access to the project and the environments being compared.

- Limitations

  The comparison shows two environments at a time. Matching segment names can still refer to distinct segments.

Example text

Copy

```
LaunchDarkly → Feature management → Flags → environment menu → Compare to another environment → select two environments
```

## More from LaunchDarkly

[View all 1 LaunchDarkly tasks](https://weaveos.com/reference/launchdarkly)
