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

# Search Market

GET https://getoutprice.com/v1/market/search

Reference: https://docs.getoutprice.com/api-reference/market/search-market

## Authentication

- `X-API-Key` header (required) — Your Outprice API key (starts with pw_).

## Request

### Query parameters

- `q` (string, required) — What you sell — a product name, model, or brand
- `venture` (string, optional, nullable) — Country to search in. Defaults to the account's own.
- `own_price` (double, optional, nullable) — Your price, to see where you sit. Optional.
- `limit` (integer, optional, default: 40)
- `strict` (boolean, optional, default: true) — Only show listings that mention every search word. Set false to see what was set aside — useful for category searches like 'smartphone', whose titles rarely say it.

## Response

### 200

Successful Response

- `query` (string, required)
- `venture` (string, optional, default: pk)
- `groups` (list of MarketGroupOut, optional)
- `total_offers` (integer, optional, default: 0)
- `sources_ok` (list of string, optional)
- `sources_failed` (list of map from string to any, optional)
- `set_aside` (integer, optional, default: 0)
- `strict` (boolean, optional, default: true)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### MarketGroupOut

One product, priced across everyone offering it.

- `title` (string, required)
- `seller_count` (integer, required)
- `offer_count` (integer, required)
- `in_stock_count` (integer, required)
- `currency` (string, optional, default: )
- `lowest` (double, optional, nullable)
- `median` (double, optional, nullable)
- `highest` (double, optional, nullable)
- `offers` (list of MarketOfferOut, optional)
- `uncertain` (list of MarketOfferOut, optional)
- `your_position` (MarketPosition, optional, nullable) — Where the seller sits in this product's market.
- `delivery_note` (string, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (ValidationErrorCtx, optional)

### MarketOfferOut

One seller's listing as it appears in search.

- `title` (string, required)
- `url` (string, required)
- `price` (double, optional, nullable)
- `shipping` (double, optional, nullable)
- `original_price` (double, optional, nullable)
- `discount_pct` (double, optional, nullable)
- `currency` (string, optional, default: )
- `in_stock` (boolean, optional, nullable)
- `seller_name` (string, optional, nullable)
- `seller_id` (string, optional, nullable)
- `marketplace` (string, optional, default: )
- `listing_id` (string, optional, nullable)
- `is_mine` (boolean, optional, default: false)
- `rating` (double, optional, nullable)
- `review_count` (integer, optional, nullable)
- `image_url` (string, optional, nullable)
- `confidence` (double, optional, default: 0.75)

### MarketPosition

Where the seller sits in this product's market.

- `own_price` (double, required)
- `of` (integer, required)
- `vs_median` (double, required)
- `vs_median_pct` (double, required)
- `vs_lowest` (double, required)
- `is_cheapest` (boolean, required)
- `undercut_by` (double, required)
- `rank` (integer, optional, nullable)

### ValidationErrorLocItems

- string
- integer

### ValidationErrorCtx

## Examples

**Response**

```json
{
  "query": "string",
  "venture": "pk",
  "groups": [
    {
      "title": "string",
      "seller_count": 1,
      "offer_count": 1,
      "in_stock_count": 1,
      "currency": "",
      "lowest": 1.1,
      "median": 1.1,
      "highest": 1.1,
      "offers": [
        {
          "title": "string",
          "url": "string",
          "price": 1.1,
          "shipping": 1.1,
          "original_price": 1.1,
          "discount_pct": 1.1,
          "currency": "",
          "in_stock": true,
          "seller_name": "string",
          "seller_id": "string",
          "marketplace": "",
          "listing_id": "string",
          "is_mine": false,
          "rating": 1.1,
          "review_count": 1,
          "image_url": "string",
          "confidence": 0.75
        }
      ],
      "uncertain": [
        {
          "title": "string",
          "url": "string",
          "price": 1.1,
          "shipping": 1.1,
          "original_price": 1.1,
          "discount_pct": 1.1,
          "currency": "",
          "in_stock": true,
          "seller_name": "string",
          "seller_id": "string",
          "marketplace": "",
          "listing_id": "string",
          "is_mine": false,
          "rating": 1.1,
          "review_count": 1,
          "image_url": "string",
          "confidence": 0.75
        }
      ],
      "your_position": {
        "own_price": 1.1,
        "of": 1,
        "vs_median": 1.1,
        "vs_median_pct": 1.1,
        "vs_lowest": 1.1,
        "is_cheapest": true,
        "undercut_by": 1.1,
        "rank": 1
      },
      "delivery_note": "string"
    }
  ],
  "total_offers": 0,
  "sources_ok": [
    "string"
  ],
  "sources_failed": [
    {}
  ],
  "set_aside": 0,
  "strict": true
}
```

**SDK Code**

```python
import requests

url = "https://getoutprice.com/v1/market/search"

querystring = {"q":"q"}

headers = {"X-API-Key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://getoutprice.com/v1/market/search?q=q';
const options = {method: 'GET', headers: {'X-API-Key': '<apiKey>'}};

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"
	"net/http"
	"io"
)

func main() {

	url := "https://getoutprice.com/v1/market/search?q=q"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<apiKey>")

	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://getoutprice.com/v1/market/search?q=q")

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

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<apiKey>'

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.get("https://getoutprice.com/v1/market/search?q=q")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://getoutprice.com/v1/market/search?q=q', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://getoutprice.com/v1/market/search?q=q");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://getoutprice.com/v1/market/search?q=q")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```