Skip to content

HTTP Client

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy

Fetches data from an HTTP endpoint. Supports one-shot or periodic polling.

Configuration

yaml
source:
  kind: http_client
  url: "https://api.example.com/data"
  method: GET
  headers:
    Authorization: ${HTTP_CLIENT_AUTH_HEADER}
  auth_strategy: bearer
  auth_token: ${HTTP_CLIENT_AUTH_TOKEN}
  scrape_interval_seconds: 60
FieldDefaultDescription
url(required)HTTP endpoint URL
methodGETHTTP method (GET, POST, PUT)
headersMap of additional request headers
bodyRequest body string
auth_strategybasic or bearer
auth_user / auth_passwordCredentials for basic auth
auth_tokenToken for bearer auth
scrape_interval_secondsPolling interval; omit for one-shot

Namespace: http.{url_host}

CLI

bash
skippr connect source http-client \
  --url https://api.example.com/data \
  --method GET \
  --headers Authorization='Bearer your-token' \
  --body '{"include":"latest"}' \
  --auth-strategy bearer \
  --auth-token ${HTTP_CLIENT_AUTH_TOKEN} \
  --scrape-interval-seconds 60
FlagDescription
--urlHTTP endpoint URL
--methodHTTP method (default: GET)
--headers KEY=VALUEAdditional request header; repeat for multiple values
--bodyRequest body string
--auth-strategyAuthentication strategy such as basic or bearer
--auth-userUsername for basic auth
--auth-passwordPassword for basic auth
--auth-tokenToken for bearer auth
--scrape-interval-secondsPolling interval in seconds (omit for one-shot)

Authentication

Authentication is optional and depends on the upstream endpoint. For security best practices, we strongly advise against storing authentication values in skippr.yaml. Use environment variable interpolation instead: replace the relevant auth field with your own ${ENV_VAR} reference.

The relevant part of skippr.yaml looks like this:

yaml
source:
  kind: http_client
  auth_strategy: bearer
  auth_token: ${HTTP_CLIENT_AUTH_TOKEN}

Set the env var before running skippr:

macOS / Linux

bash
export HTTP_CLIENT_AUTH_TOKEN="your-token"

Windows PowerShell

powershell
$env:HTTP_CLIENT_AUTH_TOKEN = "your-token"

Windows Command Prompt

cmd
set HTTP_CLIENT_AUTH_TOKEN=your-token

Permissions or Network Requirements

The runner must be able to reach the configured URL, and the upstream service must allow the HTTP method, headers, and polling cadence you configure.

Troubleshooting

SymptomFix
401 or 403 responsesVerify credentials, bearer tokens, and any required request headers.
timeouts or empty responsesCheck the endpoint URL, method, timeout settings, and whether the service is rate limiting requests.

Next steps

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy