# Seller Profile: Request

> Request parameters and a cURL example for the Easyparser SELLER_PROFILE operation: seller_id or url, language, associate_id and common fields.

Source: https://docs.easyparser.com/real-time-integration/seller-profile/request

Send a GET request with `operation=SELLER_PROFILE` to the Real-Time API. You identify the seller with either a `seller_id` or the seller profile `url`.

## Endpoint

```http
GET https://realtime.easyparser.com/v1/request
```

## Required parameters

All parameters go in the query string. See [Common Request Fields](/real-time-integration/common-required-request-fields) for the shared fields.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `api_key` | string | Yes | Your API key, sent as a query parameter. Find it at [Account > Plan](https://app.easyparser.com/account/plan). |
| `platform` | string | Yes | Target platform. Allowed: `AMZ` (Amazon). |
| `operation` | string | Yes | Operation code in upper case. Allowed: `SELLER_PROFILE`. |
| `domain` | string | Yes | Amazon marketplace, written with a leading dot, for example `.com`. When you send `url`, use the domain of the URL host. See [Supported Marketplaces](/essentials/supported-marketplaces). |
| `seller_id` | string | Conditional | Amazon seller ID: starts with `A`, 11 to 15 characters, for example `A1MCYUGJD2ILFU`. Required when `url` is not sent. Send `seller_id` or `url`, not both. |
| `url` | string | Conditional | Full Amazon seller profile URL, URL-encoded, for example `https://www.amazon.com/sp?seller=A1MCYUGJD2ILFU`. Required when `seller_id` is not sent. Send `seller_id` or `url`, not both. |

You find the seller ID in the `seller=` or `me=` parameter of an Amazon seller profile or storefront URL.

## Optional parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `language` | string | No | Language of the returned content, as a locale code valid for the `domain`, for example `en_US`. Default: marketplace default. |
| `associate_id` | string | No | Amazon Associates tag added to product links in the response, for example `mytag-20`. |
| `parameters` | string | No | Extra Amazon URL query parameters, URL-encoded as one value, for example `tag%3Dmytag-20%26ref%3Dcustom` for `tag=mytag-20&ref=custom`. Separate pairs with an encoded `&` (`%26`); semicolons do not work. |
| `cookie` | string | No | Cookies forwarded to Amazon in the HTTP `Cookie` header: `key=value` pairs separated by `;`, URL-encoded as one value. |

The valid `language` values for each marketplace are listed in [Supported Marketplaces](/essentials/supported-marketplaces). Seller Profile does not support `currency` or the address parameters (`address_id`, `zip_code`, `city`, `district`, `country_code`).

## Credit cost

Each successful request costs 1 credit. See [Credit Consumption](/essentials/credit-consumption).

## Example request

**cURL**

```bash
curl --get "https://realtime.easyparser.com/v1/request" \
  --data-urlencode "api_key=YOUR_API_KEY" \
  --data-urlencode "platform=AMZ" \
  --data-urlencode "operation=SELLER_PROFILE" \
  --data-urlencode "domain=.com" \
  --data-urlencode "seller_id=A1MCYUGJD2ILFU"
```

**Python**

```python
import requests

params = {
    "api_key": "YOUR_API_KEY",
    "platform": "AMZ",
    "operation": "SELLER_PROFILE",
    "domain": ".com",
    "seller_id": "A1MCYUGJD2ILFU",
}

response = requests.get("https://realtime.easyparser.com/v1/request", params=params)
print(response.json())
```

**Node.js**

```javascript
const params = new URLSearchParams({
  api_key: "YOUR_API_KEY",
  platform: "AMZ",
  operation: "SELLER_PROFILE",
  domain: ".com",
  seller_id: "A1MCYUGJD2ILFU",
});

const response = await fetch(`https://realtime.easyparser.com/v1/request?${params}`);
const data = await response.json();
console.log(data);
```

**HTTP**

```http
GET /v1/request?api_key=YOUR_API_KEY&platform=AMZ&operation=SELLER_PROFILE&domain=.com&seller_id=A1MCYUGJD2ILFU HTTP/1.1
Host: realtime.easyparser.com
```

**PHP**

```php
<?php
$params = [
    'api_key' => 'YOUR_API_KEY',
    'platform' => 'AMZ',
    'operation' => 'SELLER_PROFILE',
    'domain' => '.com',
    'seller_id' => 'A1MCYUGJD2ILFU',
];

$url = 'https://realtime.easyparser.com/v1/request?' . http_build_query($params);
$response = file_get_contents($url);
$data = json_decode($response, true);
print_r($data);
```

**Go**

```go
package main

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

func main() {
	params := url.Values{}
	params.Add("api_key", "YOUR_API_KEY")
	params.Add("platform", "AMZ")
	params.Add("operation", "SELLER_PROFILE")
	params.Add("domain", ".com")
	params.Add("seller_id", "A1MCYUGJD2ILFU")

	resp, err := http.Get("https://realtime.easyparser.com/v1/request?" + params.Encode())
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
```

**C#**

```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;

var parameters = new Dictionary<string, string>
{
    ["api_key"] = "YOUR_API_KEY",
    ["platform"] = "AMZ",
    ["operation"] = "SELLER_PROFILE",
    ["domain"] = ".com",
    ["seller_id"] = "A1MCYUGJD2ILFU",
};

var query = string.Join("&", parameters.Select(p =>
    $"{Uri.EscapeDataString(p.Key)}={Uri.EscapeDataString(p.Value)}"));

using var client = new HttpClient();
var response = await client.GetStringAsync($"https://realtime.easyparser.com/v1/request?{query}");
Console.WriteLine(response);
```

**Java**

```java
import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collectors;

public class EasyparserRequest {
    public static void main(String[] args) throws Exception {
        Map<String, String> params = new LinkedHashMap<>();
        params.put("api_key", "YOUR_API_KEY");
        params.put("platform", "AMZ");
        params.put("operation", "SELLER_PROFILE");
        params.put("domain", ".com");
        params.put("seller_id", "A1MCYUGJD2ILFU");

        String query = params.entrySet().stream()
            .map(e -> URLEncoder.encode(e.getKey(), StandardCharsets.UTF_8) + "="
                + URLEncoder.encode(e.getValue(), StandardCharsets.UTF_8))
            .collect(Collectors.joining("&"));

        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://realtime.easyparser.com/v1/request?" + query))
            .GET()
            .build();

        HttpResponse<String> response = HttpClient.newHttpClient()
            .send(request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
```

To use the profile URL instead, replace `seller_id` with a URL-encoded `url`, for example `url=https%3A%2F%2Fwww.amazon.com%2Fsp%3Fseller%3DA1MCYUGJD2ILFU`.

## Notes

> **INFO:** Send exactly one of `seller_id` or `url` in each request.

- A `language` that the marketplace does not offer returns `MSG1015` ("Invalid language for domain").
- The response includes only the recent feedback shown on the seller profile. For paginated and filtered feedback, use [Seller Feedback](/real-time-integration/seller-feedback/request) (`SELLER_FEEDBACK`).
- To profile many sellers at once, send `seller_ids` or `urls` in the [Bulk API](/bulk-integration/bulk-service-request).
