> 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.

# Search content

POST https://api.aventure.vc/v1/content/search
Content-Type: application/json

Translates plain-English content constraints into canonical filters.

Reference: https://docs.aventure.vc/api-reference/a-venture-api/content/search-content

## Authentication

- `Authorization` header (bearer token, required) — User bearer token: Supabase or Clerk session JWT, Clerk OAuth access token, or Clerk personal API key
- `X-API-Key` header (required) — Admin API key for system-to-system write operations
- `X-Client-Secret` header (required) — Client secret for read-only service-to-service access (no writes)

## Request

### Query parameters

- `page` (integer, optional, default: 0) — Zero-based page index (0..N)
- `size` (integer, optional, default: 20) — The size of the page to be returned
- `sort` (list of string, optional) — Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.

### Body (application/json)

- `query` (string, required) — Plain-English search request.
- `mode` (enum, optional) — Search strategy to run. Accepted values narrow per surface: entity and person natural-search take every value (`exact` is entity-only); news and federated search accept only `auto` and `keyword`; content search accepts only `auto`. Defaults to `auto`, which keeps the server-chosen pipeline; any other value forces exactly that strategy.
  - Allowed values: `auto`, `exact`, `keyword`, `semantic`, `natural`
- `model` (string, optional, nullable) — Optional chat model for planning; null uses the configured natural-search default. CLIENT_SECRET callers may only choose client-secret-eligible models; admin keys are unrestricted.

## Response

### 200

OK

- `interpretation` (object, required) — Structured interpretation used to run the content query.
  - `confidence` (enum, required) — Planner confidence in the structured interpretation.
    - Allowed values: `HIGH`, `MEDIUM`, `LOW`
  - `filter` (object, required) — Canonical content filter generated from the query.
    - `contentType` (enum, optional, nullable) — Public content type filter.
      - Allowed values: `newsArticle`, `blogPost`, `externalSocialPost`, `repositoryOwner`, `repository`, `webSite`, `webPage`, `researchPaper`
    - `relation` (enum, optional, nullable) — Owner relation filter.
      - Allowed values: `by`, `about`
    - `topic` (string, optional, nullable) — Topic key or source category.
    - `year` (integer, optional, nullable) — Best-effort content year filter.
  - `interpretation` (string, required) — Human-readable summary of how the query was interpreted.
  - `sort` (object, required) — Sort generated from the query.
    - `order` (list of object, required) — Ordered sort terms. Empty list means unspecified at the HTTP boundary (defaults apply).
      - `descending` (boolean, required) — true for descending (DESC), false for ascending (ASC)
      - `field` (enum, required) — Sort field for this resource (entity list uses EntityFilter.Sortable / published sort keys).
        - Allowed values: `CONTENT_ID`, `CONTENT_TYPE`, `RELATION`, `TITLE`, `TOPIC`, `YEAR`, `PUBLISHED_AT`, `CREATED_AT`, `UPDATED_AT`
  - `unsupported` (string, optional, nullable) — Unsupported constraint, or null when all were translated.
- `result` (object, required) — Content page.
  - `content` (list of object, required)
    - `contentId` (string, required) — Stable content id scoped by contentType.
    - `contentType` (enum, required) — Public content source type.
      - Allowed values: `newsArticle`, `blogPost`, `externalSocialPost`, `repositoryOwner`, `repository`, `webSite`, `webPage`, `researchPaper`
    - `title` (string, required) — Human title or best available display label. webPage rows restate the page URL when the crawl captured no label; renderers may humanize that fallback.
    - `canonicalUrl` (string, optional, nullable) — Canonical URL when known.
    - `createdAt` (datetime, optional, nullable) — Content row creation instant when known.
    - `publishedAt` (datetime, optional, nullable) — Publication or source activity instant when known.
    - `relation` (enum, optional, nullable) — How this content relates to the requested owner.
      - Allowed values: `by`, `about`
    - `sourceDomain` (string, optional, nullable) — Registrable source domain when known.
    - `sourceName` (string, optional, nullable) — Publication, platform owner, or source label.
    - `summary` (string, optional, nullable) — Short summary or excerpt when known.
    - `topic` (string, optional, nullable) — Single canonical topic key (web-crawl section vocabulary) or source category (repository language); null when the source has no classified topic.
    - `updatedAt` (datetime, optional, nullable) — Content row update instant when known.
    - `url` (string, optional, nullable) — Primary URL for this content card.
    - `year` (integer, optional, nullable) — Best-effort content year used by the year filter.
  - `number` (integer, required)
  - `size` (integer, required)
  - `totalElements` (long, required)
  - `totalPages` (integer, required)

## Examples

**Request**

```json
{
  "query": "Companies founded in the last year that raised venture capital"
}
```

**Response**

```json
{
  "interpretation": {
    "confidence": "HIGH",
    "filter": {
      "contentType": "newsArticle",
      "relation": "by",
      "topic": "string",
      "year": 1
    },
    "interpretation": "string",
    "sort": {
      "order": [
        {
          "descending": true,
          "field": "CONTENT_ID"
        }
      ]
    },
    "unsupported": "string"
  },
  "result": {
    "content": [
      {
        "contentId": "string",
        "contentType": "newsArticle",
        "title": "string",
        "canonicalUrl": "string",
        "createdAt": "2024-01-15T09:30:00Z",
        "publishedAt": "2024-01-15T09:30:00Z",
        "relation": "by",
        "sourceDomain": "string",
        "sourceName": "string",
        "summary": "string",
        "topic": "string",
        "updatedAt": "2024-01-15T09:30:00Z",
        "url": "string",
        "year": 1
      }
    ],
    "number": 1,
    "size": 1,
    "totalElements": 1,
    "totalPages": 1
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.aventure.vc/v1/content/search"

payload = { "query": "Companies founded in the last year that raised venture capital" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.aventure.vc/v1/content/search';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"query":"Companies founded in the last year that raised venture capital"}'
};

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/content/search"

	payload := strings.NewReader("{\n  \"query\": \"Companies founded in the last year that raised venture capital\"\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
require 'uri'
require 'net/http'

url = URI("https://api.aventure.vc/v1/content/search")

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  \"query\": \"Companies founded in the last year that raised venture capital\"\n}"

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/content/search")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"query\": \"Companies founded in the last year that raised venture capital\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.aventure.vc/v1/content/search', [
  'body' => '{
  "query": "Companies founded in the last year that raised venture capital"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.aventure.vc/v1/content/search");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"query\": \"Companies founded in the last year that raised venture capital\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["query": "Companies founded in the last year that raised venture capital"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.aventure.vc/v1/content/search")! 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()
```