For the complete documentation index, see llms.txt. This page is also available as Markdown.

JSON

The JSON destination in Coupler.io generates a stable, publicly accessible URL that serves your data as a JSON file. Every time your data flow runs, the URL updates with fresh data — making it easy to feed any tool, script, or API that consumes JSON.

This is one of the most flexible destinations available. If your target tool isn't natively supported by Coupler.io, there's a good chance it can read from a JSON endpoint.

Why use JSON as a destination?

  • Universal compatibility — any tool that can make an HTTP request can consume your data, including custom scripts, webhooks, and low-code platforms

  • Stable URL — the link never changes between runs, so you set it up once in your target tool, and data refreshes automatically

  • No authentication setup on the destination side — no database credentials, no OAuth, just a URL with an access token

  • Works with any Coupler.io source — pull data from HubSpot, Shopify, Google Ads, Asana, or any other supported source and expose it as JSON

Prerequisites

  • Your target tool or script must be able to make GET requests to an HTTPS URL

Quick start

How to connect

1

Add a source to your data flow. Log in to Coupler.io and create a new data flow. Select your data source (for example, HubSpot, Shopify, or Google Analytics) and configure it to pull the data you need.

2

Select JSON as the destination. In the destination step of your data flow setup, choose JSON from the list of available destinations.

3

Generate the integration URL. Click Generate link. Coupler.io will create a unique URL for your data flow. This URL is stable — it stays the same across every run, while the data it serves updates each time the flow runs.

4

Run the data flow. Click Save and Run to execute the data flow for the first time. This initial run is required to populate the URL with data. The JSON endpoint will return a 404 error until at least one successful run has completed.

5

Copy and use your URL. Once the run completes, copy the generated URL. Paste it into Postman, your custom script, or any other tool that consumes JSON. The data will be available immediately.

If you ever need to invalidate the current URL (for example, if the access token was exposed), click Update to generate a new link. Any integrations using the old URL will need to be updated.

Supported features

Feature
Supported

Replace mode

Yes

Append mode

No

Automatic scheduling

Yes

Type enforcement

No

Templates

No

JSON common issues

Connection issues

404 Not Found when accessing the JSON URL

This is the most common issue with the JSON destination. The URL exists but returns a 404 error because the data flow has never completed a successful run.

Fix: Go back to your data flow in Coupler.io and click Save and Run. Wait for the run to complete successfully. Once at least one run has finished, the URL will return data.

URL stops working or returns 404 after previously working

If the URL was working and then stopped, the access token may have been regenerated. This happens when someone clicks the Update button in the destination settings, which creates a new URL and invalidates the old one.

Fix: Open the data flow in Coupler.io, go to the destination settings, and copy the current URL. Update any tools or scripts that were using the old link.

JSON URL only works in the browser tab where it was downloaded (blob: URL)

Some browsers, particularly Firefox, generate a blob: URL when you click to download the file directly. This is a browser-specific behavior and the blob URL is only valid in that session.

Fix: Use the integration URL from Coupler.io directly (the https://app.coupler.io/export/w/... format), not a blob URL generated by your browser. Paste this URL into your target tool or HTTP client.

Data issues

Nested or unflattened JSON objects from source data

Some sources (such as Pipedrive, Asana, or Shopify) return fields that contain nested JSON objects or arrays. These are passed through as-is and may not be flattened into simple key-value pairs.

Fix: Use Coupler.io's transformation options to reshape the data before it reaches the JSON destination. If a specific field needs flattening (for example, Asana custom fields or Shopify metafields), check whether the source connector supports a configuration option to expand those fields. If not, you may need to handle the transformation in the consuming tool.

Missing or empty columns in the JSON output

If a column appears empty in the JSON output, it may be that the source returned no value for that field during the last run, or new columns added after the first run are hidden by default in the preview.

Fix: Re-run the data flow and check the preview again. If the column is new, look for a toggle in the data preview to show hidden columns. If the field is genuinely empty from the source, verify the data exists in the source platform itself.

Permission errors

Access token is invalid or expired

The JSON URL includes an access token as a query parameter. If this token has been invalidated (by clicking Update in destination settings), anyone using the old URL will receive an authentication error.

Fix: Retrieve the new URL from your data flow's destination settings and distribute it to any users or tools that need access. Treat the access token like a password — avoid sharing it publicly.

JSON FAQ

What is the JSON destination used for?

The JSON destination generates a stable HTTPS URL that serves your Coupler.io data as a JSON file. You can use this URL to feed data into tools that aren't natively supported by Coupler.io — such as Power BI (via Web connector), custom scripts, automation platforms like Make or Zapier, or any API-based workflow.

Does the URL change every time the data flow runs?

No. The URL stays the same across every run. Only the data it serves is updated. This means you can configure your downstream tool once and it will always fetch the latest data. If you click Update in the destination settings, a new URL is generated and the old one is invalidated.

Why do I get a 404 error when I open the JSON URL?

The URL returns a 404 until the data flow has completed at least one successful run. Go to your data flow, click Save and Run, and wait for the run to finish. After that, the URL will return data.

If you're using the JSON destination with Power BI and seeing a 404, this is almost always the cause. See the Power BI destination article for more details.

Can I use the JSON destination with Power BI?

Yes. Paste the integration URL into Power BI's Get Data → Web connector. Make sure the data flow has run at least once before doing this, otherwise Power BI will receive a 404 error. Once connected, you can refresh the Power BI dataset to pull in the latest data from Coupler.io.

Is there an Append mode for the JSON destination?

No. The JSON destination only supports Replace mode — each run overwrites the data at the URL with the latest export. If you need to accumulate historical data over time, consider using a database destination like BigQuery or PostgreSQL instead.

How do I handle nested JSON fields from sources like Shopify or Asana?

Some sources return fields as nested objects or arrays (for example, Shopify metafields or Asana custom fields). Coupler.io passes these through without automatically flattening them. You can use Coupler.io's transformation features to reshape data before it reaches the destination, or handle the parsing in your consuming tool or script.

Can any Coupler.io source send data to the JSON destination?

Yes. The JSON destination works with any source available in Coupler.io, including HubSpot, Google Ads, Facebook Ads, Pipedrive, Google Sheets, and more. You can also combine multiple sources in a single data flow using Join, Append, or Aggregate transformations.

Is the JSON URL secure?

The URL includes an access token that controls who can read the data. Anyone with the full URL can access the exported data, so treat it like a password. Avoid posting it in public places. If the token is compromised, click Update in the destination settings to generate a new URL.

How do I test that my JSON URL is working correctly?

Paste the URL into an HTTP client like Postman, or simply open it in a browser. If the data flow has run successfully, you'll see a JSON array of your data. If you see a 404, the flow hasn't run yet, or the URL has been regenerated.

Last updated

Was this helpful?