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

# Search publishers

GET http://127.0.0.1:8787/api/v1/publishers

Requires an authenticated workspace. API keys require read scope and pro entitlement.

Reference: https://mediacontext.dev/docs/developers/api-reference/publishers/list-publishers-v-1

## Authentication

- `X-Api-Key` header (required) — mck_ key; explicit key takes precedence over session. Read/export scopes, no writes.
- `Authorization` header (bearer token, required) — Clerk session with an active mapped organization and current membership

## Request

### Query parameters

- `offset` (integer, optional, default: 0)
- `limit` (integer, optional, default: 25)
- `q` (string, optional)
- `segment` (enum, optional)
  - Allowed values: `prospects`, `unmanaged`, `managed`, `groups`, `retail_media`
- `managementStatus` (enum, optional)
  - Allowed values: `self_managed`, `externally_managed`, `mixed`, `unknown`, `conflicted`
- `ownershipRole` (enum, optional)
  - Allowed values: `parent`, `child`, `independent`, `unknown`
- `supplyType` (string, optional)
- `monetizedBy` (string, optional)
- `tier` (enum, optional)
  - Allowed values: `top1k`, `top5k`, `top25k`, `top100k`
- `headerBidding` (enum, optional)
  - Allowed values: `yes`, `no`
- `country` (string, optional) — Resolved headquarters country, ISO 3166-1 alpha-2; not visitor geography
- `techCategory` (string, optional)
- `vendor` (string, optional)

## Response

### 200

Success

- `data` (list of PublicPublisherSearchDataItems, required)
- `page` (PublicPublisherSearchPage, required)
- `meta` (PublicPublisherSearchMeta, required)

## Errors

### 400 Bad Request Error

Invalid request

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 401 Unauthorized Error

Missing or invalid authentication

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 403 Forbidden Error

Insufficient scope, membership or entitlement

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 404 Not Found Error

Resource not found in accessible scope

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 409 Conflict Error

Revision conflict; reload the resource before retrying

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 429 Too Many Requests Error

Rate or quota limit exceeded

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 500 Internal Server Error

Internal server error

- `error` (HttpErrorError, required)
- `issues` (any, optional)

### 503 Service Unavailable Error

Required source or service unavailable

- `error` (HttpErrorError, required)
- `issues` (any, optional)

## Types

### PublicPublisherSearchDataItems

- `domain` (string, required) — Lowercase publisher apex domain, without scheme or path
- `name` (string, required, nullable)
- `rank` (integer, required, nullable) — Ordinal global traffic rank; null means unknown
- `countryCode` (string, required, nullable) — Resolved headquarters country, ISO 3166-1 alpha-2. Not visitor geography; unresolved headquarters remain null
- `categories` (list of string, required) — Source-reported content category labels, which mix IAB taxonomy labels and manually assigned categories. These are not canonical IAB identifiers
- `managementStatus` (enum, required, nullable) — Evidence-backed inventory management assessment; null means no assessment
  - Allowed values: `self_managed`, `externally_managed`, `mixed`, `unknown`, `conflicted`
- `ownershipRoles` (list of enum, required) — Source-reported corporate roles; not independently verified legal ownership
  - Allowed values: `parent`, `child`, `independent`, `unknown`
- `supplyTypes` (list of string, required) — Reported inventory channels, such as web, app or ctv; empty means unknown
- `headerBidding` (boolean, required, nullable) — Observed header bidding presence. False requires measured technology coverage; null means unknown
- `monetizedBy` (string, required, nullable) — Assessed inventory management provider name. This is not a legal owner
- `technologies` (list of PublicPublisherSearchDataItemsTechnologiesItems, required)
- `provenance` (list of PublicPublisherSearchDataItemsProvenanceItems, required)

### PublicPublisherSearchPage

- `offset` (integer, required)
- `limit` (integer, required)
- `total` (integer, required)
- `hasMore` (boolean, required)

### PublicPublisherSearchMeta

- `datasetId` (string, required, nullable)
- `observedAt` (datetime, required, nullable)
- `freshness` ("unknown", required) — Freshness is not certified for this response; timestamps are evidence, not a freshness guarantee
- `warnings` (list of string, required)

### HttpErrorError

- string
- HttpErrorError1

### PublicPublisherSearchDataItemsTechnologiesItems

- `category` (string, required) — Normalized technology category identifier, such as header_bidding or sales_house
- `name` (string, required) — Normalized observed provider name; names are not globally stable company IDs

### PublicPublisherSearchDataItemsProvenanceItems

- `source` (string, required) — Evidence source or evidence section identifier
- `sourceUpdatedAt` (datetime, required, nullable) — When the provider says its source record changed; not necessarily a scan observation time
- `observedAt` (datetime, required, nullable) — When the source observed this evidence; never substituted with fetch time
- `fetchedAt` (datetime, required, nullable) — When MediaContext collected the source record; not the observation time

### HttpErrorError1

- `code` (string, required)
- `message` (string, required)
- `details` (any, optional)
- `requestId` (string, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "domain": "string",
      "name": "string",
      "rank": 1,
      "countryCode": "string",
      "categories": [
        "string"
      ],
      "managementStatus": "self_managed",
      "ownershipRoles": [
        "parent"
      ],
      "supplyTypes": [
        "string"
      ],
      "headerBidding": true,
      "monetizedBy": "string",
      "technologies": [
        {
          "category": "string",
          "name": "string"
        }
      ],
      "provenance": [
        {
          "source": "string",
          "sourceUpdatedAt": "2024-01-15T09:30:00Z",
          "observedAt": "2024-01-15T09:30:00Z",
          "fetchedAt": "2024-01-15T09:30:00Z"
        }
      ]
    }
  ],
  "page": {
    "offset": 1,
    "limit": 1,
    "total": 1,
    "hasMore": true
  },
  "meta": {
    "datasetId": "string",
    "observedAt": "2024-01-15T09:30:00Z",
    "freshness": "string",
    "warnings": [
      "string"
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "http://127.0.0.1:8787/api/v1/publishers"

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

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

print(response.json())
```

```javascript
const url = 'http://127.0.0.1:8787/api/v1/publishers';
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 := "http://127.0.0.1:8787/api/v1/publishers"

	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("http://127.0.0.1:8787/api/v1/publishers")

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

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("http://127.0.0.1:8787/api/v1/publishers")
  .header("X-Api-Key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://127.0.0.1:8787/api/v1/publishers', [
  'headers' => [
    'X-Api-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("http://127.0.0.1:8787/api/v1/publishers");
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: "http://127.0.0.1:8787/api/v1/publishers")! 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()
```