Business directories API

List of regions

Request format

GET /trustlinks/regions

Result

If successful, the server returns a list of available regions in the following format:

Response example

{
10: “Australia”,
23: “Brasil”,
32: “Canada”,
57: “France”,
61: “Germany”,
77: “Ireland”,
80: “Italy”,
120: “Netherlands”,
121: “New Zealand”,
155: “Singapore”,
159: “South Africa”,
160: “Spain”,
180: “United Kingdom”,
182: “USA”
}

List of links

Description

The server returns a list of links.

Request format

GET /trustlinks/{site_id}

Request parameters

NameRequiredDescription
site_idYesWebsite ID

Result

If successful, the server returns a list of links.

Example

[
{
“id”: “19”,
“url”: “http://www.2findlocal.com/”,
“title”: “2FindLocal”,
“comment”: “To submit your business to 2FindLocal, all you need to do is select the blue “Submit your business” button located on the right side of the page, near the middle. “,
“is_marked”: “1”
},

]

Response parameters

NameDescription
idURL ID
urlURL
titleName
commentBrief summary
is_markedStatus

Setting a link status

Request format

PUT /trustlinks/{site_id}/link/{link_id}
{
“is_marked”: true
}

Request parameters

NameRequiredDescription
link_idYesLink ID
is_markedYesTrue-completed

Result

If successful, the server returns the 200 HTTP code.