---
title: "Redirect a tracked outbound product link"
method: GET
path: "/api/go"
tags: ["redirects"]
---

# Redirect a tracked outbound product link

`GET /api/go`

## Request

- Base URL: `https://voltplan.app`
- URL: `https://voltplan.app/api/go`
- Auth: none declared

Resolves an outbound product link and answers 302 to the target, or 307 to the VoltPlan homepage when nothing resolves. Branches by priority: (1) `bom` — curated `bom_products` row: the row's URL (Amazon ASIN or manufacturer-direct) when its country matches the visitor's region (`universal` rows count as `de`), else the same slot's row curated for the visitor's country, else a localized Amazon search; unknown or inactive rows → 307. (2) `q` — stored affiliate link of `component_id`/`c` for the visitor's region when one exists, otherwise a localized Amazon search for `q`; never 307. (3) `component_id`, `c` or a known legacy `p` slug (`sterling-pro-combi-s-1600`, `renogy-rover-40a`) — stored affiliate link for the region, otherwise a localized Amazon search for the component name; unknown component → 307. (4) No usable parameter, including an unknown `p` slug → 307. `component_id` takes precedence over `c`, both over `p`. Region comes from the region parameters in their listed precedence, falling back to `de`. The click is recorded in `component_click_events` (with `User-Agent` and `Referer`), except in development or for bot user agents.

## Query parameters

- `bom` string
- `q` string
- `component_id` string
- `c` string
- `p` string
- `source` string
- `component_name` string
- `component_type` string
- `region` string
- `country` string

## Headers

- `x-voltplan-region` string
- `x-voltplan-country` string
- `x-vercel-ip-country` string
- `cf-ipcountry` string
- `x-country-code` string
- `x-forwarded-for` string
- `x-real-ip` string
- `accept-language` string

## Other responses

- `302`: Redirect to the resolved target: a stored regional affiliate link (Amazon product page carrying the region's affiliate tag, or an untagged manufacturer-direct URL from a curated BOM row) or a localized Amazon search on the visitor's marketplace.
- `307`: Homepage fallback (`NEXT_PUBLIC_BASE_URL`, default `https://voltplan.app/`): unknown or inactive `bom` row, unknown component in the component branch, unknown `p` slug, or no usable parameter. No `Cache-Control` header, no body.

---

[API](https://skmtc.dev/voltplan/apis/voltplan-api.md) · [All operations](https://skmtc.dev/voltplan/apis/voltplan-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voltplan/apis/voltplan-api/revisions/575b86a7af92?raw)
