Bulk upload your CSV Ads feed using the REST API. Learn how to use the REST API to automate regular uploads from your end. You’ll need to have a Van Now account so you can bulk- upload your ads.
What You’ll Need…
- Your API Key. Get this in your account area.
- A CSV Ads file with all your Ads in it.
- Either CURL or HTTPie if you want to send files from a script on MacOS/Windows/Linux.
Here, we’re going to upload an Ads file called my-latest-van-ads.csv by using the API key ABC1234567890DEF. Your actual API key will be much longer than this.
Windows 10
Using HTTPie
http.exe -f POST https://vannow.co.uk/wp-json/bpc/v1/spool/ ^ api_key=ABC1234567890DEF ^ file_format=csv ^ file_reader=dms14_advert_feed ^ mode=replace ^ posts_file@my-latest-van-ads.csv
Using curl
curl.exe -F "posts_file=@my-latest-van-ads.csv" ^ -F "api_key=ABC1234567890DEF" ^ -F "file_format=csv" ^ -F "file_reader=dms14_advert_feed" ^ -F "mode=replace" ^ "https://vannow.co.uk/wp-json/bpc/v1/spool/"