There are three buses going directly from San Sebastian to the airport in Santander.
The schedule below was for February 22, 2019. Check the website for another day: www.alsa.es
As you can see, the bus takes about 3 hours to get there and it costs aprox. 13,74€
The bus station in San Sebastian is located in Paseo Federico García Lorca 1