Place the grated potatoes in a clean kitchen towel and squeeze out as much moisture as possible.
In a large bowl, mix the grated potatoes, grated onion, cheddar cheese, beaten eggs, flour, salt, and black pepper until well combined.
Heat a thin layer of vegetable oil in a skillet over medium heat.
Scoop 2–3 tablespoons of the mixture into the pan for each pancake and flatten slightly with a spatula.
Cook for 3–4 minutes per side, or until golden brown and crispy.
Transfer to a plate lined with paper towels to remove excess oil.
Serve hot with sour cream, yogurt, or a sprinkle of herbs.