Даведацца цану
Адпраўце праект параметрамі ў адрасе, у адказ прыйдзе цана. Нічога не захоўваецца.
Адзін адрас на нашым сайце дае дакладную цану і прымае заказ у фармаце JSON. Выклікайце яго з уласнай сістэмы, з бота або з ШІ-агента, па той жа цане, што на старонцы для студый.
curl "https://fast24.dev/api/studio-order?type=website&pages=5&languages=2&booking=1¤cy=EUR"
200 OK
{
"quote": {
"amount": 125,
"currency": "EUR",
"total_pages": 10,
"breakdown": { "base": 75, "booking": 50 }
},
"project": {
"type": "website", "pages": 5, "languages": 2, "booking": true, …
},
"delivery": "Live within 24 hours of our email confirming we have everything: the filled-in brief, texts or a brief for them, a logo, photos and contact details.",
"payment": "The studio pays only after seeing the finished site. If it does not suit you, you owe nothing.",
…
}
Скарочаны адказ API на запыт цаны
Агент або ўласная праграма студыі выклікае адрас і адразу атрымлівае цану.
Агент задае кліенту пытанні брыфа: чым займаецца бізнес і што павінен зрабіць наведвальнік.
POST вяртае нумар заказу і тую ж цану. Мы пацвярджаем поштай або ў Telegram.
Сайт у сетцы за 24 гадзіны з нашага ліста, што ў нас ёсць усё.
Гэта старонка — даведка па кодзе. Цэны і ўмовы для студый глядзіце на старонцы для студый.
Тэкст, які студыя аддае свайму агенту: як даведацца цану, якія пытанні брыфа задаць і як аформіць заказ.
Адпраўце праект параметрамі ў адрасе, у адказ прыйдзе цана. Нічога не захоўваецца.
Адпраўце праект у фармаце JSON, у адказ прыйдзе нумар заказу і тая ж цана. Пацвярджаем па пошце або ў Telegram.
https://fast24.dev/api/studio-orderБез параметраў адрас дае кароткае апісанне сэрвісу. З brief=1 дае пытанні брыфа, з любым іншым параметрам дае цану.
curl "https://fast24.dev/api/studio-order"
{
"service": "fast24.dev order API for web studios and AI agents",
"quote": "GET /api/studio-order?type=website&pages=5&languages=2&booking=1¤cy=EUR",
"order": "POST /api/studio-order with JSON {studio, project, currency}",
"spec": "https://fast24.dev/openapi.json",
"delivery": "Live within 24 hours of our email confirming we have everything: the filled-in brief, texts or a brief for them, a logo, photos and contact details.",
"payment": "The studio pays only after seeing the finished site. If it does not suit you, you owe nothing.",
"edits": "Plain HTML, CSS and JavaScript files, no admin panel: after payment you get the source files and change the text directly in them, which any developer can do. Up to 3 rounds of changes are included within a week after delivery, each done within 24 hours, plus 7 days of free fixes for anything broken in our work.",
"terms": "https://fast24.dev/terms",
"studios": "https://fast24.dev/studios/"
}
curl "https://fast24.dev/api/studio-order?type=website&pages=5&languages=2&booking=1¤cy=EUR"
const answer = await fetch('https://fast24.dev/api/studio-order?type=website&pages=5&languages=2&booking=1¤cy=EUR');
const price = await answer.json();
console.log(price.quote.amount, price.quote.currency); // 125 EUR
{
"quote": {
"amount": 125,
"currency": "EUR",
"total_pages": 10,
"breakdown": { "base": 75, "booking": 50 }
},
"project": {
"type": "website", "pages": 5, "languages": 2,
"payments": false, "subscriptions": false, "booking": true,
"accounts": false, "extra_roles": 0, "integrations": 0
},
"delivery": "Live within 24 hours of our email confirming we have everything: the filled-in brief, texts or a brief for them, a logo, photos and contact details.",
"payment": "The studio pays only after seeing the finished site. If it does not suit you, you owe nothing.",
"edits": "Plain HTML, CSS and JavaScript files, no admin panel: after payment you get the source files and change the text directly in them, which any developer can do. Up to 3 rounds of changes are included within a week after delivery, each done within 24 hours, plus 7 days of free fixes for anything broken in our work.",
"terms": "https://fast24.dev/terms",
"studios": "https://fast24.dev/studios/"
}
| Параметр | Значэнні | Па змаўчанні |
|---|---|---|
type | landing, website, shop, redesign | website |
pages | 1–500 | 1 |
languages | 1–20 | 1 |
payments | on / off | off |
subscriptions | on / off | off |
booking | on / off | off |
accounts | on / off | off |
extra_roles | 0–10 | 0 |
integrations | 0–10 | 0 |
currency | EUR, USD, PLN | EUR |
brief | 1: пытанні брыфа замест цаны | — |
lang | мова пытанняў брыфа: en, ru, pl, de, fr, es, pt, by | en |
Цана ў EUR і USD адным і тым жа лікам, у PLN у 4 разы большая. Каб уключыць параметр «так/не», адпраўце 1, true, yes або on; каб пакінуць выключаным, не пазначайце яго.
https://fast24.dev/api/studio-orderАдпраўце праект у фармаце JSON. Абавязкова запоўніце studio.email або studio.telegram: без іх пацвердзіць заказ нельга.
curl -X POST https://fast24.dev/api/studio-order \
-H "Content-Type: application/json" \
-d '{"studio":{"name":"Studio","email":"studio@example.com"},"project":{"type":"website","pages":5,"languages":2,"booking":true,"business":"A dental clinic with two dentists","goal":"Book a visit by phone or through the form"},"currency":"EUR"}'
{
"order_id": "FD-MUKEOJ1N-BBC8",
"status": "received",
"price": {
"amount": 125,
"currency": "EUR",
"total_pages": 10,
"breakdown": { "base": 75, "booking": 50 }
},
"project": {
"type": "website", "pages": 5, "languages": 2,
"payments": false, "subscriptions": false, "booking": true,
"accounts": false, "extra_roles": 0, "integrations": 0
},
"next": "We confirm the order and ask for the content within 15 minutes, by email or Telegram.",
"delivery": "Live within 24 hours of our email confirming we have everything: the filled-in brief, texts or a brief for them, a logo, photos and contact details.",
"payment": "The studio pays only after seeing the finished site. If it does not suit you, you owe nothing.",
"edits": "Plain HTML, CSS and JavaScript files, no admin panel: after payment you get the source files and change the text directly in them, which any developer can do. Up to 3 rounds of changes are included within a week after delivery, each done within 24 hours, plus 7 days of free fixes for anything broken in our work.",
"terms": "https://fast24.dev/terms",
"studios": "https://fast24.dev/studios/"
}
| Поле | Абавязкова | Заўвага |
|---|---|---|
name | не | назва студыі або агенцтва |
website | не | сайт студыі або агенцтва |
email | хаця б адно з двух | каб пацвердзіць заказ |
telegram | хаця б адно з двух | каб пацвердзіць заказ |
| Поле | Значэнні | Па змаўчанні |
|---|---|---|
type | landing, website, shop, redesign | website |
pages | 1–500 | 1 |
languages | 1–20 | 1 |
payments | on / off | off |
subscriptions | on / off | off |
booking | on / off | off |
accounts | on / off | off |
extra_roles | 0–10 | 0 |
integrations | 0–10 | 0 |
business | тэкст: чым займаецца кліент студыі | — |
goal | тэкст: што павінен зрабіць наведвальнік на сайце | — |
content_ready | on / off | off |
notes | тэкст: што яшчэ варта нам сказаць | — |
| Поле | Што азначае |
|---|---|
brief | адказы брыфа, ключ — id пытання з brief_questions |
lang | мова спісу missing у адказе, па змаўчанні en |
order_id | нумар ужо прынятага заказу: новыя адказы брыфа дадаюцца да яго, studio і project тады не патрэбныя |
dry_run | true: праверка запыту без заказу і без лістоў |
| Поле | Што азначае |
|---|---|
order_id | нумар заказу, напрыклад FD-MUKEOJ1N-BBC8 |
status | "received": заказ прыняты, брыф поўны; "brief_incomplete": заказ прыняты, чаго не хапае — у missing; "brief_complete": адказы, дасланыя па order_id, дапоўнілі брыф |
missing | пытанні брыфа, якіх яшчэ не хапае для пачатку працы; пуста, калі хапае ўсяго |
dry_run | true, толькі калі ў запыце быў dry_run |
price | той жа аб’ект, што quote у адказе GET: amount, currency, total_pages, breakdown |
project | праект з падстаўленымі значэннямі па змаўчанні |
next | што адбудзецца далей, адным радком |
delivery | умова пра тэрмін, тая ж, што на старонцы для студый |
payment | умова пра аплату, тая ж, што на старонцы для студый |
edits | умова пра праўкі, тая ж, што на старонцы для студый |
terms | спасылка на умовы дагавора |
studios | спасылка на цэны для студый |
| Код | Памылка | Калі |
|---|---|---|
| 400 | { "error": "Send JSON: {studio, project, currency}" } | цела запыту не разбіраецца як JSON |
| 400 | { "error": "studio.email or studio.telegram is required, so we can confirm the order" } | не запоўнена ні studio.email, ні studio.telegram |
| 413 | { "error": "Request too large" } | цела запыту большае за 20 000 байт |
| 429 | { "error": "Too many orders from this address, try again in an hour" } | больш за 10 заказаў з аднаго IP-адрасу за гадзіну |
| 404 | { "error": "order_id not found" } | заказу з такім order_id няма |
GET, POST і OPTIONS.Заказ атрымлівае нумар і дакладную цану адразу ў адказе. Мы захоўваем яго гэтак жа, як заяўку з формы на сайце, пацвярджаем па пошце або ў Telegram і просім матэрыялы на працягу 15 хвілін.
Умовы пра тэрмін, аплату і праўкі ў кожным адказе — тыя ж, што на старонцы для студый.
Поўнае машыначытальнае апісанне абодвух выклікаў — у openapi.json.
Пытанні па падключэнні: [email protected].