AplikaceAplikace
Nastavení

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:manualy:api [2022/12/22 13:32] – [API] michalkrenen:manualy:api [2022/12/22 13:40] – [Use] michalkren
Line 17: Line 17:
 A session cookie will be returned that should be used in every other request. It may be useful to save the session cookie and use it repeatedly within the next few hours. A session cookie will be returned that should be used in every other request. It may be useful to save the session cookie and use it repeatedly within the next few hours.
  
-Every application has an API tailored to its needs. API use manuals:+<WRAP tip important 60%> 
 +Every application has an API tailored to its needs. Individual API usage **manuals**:
   * [[https://github.com/czcorpus/kontext/wiki/HTTP-API|KonText]]   * [[https://github.com/czcorpus/kontext/wiki/HTTP-API|KonText]]
   * [[https://wiki.korpus.cz/doku.php/manualy:treq:api|Treq]]   * [[https://wiki.korpus.cz/doku.php/manualy:treq:api|Treq]]
 +</WRAP>
 +
 +<WRAP round important 60%>
 +Every application also imposes its own **limits**. After exceeding them, there is a risk of blocking access to the API.
 +  * **KonText**: max. 12 requests per minute and max. 5000 requests per day
 +  * **Treq**: max. 30 requests per minute and max. 5000 requests per day
 +</WRAP>
  
 ===== Usage examples ===== ===== Usage examples =====