Skip to main content

Ebay

"Buy & sell electronics, cars, clothes, collectibles & more on eBay, the world's online marketplace."

Configuration​

Getting Ebay OAuth credentials​

Start by accessing or creating an Ebay developer account.

NOTE: Approval into the Ebay developer program can take at least 1 business day.

If you do not already have a Client Id and Client Secret, you will first need to create them. Start by creating an App.

Once you have registered an application, select it from the dashboard, then note your Client Id and Client Secret for the next step.

Configuring Ebay OAuth Credentials in crul​

Navigate to the credentials page in crul (top right corner menu -> credentials).

Click the "create" button.

Select "OAuth" from the type dropdown, then select "Ebay" from the provider dropdown.

Copy the Client Id into the Client Id credentials form entry. Then copy the Client Secret into the Client Secret credentials form entry.

Test the credential by running the following query. You should see a populated token.access_token column in the results.

oauth --credential "ebay"

Example queries​

These examples use the endpoints described in the Ebay API reference.

Example 1:​

Run a query against the Ebay search API for "fender stratocaster" (a classic guitar!).

oauth --credential "Ebay"
|| api get "https://api.ebay.com/commerce/catalog/v1_beta/product_summary/search?
q=fender stratocaster"
--token.access_token "$token.access_token$"