Vai al contenuto
GET /v1/count

Exact bookmark count for URL(s)

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/hatenabookmark-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/hatenabookmark-api/v1/count" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hatenabookmark-api/v1/count", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hatenabookmark-api/v1/count");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/hatenabookmark-api/v1/count",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "The exact Hatena Bookmark count for each URL — how many times the page has been bookmarked on the Japanese web, the clearest measure of the attention it has drawn there. Pass url (a single URL) or urls (comma-separated, up to 20). A count of 0 means no bookmarks (or the URL is unknown to Hatena). Live, cached ~10m.",
        "count": 1,
        "source": "Hatena Bookmark count API (bookmark.hatenaapis.com/count/entries), keyless",
        "results": [
            {
                "url": "https://github.com/",
                "bookmark_count": 1416
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-13T04:42:04.139Z",
        "request_id": "36fe7e41-a1e4-4eac-95b0-935b2987cb6f"
    },
    "status": "ok",
    "message": "Bookmark counts retrieved successfully",
    "success": true
}