VariantConfig is a JSON Structure definition published by Amplitude, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amplitude/refs/heads/main/json-structure/experiment-management-api-variant-config-structure.json",
"name": "VariantConfig",
"description": "VariantConfig schema from Amplitude Experiment Management API",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "The unique key for the variant."
},
"name": {
"type": "string",
"description": "The display name of the variant."
},
"payload": {
"description": "An optional JSON payload associated with the variant."
},
"description": {
"type": "string",
"description": "A description of what this variant does."
},
"rolloutWeight": {
"type": "int32",
"description": "The rollout weight as a percentage (0-100) controlling traffic allocation to this variant.",
"minimum": 0,
"maximum": 100
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.