Për zhvilluesitFor developers

API

Një API falas dhe e hapur për zhvilluesit: skedarë JSON statikë, pa çelës, pa regjistrim. Mund të thirren drejtpërdrejt nga shfletuesi.A free, open API for developers: static JSON files, no key, no sign-up. They can be called directly from the browser.

Pa çelësNo API key CORS i hapurCORS enabled CC BY-SA 4.0

Pikat fundoreEndpoints

  • GET /api/v1/fjala/{fjala}.jsonNjë fjalë me të gjitha të dhënat: kuptimet, format, format dialektore, burimet.One word with all its data: meanings, forms, dialect forms, sources.
  • GET /api/v1/fjalet.jsonLista e të gjitha fjalëve.List of all headwords.
  • GET /api/v1/kerko.jsonIndeksi i kërkimit: fjala, çelësi pa ë/ç, lloji, kuptimi i shkurtër.Search index: word, key without ë/ç, word class, short meaning.
  • GET /api/v1/format/{shkronja}.jsonFormat e lakuara dhe dialektore → fjala bazë.Inflected and dialect forms → headword.
  • GET /api/v1/statistika.jsonNumrat e fjalorit dhe versioni i të dhënave.Dictionary counts and data version.

Hapësirat në fjalë zëvendësohen me _ . Shkronjat ë dhe ç mbeten siç janë (kodohen në URL).Spaces in words are replaced with _ . The letters ë and ç stay as they are (URL-encoded).

ShembullExample

fetch("https://fjalorishqip.org/api/v1/fjala/punoj.json")
  .then((r) => r.json())
  .then((w) => console.log(w.word, w.entries[0].senses[0].gloss));
Shiko përgjigjenSee the response
{
  "word": "punoj",
  "entries": [
    {
      "pos": "verb",
      "senses": [
        {
          "gloss": "to work",
          "lang": "en",
          "source": "en-wiktionary"
        }
      ],
      "sources": [
        "en-wiktionary"
      ],
      "ipa": [
        "/puˈnɔj/"
      ],
      "etymology": "From punë + -oj.",
      "forms": [
        {
          "form": "punova",
          "tags": [
            "aorist"
          ]
        },
        {
          "form": "punuar",
          "tags": [
            "participle"
          ]
        },
        {
          "form": "punuar",
          "tags": [
            "participle"
          ]
        },
        {
          "form": "duke punuar",
          "tags": [
            "gerund"
          ]
        },
        {
          "form": "për të punuar",
          "tags": [
            "infinitive"
          ]
        },
        {
          "form": "punoj",
          "tags": [
            "first-person",
            "indicative",
            "present",
            "singular"
          ]
        },
        {
          "form": "punon",
          "tags": [
            "indicative",
            "present",
            "second-person",
            "singular"
          ]
        },
        {
          "form": "punon",
          "tags": [
            "indicative",
            "present",
            "singular",
            "third-person"
          ]
        },
        {
          "form": "punojmë",
          "tags": [
            "first-person",
            "indicative",
            "plural",
            "present"
          ]
        },
        {
          "form": "punoni",
          "tags": [
            "indicative",
            "plural",
            "present",
            "second-person"
          ]
        },
        {
          "form": "punojnë",
          "tags": [
            "indicative",
            "plural",
            "present",
            "third-person"
          ]
        },
        {
          "form": "punoja",
          "tags": [
            "first-person",
            "imperfect",
            "indicative",
            "singular"
          ]
        },
        {
          "form": "punoje",
          "tags": [
            "imperfect",
            "indicative",
            "second-person",
            "singular"
          ]
        },
        {
          "form": "punonte",
          "tags": [
            "imperfect",
            "indicative",
            "singular",
            "third-person"
      
…

KushtetTerms

Të dhënat janë me licencën CC BY-SA 4.0: përmendni "FjaloriShqip" dhe burimet (Wiktionary, Wikidata, Wikifjalor). Ju lutemi ruani përgjigjet në memorie (cache) dhe mos bëni mijëra thirrje në sekondë.Data is CC BY-SA 4.0: credit "FjaloriShqip" and the sources (Wiktionary, Wikidata, Wikifjalor). Please cache responses and avoid thousands of calls per second.