Perle românești
Real slips of the tongue by famous Romanians, word for word, in Romanian. Every one in context, sourced, and dated as closely as the sources allow. Get one at random, or filter by person, year or category.
Gabriel Petrea · 2019 · source
Discurs la congresul PSD de la Sala Palatului, în cursa pentru funcția de secretar general.
Real, or it does not go in
These are real people, so every perlă here was said in public, is quoted word for word in the original Romanian, and links to at least one source (an article, a video, a transcript) that has those words. Nothing is invented, tidied up or paraphrased. If we could not source it, it is not here.
Spotted a wrong quote, a wrong date, or something that should not be here? Write to stefan@tasta.space and it gets fixed or removed.
Endpoints
| Method | Path | What you get |
|---|---|---|
| GET | /v1/perle/random | One perlă at random. Takes the filters below and format=text. |
| GET | /v1/perle | A page of perle, newest first. Filters, sort, page, per_page. |
| GET | /v1/perle/{id} | One perlă by id. Takes format=text. |
| GET | /v1/perle/today | The perlă of the day, the same for everyone until midnight in Bucharest. |
| GET | /v1/perle/people | Everyone quoted, with a slug and a count. Takes category. |
| GET | /v1/perle/categories | The categories, with counts. |
Parameters
| Name | Example | Does |
|---|---|---|
person | adi-ilie | Only this person. Slugs come from /v1/perle/people. |
category | politica | One of politica, sport, tv, showbiz. |
year | 2018 | Said that year. Skips perle dated only before a year. |
from, to | 2010 | Said between these years, both included. A perlă dated before a year counts for to, never for from. |
q | scoala | Search the quote, the context and the name. Case and diacritics do not matter: si finds și. |
sort | oldest | List only: newest (default), oldest or random. |
page, per_page | 2, 10 | List only. per_page is 1 to 50, default 20. |
format | text | One plain line instead of JSON, on random, today and {id}. |
Calls
$ curl https://api.tasta.space/v1/perle/random
$ curl "https://api.tasta.space/v1/perle?category=sport&sort=oldest"
$ curl "https://api.tasta.space/v1/perle/random?format=text"
$ curl "https://api.tasta.space/v1/perle?q=romania&per_page=5"
A perlă looks like this
{
"data": {
"id": 385,
"quote": "Nu sunt nici acoperit, nici descoperit, nici cu statul paralel, nici cu statul degeaba. Eu sunt cu partidul!",
"person": {
"name": "Gabriel Petrea",
"slug": "gabriel-petrea"
},
"role": "candidat la funcția de secretar general al PSD",
"category": "politica",
"said_on": "2019-06-29",
"year": 2019,
"date_precision": "day",
"context": "Discurs la congresul PSD de la Sala Palatului, în cursa pentru funcția de secretar general.",
"sources": [
{
"url": "https://www.g4media.ro/perlele-de-la-congresul-psd-cele-mai-trasnite-declaratii-ale-candidatilor-social-democrati.html",
"publisher": "G4Media",
"title": "”Perlele” de la congresul PSD. Cele mai trăsnite declarații ale candidaților social-democrați",
"kind": "article"
}
],
"url": "https://api.tasta.space/v1/perle/385"
}
}
How exact the date is
said_on is only as precise as the sources. date_precision says how precise:
| Value | said_on | Means |
|---|---|---|
day | 2019-10-03 | That day. |
month | 2011-03 | Some day that month. |
year | 2006 | Some day that year. |
before | 2012 | That year or earlier. The perlă turns up in a later collection, so the year is that of the earliest source. |
Errors of its own
On top of the hub's errors. Messages are in Romanian, like the data; codes are not.
| Status | Code | When |
|---|---|---|
| 404 | no_match | random found nothing for those filters |
| 404 | not_found | No perlă with that id |
| 422 | invalid_parameter | A category that does not exist, a year that is not a year, and so on |