User statistics

Endpoint to retrieve statistics about an user.

Fields

Below are listed the specific statistics that are returned:

field type constraints default Req W U
numberOfSoiViews int positive yes no no

numberOfSoiViews

The number of times the Seller Other Items page (SOI) has been viewed. By default, this returns the total number of views since registration of the user. The period for which the number of views is displayed can be controlled using the startDate and endDate query parameters, which accept a date of the format yyyy-MM-dd.

Reference

GET /v1/users/{userId}/statistics

Retrieve statistics for a specific user

Examples

Retrieving the statistics of an advertisement :

Request :

GET /v1/users/12/statistics HTTP/1.1
Host: api.marktplaats.nl

Response :

HTTP/1.1 200 OK
Content-Type: application/json

{
  "_links": {
    "self": {
      "href": "/v1/users/12/statistics"
    },
    "describedby": {
      "href": "https://api.marktplaats.nl/docs/v1/user-statistics.html"
    },
    "curies": [
      {
        "href": "https://api.marktplaats.nl/docs/v1/rels/{rel}.html",
        "templated": true,
        "name": "mp"
      }
    ]
  },
  "numberOfSoiViews": 82
}