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

# Search / discover feed

GET {{baseUrl}}/api/movies/search

**What:** The main movie feed with continuous pagination. Two modes: free-text (`q` present) returns TMDB relevance results; empty `q` returns the discover feed with the chosen sort + every filter applied natively.

**Auth:** None.

**Query params:** see the Params tab; common ones below.

| Param | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| q | string | no | Title text. Present = relevance search (filters + sort ignored). | `inception` |
| sortBy | string | no | popularity (default), trending, rating_desc, rating_asc, title_asc, title_desc, year_desc, year_asc. | `trending` |
| genre | string | no | TMDB genre id, or comma/pipe list (OR). | `28,12` |
| yearFrom / yearTo | integer | no | Inclusive 4-digit release-year range. | `1990` / `1999` |
| minRating | number | no | 0-10 vote-average floor. | `7` |
| minVotes | integer | no | Minimum vote count. | `1000` |
| language | string | no | ISO 639-1 original language. | `en` |
| with_cast / with_crew | string | no | TMDB person id (actor / director). | `31` |
| providers | string | no | TMDB provider id(s), comma/pipe list (OR). Needs watch_region. | `8` |
| watch_region | string | no | Region for providers, default US. | `US` |
| certification | string | no | Exact age rating. Needs certification_country (default US). | `R` |
| page | integer | no | 1-500, default 1. | `1` |

**Returns:** `data = [movie]` (raw TMDB list objects). Empty array only when TMDB has no more pages.

Reference: https://apidocs.movieknight.site/movie-knight-api/movies/search-discover-feed

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/movies/search:
    get:
      operationId: search-discover-feed
      summary: Search / discover feed
      description: >-
        **What:** The main movie feed with continuous pagination. Two modes:
        free-text (`q` present) returns TMDB relevance results; empty `q`
        returns the discover feed with the chosen sort + every filter applied
        natively.


        **Auth:** None.


        **Query params:** see the Params tab; common ones below.


        | Param | Type | Required | Description | Example |

        | --- | --- | --- | --- | --- |

        | q | string | no | Title text. Present = relevance search (filters +
        sort ignored). | `inception` |

        | sortBy | string | no | popularity (default), trending, rating_desc,
        rating_asc, title_asc, title_desc, year_desc, year_asc. | `trending` |

        | genre | string | no | TMDB genre id, or comma/pipe list (OR). |
        `28,12` |

        | yearFrom / yearTo | integer | no | Inclusive 4-digit release-year
        range. | `1990` / `1999` |

        | minRating | number | no | 0-10 vote-average floor. | `7` |

        | minVotes | integer | no | Minimum vote count. | `1000` |

        | language | string | no | ISO 639-1 original language. | `en` |

        | with_cast / with_crew | string | no | TMDB person id (actor /
        director). | `31` |

        | providers | string | no | TMDB provider id(s), comma/pipe list (OR).
        Needs watch_region. | `8` |

        | watch_region | string | no | Region for providers, default US. | `US`
        |

        | certification | string | no | Exact age rating. Needs
        certification_country (default US). | `R` |

        | page | integer | no | 1-500, default 1. | `1` |


        **Returns:** `data = [movie]` (raw TMDB list objects). Empty array only
        when TMDB has no more pages.
      tags:
        - subpackage_movies
      parameters:
        - name: sortBy
          in: query
          description: >-
            string, optional. Semantic sort intent. One of: popularity
            (default), trending, rating_desc, rating_asc, title_asc, title_desc,
            year_desc, year_asc. Unknown = popularity.
          required: false
          schema:
            type: string
        - name: page
          in: query
          description: >-
            integer, optional. 1-500, default 1. Forwarded 1:1 to TMDB (20
            results per page).
          required: false
          schema:
            type: integer
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Movies_Search / discover
                  feed_Response_200
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiMoviesSearchGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        id:
          type: integer
        adult:
          type: boolean
        title:
          type: string
        video:
          type: boolean
        overview:
          type: string
        genre_ids:
          type: array
          items:
            type: integer
        popularity:
          type: number
          format: double
        vote_count:
          type: integer
        poster_path:
          type: string
        release_date:
          type: string
          format: date
        vote_average:
          type: number
          format: double
        backdrop_path:
          type: string
        original_title:
          type: string
        original_language:
          type: string
      required:
        - id
        - adult
        - title
        - video
        - overview
        - genre_ids
        - popularity
        - vote_count
        - poster_path
        - release_date
        - vote_average
        - backdrop_path
        - original_title
        - original_language
      title: ApiMoviesSearchGetResponsesContentApplicationJsonSchemaDataItems
    Movies_Search / discover feed_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiMoviesSearchGetResponsesContentApplicationJsonSchemaDataItems
      required:
        - ok
        - data
      title: Movies_Search / discover feed_Response_200
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples

