---
title: "Search Requests"
method: GET
path: "/models/requests/search"
tags: ["Models", "Requests"]
---

# Search Requests

`GET /models/requests/search`

Search, filter, and browse your request history. Supports three modes:

**1. Semantic Search** (`query`, `image_url`, or `video_url` parameter):
Find visually or conceptually similar results using AI embeddings. Provide a text
query for text-to-image search, an image URL for image-to-image similarity search,
or a video URL for video-to-image similarity search.

**2. Filtered Browse** (no `query`, `image_url`, or `video_url`):
Browse request history with hard filters. Returns results ordered by creation date (newest first).

**3. Semantic + Filters** (search params AND filter params):
Combine semantic search with hard filters. Filters narrow the candidate set before
ranking by similarity.

**Filter Options:**
- `endpoint_id`: Filter by one or more fal endpoints (comma-separated or repeated, up to 50 IDs)
- `exclude_api_requests` / `only_api_requests`: Filter by request source

**Examples:**
- Semantic text search: `?query=sunset+landscape`
- Image similarity: `?image_url=https://...&min_similarity=0.5`
- Filtered search: `?query=portrait&endpoint_id=fal-ai/flux/dev`
- Browse across multiple endpoints: `?endpoint_id=fal-ai/flux/dev,fal-ai/flux/schnell`

## Query parameters

- `limit` integer — Maximum number of items to return. Actual maximum depends on query type and expansion parameters.
- `cursor` string — Pagination cursor from previous response. Encodes the page number.
- `query` string — Text search query for semantic search. Mutually exclusive with image_url and video_url.
- `image_url` string — Image URL for similarity search. Mutually exclusive with query and video_url.
- `video_url` string — Video URL for similarity search. Mutually exclusive with query and image_url.
- `endpoint_id` union — Filter by one or more fal endpoints to scope request history. Accepts comma-separated or repeated values (1-50 IDs).
  - string
  - string[]
- `endpoint` string — Deprecated: use `endpoint_id`. Single-endpoint filter retained for backward compatibility. If both are provided, `endpoint_id` wins.
- `exclude_api_requests` boolean — Exclude requests made via API keys (only show playground/UI requests). Mutually exclusive with only_api_requests.
- `only_api_requests` boolean — Only include requests made via API keys. Mutually exclusive with exclude_api_requests.
- `min_similarity` number, nullable — Minimum similarity score (0-1) for semantic search results. Only applies when query or image_url is provided.

## Response `200`

Successfully retrieved request search results

- object — Request search results with pagination
  - `next_cursor` string, nullable, required — Cursor for the next page of results, null if no more pages
  - `has_more` boolean, required — Boolean indicating if more results are available (convenience field derived from next_cursor)
  - `results` object[], required — Array of matching request results, ordered by relevance or recency
    - `request_id` string, uuid, required — Unique identifier for the request
    - `endpoint_id` string, required — Endpoint that was executed for this request
    - `started_at` string, date-time, required — Time when request processing started
    - `sent_at` string, date-time, required — Time when request was sent to the backend
    - `ended_at` string, date-time, nullable — Time when request finished processing
    - `status_code` integer, nullable — HTTP status code returned by the request
    - `duration` number, nullable — Total request duration in seconds
    - `json_input` unknown
    - `json_output` unknown
    - `similarity` number — Similarity score (0-1) when semantic search is used

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication required
- `403` — Access denied
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.dev/fal/apis/platform-apis.md) · [All operations](https://skmtc.dev/fal/apis/platform-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fal/platform-apis/revisions/0c7dabf80b00/schema)
