---
title: گیفت‌های استارزی — GET /api/v1/gifts | Stard API
url: https://stard-market.ir/docs/reference/gifts
markdown: https://stard-market.ir/docs/reference/gifts.md
language: fa
updated: 2026-11-18
description: گیفت‌های استارزی تلگرام (قلب، خرس، کادو، گل و…) که می‌شود به هر یوزرنیم فرستاد، با قیمت تومانی و قیمت استارزی.
---

# گیفت‌های استارزی

`GET /api/v1/gifts`

> گیفت‌های استارزی تلگرام (قلب، خرس، کادو، گل و…) که می‌شود به هر یوزرنیم فرستاد، با قیمت تومانی و قیمت استارزی.

## درخواست

| نام | محل | نوع |  | توضیح |
|---|---|---|---|---|
| `Authorization` | header | `string` | الزامی | `Bearer sk_live_…` یا `Bearer sk_test_…` |

## نمونه

```bash
curl "https://stard-market.ir/api/v1/gifts" \
  -H "Authorization: Bearer $STARD_API_KEY"
```

```javascript
const res = await fetch("https://stard-market.ir/api/v1/gifts", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.STARD_API_KEY}`,
  },
});
const data = await res.json();
if (!res.ok) throw new Error(`${data.error.code}: ${data.error.message}`);
console.log(data);
```

```typescript
type StardError = { error: { type: string; code: string; message: string; param: string | null; request_id: string } };

const res = await fetch("https://stard-market.ir/api/v1/gifts", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.STARD_API_KEY}`,
  },
});
if (!res.ok) {
  const { error } = (await res.json()) as StardError;
  throw new Error(`${error.code}: ${error.message} (${error.request_id})`);
}
const data: Record<string, unknown> = await res.json();
```

```python
import os
import requests

r = requests.get(
    "https://stard-market.ir/api/v1/gifts",
    headers={
    "Authorization": f"Bearer {os.environ['STARD_API_KEY']}",
    },
    timeout=20,
)
data = r.json()
if r.status_code >= 400:
    raise RuntimeError(f"{data['error']['code']}: {data['error']['message']}")
print(data)
```

```php
<?php
$ch = curl_init("https://stard-market.ir/api/v1/gifts");
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer " . getenv("STARD_API_KEY"),
  ],
  CURLOPT_TIMEOUT => 20,
]);
$data = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status >= 400) {
  throw new RuntimeException($data["error"]["code"] . ": " . $data["error"]["message"]);
}
print_r($data);
```

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://stard-market.ir/api/v1/gifts", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("STARD_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	b, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(b))
}
```

**پاسخ — 200**

```json
{
  "object": "list",
  "data": [
    {
      "object": "product",
      "id": 12577,
      "tag": "7ZI3FR",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 112275,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 25,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T20:06:40Z"
    },
    {
      "object": "product",
      "id": 12578,
      "tag": "0QNT85",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 224550,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 50,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T20:07:19Z"
    },
    {
      "object": "product",
      "id": 12582,
      "tag": "QI3ZAL",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 224550,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 50,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T21:09:45Z"
    },
    {
      "object": "product",
      "id": 12583,
      "tag": "LVMGBH",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 224550,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 50,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T21:10:30Z"
    },
    {
      "object": "product",
      "id": 12584,
      "tag": "E0J9LV",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 449100,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 100,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T21:11:13Z"
    },
    {
      "object": "product",
      "id": 12585,
      "tag": "V1T27L",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 449100,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 100,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T21:11:57Z"
    },
    {
      "object": "product",
      "id": 12586,
      "tag": "S98KHZ",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 449100,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 100,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T21:12:41Z"
    },
    {
      "object": "product",
      "id": 12587,
      "tag": "KAWJM1",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 67365,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 15,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-05T21:18:48Z"
    },
    {
      "object": "product",
      "id": 14510,
      "tag": "HG32HO",
      "name": "محصول نمونه",
      "description": "توضیح نمونه",
      "category": "star_gift",
      "pricing_type": "fixed",
      "price": {
        "amount": 67365,
        "currency": "IRT"
      },
      "starting_price": null,
      "auction_end_at": null,
      "auction_ended": false,
      "stars_price": 15,
      "available": true,
      "purchasable_via_api": true,
      "not_purchasable_reason": null,
      "marketplace": "stard",
      "image_url": "https://stard-market.ir/img/sample.webp",
      "link": null,
      "badge": null,
      "attributes": null,
      "animation": null,
      "nft": null,
      "community": null,
      "last_checked_at": null,
      "created_at": "2026-08-15T17:22:21Z"
    }
  ],
  "has_more": false,
  "next_offset": null,
  "total": 9
}
```

**هدرهای پاسخ**

```http
content-type: application/json
x-request-id: req_xEpDmeW2Hn9NLgUmt1Q7
x-ratelimit-limit: 1000
x-ratelimit-remaining: 990
```

## خطاها

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

## محدودیت نرخ

پیش‌فرض ۶۰ درخواست در دقیقه برای هر کلید (قابل تنظیم در داشبورد). وضعیت در هدرهای `X-RateLimit-*` برمی‌گردد — [جزئیات](https://stard-market.ir/docs/rate-limits).
