{
  "openapi": "3.0.1",
  "info": {
    "title": "Tatoeba Sentences and Audio",
    "description": "Search Tatoeba's open sentence collection by language and keyword with Tatoeba's official API. One row per sentence: text, translations in your languages, native speaker audio links, transcriptions, and each item's license and author for attribution. No key needed.",
    "version": "0.1",
    "x-build-id": "DJICvF3kkWgb52NTF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mambalabs~tatoeba-sentences/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mambalabs-tatoeba-sentences",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/mambalabs~tatoeba-sentences/runs": {
      "post": {
        "operationId": "runs-sync-mambalabs-tatoeba-sentences",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/mambalabs~tatoeba-sentences/run-sync": {
      "post": {
        "operationId": "run-sync-mambalabs-tatoeba-sentences",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "languages": {
            "title": "Sentence languages",
            "type": "array",
            "description": "ISO 639-3 codes of the languages to search, for example eng, spa, jpn, cmn, deu, fra. Each language is searched on its own. In Clay, put the column inside a one item list.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases the sentence must contain, for example coffee or how are you. Each keyword is one search in each language. One keyword per line. Leave empty to list sentences on the filters alone.",
            "items": {
              "type": "string"
            }
          },
          "match": {
            "title": "Keyword match",
            "type": "string",
            "description": "exact (default) matches each word in the exact form you typed, so casa does not also match cas or casas. stemmed uses Tatoeba's own word stemming, which also finds plurals and other forms, and sometimes unrelated words. phrase matches the words together in that order. A keyword that already holds search operators (quotes, =, |, -) is sent as written.",
            "default": "exact"
          },
          "translation_languages": {
            "title": "Translation languages",
            "type": "array",
            "description": "Optional. ISO 639-3 codes, for example spa or jpn. Only sentences with a translation in one of these languages are returned, and those translations come in the row. Leave empty for sentences without translations.",
            "items": {
              "type": "string"
            }
          },
          "has_audio": {
            "title": "Audio",
            "type": "string",
            "description": "any (default) returns sentences with or without a recording. yes returns only sentences with at least one native speaker recording. no returns only sentences without one.",
            "default": "any"
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "relevance (default; exact matches first, then shorter sentences; with no keyword, newest first), words (shortest first), -words (longest first), created (newest first), -created (oldest first), modified, -modified, or random.",
            "default": "relevance"
          },
          "min_words": {
            "title": "Minimum words",
            "type": "string",
            "description": "Only sentences with at least this many words. For languages written without spaces, such as Japanese or Chinese, Tatoeba counts characters."
          },
          "max_words": {
            "title": "Maximum words",
            "type": "string",
            "description": "Only sentences with at most this many words (characters for languages written without spaces)."
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Optional. Only sentences with one of these Tatoeba tags, for example OK, idiom, or proverb.",
            "items": {
              "type": "string"
            }
          },
          "native_speakers_only": {
            "title": "Native speakers only",
            "type": "string",
            "description": "no (default) returns every sentence. yes returns only sentences added by a self-identified native speaker.",
            "default": "no"
          },
          "include_unapproved": {
            "title": "Include unapproved sentences",
            "type": "string",
            "description": "no (default) leaves out sentences Tatoeba marks as unapproved (likely wrong). yes keeps them.",
            "default": "no"
          },
          "include_restricted_audio": {
            "title": "Include audio without a reusable license",
            "type": "string",
            "description": "no (default) keeps only recordings with a stated license and no non-commercial (NC) condition. It leaves out NC recordings, which Tatoeba says must not be marketed, and recordings with no license, which Tatoeba says may be cleared for use on its own site only. yes keeps every recording with its license field; you then follow each license yourself. Sentence text is always returned.",
            "default": "no"
          },
          "max_sentences_per_search": {
            "title": "Most sentences per search",
            "type": "string",
            "description": "Stop each language and keyword search after this many sentence rows. Default 100, at most 10,000.",
            "default": "100"
          },
          "max_charge_usd": {
            "title": "Maximum charge for this run (USD)",
            "type": "string",
            "description": "Stop the run before its charges pass this amount in USD. Empty for no cap beyond the one set in Apify."
          },
          "source_tag": {
            "title": "Source tag",
            "type": "string",
            "description": "Internal attribution tag. Leave empty."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}