cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Apocl.load xml,json,csv

Hi there,
is there a possibility to call apoc.load.xml / apocl.load.json with http(s) post method?

regards
Thomas

1 ACCEPTED SOLUTION

Hello Michael,
thank you for the reply. Great to hear.

thumbs up!

Thanks
Thomas

View solution in original post

5 REPLIES 5

certainly apoc.load.json supports https:// as I've done it and as described at

Hi dana,
well, not only https. get
but also other methods of http(s) like http(s) post http(s) put ... etc

see

actualy some sites do provide their data in form of post requests, this is due to the limitations of parameters in http get scenarios.
regards
Thomas

ah sorry. misread the part about POST . let me further research

You can use apoc.load.jsonParams(url, config, payload) and pass {method:"POST"} in the config.

see this example

call apoc.load.jsonParams("https://neo4j.com/docs/search/", {method:"POST"},apoc.convert.toJson({query:"pagecache",version:"3.5"}))

Hello Michael,
thank you for the reply. Great to hear.

thumbs up!

Thanks
Thomas

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online