StardDevelopersداشبورد

محصولات یک دسته

GET/api/v1/products/{category}
scope: products:readاحراز هویت: Bearerlive و test

میان‌بُر برای /products?category=…. مقدارهای مجاز: stars، gifts، nfts، usernames، numbers، premium، star-gifts، other.

درخواست

ناممحلنوعتوضیح
AuthorizationheaderstringالزامیBearer sk_live_… یا Bearer sk_test_…
categorypathstringالزامینام دسته
searchquerystringاختیاریجستجو
sortquerystringاختیاریترتیب
limitqueryintegerاختیاریتعداد نتیجه در هر صفحه، ۱ تا ۱۰۰ (پیش‌فرض ۲۰)
offsetqueryintegerاختیاریچند ردیف رد شود (پیش‌فرض ۰)؛ برای صفحه‌ی بعد از next_offset استفاده کن

نمونه

curl "https://stard-market.ir/api/v1/products/numbers?limit=2" \
  -H "Authorization: Bearer $STARD_API_KEY"
پاسخ — 200
{
  "object": "list",
  "data": [
    {
      "object": "product",
      "id": 29684,
      "tag": "8GIXL8",
      "name": "+888 0000 0000",
      "description": "شماره‌ی نمونه",
      "category": "number",
      "pricing_type": "fixed",
      "price": {
        "amount": 121058966,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "stars_price": null,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": "https://fragment.com/number/88804290821",
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": "2026-10-01T10:13:09Z",
      "created_at": "2026-09-30T11:00:07Z"
    },
    {
      "object": "product",
      "id": 28390,
      "tag": "C347DB",
      "name": "+888 0000 0000",
      "description": "شماره‌ی نمونه",
      "category": "number",
      "pricing_type": "fixed",
      "price": {
        "amount": 165659637,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "stars_price": null,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": "https://fragment.com/number/88808679431",
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": "2026-10-01T10:13:09Z",
      "created_at": "2026-09-27T02:22:22Z"
    }
  ],
  "has_more": true,
  "next_offset": 2
}
هدرهای پاسخ
x-request-id: req_BTMufSqbxAaJyeSmFIOe
x-ratelimit-limit: 60
x-ratelimit-remaining: 56
x-ratelimit-reset: 1790850720

خطاها

HTTPcodeکی
403insufficient_scopeکلید scope products:read را ندارد
401invalid_api_key / missing_api_key / api_key_revoked / api_key_expiredکلید نیامده، نامعتبر، باطل یا منقضی است
429rate_limit_exceededسقف درخواست در دقیقه پر شده؛ بعد از Retry-After ثانیه دوباره بفرست

محدودیت نرخ

پیش‌فرض ۶۰ درخواست در دقیقه برای هر کلید (قابل تنظیم در داشبورد). وضعیت در هدرهای X-RateLimit-* برمی‌گردد — جزئیات.