I have imported a dataset from a url http://api.gdeltproject.org/api/v1/gkg_geojson?QUERY=TERROR%22&TIMESPAN=1440&OUTPUTFIELDS=url,name,sharingimage and I want to sync it now using API.

I followed the instructions here https://carto.com/docs/carto-engine/import-api/sync-tables and typed in

curl -v -H "Content-Type: application/json" -d '{"http://api.gdeltproject.org/api/v1/gkg_geojson?QUERY=TERROR%22&TIMESPAN=1440&OUTPUTFIELDS=url,name,sharingimage":"https://public.url.to.file/sample_file", "interval":"3600"}' "https://sengyapglobalmomentum.carto.com/api/v1/synchronizations/?api_key=API_KEY"

However, this error shows up

Did I carried out any wrong steps?

  • Please include any errors as text rather than pictures. That way they are available to future searches by anyone having the same problem. Don't forget to take the Tour to learn about our focussed Q&A format.
    – PolyGeo
    Dec 22, 2016 at 7:27

1 Answer 1


The Curl operation is not done in CARTO. You would need to open the computer Terminal and write the Curl command.

Curl is a a command line tool for doing all sorts of URL manipulations and transfers. Here you can find a tutorial for using Curl.

On the other hand, I would strongly recommend you to change your API KEY as soon as possible. Anyone with access to your api key can download or modify your data without your permission.

  • I have changed the API key. Thank you. So my curl operation is correct, except that it should be keyed into the computer Terminal, not SQL table?
    – Geomap
    Dec 22, 2016 at 7:37
  • 1
    exactly :) If you are using windows, you would need to install Curl. Explained here: stackoverflow.com/questions/9507353/…
    – oriolbx
    Dec 22, 2016 at 8:10
  • If I am installing Curl, do I still need to use the computer Terminal / Command Prompt?
    – Geomap
    Dec 22, 2016 at 8:39
  • yes, you need to use it
    – oriolbx
    Dec 22, 2016 at 8:49
  • I typed in the long curl command in command prompt, but it returns with a message that says curl: no URl specified. Do you know what it means?
    – Geomap
    Dec 23, 2016 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.