nyno-http-get

nyno-http-get — Perform an HTTP GET request in a workflow


Description

- step: nyno-http-get
  args:
    - '${URL}'

The nyno-http-get step performs an HTTP GET request to the specified URL. The response is stored in the workflow context (${prev} by default or a custom context key via set_context).

Usage in a workflow YAML:

workflow:
  - step: nyno-http-get
    args: ['https://example.com/api/data']

Parameters

Parameter Type Description
url string The URL to perform the GET request against. Must include protocol (http:// or https://).

Return Values

{
  "HTTP_RESPONSE": "…response body as string…",
  "HTTP_STATUS": 200,
  "HTTP_ERROR": null
}
{
  "HTTP_RESPONSE": "...",
  "HTTP_STATUS": 404,
  "HTTP_ERROR": "HTTP error 404"
}
{
  "usageError": "No URL provided"
}

Behavior


Examples

Example #1 — Basic GET request

workflow:
  - step: nyno-http-get
    args: ['https://api.github.com']

Stores the response in ${prev}:

{
  "HTTP_RESPONSE": "{...}",
  "HTTP_STATUS": 200,
  "HTTP_ERROR": null
}

Example #2 — Custom context key

workflow:
  - step: nyno-http-get
    args: ['https://api.github.com']
    context:
      set_context: github_api

Stores the response under ${github_api}.

Example #3 — Using response in next step

workflow:
  - step: nyno-http-get
    args: ['https://nyno.dev/test-get']
  - step: ai-mistral-text
    args:
      - "Does this look like a healthy HTTP response: ${prev}"

Notes


See Also