apoc.data.url

Details

Syntax

apoc.data.url(url)

Description

Turns a URL into a MAP.

Arguments

Name

Type

Description

url

STRING

The URL to extract metadata from.

Returns

MAP

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;
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