---
name: 888desturl-url-trace
description: Use when you need to trace a URL through HTTP redirects, meta refresh, or JavaScript navigation by calling the live 888desturl API for the current deployment. Supports final destination discovery, LIFF URL inspection, and redirect-chain debugging.
---

# 888desturl URL Trace

## Environment Setup

- **Base URL**: `https://url.create360.ai`
- **Trace Endpoint**: `https://url.create360.ai/api/trace?url=<encoded_target_url>`
- **Final-Only Endpoint**: `https://url.create360.ai/api/final?url=<encoded_target_url>`
- **Short CLI Endpoint**: `https://url.create360.ai/api/f?url=<encoded_target_url>`
- **Method**: `GET`
- **Content Type**: `application/json`

## When To Use

Use this skill when the user wants to:

- find the final destination of a shortened or redirected URL
- inspect LIFF URLs or frontend-driven redirect flows
- verify whether a redirect is HTTP-based or browser-driven
- debug a redirect chain with status codes and timing details

## Workflow

1. Validate that the input is a full `http://` or `https://` URL.
2. URL-encode the target URL.
3. If the user is in a shell or wants the shortest possible response, call:
   `https://url.create360.ai/api/f?url=<encoded_target_url>`
4. If the user only wants the destination, call:
   `https://url.create360.ai/api/final?url=<encoded_target_url>`
5. If the user wants the full redirect chain, call:
   `https://url.create360.ai/api/trace?url=<encoded_target_url>`
6. Read `final_url` first and present it as the main answer.
7. Summarize `redirect_count` when using the trace endpoint.
8. If the user wants more detail, explain the ordered `chain`.

## Response Shape

Top-level fields:

- `final_url`
- `input_url`
- `redirect_count`
- `chain`

Each `chain` item may contain:

- `step`
- `url`
- `from_url`
- `type`
- `status_code`
- `status_text`
- `method`
- `duration_ms`

Trace responses may also include:

- `terminated_reason`
- `terminated_message`
- `loop_detected`

Error responses may include:

- `error_code`
- `error_message`

## Output Guidance

- Lead with `final_url`.
- Treat `client_redirect` as an important signal that the redirect happened in the browser, such as `meta refresh` or JavaScript navigation.
- If `terminated_reason` is not `completed`, explain that the result is partial and surface `terminated_message`.
- If the API returns an error, surface the error clearly and do not invent redirect results.

## Example

```text
GET https://url.create360.ai/api/trace?url=https%3A%2F%2Fliff.line.me%2F1654038149-8ALRMLrb%2Fhuc7r%2F%3Furl%3Dstore
```

## CLI Shortcut Example

```text
curl -s "https://url.create360.ai/api/f?url=https://aiurl.tw/104"
```
