# Kojima Pet Supplies Details Scraper

This template extracts pet product information (title, price, URL, etc.) from the KOJIMA pet product mail order website by keywords.

- Template page: [https://www.octoparse.com/template/kojima-pet-supplies-details-scraper](https://www.octoparse.com/template/kojima-pet-supplies-details-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `CLOUD`

## 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 detail pages.

## Output

The current workflow extracts 11 fields, including `JANコード`, `セール価格`, `ページのURL`, `メーカー名`, `代謝エネルギー`, `価格`, `保証分析値`, `原材料`, `商品タイトル`, `現在の時刻`, `画像のURL`.

## 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 keywords (up to 50 per run), Number of pages (1~100) and start the template in cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Enter keywords (up to 50 per run)

Required. kw Constraints: minItems=1; maxItems=50; items.minLength=1; items.maxLength=50.

### Number of pages (1~100)

Optional.

## How to Use

# Kojima Pet Supplies Details Scraper

Extracts pet product information (title, price, URL, etc.) from the KOJIMA pet product mail-order website by keywords. Data is collected from [Pet Shop](https://pet-shop.jp/).

**Pricing:** This template currently has no per-line charge. Octoparse plan or resource limits may still apply.

## Input

- **Enter keywords (up to 50 per run)** *(required)*: Enter one or more values, one per line.
- **Number of pages (1~100)** *(optional)*: Enter a number.

## How to Use

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

## Output Fields

The template returns these fields from product detail pages:

- `商品タイトル`
- `価格`
- `セール価格`
- `メーカー名`
- `JANコード`
- `保証分析値`
- `原材料`
- `代謝エネルギー`
- `ページのURL`
- `画像のURL`
- `現在の時刻`

## Limitations

- Only the fields listed above are collected; data that Pet Shop does not display is not added.
- `ページのURL`, `画像のURL`, and `現在の時刻` may be empty when the source record does not provide them.

## Tips

- Start with one or a few keyword inputs and review the returned rows before scaling.
- Use the most specific valid keywords to reduce unrelated or duplicate records.
- Use a stable URL or identifier from the output fields as the deduplication key when available.

## Scheduling and API

- Schedule recurring cloud runs and export rows to CSV, Excel, JSON, databases, or cloud storage.
- Integrate with reporting or AI workflows via 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.

## 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

- [IDOG&ICAT Pet Supplies Scraper](https://www.octoparse.com/template/idogandicat-pet-supplies-scraper)
- [Peppy Pet Supplies Scraper](https://www.octoparse.com/template/peppy-pet-supplies-scraper)
- [Contact Details Scraper](https://www.octoparse.com/template/contact-details-scraper)
- [YouTube Details & Comments Scraper (Free)](https://www.octoparse.com/template/youtube-details-comments-scraper-free)
- [Tabelog Details Scraper](https://www.octoparse.com/template/tabelog-details-scraper)

## Input Schema

```json
{
  "title": "Kojima Pet Supplies Details Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "enter_keywords": {
      "title": "Enter keywords (up to 50 per run)",
      "description": "kw",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 50
      },
      "minItems": 1,
      "maxItems": 50,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "number_of_pages": {
      "title": " Number of pages (1~100)",
      "description": "",
      "type": "integer",
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "enter_keywords"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "enter_keywords": [
    "シーツ",
    "猫砂"
  ]
}
```

Example 2

```json
{
  "enter_keywords": [
    "シーツ",
    "猫砂"
  ]
}
```

Example 3

```json
{
  "enter_keywords": [
    "シーツ",
    "猫砂"
  ]
}
```

Example 4

```json
{
  "enter_keywords": [
    "シーツ",
    "猫砂"
  ]
}
```

Example 5

```json
{
  "enter_keywords": [
    "シーツ",
    "猫砂"
  ],
  "number_of_pages": 5.0
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "JANコード": {
      "type": "string",
      "description": ""
    },
    "セール価格": {
      "type": "string",
      "description": ""
    },
    "ページのURL": {
      "type": "string",
      "description": ""
    },
    "メーカー名": {
      "type": "string",
      "description": ""
    },
    "代謝エネルギー": {
      "type": "string",
      "description": ""
    },
    "価格": {
      "type": "string",
      "description": ""
    },
    "保証分析値": {
      "type": "string",
      "description": ""
    },
    "原材料": {
      "type": "string",
      "description": ""
    },
    "商品タイトル": {
      "type": "string",
      "description": ""
    },
    "現在の時刻": {
      "type": "string",
      "description": ""
    },
    "画像のURL": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Kojima Pet Supplies Details Scraper 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
{
  "JANコード": "4906456570127",
  "セール価格": "/",
  "ページのURL": "https://online-store.pets-kojima.com/Form/Product/ProductDetail.aspx?shop=0&pid=20570127&swrd=%e7%8c%ab%e7%a0%82",
  "メーカー名": "マルカン",
  "代謝エネルギー": "/",
  "価格": "¥3,278",
  "保証分析値": "/",
  "原材料": "/",
  "商品タイトル": "猫砂らくらくお掃除マット",
  "現在の時刻": "2026-11-17 20:23:56.089",
  "画像のURL": "https://online-store.pets-kojima.com/Contents/ProductImages/0/20570127_LL.jpg"
}
```

Example 2

```json
{
  "JANコード": "4906456570127",
  "セール価格": "/",
  "ページのURL": "https://online-store.pets-kojima.com/Form/Product/ProductDetail.aspx?shop=0&pid=20570127&swrd=%e7%8c%ab%e7%a0%82",
  "メーカー名": "マルカン",
  "代謝エネルギー": "/",
  "価格": "¥3,278",
  "保証分析値": "/",
  "原材料": "/",
  "商品タイトル": "猫砂らくらくお掃除マット",
  "現在の時刻": "2026-11-15 11:59:14.488",
  "画像のURL": "https://online-store.pets-kojima.com/Contents/ProductImages/0/20570127_LL.jpg"
}
```

Example 3

```json
{
  "JANコード": "4945680563222",
  "セール価格": "/",
  "ページのURL": "https://online-store.pets-kojima.com/Form/Product/ProductDetail.aspx?shop=0&pid=20563222&swrd=%e3%82%b7%e3%83%bc%e3%83%84",
  "メーカー名": "リッチェル",
  "代謝エネルギー": "/",
  "価格": "¥1,188",
  "保証分析値": "/",
  "原材料": "シート：PVC、マグネットシート：マグネット",
  "商品タイトル": "つなげるシーツクリップ S",
  "現在の時刻": "2026-11-13 03:20:09.971",
  "画像のURL": "https://online-store.pets-kojima.com/Contents/ProductImages/0/20563222_LL.jpg"
}
```

Example 4

```json
{
  "JANコード": "4906456570127",
  "セール価格": "/",
  "ページのURL": "https://online-store.pets-kojima.com/Form/Product/ProductDetail.aspx?shop=0&pid=20570127&swrd=%e7%8c%ab%e7%a0%82",
  "メーカー名": "マルカン",
  "代謝エネルギー": "/",
  "価格": "¥3,278",
  "保証分析値": "/",
  "原材料": "/",
  "商品タイトル": "猫砂らくらくお掃除マット",
  "現在の時刻": "2026-11-02 13:19:04.768",
  "画像のURL": "https://online-store.pets-kojima.com/Contents/ProductImages/0/20570127_LL.jpg"
}
```

Example 5

```json
{
  "JANコード": "4945680563222",
  "セール価格": "/",
  "ページのURL": "https://online-store.pets-kojima.com/Form/Product/ProductDetail.aspx?shop=0&pid=20563222&swrd=%e3%82%b7%e3%83%bc%e3%83%84",
  "メーカー名": "リッチェル",
  "代謝エネルギー": "/",
  "価格": "¥968",
  "保証分析値": "/",
  "原材料": "シート：PVC、マグネットシート：マグネット",
  "商品タイトル": "つなげるシーツクリップ S",
  "現在の時刻": "2026-10-14 10:14:11.109",
  "画像のURL": "https://online-store.pets-kojima.com/Contents/ProductImages/0/20563222_LL.jpg"
}
```

## 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": "kojima-pet-supplies-details-scraper",
  "taskName": "Kojima Pet Supplies Details Scraper",
  "parameters": "{\"enter_keywords\":[\"シーツ\",\"猫砂\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"enter_keywords\":[\"シーツ\",\"猫砂\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "kojima-pet-supplies-details-scraper",
        "taskName": "Kojima Pet Supplies Details Scraper",
        "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": "kojima-pet-supplies-details-scraper",
  "taskName": "Kojima Pet Supplies Details Scraper",
  "parameters": "{\"enter_keywords\":[\"シーツ\",\"猫砂\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `kojima-pet-supplies-details-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/kojima-pet-supplies-details-scraper.json)
- [Manifest](https://www.octoparse.com/templates/kojima-pet-supplies-details-scraper-manifest.json)
