12 rute, cu exemplu de cerere pentru fiecare.
Adresa de bază: https://app.ilustromania.com/nucleu. Autentificarea, formatul și erorile sunt în Prezentarea API-ului.
GET/v1/agentie/branduri
Brandurile agenției
Lista paginată și sortabilă a brandurilor urmărite de agenție.
curl https://app.ilustromania.com/nucleu/v1/agentie/branduri \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/branduri", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/branduri",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/branduri/coada
Coada brandurilor
Brandurile din coada de procesare a agenției, paginate.
curl https://app.ilustromania.com/nucleu/v1/agentie/branduri/coada \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/branduri/coada", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/branduri/coada",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/branduri/hashtaguri
Hashtagurile brandurilor
Hashtagurile urmărite pentru branduri, paginate.
curl https://app.ilustromania.com/nucleu/v1/agentie/branduri/hashtaguri \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/branduri/hashtaguri", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/branduri/hashtaguri",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/campanii
Campaniile agenției
Lista campaniilor agenției, filtrată din query.
| Nume | Tip | Obligatoriu | Detalii |
|---|---|---|---|
limita | integer | nu | între 1 și 200; implicit 50 |
deplasare | integer | nu | între 0 și 9007199254740991; implicit 0 |
cauta | string | nu | cel mult 100 caractere; implicit `` |
sortare | string | nu | una din: start, nume, diamante, meciuri, durata_live; implicit start |
directie | string | nu | una din: asc, desc; implicit desc |
curl https://app.ilustromania.com/nucleu/v1/agentie/campanii \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/campanii", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/campanii",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/campanii/{id}
O campanie a agenției
Detaliul unei campanii a agenției; 404 dacă nu e a firmei.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl https://app.ilustromania.com/nucleu/v1/agentie/campanii/{id} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/campanii/{id}", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/campanii/{id}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/agentie/creatori \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/creatori", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/creatori",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/creatori/{id}
Un creator de conținut
Fișa unui creator al firmei; 404 negăsit.
| Nume | Tip | Descriere |
|---|---|---|
id | string | identificatorul resursei |
curl https://app.ilustromania.com/nucleu/v1/agentie/creatori/{id} \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/creatori/{id}", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/creatori/{id}",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()curl https://app.ilustromania.com/nucleu/v1/agentie/manageri \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/manageri", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/manageri",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/notificari
Notificările agenției
Notificările agenției pentru firma activă, filtrate din query.
curl https://app.ilustromania.com/nucleu/v1/agentie/notificari \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/notificari", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/notificari",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/scraper
Starea scraperului
Ultima stare raportată de scraperul agenției; cere drept de citire și modulul pornit pe firmă.
curl https://app.ilustromania.com/nucleu/v1/agentie/scraper \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/scraper", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/scraper",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()GET/v1/agentie/stare
Starea agenției
Starea modulului de agenție pentru firma din sesiune.
| Câmp | Tip | Obligatoriu | Detalii |
|---|---|---|---|
creatori | object | da | — |
creatori.scraped | integer | da | între 0 și 9007199254740991 |
creatori.verificati | integer | da | între 0 și 9007199254740991 |
creatori.mesaje | integer | da | între 0 și 9007199254740991 |
branduri | object | da | — |
branduri.master | integer | da | între 0 și 9007199254740991 |
branduri.coada | integer | da | între 0 și 9007199254740991 |
branduri.verdicte | integer | da | între 0 și 9007199254740991 |
branduri.hashtaguri | integer | da | între 0 și 9007199254740991 |
campanii | integer | da | între 0 și 9007199254740991 |
manageri | integer | da | între 0 și 9007199254740991 |
notificari | integer | da | între 0 și 9007199254740991 |
curl https://app.ilustromania.com/nucleu/v1/agentie/stare \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/stare", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/stare",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json(){
"creatori": {
"scraped": 1,
"verificati": 1,
"mesaje": 1
},
"branduri": {
"master": 1,
"coada": 1,
"verdicte": 1,
"hashtaguri": 1
},
"campanii": 1,
"manageri": 1,
"notificari": 1
}curl https://app.ilustromania.com/nucleu/v1/agentie/sumar \
-H "Cookie: __Host-sesiune=$JETON_SESIUNE"const raspuns = await fetch("https://app.ilustromania.com/nucleu/v1/agentie/sumar", {
headers: {
"Cookie": `__Host-sesiune=${process.env.JETON_SESIUNE}`,
},
});
const date = await raspuns.json();import os
import requests
raspuns = requests.get(
"https://app.ilustromania.com/nucleu/v1/agentie/sumar",
headers={"Cookie": "__Host-sesiune=" + os.environ["JETON_SESIUNE"]},
)
date = raspuns.json()