# Odds Portal Scraper

Scrape odds information (ratio, bookmakers) from "OddsPortal.com" by listing page URLs.

- Template page: [https://www.octoparse.com/template/odds-portal-scraper](https://www.octoparse.com/template/odds-portal-scraper)
- Categories: Sports
- 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 11 fields, including `Bookmakers`, `Current_Time`, `Final_result`, `Link`, `Page_URL`, `Payout`, `Ratio_1`, `Ratio_2`, `Ratio_X`, `Time`, `Title`.

## 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 URLs (up to 1000) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URLs (up to 1000)

Required. URL(s) Constraints: minItems=1; maxItems=1000; items.minLength=1; items.maxLength=1000000.

## How to Use

# Odds Portal Scraper

Collects structured records from OddsPortal listing pages, including match details, odds, and bookmaker information.

## Pricing

This template is free of charge. Octoparse plan or resource limits may still apply.

## Input

- **URLs** (Required) — URL(s) to OddsPortal listing pages. Up to 1,000 entries per run.

## How to Use

1. Open the template and click **Try it!**.
2. Enter URLs in the input field (up to 1,000).
3. Choose a local or cloud run and start the task.
4. Export the results in your preferred format.

## Tips

- Test one representative URL before submitting a large batch.
- Keep `Page_URL` in the export to trace each row back to its source.

## Notes

If you would like to have your own customized template, please contact 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

- [Portal Inmobiliario Listing Pages Scraper](https://www.octoparse.com/template/portal-inmobiliario-listados-scraper)
- [Portal Inmobiliario Detail Scraper](https://www.octoparse.com/template/portal-inmobiliario-detalles-scraper)
- [eBay Listing Page Scraper (by keyword)](https://www.octoparse.com/template/ebay-product-list-scraper-by-keyword)
- [eBay Scraper](https://www.octoparse.com/template/ebay-scraper)
- [Bic Camera Search Results Scraper](https://www.octoparse.com/template/bic-camera-search-results-scraper)

## Input Schema

```json
{
  "title": "Odds Portal Scraper input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRLs": {
      "title": "URLs (up to 1000) ",
      "description": "URL(s)",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000000
      },
      "minItems": 1,
      "maxItems": 1000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRLs"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "uRLs": [
    "https://www.oddsportal.com/soccer/argentina/copa-liga-profesional/argentinos-jrs-san-lorenzo-65iPGn1r/inplay-odds/"
  ]
}
```

Example 2

```json
{
  "uRLs": [
    "https://www.odds.com"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Bookmakers": {
      "type": "string",
      "description": ""
    },
    "Current_Time": {
      "type": "string",
      "description": ""
    },
    "Final_result": {
      "type": "string",
      "description": ""
    },
    "Link": {
      "type": "string",
      "description": ""
    },
    "Page_URL": {
      "type": "string",
      "description": ""
    },
    "Payout": {
      "type": "string",
      "description": ""
    },
    "Ratio_1": {
      "type": "string",
      "description": ""
    },
    "Ratio_2": {
      "type": "string",
      "description": ""
    },
    "Ratio_X": {
      "type": "string",
      "description": ""
    },
    "Time": {
      "type": "string",
      "description": ""
    },
    "Title": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Odds Portal 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
{
  "Bookmakers": "",
  "Current_Time": "",
  "Final_result": "",
  "Link": "",
  "Page_URL": "chrome-error://chromewebdata/",
  "Payout": "",
  "Ratio_1": "",
  "Ratio_2": "",
  "Ratio_X": "",
  "Time": "",
  "Title": ""
}
```

Example 2

```json
{
  "Bookmakers": "",
  "Current_Time": "",
  "Final_result": "New York Finally Passes Mobile Sports Betting",
  "Link": "",
  "Page_URL": "https://www.odds.com/",
  "Payout": "",
  "Ratio_1": "",
  "Ratio_2": "",
  "Ratio_X": "",
  "Time": "",
  "Title": ""
}
```

## 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": "odds-portal-scraper",
  "taskName": "Odds Portal Scraper",
  "parameters": "{\"uRLs\":[\"https://www.oddsportal.com/soccer/argentina/copa-liga-profesional/argentinos-jrs-san-lorenzo-65iPGn1r/inplay-odds/\"]}"
}
```

## Python Example

```python
import json
import requests

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

parameters = json.loads("{\"uRLs\":[\"https://www.oddsportal.com/soccer/argentina/copa-liga-profesional/argentinos-jrs-san-lorenzo-65iPGn1r/inplay-odds/\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "odds-portal-scraper",
        "taskName": "Odds Portal 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": "odds-portal-scraper",
  "taskName": "Odds Portal Scraper",
  "parameters": "{\"uRLs\":[\"https://www.oddsportal.com/soccer/argentina/copa-liga-profesional/argentinos-jrs-san-lorenzo-65iPGn1r/inplay-odds/\"]}"
}
JSON
```

## MCP Setup

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