Menu

public

The public operations.

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.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Answer 200 (PublicCharges): the result

  • version, integer, required
  • effective_at, string or null, required
  • charges, object, required — contract -> rate -> the credit charge, decimal credits
  • vat_percent, string, required — the VAT rate in force, percent
  • currency, 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 x total; a purchase keeps the price it was bought at
      • net, string, required — before VAT: the price in force, two to four decimals
      • vat, string, required — the VAT on it, two to four decimals
      • total, string, required — VAT included, two to four decimals: what a visitor is shown first
      • currency, string, required (must be "RON")
    • variant 2: null

Answer 304 (PublicCharges): not modified

  • version, integer, required
  • effective_at, string or null, required
  • charges, object, required — contract -> rate -> the credit charge, decimal credits
  • vat_percent, string, required — the VAT rate in force, percent
  • currency, 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 x total; a purchase keeps the price it was bought at
      • net, string, required — before VAT: the price in force, two to four decimals
      • vat, string, required — the VAT on it, two to four decimals
      • total, string, required — VAT included, two to four decimals: what a visitor is shown first
      • currency, string, required (must be "RON")
    • variant 2: null

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503charges-not-published, ledger-unavailableledger-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.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Answer 200 (PublicCompany): the result

  • company, object, required — the company identity of who runs weird, every value set
    • authorities_email, string or null, required
    • contact_email, string or null, required
    • trade_register, string or null, required
    • rotld_rules_url, string or null, required
    • vat_code, string or null, required
    • privacy_email, string or null, required
    • cui, string or null, required
    • registered_office, string or null, required
    • support_email, string or null, required
    • legal_name, string or null, required
    • sal_text, string or null, required
    • security_email, string or null, required
    • phone, string or null, required
    • complaint_days, string or null, required
    • office_city, string or null, required
    • ods_body, string or null, required
    • ro_registry_status, string or null, required
  • complete, boolean, required — true: an incomplete identity is answered 503 company-identity-incomplete
  • missing, array of strings, required — empty: an incomplete identity is answered 503 company-identity-incomplete

Answer 304 (PublicCompany): not modified

  • company, object, required — the company identity of who runs weird, every value set
    • authorities_email, string or null, required
    • contact_email, string or null, required
    • trade_register, string or null, required
    • rotld_rules_url, string or null, required
    • vat_code, string or null, required
    • privacy_email, string or null, required
    • cui, string or null, required
    • registered_office, string or null, required
    • support_email, string or null, required
    • legal_name, string or null, required
    • sal_text, string or null, required
    • security_email, string or null, required
    • phone, string or null, required
    • complaint_days, string or null, required
    • office_city, string or null, required
    • ods_body, string or null, required
    • ro_registry_status, string or null, required
  • complete, boolean, required — true: an incomplete identity is answered 503 company-identity-incomplete
  • missing, array of strings, required — empty: an incomplete identity is answered 503 company-identity-incomplete

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (the company identity could not be read: try again later)
503company-identity-incomplete, unavailablecompany-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.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Parameters

NameInTypeRequiredDescription
fieldpathstringyes

Answer 200 (CompanyFieldText): the result — string

Answer 304 (CompanyFieldText): not modified — string

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
404not-foundnot-found (an unknown field)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (try again later)
503company-identity-incomplete, unavailablecompany-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.

Credentialnone: anyone may call it (x-weird-auth: public)
Chargedno

Parameters

NameInTypeRequiredDescription
domainquerystringyesthe domain name, such as example.ro

Answer 200 (PublicDomainAvailability): the result

  • domain, string, required
  • available, boolean, required
  • charge, object, required
    • contract, string, required — the contract of the credit charges: domains.register
    • rate, string, required — per_year: the amount is read with GET /public/charges

Refusals ({"error": {"code", "message"}}; see errors):

StatusCodesWhen
400invalid-paramsinvalid-params (field domain)
429rate-limitedrate-limited
502upstream-unavailableupstream-unavailable (the registry did not answer: try again later)
503unavailableunavailable (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.