> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: DeviceFamily

> Extract the device family name (iPhone, iPad, Galaxy) from a user agent string using ua_parser. Use for device analytics in ETL data pipelines.

## Description

Extract device family (device name) from user agent string, based on [ua\_parser](https://github.com/tobie/ua-parser "Link: https://github.com/tobie/ua-parser").

## Syntax

`DeviceFamily(user_agent_string)`

## Examples

`DeviceFamily('Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; Crebergallery spider robot)')` returns 'Spider'

## Return value datatype

string

## Notes

Returns 'Other' if its device family and version can't be extracted from string.

## Impact of null value

If input is null, returns null.
