O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing Neo4j from the command line using curl

Curl is a popular command-line tool used to access and transfer the data using various protocols. Because the REST API uses the HTTP protocol to transfer data, the curl tool becomes a command-line tool that is used to access the REST API, which is exposed by the Neo4j graph database server.

In this recipe, we will learn how to access the Neo4j graph database server using curl.

Getting ready

The service root endpoint by default is http://host:port/db/data/, which can also be seen through the web interface by opening the endpoint URL in the browser. You will see something similar to this:

Getting ready

How to do it... ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required