Skip to content

Admin

This page shows the different endpoints available for fetching aggregation data

Add Scrape Profile

This endpoint will add a new scrape profile to the system, which will then periodicially scrape reviews from that source and reference. The 'ref' field is the key identifier and profiles are deduped on this field. Adding the same ref again will not create a second profile, but in the case of an admin account, the profile will be updated with the provided request details.

URL

POST - https://depot-api.feeditback.com/admin/profile/add

Request

json
{
  "ref": "xxx", // The target reference of the scrape. For reviews from google, this will be the google place id, for all other sources, a url
  "source": "google", // Source of reviews - google/tripadvisor
  "site": {
    "company_uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx", // The company uuid that this site belongs to - company uuid is gathered from the companies webhook
    "name": "", // Name of the site
    "address1": "", // Address Line 1 of the site
    "address2": "", // Address Line 2 of the site
    "address3": "", // Address Line 3 of the site
    "town": "", // Town of the site
    "county": "", // County of the site
    "postcode": "", // Postcode of the site
    "country": "", // Country of the site
    "sectors": [] // An array of uuids for sectors that this site is associated with. A max of 5 different sectors can be assigned, the array must include at least one
  },
  "subscribe": true // when set true, as reviews are scraped, they will be sent to the webhook url registered to your account
}

Validation

FieldRequiredTypeAdditional
refstringgoogle place id or valid url
sourceenumgoogle,tripadvisor
siteobjectsee below table
subscribeboolean

Site Object

FieldRequiredTypeAdditional
company_uuiduuid
namestringmin=5, max=255
address1stringmin=5, max=255
address2stringmin=5, max=255
address3stringmin=5, max=255
townstringmin=5, max=255
countystringmin=5, max=255
countrystringmin=5, max=255
postcodestringmin=5, max=255
sectorsstring[]min=1, max=5

Response

json
{
  "profile_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

TIP

The returned uuid of the created scrape profile. In the event that a duplicate 'ref' was submitted, the original pre existing profile uuid will be returned.