#Variants
#Overview
Variants and Segments work together to deliver tailored experiences to different groups of users.
After you add a Segment or a Variant, it is added to the Hygraph schema and is immediately queryable through the API. You need to access the API Playground section of your Hygraph project, select Content API
at the top of the screen, and then run the query.
#Fetch Variants
You can fetch all the Variants associated with a specific content entry.
Query
Response
#Fetch a Variant and its linked Segments
Query
Response
#Fetch a Variant from a Segment
Query
Response
#Fetch a Variant from multiple Segments
Query
Response
#Fetch all Segments
Query
Response
#Fetch a Segment
You can fetch a specific Segment by providing its ID.
Query
Response