Peel and grate the potatoes using a box grater or food processor. Place grated potatoes in a clean kitchen towel and squeeze out as much liquid as possible. This step is essential for crispiness.
Grate the onion and mix it into the potatoes. Onion adds flavor and prevents discoloration.
In a large bowl, combine the grated potatoes and onion with eggs, flour, salt, pepper, and optional spices. Stir until well mixed.
Pour vegetable oil into a skillet and heat over medium-high until shimmering.
Scoop spoonfuls of potato mixture and flatten into patties. Fry 3–4 minutes per side until golden brown and crispy. Place on paper towels to drain excess oil.
Serve immediately with sour cream, applesauce, or your favorite dipping sauce.