Spanish Diplomatic Missions and Consular Offices abroad do not offer foreign nationals a service to obtain Spanish Criminal Records Certificates.
However, if you need to obtain one, you can apply by mail.