Find an API

Search public APIs with auth details & Postman guides

← All APIs

Compliance API

api · Commerce

Commerce No Auth Free & Open ecommerce

Service for providing information to sellers about their listings being non-compliant, or at risk for becoming non-compliant, against eBay listing policies.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET getListingViolations

This call returns specific listing violations for the supported listing compliance types. Only one compliance type can be passed in per call, and the response will include all the listing violations for this compliance type, and listing violations are grouped together by eBay listing ID. See Complia

https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation?limit=10&filter=example&offset=0&listing_id=example&compliance_type=example

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
X-EBAY-C-MARKETPLACE-ID example
curl -X GET "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation?limit=10&filter=example&offset=0&listing_id=example&compliance_type=example" \
  -H "X-EBAY-C-MARKETPLACE-ID: example"
import requests
params = {
    "limit": "10",
    "filter": "example",
    "offset": "0",
    "listing_id": "example",
    "compliance_type": "example"
}
headers = {
    "X-EBAY-C-MARKETPLACE-ID": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation",
    params=params,
    headers=headers,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation');
url.searchParams.set('limit', '10');
url.searchParams.set('filter', 'example');
url.searchParams.set('offset', '0');
url.searchParams.set('listing_id', 'example');
url.searchParams.set('compliance_type', 'example');

const response = await fetch(url, {
  headers: {
    'X-EBAY-C-MARKETPLACE-ID': 'example'
  },
}); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation")
	q := baseURL.Query()
	q.Set("limit", "10")
	q.Set("filter", "example")
	q.Set("offset", "0")
	q.Set("listing_id", "example")
	q.Set("compliance_type", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("X-EBAY-C-MARKETPLACE-ID", "example")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation")
uri.query = URI.encode_www_form({
  "limit" => "10",
  "filter" => "example",
  "offset" => "0",
  "listing_id" => "example",
  "compliance_type" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["X-EBAY-C-MARKETPLACE-ID"] = "example"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation?" . http_build_query([
    "limit" => "10",
    "filter" => "example",
    "offset" => "0",
    "listing_id" => "example",
    "compliance_type" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "X-EBAY-C-MARKETPLACE-ID: example"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET getListingViolationsSummary

This call returns listing violation counts for a seller. A user can pass in one or more compliance types through the compliance_type query parameter. See ComplianceTypeEnum for more information on the supported listing compliance types. Listing violations are returned for multiple marketplaces if th

https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary?compliance_type=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary?compliance_type=example"
import requests
params = {
    "compliance_type": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary');
url.searchParams.set('compliance_type', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary")
	q := baseURL.Query()
	q.Set("compliance_type", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary")
uri.query = URI.encode_www_form({
  "compliance_type" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/listing_violation_summary?" . http_build_query([
    "compliance_type" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
POST suppressViolation

This call suppresses a listing violation for a specific listing. Only listing violations in the AT_RISK state (returned in the violations.complianceState field of the getListingViolations call) can be suppressed. Note: At this time, the suppressViolation call only supports the suppressing of ASPECTS

https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation

Hover any highlighted part to learn what it does

curl -X POST "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation"
import requests
response = requests.post(
    "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation';

const response = await fetch(url, {
  method: 'POST',
}); 
const data = await response.json();
console.log(data);
package main

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

func main() {
	targetURL := "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation"
	req, _ := http.NewRequest("POST", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Post.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/api.ebay.com/sell-compliance/1.4.1/suppress_listing_violation";
$opts = ["http" => [
    "method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Compliance API?

Compliance API is a Commerce API. Developers commonly use commerce APIs for:

  • syncing product catalogues and inventory levels
  • building price comparison and deal-finder tools
  • processing orders and tracking shipments
  • managing customer wishlists and reviews
  • automating abandoned-cart and promotional emails

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Compliance API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