Find an API

Search public APIs with auth details & Postman guides

← All APIs

Buy Marketing API

ebay · Commerce

Commerce No Auth Free & Open ecommerce

The Marketing API retrieves eBay products based on a metric, such as Best Selling, as well as products that were also bought and also viewed.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET getMerchandisedProducts

This method returns an array of products based on the category and metric specified. This includes details of the product, such as the eBay product ID (EPID), title, and user reviews and ratings for the product. You can use the epid returned by this method in the Browse API search</b

https://api.apis.guru/v2/specs/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product?limit=10&category_id=example&metric_name=example&aspect_filter=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product?limit=10&category_id=example&metric_name=example&aspect_filter=example"
import requests
params = {
    "limit": "10",
    "category_id": "example",
    "metric_name": "example",
    "aspect_filter": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product');
url.searchParams.set('limit', '10');
url.searchParams.set('category_id', 'example');
url.searchParams.set('metric_name', 'example');
url.searchParams.set('aspect_filter', '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/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product")
	q := baseURL.Query()
	q.Set("limit", "10")
	q.Set("category_id", "example")
	q.Set("metric_name", "example")
	q.Set("aspect_filter", "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/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product")
uri.query = URI.encode_www_form({
  "limit" => "10",
  "category_id" => "example",
  "metric_name" => "example",
  "aspect_filter" => "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/ebay.com/buy-marketing/v1_beta.2.0/merchandised_product?" . http_build_query([
    "limit" => "10",
    "category_id" => "example",
    "metric_name" => "example",
    "aspect_filter" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$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 Buy Marketing API?

Buy Marketing 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. Buy Marketing API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