A programmable content API