working api demo