Browser URL parameters

Neo4j Browser supports some URL parameters defined in the query component. The query component is preceded by a question mark (?) and contains a query string that is a sequence of key–value pairs separated by an ampersand (&).

Connection frame

Pre-populate the connection frame with the connection URL and set the database.

The syntax is:

http://localhost:7474/browser?dbms=[connectionURL]&db=[databaseName]
http://localhost:7474/browser?connectURL=[connectionURL]&db=[databaseName]
Example 1. Connection URL and database
http://localhost:7474/browser?dbms=neo4j://alice@localhost:7687&db=neo4j123

This pre-populates the connection frame with:

  • Connect URL: neo4j://localhost:7687

  • Database: neo4j123

  • Username: alice

Pre-populate the editor

Pre-populate the editor with a command when Neo4j Browser starts. Supported browser commands are:

  • param - a single parameter

  • params - multiple parameters

  • edit - prefills the editor with a query

The syntax is:

http://localhost:7474/browser?cmd=[command]&arg=[argument]
Example 2. Param
:param example=>1
http://localhost:7474/browser?cmd=param&arg=example=>1
Example 3. Params
:params {example:1,foo:"bar"}
http://localhost:7474/browser?cmd=params&arg={example:1,foo:"bar"}
Example 4. Edit
match (n) return n
http://localhost:7474/browser?cmd=edit&arg=match (n) return n