Guidelines & conventions

Before you start using the API, we recommend you review these guidelines.

Protocol support

The Yotpo API supports both HTTP and HTTPS requests.

Data format

Data must be in JSON format. As such, the HTTP header content-type must be set to: application/json

Pagination

Use the following parameters to paginate results in API requests which support pagination:
page - Number of pages to return
count - Number of results to return per page

Rate limiting

To improve the experience for all our users, we impose limits on some API requests. You’ll receive a 429 Too Many Requests error message if you reach this limit. Where a rate limit applies, this will be indicated under the specific endpoint or group of endpoints.

Data freshness SLA

For some endpoints, we impose a Service Level Agreement (SLA) to ensure the endpoint returns fresh data. Where the SLA applies, this will be indicated under the specific endpoint or group of endpoints.

Status code

Yotpo API uses standard HTTP response codes to indicate the success of failure status of an API endpoint.

Response CodeStatus
200Successful Response
401Unauthorized Request
500Internal Server Error e.g. Timeout

📘

Note:

Certain API calls return special responses to indicate specific errors.
Special responses are noted for relevant API endpoints within the documentation.

Parameters

Email and URL parameters you send in the calls must be in the correct format, otherwise the call will not be processed.

ParameterFormatExample
emailuser@domain[email protected]
URLhttp://www.domain/full path of resourcehttp://www.gkshops.com/USBthingy.html
DateYYYY-MM-DD2017-12-31

UTF-8 support

The Yotpo API calls support special characters according to the UTF-8 coding.