In this paper, we define generalized $(\sigma,\tau)$-$n$-derivation for any mappings $\sigma$ and $\tau$ of a near ring $N$ and also investigate the structure of a $3$-prime near ring satisfying certain identities with generalized $(\sigma,\tau)$-$n$-derivation. Moreover, we characterize the aforementioned mappings.