Mimicked the slug api method.