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

# Search Meme Formats

GET https://api.taktoria.com/api/v1/meme-formats

Search memegen.link, the public catalogue of well-known meme formats,
for a background, as the composer's search box does. Nothing is
added to the workspace: send a result to `POST
/meme-templates/import` to use it. Anybody with a seat may search.
memegen.link is somebody else's free service, so this counts against
the `memegen-link-search` budget as well (see "Rate limits"). Its
catalogue is kept for a day and searched here, so a search seldom
reaches memegen.link; when the copy is due and memegen.link is down,
the last copy is searched. Only with no copy at all is it
`502 upstream_error`, when memegen.link times out, refuses or answers
with something unreadable.

Reference: https://docs.taktoria.com/api-reference/memegen/search-meme-formats

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.taktoria.com/api/v1` (Production, default)
- `http://localhost:3000/api/v1` (Local)

## Request

### Query parameters

- `q` (string, required) — What the format is called or shows: "drake", "distracted boyfriend", "this is fine". Every word must appear in the format's id, name, keywords or example captions, in any order; case, accents and punctuation are ignored, and `*` inside a word matches anything (`dr*ke`). Formats whose name matches come first, at most 24. Blank finds nothing.

## Response

### 200

- `data` (list of MemeFormat, required) — At most 24, the best matches first. Not paged.

## Errors

### 402 Subscription Required Error

The organization has no subscription for the app that lets it in: active, trialing or past due. One that is unpaid (Stripe stopped retrying a failed payment), paused, incomplete or cancelled answers this too, and the message says which: an unpaid app is locked until a workspace admin updates the payment details. `details.status` is the app's subscription status (null with none), and `details.paymentIssue` is `unpaid`, or `payment_failed` for an incomplete one whose first payment failed, as `paymentIssue` on `GET /subscription` reckons it; null when a payment is not why.

- `error` (ErrorDetail, required)

### 502 Upstream Error

A service Taktoria depends on (Stripe, Vercel for app domains, or a ticketing system such as Linear, Jira, GitHub, Asana or ClickUp, or a docs tool a person exports to, Notion, Confluence or Google Docs) turned the change down or could not be reached. Nothing was saved; try again.

- `error` (ErrorDetail, required)

### 429 Too Many Requests Error

Rate limited (`rate_limited`): the key, the signed-in person, the workspace or an expensive endpoint's own budget is used up for now. `Retry-After` says how many seconds to wait, and `details` names the `policy`, its `limit`, `windowSeconds` and `retryAfter`. Every answer to an authenticated request carries the IETF `RateLimit-Policy` and `RateLimit` headers, so a client can slow down before it gets this. Nothing was done; wait and send it again. See "Rate limits".

- `error` (ErrorDetail, required)

## Types

### MemeFormat

A well-known meme format from memegen.link's public catalogue: a blank background and how many captions it expects. Not in the workspace until it is imported with `POST /meme-templates/import`.

- `id` (string, required) — memegen.link's id for the format.
- `title` (string, required)
- `url` (string, required) — The blank background, an https address.
- `thumbnail` (string, required) — A picture to show it by; today the same as `url`.
- `lines` (integer, required) — How many captions the format expects, 1 to 3.
- `layout` (enum, required) — The layout it becomes, from `lines`.
  - Allowed values: `CAPTION`, `TOP_BOTTOM`, `THREE_PANEL`, `SPLIT`
- `sourceUrl` (string, optional)
- `attribution` (string, optional) — The credit an imported template carries.

### ErrorDetail

- `code` (string, required) — A stable machine-readable code such as `not_found`.
- `message` (string, required)
- `details` (any, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "success",
      "title": "Success Kid",
      "url": "https://api.memegen.link/images/success.jpg",
      "thumbnail": "https://api.memegen.link/images/success.jpg",
      "lines": 2,
      "layout": "TOP_BOTTOM",
      "sourceUrl": "https://knowyourmeme.com/memes/success-kid",
      "attribution": "Success Kid · memegen.link"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.taktoria.com/api/v1/meme-formats"

querystring = {"q":"success"}

headers = {"Authorization": "Bearer <token>"}

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

print(response.json())
```

```javascript
const url = 'https://api.taktoria.com/api/v1/meme-formats?q=success';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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 := "https://api.taktoria.com/api/v1/meme-formats?q=success"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	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.taktoria.com/api/v1/meme-formats?q=success")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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("https://api.taktoria.com/api/v1/meme-formats?q=success")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.taktoria.com/api/v1/meme-formats?q=success', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.taktoria.com/api/v1/meme-formats?q=success");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.taktoria.com/api/v1/meme-formats?q=success")! 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()
```