|
| 1 | +--- |
| 2 | +title: Data limits for the Text Analytics API |
| 3 | +titleSuffix: Azure Cognitive Services |
| 4 | +description: Data limitations for the Text Analytics API from Azure Cognitive Services. |
| 5 | +services: cognitive-services |
| 6 | +author: aahill |
| 7 | +manager: nitinme |
| 8 | + |
| 9 | +ms.service: cognitive-services |
| 10 | +ms.subservice: text-analytics |
| 11 | +ms.topic: overview |
| 12 | +ms.date: 04/27/2020 |
| 13 | +ms.author: aahi |
| 14 | +ms.reviewer: chtufts |
| 15 | +--- |
| 16 | + |
| 17 | +# Data and rate limits for the Text Analytics API |
| 18 | +<a name="data-limits"></a> |
| 19 | + |
| 20 | +Use this article to find the limits for the size, and rates that you can send data to Text Analytics API. |
| 21 | + |
| 22 | +## Data limits |
| 23 | + |
| 24 | +> [!NOTE] |
| 25 | +> * If you need to analyze larger documents than the limit allows, you can break the text into smaller chunks of text before sending them to the API. |
| 26 | +> * A document is a single string of text characters. |
| 27 | +
|
| 28 | +| Limit | Value | |
| 29 | +|------------------------|---------------| |
| 30 | +| Maximum size of a single document | 5,120 characters as measured by [StringInfo.LengthInTextElements](https://docs.microsoft.com/dotnet/api/system.globalization.stringinfo.lengthintextelements). | |
| 31 | +| Maximum size of entire request | 1 MB | |
| 32 | + |
| 33 | +The maximum number of documents you can send in a single request will depend on the API version and feature you're using. |
| 34 | + |
| 35 | +#### [Version 3.0-preview](#tab/version-3) |
| 36 | + |
| 37 | +> [!NOTE] |
| 38 | +> If your v3 API request exceeds these limits, but is within the v2 limits, a warning will be returned in the API response. Starting 7/15/2020, a 400 error code will be returned instead. |
| 39 | +
|
| 40 | +The following limits have changed in v3 of the API. Exceeding the limits below will generate a warning in the API response. |
| 41 | + |
| 42 | + |
| 43 | +| Feature | Max Documents Per Request | |
| 44 | +|----------|-----------| |
| 45 | +| Language Detection | 1000 | |
| 46 | +| Sentiment Analysis | 10 | |
| 47 | +| Key Phrase Extraction | 10 | |
| 48 | +| Named Entity Recognition | 5 | |
| 49 | +| Entity Linking | 5 | |
| 50 | + |
| 51 | +#### [Version 2](#tab/version-2) |
| 52 | + |
| 53 | +| Feature | Max Documents Per Request | |
| 54 | +|----------|-----------| |
| 55 | +| Language Detection | 1000 | |
| 56 | +| Sentiment Analysis | 1000 | |
| 57 | +| Key Phrase Extraction | 1000 | |
| 58 | +| Named Entity Recognition | 1000 | |
| 59 | +| Entity Linking | 1000 | |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +## Rate limits |
| 64 | + |
| 65 | +Your rate limit will vary with your [pricing tier](https://azure.microsoft.com/pricing/details/cognitive-services/text-analytics/). These limits are the same for both versions of the API. |
| 66 | + |
| 67 | +| Tier | Requests per second | Requests per minute | |
| 68 | +|---------------|---------------------|---------------------| |
| 69 | +| S / Multi-service | 1000 | 1000 | |
| 70 | +| S0 / F0 | 100 | 300 | |
| 71 | +| S1 | 200 | 300 | |
| 72 | +| S2 | 300 | 300 | |
| 73 | +| S3 | 500 | 500 | |
| 74 | +| S4 | 1000 | 1000 | |
| 75 | + |
| 76 | +Requests are measured for each Text Analytics feature separately. For example, you can send the maximum number of requests for your pricing tier to each feature, at the same time. |
| 77 | + |
| 78 | + |
| 79 | +## See also |
| 80 | + |
| 81 | +* [What is the Text Analytics API](../overview.md) |
| 82 | +* [Pricing details](https://azure.microsoft.com/pricing/details/cognitive-services/text-analytics/) |
0 commit comments