Cómo consumir una API en Android con Retrofit + Kotlin Serialization + Coil | MVVM paso a paso

En este tutorial construimos una app Android consumiendo una API REST usando Retrofit desde cero. Vamos a trabajar paso a paso sobre una aplicación real consumiendo datos remotos, deserializando JSON y renderizando imágenes desde internet usando Coil. 00:00 Introducción a una API 01:02 ¿Qué es Retrofit? 01:58 API REST que se utilizará 03:00 Repositorio a utilizar y explicación del proyecto 05:35 Configuración de Retrofit 13:00 Uso del objeto Retrofit en el MarsViewModel 17:59 Manejo de errores y estados de la app 31:20 Converter con Kotlin Serialization 39:41 Separación de capas: Data y UI 41:30 Creación del Repository 44:57 Inserción de dependencias 1:06:45 Configuración de Coil y carga de imágenes desde internet 1:14:08 Grid – Mostrar listado de imágenes 1:20:25 Card 1:22:18 Botón de reintentar ¿Qué vas a aprender? ✅ Cómo agregar dependencias manualmente en Android Studio ✅ Configuración inicial de Retrofit ✅ Uso de converters con Kotlin Serialization ✅ Deserialización del JSON recibido desde la API ✅ Separación de capas Data + UI siguiendo una arquitectura recomendada ✅ Consumo de API desde el ViewModel ✅ Manejo de errores con try/catch ✅ Estados de interfaz: loading, success y error ✅ Mostrar imágenes desde internet con Coil ✅ Retry cuando ocurre un error en pantalla Código base del proyecto Repositorio inicial - https://github.com/ing-fabiansuarez/M... API utilizada en el tutorial Mars Photos API - https://android-kotlin-fun-mars-serve... Tecnologías utilizadas Kotlin Android Studio Retrofit Kotlin Serialization Coil MVVM Coroutines Si te sirve el contenido 👍 Dale like si te ayudó 💬 Déjame tus dudas en comentarios 🔔 Suscríbete para más contenido de Android y desarrollo móvil

Spring Security Basic Authentication Explained & Implemented | Secure Your APIs in Minutes 🔐
▶︎

Spring Security Basic Authentication Explained & Implemented | Secure Your APIs in Minutes 🔐

Minimal Soul Funk ☄️ - Dry & Midnight Grooves | for new beginning
▶︎

Minimal Soul Funk ☄️ - Dry & Midnight Grooves | for new beginning

Android 17 sucks. So I put Linux on a phone.
▶︎

Android 17 sucks. So I put Linux on a phone.

Building an AI Dark Factory:  A Codebase That Writes Its Own Code, Live
▶︎

Building an AI Dark Factory: A Codebase That Writes Its Own Code, Live

Power Automate Beginner to Pro Tutorial [Full Course]
▶︎

Power Automate Beginner to Pro Tutorial [Full Course]

Türkei – USA Highlights | Gruppe D, FIFA WM 2026 | sportstudio
▶︎

Türkei – USA Highlights | Gruppe D, FIFA WM 2026 | sportstudio

What Nobody Tells You About Being a Quant
▶︎

What Nobody Tells You About Being a Quant

APRENDE MATEMÁTICAS DESDE CERO. Nivel Básico
▶︎

APRENDE MATEMÁTICAS DESDE CERO. Nivel Básico

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra
▶︎

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

AI Is Creating A Rare Opportunity For Investors. How Jim Roppel Is Playing It. | Investing With IBD
▶︎

AI Is Creating A Rare Opportunity For Investors. How Jim Roppel Is Playing It. | Investing With IBD

DIRECTO | LORENZO RAMÍREZ: LOS SECRETOS DEL ALTO AL FUEGO, ROL DE CHINA Y ÚLTIMA BALA ANTE LA CRISIS
▶︎

DIRECTO | LORENZO RAMÍREZ: LOS SECRETOS DEL ALTO AL FUEGO, ROL DE CHINA Y ÚLTIMA BALA ANTE LA CRISIS

FÍSICA DESDE CERO. Curso inicial, lo más básico
▶︎

FÍSICA DESDE CERO. Curso inicial, lo más básico

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source
▶︎

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source

Ignacio Cirac: Física Cuántica y su Tecnología | Quantum FM #18
▶︎

Ignacio Cirac: Física Cuántica y su Tecnología | Quantum FM #18

Complete Generative AI Course For Free | Gen AI Course 2026 | Intellipaat
▶︎

Complete Generative AI Course For Free | Gen AI Course 2026 | Intellipaat

Place your brain in the frequency of wealth, prosperity and total abundance - Attraction Law
▶︎

Place your brain in the frequency of wealth, prosperity and total abundance - Attraction Law

This Commodore VIC-20 Hasn't Been Turned On For 30 Years- Can We Make It Work?
▶︎

This Commodore VIC-20 Hasn't Been Turned On For 30 Years- Can We Make It Work?

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra
▶︎

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

Free Event: Power BI Beginner to Pro 2026 Edition - Full Hands-On Tutorial
▶︎

Free Event: Power BI Beginner to Pro 2026 Edition - Full Hands-On Tutorial

Build and Deploy Claude Skills and MCP Servers | The Complete 2026 Guide
▶︎

Build and Deploy Claude Skills and MCP Servers | The Complete 2026 Guide