StardDevelopersداشبورد

فهرست محصولات

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

جستجو و فیلتر روی همه‌ی محصولات قابل نمایش فروشگاه (همان قانونی که مینی‌اپ استفاده می‌کند). قیمت هر محصول همان مبلغی است که هنگام خرید کسر می‌شود.

درخواست

ناممحلنوعتوضیح
AuthorizationheaderstringالزامیBearer sk_live_… یا Bearer sk_test_…
categoryquerystringاختیارییکی از gift، nft، username، number، premium، stars، star_gift، other (جمع‌ها مثل usernames هم پذیرفته می‌شوند)
searchquerystringاختیاریجستجو در نام، توضیح یا تگ (حداکثر ۶۴ کاراکتر)
pricing_typequerystringاختیاریfixed، auction یا negotiable
min_pricequeryintegerاختیاریحداقل قیمت (تومان)
max_pricequeryintegerاختیاریحداکثر قیمت (تومان)
purchasablequerybooleanاختیاریفقط محصولاتی که از API قابل خریدند (قیمت ثابت، فروش مستقیم Stard)
sortquerystringاختیاریprice_asc (پیش‌فرض)، price_desc، newest، oldest
limitqueryintegerاختیاریتعداد نتیجه در هر صفحه، ۱ تا ۱۰۰ (پیش‌فرض ۲۰)
offsetqueryintegerاختیاریچند ردیف رد شود (پیش‌فرض ۰)؛ برای صفحه‌ی بعد از next_offset استفاده کن

نمونه

curl "https://stard-market.ir/api/v1/products?category=usernames&limit=2" \
  -H "Authorization: Bearer $STARD_API_KEY"
پاسخ — 200
{
  "object": "list",
  "data": [
    {
      "object": "product",
      "id": 22982,
      "tag": "UNERZA",
      "name": "@stard_sample",
      "description": "یوزرنیم نمونه",
      "category": "username",
      "pricing_type": "fixed",
      "price": {
        "amount": 400000,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "stars_price": null,
      "available": true,
      "purchasable_via_api": false,
      "not_purchasable_reason": "p2p_not_supported",
      "marketplace": "p2p",
      "image_url": null,
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-09-11T16:13:53Z"
    },
    {
      "object": "product",
      "id": 24214,
      "tag": "39R5SC",
      "name": "@stard_sample",
      "description": "یوزرنیم نمونه",
      "category": "username",
      "pricing_type": "auction",
      "price": {
        "amount": 750000,
        "currency": "IRT"
      },
      "starting_price": {
        "amount": 750000,
        "currency": "IRT"
      },
      "auction_end_at": "2026-09-16T09:04:19Z",
      "stars_price": null,
      "available": true,
      "purchasable_via_api": false,
      "not_purchasable_reason": "p2p_not_supported",
      "marketplace": "p2p",
      "image_url": null,
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-09-15T09:05:35Z"
    }
  ],
  "has_more": true,
  "next_offset": 2
}
هدرهای پاسخ
x-request-id: req_CrDLZwkMsyARmvYlkkTI
x-ratelimit-limit: 60
x-ratelimit-remaining: 57
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-* برمی‌گردد — جزئیات.