### 200 Empty (no more pages)



**Request**

```json
{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}
```

**Response**

```json
{
  "ok": true,
  "data": [
    {
      "id": 27205,
      "adult": false,
      "title": "Inception",
      "video": false,
      "overview": "Cobb, a skilled thief who commits corporate espionage by infiltrating the subconscious of his targets, is offered a chance to regain his old life.",
      "genre_ids": [
        28,
        878,
        12
      ],
      "popularity": 95.13,
      "vote_count": 36219,
      "poster_path": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
      "release_date": "2010-07-15",
      "vote_average": 8.369,
      "backdrop_path": "/s3TBrRGB1iav7gFOCNx3H31MoES.jpg",
      "original_title": "Inception",
      "original_language": "en"
    },
    {
      "id": 157336,
      "adult": false,
      "title": "Interstellar",
      "video": false,
      "overview": "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",
      "genre_ids": [
        12,
        18,
        878
      ],
      "popularity": 87.45,
      "vote_count": 24000,
      "poster_path": "/gEU2QniE6E77NI6lCU6MxlNBvIx.jpg",
      "release_date": "2014-11-05",
      "vote_average": 8.3,
      "backdrop_path": "/rAiYTfKGqDCRIIqo664sY9XZIvQ.jpg",
      "original_title": "Interstellar",
      "original_language": "en"
    }
  ]
}
```

**SDK Code**

```python 200 Empty (no more pages)
import requests

url = "https://{{baseurl}}/api/movies/search"

querystring = {"sortBy":"trending","page":"1"}

payload = {
    "q": "inception",
    "genre": "28,12",
    "yearFrom": 2000,
    "yearTo": 2015,
    "minRating": 7.5,
    "minVotes": 5000,
    "language": "en",
    "with_cast": "6193",
    "with_crew": "525",
    "providers": "8,9",
    "watch_region": "US",
    "certification": "PG-13"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 200 Empty (no more pages)
const url = 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"q":"inception","genre":"28,12","yearFrom":2000,"yearTo":2015,"minRating":7.5,"minVotes":5000,"language":"en","with_cast":"6193","with_crew":"525","providers":"8,9","watch_region":"US","certification":"PG-13"}'
};

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

```go 200 Empty (no more pages)
package main

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

