Skip to main content


This is a simple Sequence that pulls data from JSON url every x seconds and writes it to Instance stdout endpoint. The Sequence takes two arguments:

  • jsonUrl - it is the address where the data in json format is available. List of free and open API that you can use as jsonUrl argument:

    • Predict age based on a name: <>
    • Cocktail recipes: <>
    • Weather forecasts: <>
    • Random dog images: <>
  • interval - time given in milliseconds (1s = 1000ms), with this parameter we define how often the request is sent to the API, the time should be given in milliseconds, for example, providing this argument with a value of 5000 will result in sending the request every 5 seconds.


❗ Remember to setup transform-hub locally or use the platform's environment for the sequence deployment.

Sequence is ready to use, id doesn't use any external modules so no dependencies need to be installed.

Open the terminal and run the following commands:

# go to 'javascript' directory
cd javascript

# deploy 'json-url-output' Sequence
si seq deploy json-url-output --args [\"\",10000]

# see the Instance output
si inst output -



$ si inst output -
{ name: 'bella', age: 35, count: 40138 }
{ name: 'bella', age: 35, count: 40138 }

The request is sent to API every 10 seconds, so the result will be printed out after every request until the Instance is stopped.

Was it helpful?

Didn't find information needed?

Join our Scramjet Community on Discord, where you can get help from our engineers directly.