Menu
public
The public operations.
| Operation | Method and path |
|---|---|
| The credit charges in force, and the price of one credit, for anyone | GET /public/charges |
| Who runs weird: the company identity, for anyone | GET /public/company |
| One value of the company identity, as text for a page | GET /public/company/{field} |
| Whether a domain can be registered, for anyone | GET /public/domains/availability |
The credit charges in force, and the price of one credit, for anyone#
GET /public/charges · operation publicCharges
The credit charges in force without a credential, for the public site and any visitor: version, effective_at, charges (contract -> rate -> decimal credits), vat_percent (the VAT rate in force), currency (RON) and credit_price (the price of one credit: net, vat and total, VAT included, what a visitor is shown first; set by weird; null while credits are not on sale). Every figure under charges is a credit charge, in credits. Uncharged. Cacheable: Cache-Control: public, max-age=300 and an ETag; a request with the same If-None-Match is answered 304 without a body. Limited per client address (past the limit, 429). A browser on the public site's origin may read it (CORS without credentials). The signed-in GET /credits/charges answers the same charges. This call is not charged.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Answer 200 (PublicCharges): the result
version, integer, requiredeffective_at, string or null, requiredcharges, object, required — contract -> rate -> the credit charge, decimal creditsvat_percent, string, required — the VAT rate in force, percentcurrency, string, required — the currency of credit_price (must be"RON")credit_price, one of, required — null while credits are not on sale- variant 1: object — the price of one credit, what a customer pays per credit bought, set by weird with the VAT rate in force: the only price; everything else is a credit charge, in credits. A purchase is priced on its whole quantity (the credits at
net, rounded to the ban, then the VAT on that, rounded to the ban), so its total may differ by a ban from credits xtotal; a purchase keeps the price it was bought atnet, string, required — before VAT: the price in force, two to four decimalsvat, string, required — the VAT on it, two to four decimalstotal, string, required — VAT included, two to four decimals: what a visitor is shown firstcurrency, string, required (must be"RON")
- variant 2: null
- variant 1: object — the price of one credit, what a customer pays per credit bought, set by weird with the VAT rate in force: the only price; everything else is a credit charge, in credits. A purchase is priced on its whole quantity (the credits at
Answer 304 (PublicCharges): not modified
version, integer, requiredeffective_at, string or null, requiredcharges, object, required — contract -> rate -> the credit charge, decimal creditsvat_percent, string, required — the VAT rate in force, percentcurrency, string, required — the currency of credit_price (must be"RON")credit_price, one of, required — null while credits are not on sale- variant 1: object — the price of one credit, what a customer pays per credit bought, set by weird with the VAT rate in force: the only price; everything else is a credit charge, in credits. A purchase is priced on its whole quantity (the credits at
net, rounded to the ban, then the VAT on that, rounded to the ban), so its total may differ by a ban from credits xtotal; a purchase keeps the price it was bought atnet, string, required — before VAT: the price in force, two to four decimalsvat, string, required — the VAT on it, two to four decimalstotal, string, required — VAT included, two to four decimals: what a visitor is shown firstcurrency, string, required (must be"RON")
- variant 2: null
- variant 1: object — the price of one credit, what a customer pays per credit bought, set by weird with the VAT rate in force: the only price; everything else is a credit charge, in credits. A purchase is priced on its whole quantity (the credits at
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | charges-not-published, ledger-unavailable | ledger-unavailable (the credit account did not answer: try again later) or charges-not-published (the credit charges are not published yet: try again later) |
Example
curl -X GET 'https://api.weird.ro/public/charges'With the CLI (weird credits charges, weird domains check):
$ weird credits charges$ weird domains check <domain>
MCP: weird_public_charges.
Who runs weird: the company identity, for anyone#
GET /public/company · operation publicCompany
Who runs weird, for the public site, the documentation, the customer application and any visitor, without a credential: company (legal_name, trade_register, cui, vat_code, registered_office, office_city, contact_email, phone, support_email, security_email, privacy_email, authorities_email, ro_registry_status, complaint_days, rotld_rules_url, sal_text, ods_body), complete (true) and missing (empty). Set by weird; a change shows here within a minute plus the caches' max-age. The legal documents (GET /legal/documents/{kind}) carry the same values. While the company identity is incomplete this read, the legal documents that name the company and every purchase of credits answer 503 company-identity-incomplete: no page shows a value that is not set. Uncharged. Cacheable: Cache-Control: public, max-age=300 and an ETag; a request with the same If-None-Match is answered 304 without a body. Limited per client address (past the limit, 429). A browser on the public site's origin may read it (CORS without credentials). This call is not charged.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Answer 200 (PublicCompany): the result
company, object, required — the company identity of who runs weird, every value setauthorities_email, string or null, requiredcontact_email, string or null, requiredtrade_register, string or null, requiredrotld_rules_url, string or null, requiredvat_code, string or null, requiredprivacy_email, string or null, requiredcui, string or null, requiredregistered_office, string or null, requiredsupport_email, string or null, requiredlegal_name, string or null, requiredsal_text, string or null, requiredsecurity_email, string or null, requiredphone, string or null, requiredcomplaint_days, string or null, requiredoffice_city, string or null, requiredods_body, string or null, requiredro_registry_status, string or null, required
complete, boolean, required — true: an incomplete identity is answered 503company-identity-incompletemissing, array of strings, required — empty: an incomplete identity is answered 503company-identity-incomplete
Answer 304 (PublicCompany): not modified
company, object, required — the company identity of who runs weird, every value setauthorities_email, string or null, requiredcontact_email, string or null, requiredtrade_register, string or null, requiredrotld_rules_url, string or null, requiredvat_code, string or null, requiredprivacy_email, string or null, requiredcui, string or null, requiredregistered_office, string or null, requiredsupport_email, string or null, requiredlegal_name, string or null, requiredsal_text, string or null, requiredsecurity_email, string or null, requiredphone, string or null, requiredcomplaint_days, string or null, requiredoffice_city, string or null, requiredods_body, string or null, requiredro_registry_status, string or null, required
complete, boolean, required — true: an incomplete identity is answered 503company-identity-incompletemissing, array of strings, required — empty: an incomplete identity is answered 503company-identity-incomplete
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (the company identity could not be read: try again later) |
| 503 | company-identity-incomplete, unavailable | company-identity-incomplete (the company details are not complete: nothing is sold and the documents naming the company are not served until they are; try again later), or unavailable (the company identity is unavailable right now) |
Example
curl -X GET 'https://api.weird.ro/public/company'One value of the company identity, as text for a page#
GET /public/company/{field} · operation publicCompanyField
One value of GET /public/company as text/html: the value HTML-escaped, nothing else; complete answers yes or no, and every other field 503 company-identity-incomplete while the answer is no. What the public site's web server includes into its pre-rendered pages (server-side includes), so a reader without JavaScript sees the values in force. An unknown field is 404 not-found. Uncharged, cacheable and limited as GET /public/company. This call is not charged.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
field | path | string | yes |
Answer 200 (CompanyFieldText): the result — string
Answer 304 (CompanyFieldText): not modified — string
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 404 | not-found | not-found (an unknown field) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (try again later) |
| 503 | company-identity-incomplete, unavailable | company-identity-incomplete (the company details are not complete: nothing is sold and the documents naming the company are not served until they are; try again later) or unavailable (try again later) |
Example
curl -X GET 'https://api.weird.ro/public/company/{field}'Whether a domain can be registered, for anyone#
GET /public/domains/availability · operation publicDomainAvailability
The public site's search: one name per call, without a credential, uncharged. domain is checked as GET /domains/availability checks it (400 invalid-params, field domain). The answer is minimal: domain, available and charge (a reference to the credit charges: the contract domains.register per year; read the amount with GET /public/charges); no registry detail. Limited per client address (by the minute and by the hour) and for every visitor together, the registry's protection; past a limit the same neutral 429 as elsewhere. One name's answer is reused for a short while. A browser on the public site's origin may call it (CORS without credentials). The signed-in GET /domains/availability gives the full answer. This call is not charged.
| Credential | none: anyone may call it (x-weird-auth: public) |
| Charged | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | yes | the domain name, such as example.ro |
Answer 200 (PublicDomainAvailability): the result
domain, string, requiredavailable, boolean, requiredcharge, object, requiredcontract, string, required — the contract of the credit charges:domains.registerrate, string, required —per_year: the amount is read with GET /public/charges
Refusals ({"error": {"code", "message"}}; see errors):
| Status | Codes | When |
|---|---|---|
| 400 | invalid-params | invalid-params (field domain) |
| 429 | rate-limited | rate-limited |
| 502 | upstream-unavailable | upstream-unavailable (the registry did not answer: try again later) |
| 503 | unavailable | unavailable (domain registration is not available now) |
Example
curl -X GET 'https://api.weird.ro/public/domains/availability?domain=<domain>'With the CLI (weird domains check):
$ weird domains check <domain>MCP: weird_domain_search.
This page is generated from the API's public document; it changes when the document does.