Exploring linear and nonlinear electromagnetic responses in topological materials