> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.aventure.vc/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.aventure.vc/_mcp/server.

# Score news duplicate candidates

POST https://api.aventure.vc/v1/news/duplicate-check/candidates
Content-Type: application/json

Return scored duplicate candidates for news queries. Results are ordered by match score; custom sorting is not supported.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/news-v-1/duplicate-check-news-candidates-post

## Authentication

- `X-Client-Secret` header (required) — Client secret for read-only service-to-service access (no writes)

## Request

### Query parameters

- `page` (integer, optional) — Zero-based page index (0..N)
- `size` (integer, optional) — The size of the page to be returned; duplicate-check default 10, maximum 100.
- `sort` (list of string, optional) — Sorting is not supported

### Body (application/json)

- `excludeId` (string or integer, optional, nullable) — Exclude news id
- `externalId` (string, optional, nullable) — External identifier
- `publication` (string, optional, nullable) — Publication name
- `qwen4bFp16Embedding` (list of float, optional, nullable) — Embedding vector pinned to qwen-4b-fp16 (Qwen3-Embedding-4B-f16.gguf) from https://huggingface.co/Qwen/Qwen3-Embedding-4B-GGUF?show_file_info=Qwen3-Embedding-4B-f16.gguf; only this fp16 model is accepted and exactly 2560 floats are required
- `search` (string, optional, nullable) — Full-text search query
- `slug` (string, optional, nullable) — URL-safe identifier
- `title` (string, optional, nullable) — Article title
- `url` (string, optional, nullable) — Article URL
- `urlDomain` (string, optional, nullable) — URL domain match
- `urlMatchMode` (enum, optional, nullable) — URL match mode
  - Allowed values: `hostPath`, `domain`

## Response

### 200

OK

- `content` (list of object, optional)
  - `id` (integer, required) — News article id to read or update when this candidate is the requested article.
  - `reason` (list of string, required) — Match reasons for reviewing the candidate. Exact reasons are decision signals regardless of whether score crosses the review threshold.
  - `score` (integer, required) — Ranking score for duplicate review. It is not an absence proof; a low score can still be the intended article when reason/slug/externalId match.
  - `externalId` (string, optional, nullable) — Matched external article identifier when duplicate scoring used one.
  - `slug` (string, optional, nullable) — Candidate article slug from the existing record.
- `empty` (boolean, optional)
- `first` (boolean, optional)
- `last` (boolean, optional)
- `number` (integer, optional)
- `numberOfElements` (integer, optional)
- `pageable` (object, optional)
  - `offset` (long, optional)
  - `pageNumber` (integer, optional)
  - `pageSize` (integer, optional)
  - `paged` (boolean, optional)
  - `sort` (object, optional)
    - `empty` (boolean, optional)
    - `sorted` (boolean, optional)
    - `unsorted` (boolean, optional)
  - `unpaged` (boolean, optional)
- `size` (integer, optional)
- `sort` (object, optional)
  - `empty` (boolean, optional)
  - `sorted` (boolean, optional)
  - `unsorted` (boolean, optional)
- `totalElements` (long, optional)
- `totalPages` (integer, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "content": [
    {
      "id": 1,
      "reason": [
        "string"
      ],
      "score": 1,
      "externalId": "string",
      "slug": "aventure-vc"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 1,
  "numberOfElements": 1,
  "pageable": {
    "offset": 1,
    "pageNumber": 1,
    "pageSize": 1,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 1,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 1,
  "totalPages": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/news/duplicate-check/candidates"

querystring = {"page":"0","size":"10"}

payload = {}
headers = {
    "X-Client-Secret": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10';
const options = {
  method: 'POST',
  headers: {'X-Client-Secret': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Client-Secret", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Client-Secret"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10")
  .header("X-Client-Secret", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Client-Secret' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Client-Secret", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Client-Secret": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/news/duplicate-check/candidates?page=0&size=10")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```