apoc.data.url

Function APOC Core

apoc.data.url('url') as {protocol,host,port,path,query,file,anchor,user} | turn URL into map structure

Signature

apoc.data.url(url :: STRING?) :: (MAP?)

Input parameters

Name Type Default

url

STRING?

null

Usage Examples

WITH apoc.data.url("https://www.neo4j.com/developer/graph-data-science?q=neo4j#heading-1") AS output
UNWIND keys(output) AS key
RETURN key, output[key] AS value;
Table 1. Results
key value

"path"

"/developer/graph-data-science"

"protocol"

"https"

"file"

"/developer/graph-data-science?q=neo4j"

"port"

NULL

"query"

"q=neo4j"

"anchor"

"heading-1"

"host"

"www.neo4j.com"

"user"

NULL