raw request

This block is part of the NS group and was last modified in core v15.0.0.

raw request v15.0.0

Perform a raw GET request against any NS Reisinformatie API path. Use this for endpoints without a dedicated block.

In pins 3 + flow
  • flow
    flow
  • Connection required
    nsconnection

    The NS connection.

  • Path required
    value

    API path, e.g. /api/v2/stations or /api/v3/price.

  • Query
    object

    Optional object of query parameters to send.

Out pins 5 + flow
  • flow
    flow
  • Connection
    nsconnection

    The NS connection.

  • Success
    condition

    True for a 2xx response.

  • Status code
    number

    The HTTP status code of the response.

  • Response
    object

    The decoded JSON response body.

  • Error
    value

    Error message if the request failed.

ns request
custom

A typical wiring for raw request: a function trigger starts the flow; open connection feeds the connection pin; value feeds the path pin; the flow out pin feeds debug.

Studio canvas example for the raw request block: typical wiring for raw request.

Version history

Introduced in v15.0.0.


Back to NS Return to the main group to view all sub-groups Back to NS Return to the group to view all blocks within this group