Add endpoint for public queries

Resolves #75.