StardDevelopersداشبورد

آگهی‌های بازار P2P

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

آگهی‌های فعال کاربران (یوزرنیم، شماره، گیفت و…) — فقط خواندنی. ثبت آگهی فروش از API ممکن نیست، چون مالکیت آیتم باید داخل تلگرام تأیید شود.

درخواست

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

نمونه

curl "https://stard-market.ir/api/v1/listings?limit=2" \
  -H "Authorization: Bearer $STARD_API_KEY"
پاسخ — 200
{
  "object": "list",
  "data": [
    {
      "object": "product",
      "id": 30244,
      "tag": "Y3CAMI",
      "name": "@stard_sample",
      "description": "یوزرنیم نمونه",
      "category": "username",
      "pricing_type": "auction",
      "price": {
        "amount": 4000000,
        "currency": "IRT"
      },
      "starting_price": {
        "amount": 4000000,
        "currency": "IRT"
      },
      "auction_end_at": "2026-10-04T07:23:41Z",
      "auction_ended": false,
      "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-10-02T08:13:03Z"
    },
    {
      "object": "product",
      "id": 30243,
      "tag": "F1UOH5",
      "name": "@stard_sample",
      "description": "یوزرنیم نمونه",
      "category": "username",
      "pricing_type": "fixed",
      "price": {
        "amount": 1000000,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": null,
      "available": true,
      "purchasable_via_api": false,
      "not_purchasable_reason": "p2p_not_supported",
      "marketplace": "p2p",
      "image_url": null,
      "link": "https://t.me/ShellCrab",
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-10-02T08:12:59Z"
    }
  ],
  "has_more": true,
  "next_offset": 2,
  "total": 22
}
هدرهای پاسخ
content-type: application/json
x-request-id: req_ogiv4hTa9qbdKzeamFtt
x-ratelimit-limit: 1000
x-ratelimit-remaining: 985

خطاها

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-* برمی‌گردد — جزئیات.