Get started

    Quickstart

    Search the catalogue, read one directory, list the tags. Three requests, nothing to sign up for.

    Free text plus any filters. Here: anything matching “ai” whose listing link is dofollow.

    bash
    curl -s "https://launchdirectories.com/api/v1/directories?q=ai&dofollow=true&limit=5"

    2. Fetch one directory

    By slug, as returned in the search. Adds the long description, our own submission notes and the previous month's DR.

    bash
    curl -s "https://launchdirectories.com/api/v1/directories/product-hunt"

    3. List tags

    The values the tag filter accepts, with how many directories carry each. The whole list, so cache it.

    bash
    curl -s "https://launchdirectories.com/api/v1/tags"

    Paging the whole catalogue

    Read pagination.limit back from the response rather than assuming the page size you asked for: an oversized limit is clamped to 100 with a 200, never rejected.

    bash
    page=1
    while :; do
      body=$(curl -s "https://launchdirectories.com/api/v1/directories?limit=100&page=$page")
      echo "$body" | jq -e '.success' >/dev/null || { echo "$body"; break; }
      echo "$body" | jq -c '.data[]'
      pages=$(echo "$body" | jq '.pagination.pages')
      [ "$page" -ge "$pages" ] && break
      page=$((page + 1))
    done

    From JavaScript

    Every response is the same envelope. Check success once, then read data. CORS is open on the catalogue endpoints, so this runs in a browser too.

    js
    const res = await fetch('https://launchdirectories.com/api/v1/directories/top?sort=traffic&limit=10')
    const { success, data, error, message } = await res.json()
    if (!success) throw new Error(`${error}: ${message}`)
    for (const d of data) console.log(d.name, d.domain_rating, d.monthly_traffic)
    Same operations over MCP: add the server and call search_directories, get_directory and list_tags. See MCP server.