# LINE FX Exchange Rate Wiper

Template for extracting exchange rate from LINE-FX via URLs.

- Template page: [https://www.octoparse.com/template/line-fx-exchange-rate-scraper](https://www.octoparse.com/template/line-fx-exchange-rate-scraper)
- Categories: Finance
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from listing pages.

## Output

The current workflow extracts 5 fields, including `Buy`, `Date`, `Pair`, `Sell`, `Time`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Enter URL (up to 100 per run) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Enter URL (up to 100 per run)

Required. URL Constraints: minLength=1; maxLength=10000.

## How to Use

# LINE FX Exchange Rate Wiper

Collects exchange rates from LINE-FX via URLs. Data source: [Line Fx](https://line-fx.com/).

## Pricing

This template currently has no per-line charge.

## Output Fields

- `Pair`
- `Date`
- `Time`
- `Sell`
- `Buy`

## Input

- **Enter URL (up to 100 per run)** (required): Enter the source URL.

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Complete the input fields listed above.
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

## Scheduling and Export

- Run this template locally or in the cloud.
- Export rows to CSV, Excel, JSON, databases, or cloud storage, or send them to reporting and AI workflows through Octoparse APIs.
- Schedule recurring runs and reuse collected data through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates).
- Scheduling and API access may require a paid Octoparse plan.
- For local scheduled runs, keep your computer and Octoparse open.

## Limitations

- Collects only the fields listed in Output from listing pages; it does not add data that Line Fx does not display.
- `Time`, `Sell`, and `Buy` can be empty when the source record does not provide them.

## Tips

- Start with one or a few inputs and review the returned rows before scaling the task.
- Use the most specific valid `Enter URL (up to 100 per run)` to reduce unrelated or duplicate records.
- Use a stable URL or identifier from `Pair`, `Date`, `Time`, `Sell`, and `Buy` as the deduplication key when available.

## Notes

テンプレートをカスタマイズしたい場合、お気軽にsupport@octoparse.comまでお問い合わせください。

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Gaitame Forex Rates Scraper](https://www.octoparse.com/template/gaitame-forex-rates-scraper)
- [Rossmann Online Data Scraper (Produkt Listing)](https://www.octoparse.com/template/rossmann-online-data-scraper-produkt-listing)
- [Rossmann Online Data Scraper (Produkt Details)](https://www.octoparse.com/template/rossmann-online-data-scraper-produkt-details)
- [T-Online News Scraper](https://www.octoparse.com/template/t-online-nachrichten-scraper)
- [Google Scholar Scraper (Batch Generate URL)](https://www.octoparse.com/template/google-scholar-scraper-batch-generate-url)

## Input Schema

```json
{
  "title": " LINE FX Exchange Rate Wiper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "enter_URL": {
      "title": "Enter URL (up to 100 per run)",
      "description": "URL",
      "type": "string",
      "minLength": 1,
      "maxLength": 10000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "enter_URL"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "enter_URL": "https://line-fx.com/market/swap-calendar/past31Days"
}
```

Example 2

```json
{
  "enter_URL": "https://line-fx.com/market/swap-calendar/past31Days"
}
```

Example 3

```json
{
  "enter_URL": "https://line-fx.com/market/swap-calendar/past31Days"
}
```

Example 4

```json
{
  "enter_URL": "https://line-fx.com/market/swap-calendar/past31Days"
}
```

Example 5

```json
{
  "enter_URL": "https://line-fx.com/market/swap-calendar/past31Days"
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Buy": {
      "type": "string",
      "description": ""
    },
    "Date": {
      "type": "string",
      "description": ""
    },
    "Pair": {
      "type": "string",
      "description": ""
    },
    "Sell": {
      "type": "string",
      "description": ""
    },
    "Time": {
      "type": "string",
      "description": ""
    }
  },
  "title": " LINE FX Exchange Rate Wiper output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Buy": "114",
  "Date": "11/12(木)",
  "Pair": "USD/JPY",
  "Sell": "-124",
  "Time": "1"
}
```

Example 2

```json
{
  "Buy": "0",
  "Date": "11/09(月)",
  "Pair": "EUR/JPY",
  "Sell": "0",
  "Time": "0"
}
```

Example 3

```json
{
  "Buy": "0",
  "Date": "11/01(日)",
  "Pair": "GBP/JPY",
  "Sell": "0",
  "Time": "0"
}
```

Example 4

```json
{
  "Buy": "180",
  "Date": "10/14(水)",
  "Pair": "EUR/JPY",
  "Sell": "-210",
  "Time": "3"
}
```

Example 5

```json
{
  "Buy": "138",
  "Date": "10/08(木)",
  "Pair": "GBP/JPY",
  "Sell": "-148",
  "Time": "1"
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "line-fx-exchange-rate-scraper",
  "taskName": "LINE FX Exchange Rate Wiper",
  "parameters": "{\"enter_URL\":\"https://line-fx.com/market/swap-calendar/past31Days\"}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"enter_URL\":\"https://line-fx.com/market/swap-calendar/past31Days\"}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "line-fx-exchange-rate-scraper",
        "taskName": "LINE FX Exchange Rate Wiper",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "line-fx-exchange-rate-scraper",
  "taskName": "LINE FX Exchange Rate Wiper",
  "parameters": "{\"enter_URL\":\"https://line-fx.com/market/swap-calendar/past31Days\"}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `line-fx-exchange-rate-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/line-fx-exchange-rate-scraper.json)
- [Manifest](https://www.octoparse.com/templates/line-fx-exchange-rate-scraper-manifest.json)
