How to get attribute set details by id Magento 2?

You can retrieve the attribute set data by id in Magento 2 to know about attribute details.

You can use Magento\Catalog\Api\AttributeSetRepositoryInterface to retrieve the attribute set info with get($attributeId) method.

Output will be entity_type_id, attribute_set_name and sort order of the attribute set.

Call getAttributeSet method from the PHP class or tempalte file to explore the result,