Logo 搜尋 API
以關鍵字搜尋品牌 Logo,可選擇依類別縮小範圍,檢視可用資源,並以更乾淨的請求-回應流程取得所需檔案。
整合指南
複製程式碼片段,替換你的 API 金鑰,執行即可。適用於任何 HTTP 用戶端——下方提供 cURL、JavaScript 與 Python 範例。
/api/logos?search=vercel&limit=12https://www.apipick.comSearch logo metadata by required keyword and optional category filter. The response is an array of matching logo records with asset details.
searchstring必填Required keyword for case-insensitive title/slug matching. openai
categorystring選填Restrict search to a specific category. AI
limitnumber選填Maximum results to return. 1-100. 24
curl -X GET "https://www.apipick.com/api/logos?search=vercel&limit=12" \
-H "x-api-key: YOUR_API_KEY"[
{
"id": 371,
"title": "Vercel",
"categories": [
"Vercel"
],
"url": "https://vercel.com",
"assets": [
{
"kind": "logo",
"theme": "light",
"filename": "vercel.svg",
"url": "https://www.apipick.com/logo-library/vercel.svg",
"width": 76,
"height": 65,
"aspectRatio": "76:65",
"suggestedUseCases": [
"app icons",
"favicons",
"avatars",
"navigation bars",
"mobile headers"
]
},
{
"kind": "logo",
"theme": "dark",
"filename": "vercel_dark.svg",
"url": "https://www.apipick.com/logo-library/vercel_dark.svg",
"width": 76,
"height": 65,
"aspectRatio": "76:65",
"suggestedUseCases": [
"app icons",
"favicons",
"avatars",
"navigation bars",
"mobile headers"
]
}
]
}
]速率限制
限流以 API 金鑰計,採用 60 秒滑動視窗。觸發限制時會回傳乾淨的 429,並帶 Retry-After 回應標頭。
120req/min
以 API 金鑰、以端點計。60 秒滑動視窗。
3concurrent
每個 API 金鑰同時進行中的最大請求數。
X-RateLimit-Limit每分鐘允許的最大請求數X-RateLimit-Remaining目前視窗內剩餘的請求數X-RateLimit-Reset目前視窗重設前的秒數Retry-After重試前需等待的秒數(僅在 429 時)HTTP/1.1 429 Too Many Requests
Retry-After: 12
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 12
{
"error": "rate_limit_exceeded",
"message": "Rate limit exceeded: 120 requests/minute per API key. Retry after 12s.",
"retry_after": 12
}常見問題
問: 搜尋端點會回傳什麼?
A: 它會回傳一個精簡的 Logo 紀錄陣列,包含核心欄位:id、title、categories、url 與 assets,以及如長寬比與建議使用情境等資源中繼資料。
問: 可以不輸入搜尋詞就列出完整的 Logo 目錄嗎?
A: 不行。GET /api/logos 需要非空的 search 參數。此端點是為精準查詢而設計,而非匯出整個函式庫。
問: 我該如何取得 Logo 檔案?
A: 使用 GET /api/logos 搜尋,然後使用每個資源中的 url 欄位直接取得或嵌入檔案 — 無需額外的 API 呼叫。
問: 這只適用於 SVG Logo 嗎?
A: 不是。目前 SVG 是主要格式,而 PNG、WebP 與其他資源格式也正在陸續加入。搜尋回應已圍繞通用的資源中繼資料來建構,因此用戶端可以乾淨地支援多種檔案格式。