func main() {

	url := "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1"

	payload := strings.NewReader("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")

	req, _ := http.NewRequest("GET", 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 200 Empty (no more pages)
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}"

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

```java 200 Empty (no more pages)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")
  .asString();
```

```php 200 Empty (no more pages)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1', [
  'body' => '{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp 200 Empty (no more pages)
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 Empty (no more pages)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```

### 200 Free-text q=inception



**Request**

```json
{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}
```

**Response**

```json
{
  "ok": true,
  "data": [
    {
      "id": 27205,
      "adult": false,
      "title": "Inception",
      "video": false,
      "overview": "Cobb, a skilled thief who commits corporate espionage by infiltrating the subconscious of his targets, is offered a chance to regain his old life.",
      "genre_ids": [
        28,
        878,
        12
      ],
      "popularity": 95.13,
      "vote_count": 36219,
      "poster_path": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
      "release_date": "2010-07-15",
      "vote_average": 8.369,
      "backdrop_path": "/s3TBrRGB1iav7gFOCNx3H31MoES.jpg",
      "original_title": "Inception",
      "original_language": "en"
    },
    {
      "id": 157336,
      "adult": false,
      "title": "Interstellar",
      "video": false,
      "overview": "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",
      "genre_ids": [
        12,
        18,
        878
      ],
      "popularity": 87.45,
      "vote_count": 24000,
      "poster_path": "/gEU2QniE6E77NI6lCU6MxlNBvIx.jpg",
      "release_date": "2014-11-05",
      "vote_average": 8.3,
      "backdrop_path": "/rAiYTfKGqDCRIIqo664sY9XZIvQ.jpg",
      "original_title": "Interstellar",
      "original_language": "en"
    }
  ]
}
```

**SDK Code**

```python 200 Free-text q=inception
import requests

url = "https://{{baseurl}}/api/movies/search"

querystring = {"sortBy":"trending","page":"1"}

payload = {
    "q": "inception",
    "genre": "28,12",
    "yearFrom": 2000,
    "yearTo": 2015,
    "minRating": 7.5,
    "minVotes": 5000,
    "language": "en",
    "with_cast": "6193",
    "with_crew": "525",
    "providers": "8,9",
    "watch_region": "US",
    "certification": "PG-13"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 200 Free-text q=inception
const url = 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"q":"inception","genre":"28,12","yearFrom":2000,"yearTo":2015,"minRating":7.5,"minVotes":5000,"language":"en","with_cast":"6193","with_crew":"525","providers":"8,9","watch_region":"US","certification":"PG-13"}'
};

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

```go 200 Free-text q=inception
package main

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

func main() {

	url := "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1"

	payload := strings.NewReader("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")

	req, _ := http.NewRequest("GET", 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 200 Free-text q=inception
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}"

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

```java 200 Free-text q=inception
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")
  .asString();
```

```php 200 Free-text q=inception
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1', [
  'body' => '{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp 200 Free-text q=inception
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 Free-text q=inception
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```

### 200 Discover feed (default)



**Request**

```json
{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}
```

**Response**

```json
{
  "ok": true,
  "data": [
    {
      "id": 27205,
      "adult": false,
      "title": "Inception",
      "video": false,
      "overview": "Cobb, a skilled thief who commits corporate espionage by infiltrating the subconscious of his targets, is offered a chance to regain his old life.",
      "genre_ids": [
        28,
        878,
        12
      ],
      "popularity": 95.13,
      "vote_count": 36219,
      "poster_path": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
      "release_date": "2010-07-15",
      "vote_average": 8.369,
      "backdrop_path": "/s3TBrRGB1iav7gFOCNx3H31MoES.jpg",
      "original_title": "Inception",
      "original_language": "en"
    },
    {
      "id": 157336,
      "adult": false,
      "title": "Interstellar",
      "video": false,
      "overview": "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",
      "genre_ids": [
        12,
        18,
        878
      ],
      "popularity": 87.45,
      "vote_count": 24000,
      "poster_path": "/gEU2QniE6E77NI6lCU6MxlNBvIx.jpg",
      "release_date": "2014-11-05",
      "vote_average": 8.3,
      "backdrop_path": "/rAiYTfKGqDCRIIqo664sY9XZIvQ.jpg",
      "original_title": "Interstellar",
      "original_language": "en"
    }
  ]
}
```

**SDK Code**

```python 200 Discover feed (default)
import requests

url = "https://{{baseurl}}/api/movies/search"

querystring = {"sortBy":"trending","page":"1"}

payload = {
    "q": "inception",
    "genre": "28,12",
    "yearFrom": 2000,
    "yearTo": 2015,
    "minRating": 7.5,
    "minVotes": 5000,
    "language": "en",
    "with_cast": "6193",
    "with_crew": "525",
    "providers": "8,9",
    "watch_region": "US",
    "certification": "PG-13"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 200 Discover feed (default)
const url = 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"q":"inception","genre":"28,12","yearFrom":2000,"yearTo":2015,"minRating":7.5,"minVotes":5000,"language":"en","with_cast":"6193","with_crew":"525","providers":"8,9","watch_region":"US","certification":"PG-13"}'
};

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

```go 200 Discover feed (default)
package main

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

func main() {

	url := "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1"

	payload := strings.NewReader("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")

	req, _ := http.NewRequest("GET", 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 200 Discover feed (default)
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}"

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

```java 200 Discover feed (default)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")
  .asString();
```

```php 200 Discover feed (default)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1', [
  'body' => '{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp 200 Discover feed (default)
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 Discover feed (default)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```

### 200 Filtered (genre+year+minRating)



**Request**

```json
{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}
```

**Response**

```json
{
  "ok": true,
  "data": [
    {
      "id": 27205,
      "adult": false,
      "title": "Inception",
      "video": false,
      "overview": "Cobb, a skilled thief who commits corporate espionage by infiltrating the subconscious of his targets, is offered a chance to regain his old life.",
      "genre_ids": [
        28,
        878,
        12
      ],
      "popularity": 95.13,
      "vote_count": 36219,
      "poster_path": "/oYuLEt3zVCKq57qu2F8dT7NIa6f.jpg",
      "release_date": "2010-07-15",
      "vote_average": 8.369,
      "backdrop_path": "/s3TBrRGB1iav7gFOCNx3H31MoES.jpg",
      "original_title": "Inception",
      "original_language": "en"
    },
    {
      "id": 157336,
      "adult": false,
      "title": "Interstellar",
      "video": false,
      "overview": "A team of explorers travel through a wormhole in space in an attempt to ensure humanity's survival.",
      "genre_ids": [
        12,
        18,
        878
      ],
      "popularity": 87.45,
      "vote_count": 24000,
      "poster_path": "/gEU2QniE6E77NI6lCU6MxlNBvIx.jpg",
      "release_date": "2014-11-05",
      "vote_average": 8.3,
      "backdrop_path": "/rAiYTfKGqDCRIIqo664sY9XZIvQ.jpg",
      "original_title": "Interstellar",
      "original_language": "en"
    }
  ]
}
```

**SDK Code**

```python 200 Filtered (genre+year+minRating)
import requests

url = "https://{{baseurl}}/api/movies/search"

querystring = {"sortBy":"trending","page":"1"}

payload = {
    "q": "inception",
    "genre": "28,12",
    "yearFrom": 2000,
    "yearTo": 2015,
    "minRating": 7.5,
    "minVotes": 5000,
    "language": "en",
    "with_cast": "6193",
    "with_crew": "525",
    "providers": "8,9",
    "watch_region": "US",
    "certification": "PG-13"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript 200 Filtered (genre+year+minRating)
const url = 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"q":"inception","genre":"28,12","yearFrom":2000,"yearTo":2015,"minRating":7.5,"minVotes":5000,"language":"en","with_cast":"6193","with_crew":"525","providers":"8,9","watch_region":"US","certification":"PG-13"}'
};

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

```go 200 Filtered (genre+year+minRating)
package main

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

func main() {

	url := "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1"

	payload := strings.NewReader("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")

	req, _ := http.NewRequest("GET", 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 200 Filtered (genre+year+minRating)
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}"

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

```java 200 Filtered (genre+year+minRating)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}")
  .asString();
```

```php 200 Filtered (genre+year+minRating)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{baseurl}}/api/movies/search?sortBy=trending&page=1', [
  'body' => '{
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp 200 Filtered (genre+year+minRating)
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/movies/search?sortBy=trending&page=1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"q\": \"inception\",\n  \"genre\": \"28,12\",\n  \"yearFrom\": 2000,\n  \"yearTo\": 2015,\n  \"minRating\": 7.5,\n  \"minVotes\": 5000,\n  \"language\": \"en\",\n  \"with_cast\": \"6193\",\n  \"with_crew\": \"525\",\n  \"providers\": \"8,9\",\n  \"watch_region\": \"US\",\n  \"certification\": \"PG-13\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift 200 Filtered (genre+year+minRating)
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "q": "inception",
  "genre": "28,12",
  "yearFrom": 2000,
  "yearTo": 2015,
  "minRating": 7.5,
  "minVotes": 5000,
  "language": "en",
  "with_cast": "6193",
  "with_crew": "525",
  "providers": "8,9",
  "watch_region": "US",
  "certification": "PG-13"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/movies/search?sortBy=trending&page=1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
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()
```