Skip to content
SufiLabs

Documentation

The API is not open yet. These docs are a draft; endpoint and field names may change before launch. Samples use the data version of 27 November 2026.

First request

Only GET requests are accepted and responses are JSON. Send your key in the Authorization header. Do not embed the key in a public page.

curl "https://api.sufilabs.com/v1/resolve?name=%C3%9Cmm%C3%AE%20Sinan" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response format

Every response contains the data, the data version and the licences used in that response. Name search also reports the total number of candidates and whether the list was cut.

{
  "data": [
    {
      "person": "sinan-i-ummi",
      "name": "Ümmî Sinân",
      "match": "exact",
      "death_year": 1657,
      "order": "halvetiyye",
      "matched_spelling": "Ümmî Sinân",
      "license": "CC-BY-NC-4.0"
    },
    {
      "person": "ummi-sinan",
      "name": "Ümmî Sinan",
      "match": "exact",
      "death_year": 1568,
      "order": "halvetiyye",
      "matched_spelling": "Ümmî Sinan",
      "license": "CC-BY-NC-4.0"
    },
    {
      "person": "sinaneddin-yusuf-ummi-sinan-bin-cafer",
      "name": "Sinâneddin Yûsuf Ümmî Sinan b. Cafer",
      "match": "partial",
      "death_year": 1598,
      "order": null,
      "matched_spelling": "Sinâneddin Yûsuf Ümmî Sinan b. Cafer",
      "license": "CC-BY-NC-4.0"
    }
  ],
  "total": 3,
  "truncated": false,
  "meta": {
    "data_version": "2026-11-27-1639",
    "licenses": {
      "CC-BY-NC-4.0": {
        "name": "CC BY-NC 4.0",
        "attribution": "sufilabs.com / tarikat.org",
        "terms": "https://creativecommons.org/licenses/by-nc/4.0/"
      }
    }
  }
}

Single-record endpoints (for example /v1/persons/yunus-emre) return an object in data; the sample below is shortened. Lists also carry page, limit and total; limit defaults to 50 and is capped at 200. Record text is mostly in Turkish.

{
  "data": {
    "slug": "yunus-emre",
    "name": "Yûnus Emre",
    "title": "Sûfî şair ve Türkçe irfan dilinin kurucu isimlerinden",
    "birth_year": 1240,
    "death_year": 1321,
    "source_url": "https://tarikat.org/kisiler/yunus-emre",
    "license": "CC-BY-NC-4.0"
  },
  "meta": {
    "data_version": "2026-11-27-1639",
    "licenses": {
      "CC-BY-NC-4.0": {
        "name": "CC BY-NC 4.0",
        "attribution": "sufilabs.com / tarikat.org",
        "terms": "https://creativecommons.org/licenses/by-nc/4.0/"
      }
    }
  }
}

Name resolution

Maps a spelling to candidate people. Namesakes are listed together; no candidate is treated as proof of identity.

/v1/resolve
Candidates with match type, total count and a truncation flag. Parameters: name

People

Person records, biographies and related data.

/v1/persons
List and search. Parameters: q, order, death_from, death_to, page, limit
/v1/persons/{slug}
One person, including long text.
/v1/persons/{slug}/relations
Links between people.
/v1/persons/{slug}/places
Places connected to the person.
/v1/persons/{slug}/insights
Anecdotes, works and concepts.
/v1/insights
All insight records, including those without a person. Parameters: kind, page, limit

Chains of transmission

Only links verified as teacher–student, with a verified direction, enter a chain. Review is in progress, so chains may be empty or incomplete. Unverified links appear without direction in relations (direction_verified: false).

/v1/persons/{slug}/chain
Branching chain towards teachers. Parameters: depth

Orders and branches

Sufi orders and their branches.

/v1/orders
Orders; add /{slug} for one record.
/v1/branches
Branches and their people; add /{slug} for one record.

Places

Tombs, lodges and other places, with coordinate confidence and verification status.

/v1/places
List; add /{slug} for one record. Parameters: type, country, city, order, verification, bbox

Atlas data

Cities, dynasties, rulers and travel places.

/v1/cities
Cities.
/v1/dynasties
Dynasties.
/v1/rulers
Rulers. Parameters: dynasty
/v1/travel-places
Places from Evliya Çelebi’s travels. Parameters: voyage, category

Version and licences

Data version, counts, vocabularies and licences.

/v1/meta
Also reports reviewed and verified relation counts.

Rate limits

A free key allows 1,000 requests per day. The counter resets at 00:00 UTC; requests beyond it receive 429. These headers report what is left:

X-RateLimit-Limit X-RateLimit-Remaining X-RateLimit-Reset

Error responses

401 unauthorized
Missing or invalid key.
404 not_found
Record not found.
422 invalid_request
Invalid parameter.
429 rate_limited
Daily limit reached.
{ "error": { "code": "invalid_request", "message": "…" } }

Sources and licences

Licences apply per record, not to the platform as a whole. The current list is in /v1/meta.

CC BY-NC 4.0
Our own data. Attribution: sufilabs.com / tarikat.org. No commercial use.
CC BY-SA 4.0
Dynasty atlas data: Islamic Dynasties Atlas, Ali Çetinkaya, DOI 10.5281/zenodo.18824469.
Published with permission
Third-party data with no recorded open licence. Contact the source before redistributing.