> For the complete documentation index, see [llms.txt](https://docs.coupler.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coupler.io/destinations/categories/api/json.md).

# JSON

Export data to a stable JSON URL with Coupler.io. Universal compatibility for any tool, script, or API that consumes JSON feeds.

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

{% hint style="success" %}
The JSON destination requires almost no configuration on the destination side — most of the work happens in your source setup. Focus on getting your source data right before generating the URL.
{% endhint %}

## How to connect

{% stepper %}
{% step %}
**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.
{% endstep %}

{% step %}
**Select JSON as the destination.** In the destination step of your data flow setup, choose **JSON** from the list of available destinations.
{% endstep %}

{% step %}
**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.
{% endstep %}

{% step %}
**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.
{% endstep %}

{% step %}
**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.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
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.
{% endhint %}

## Supported features

| Feature              | Supported |
| -------------------- | --------- |
| Replace mode         | Yes       |
| Append mode          | No        |
| Automatic scheduling | Yes       |
| Type enforcement     | No        |
| Templates            | No        |

## JSON common issues

### Connection issues

<details>

<summary>404 Not Found when accessing the JSON URL</summary>

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.

{% hint style="danger" %}
Do not share or use the JSON URL in any downstream tool until the first successful run is complete. The 404 will persist until data has been written to the endpoint.
{% endhint %}

</details>

<details>

<summary>URL stops working or returns 404 after previously working</summary>

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.

</details>

<details>

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

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.

</details>

### Data issues

<details>

<summary>Nested or unflattened JSON objects from source data</summary>

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.

{% hint style="warning" %}
Nested JSON fields are a known limitation for certain sources. If your use case requires flat data, consider using a spreadsheet destination like Google Sheets and consuming data from there instead.
{% endhint %}

</details>

<details>

<summary>Missing or empty columns in the JSON output</summary>

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.

</details>

### Permission errors

<details>

<summary>Access token is invalid or expired</summary>

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.

{% hint style="warning" %}
The access token in the JSON URL grants read access to your exported data. Do not post the full URL in public forums or issue trackers.
{% endhint %}

</details>

## JSON FAQ

<details>

<summary>What is the JSON destination used for?</summary>

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.

</details>

<details>

<summary>Does the URL change every time the data flow runs?</summary>

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.

</details>

<details>

<summary>Why do I get a 404 error when I open the JSON URL?</summary>

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.

{% hint style="info" %}
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.
{% endhint %}

</details>

<details>

<summary>Can I use the JSON destination with Power BI?</summary>

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.

</details>

<details>

<summary>Is there an Append mode for the JSON destination?</summary>

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.

</details>

<details>

<summary>How do I handle nested JSON fields from sources like Shopify or Asana?</summary>

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.

</details>

<details>

<summary>Can any Coupler.io source send data to the JSON destination?</summary>

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.

</details>

<details>

<summary>Is the JSON URL secure?</summary>

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.

</details>

<details>

<summary>How do I test that my JSON URL is working correctly?</summary>

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.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.coupler.io/destinations/categories/api/json.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
