---
title: API
description: Interact with AI Search programmatically using Workers bindings, the REST API, or MCP.
image: https://developers.cloudflare.com/dev-products-preview.png
---

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/ai-search/llms.txt  
> Use this file to discover all available pages before exploring further. 

[Skip to content](#%5Ftop) 

# API

[API Migration](https://developers.cloudflare.com/ai-search/api/migration/)[Instances](https://developers.cloudflare.com/ai-search/api/instances/)[Items](https://developers.cloudflare.com/ai-search/api/items/)[Search](https://developers.cloudflare.com/ai-search/api/search/)

```json
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/ai-search/api/#page","headline":"API · Cloudflare AI Search docs","description":"Interact with AI Search programmatically using Workers bindings, the REST API, or MCP.","url":"https://developers.cloudflare.com/ai-search/api/","inLanguage":"en","image":"https://developers.cloudflare.com/dev-products-preview.png","dateModified":"2026-04-20","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/ai-search/","name":"AI Search"}},{"@type":"ListItem","position":3,"item":{"@id":"/ai-search/api/","name":"API"}}]}
```
