Skip to main content
URL source configuration form

Overview

The URL source type fetches data from a web address. Use it for API endpoints, hosted CSV/JSON files, or any data feed accessible via HTTP/HTTPS.

Configuration

Required Fields

FieldDescription
urlThe full URL to the data source (API endpoint or hosted file URL).

HTTP Options

These fields are nested under the options object.
FieldDescription
methodThe HTTP method to use: GET (default), POST, PUT, or PATCH.
headersCustom HTTP headers to include in the request (key-value pairs). Useful for API keys or custom tokens.
queryURL query parameters to append to the request (key-value pairs).
bodyThe request body (for POST, PUT, PATCH methods).
timeoutRequest timeout in milliseconds.
oauthDatasourceAuth ID for OAuth-protected APIs.

Authentication

For publicly accessible URLs, no additional configuration is needed.

Supported File Formats

The URL source automatically detects the response format. The following formats are supported:
FormatDescription
CSVComma-separated values. Delimiter is auto-detected (comma, semicolon, tab, pipe).
JSONStandard JSON files with a root array or object.
NDJSONNewline-delimited JSON (one JSON object per line).
XMLXML files — the root element path is auto-detected.
ParquetApache Parquet columnar format.
AvroApache Avro serialization format.
XLSXMicrosoft Excel files.
Compressed responses (.gz, .zip) are automatically decompressed before parsing.

PGP Decryption

The URL source supports fetching PGP-encrypted files. When pgpPrivateKey is configured, the response is decrypted before decompression and parsing.
FieldRequiredDescription
pgpPrivateKeyYesThe PGP/GPG private key in armored (ASCII) format.
pgpPassphraseNoThe passphrase for the private key, if encrypted.
Both armored (.asc) and binary (.pgp, .gpg) encrypted files are supported.
See the PGP Decryption guide for details on key generation, supported formats, and error handling.

Pagination

For APIs that paginate their responses, the URL source supports several pagination strategies:
Increment a query parameter (page number or offset) on each request.
FieldDescription
valueThe query parameter name (e.g. page, offset).
startAtThe initial value (default: 1). Some APIs start at 0.
subtypepage (page number) or offset (record offset).
You can optionally set maximumPage to cap the number of pages fetched during a sync.

Runtime Variables

For API endpoints that require dynamic parameters (e.g. current date, user-specific IDs), you can define variables that are resolved at fetch time. Each variable has:
FieldDescription
nameThe variable name used in the URL, headers, body, or query parameters.
defaultA static value or a dynamic expression evaluated at runtime.
primitiveThe data type (string, number, etc.).
Variables can be referenced in the URL, headers, body, and query parameters. This enables building dynamic URLs like https://api.example.com/products?since={{last_sync_date}}.

How It Works

  1. Reelevant sends an HTTP request to the configured URL with the specified method, headers, and body.
  2. If pagination is configured, subsequent pages are fetched automatically.
  3. The response is parsed based on the detected format.
  4. Fields are extracted and made available for mapping.
  5. On subsequent syncs, the URL is re-fetched and the data is updated.
Make sure your URL returns data in a supported format. The platform auto-detects the format from the response content type and content.