Get field types of a content type
You can obtain the field type using Entity field manager.

$definitions = \Drupal::service('entity_field.manager')
  -&gt;getFieldStorageDefinitions('node');

$field_type = $definitions['field_image']-&gt;getType();