List opportunities
curl --request GET \
--url https://app.tryhellosearch.com/api/v1/opportunities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tryhellosearch.com/api/v1/opportunities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.tryhellosearch.com/api/v1/opportunities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "4b1d2f9e-7c3a-4e8b-9a61-2f0d8c5e7b13",
"site": {
"domain": "example.com",
"name": "Example Media"
},
"format": {
"key": "link_insert",
"label": "Guest post"
},
"stage": {
"key": "proposition",
"label": "Proposition"
},
"status_label": "Awaiting your decision",
"awaiting_your_decision": true,
"price": {
"amount": 300,
"currency": "USD",
"display": "$300"
},
"created_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"has_more": true
}
}{
"error": {
"code": "invalid_parameter",
"message": "period: give either period, or from and to, not both."
}
}{
"error": {
"code": "unauthorized",
"message": "A valid access key is required. …"
}
}Opportunities
List opportunities
Your opportunities (the placements we negotiated for you), as the portal’s Mentions page lists them: newest first, then by id. Paging is by position, so an opportunity added or leaving your filter between two calls can shift the pages.
GET
/
opportunities
List opportunities
curl --request GET \
--url https://app.tryhellosearch.com/api/v1/opportunities \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tryhellosearch.com/api/v1/opportunities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.tryhellosearch.com/api/v1/opportunities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "4b1d2f9e-7c3a-4e8b-9a61-2f0d8c5e7b13",
"site": {
"domain": "example.com",
"name": "Example Media"
},
"format": {
"key": "link_insert",
"label": "Guest post"
},
"stage": {
"key": "proposition",
"label": "Proposition"
},
"status_label": "Awaiting your decision",
"awaiting_your_decision": true,
"price": {
"amount": 300,
"currency": "USD",
"display": "$300"
},
"created_at": "2023-11-07T05:31:56Z",
"published_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"per_page": 123,
"total": 123,
"has_more": true
}
}{
"error": {
"code": "invalid_parameter",
"message": "period: give either period, or from and to, not both."
}
}{
"error": {
"code": "unauthorized",
"message": "A valid access key is required. …"
}
}Your opportunities, the placements we negotiated for you, as the portal’s Mentions page lists them. Only those in progress by default.
Several values are comma-separated:
Filtering by status
status | Keeps |
|---|---|
in_progress (default) | proposition, content_creation and deal_placement: everything not yet live or declined |
awaiting_decision | what waits on your answer (accept, counter-offer or decline). A counter-offer you sent waits on us, and is not one of them |
proposition, content_creation, deal_placement, live, declined | one column of the Pipeline board |
all | every opportunity |
?status=live,declined.
curl -s "https://app.tryhellosearch.com/api/v1/opportunities?status=awaiting_decision" \
-H "Authorization: Bearer $HELLOSEARCH_KEY"
Fields
id: what Get an opportunity and Decide take.awaiting_your_decision:truewhen you owe an answer. Filter on it, or onstatus=awaiting_decision, rather than onstatus_label, which is display text.site: the site the mention is on.format:{ key, label },keybeinglink_insertorguest_post;nullwhile not decided.stage:{ key, label }, the column of the Pipeline board;keyisproposition,content_creation,deal_placement,liveordeclined.status_label: the status the Mentions table prints (Awaiting your decision,Your counter-offer sent,Placed…), meant to be shown as is.price: what the mention costs you. Nothing is owed for a mention that never goes live.created_at: when the opportunity was opened.published_at: when it went live,nulluntil then.
page until has_more is false (see Conventions).