Added IP query endpoint and API docs.