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

# Buy results

POST https://campino.tech/api/v1/partner/audience/results
Content-Type: application/json

Buy the complete, unmasked phone numbers of one finished search. Only call this once [Get a search](/api-reference/audience-search/get-search) says `DONE`.

The first successful call debits `matched_count` times `results_unit_price_toman`, at the price frozen when you submitted the search. Calling it again for the same `request_id` returns the same rows and charges nothing. A search that matched nobody returns an empty `users` list at no cost.

There is no pagination: the whole result comes back in one response.

Reference: https://docs.campino.tech/api-reference/audience-search/buy-results

## Authentication

- `Authorization` header (bearer token, required) — Your partner credential, issued by Campino. Send it as `Authorization: Bearer pc_live_...`.

## Request

### Body (application/json)

This endpoint expects a BuyResultsRequest.

- `request_id` (string, required) — The `request_id` of a search that is `DONE`.

## Response

### 200

The full results, phone numbers unmasked.

- `status` (enum, required)
  - Allowed values: `success`
- `data` (BuyResultsData, required) — What a purchase returns: the whole audience.
- `error` (any, optional)

## Errors

### 400 Bad Request Error

The wallet balance does not cover the price. Error `4000`. Nothing is charged; top up and call again.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 401 Unauthorized Error

The credential is missing, malformed, unknown, revoked, expired, not allowed from your address, or sent twice. Error `4012`.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 403 Forbidden Error

The wallet cannot be spent from. Error `4031`.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 404 Not Found Error

No such finished search for your account, or its results expired. Error `4043`. Nothing is charged.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 422 Unprocessable Entity Error

The request is malformed. Error `4200`, with the rejected fields in `error.fields`.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 429 Too Many Requests Error

A rate limit was reached. Wait `Retry-After` seconds. Error `4290`.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 500 Internal Server Error

The request could not be recorded or closed on our side. Error `5000` or `5001`. Repeat the request with the same `Idempotency-Key` (for a submission) or the same `request_id`.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 502 Bad Gateway Error

The results cannot be read (`5021`, not charged) or billing is unavailable (`5022`).

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

### 503 Service Unavailable Error

The rate limiter is unavailable (`5030`), or the wallet was charged and the purchase could not be recorded (`5031`). For `5031`, repeat the same request: you are not charged again and the repeat delivers the numbers.

- `status` (enum, required)
  - Allowed values: `failure`
- `error` (ErrorDetail, required) — The error inside a failure response.
- `data` (any, optional)

## Types

### BuyResultsData

What a purchase returns: the whole audience.

- `request_id` (string, required)
- `query_id` (string, required)
- `users` (list of DeliveredUser, required)
- `matched_count` (integer, required)
- `returned_count` (integer, required)
- `results_cost_toman` (integer, required) — The price charged, frozen at submission.
- `results_paid_at` (datetime, required) — When the purchase was recorded. The same on every repeat.
- `searched_at` (datetime, required)

### ErrorDetail

The error inside a failure response.

- `code` (integer, required) — Application error code. See the Errors page.
- `message` (string, required) — A fixed text for the code. Match on `code`, not on `message`.
- `fields` (list of FieldError, optional, nullable) — Present for `4200` only.

### DeliveredUser

One bought match.

- `identifier` (string, required)
- `phone_number` (string, required, nullable) — The full number, unmasked.
- `match_score` (double, required)

### FieldError

One rejected field.

- `location` (list of string, required) — Path to the field.
- `type` (string, required)
- `message` (string, required)

## Examples

**Request**

```json
{
  "request_id": "3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10"
}
```

**Response**

```json
{
  "status": "success",
  "data": {
    "request_id": "3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10",
    "query_id": "q_7d2e1f4a",
    "users": [
      {
        "identifier": "u_91a0c4",
        "phone_number": "09125175728",
        "match_score": 0.93
      },
      {
        "identifier": "u_77be12",
        "phone_number": "09351234415",
        "match_score": 0.88
      }
    ],
    "matched_count": 2,
    "returned_count": 2,
    "results_cost_toman": 800,
    "results_paid_at": "2026-12-02T09:40:12Z",
    "searched_at": "2026-12-02T09:32:41Z"
  }
}
```

**SDK Code**

```python Buy one search
import requests

url = "https://campino.tech/api/v1/partner/audience/results"

payload = { "request_id": "3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Buy one search
const url = 'https://campino.tech/api/v1/partner/audience/results';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"request_id":"3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10"}'
};

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

```go Buy one search
package main

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

func main() {

	url := "https://campino.tech/api/v1/partner/audience/results"

	payload := strings.NewReader("{\n  \"request_id\": \"3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10\"\n}")

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

	req.Header.Add("Authorization", "Bearer <token>")
	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 Buy one search
require 'uri'
require 'net/http'

url = URI("https://campino.tech/api/v1/partner/audience/results")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"request_id\": \"3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10\"\n}"

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

```java Buy one search
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://campino.tech/api/v1/partner/audience/results")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"request_id\": \"3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://campino.tech/api/v1/partner/audience/results', [
  'body' => '{
  "request_id": "3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Buy one search
using RestSharp;

var client = new RestClient("https://campino.tech/api/v1/partner/audience/results");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"request_id\": \"3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Buy one search
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["request_id": "3f1c2a7e-8b41-4c1d-9a55-6d2f0e7b9c10"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://campino.tech/api/v1/partner/audience/results")! 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()
```