curl "https://api.affonso.io/v1/discovery/agents/cmn4agt0001xk92hf6d0abcd/lookalikes" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"data": {
"agent_id": "cmn4agt0001xk92hf6d0abcd",
"lookalikes": ["https://example.net/best-newsletter-tools"]
}
}
Agents
Get lookalikes
Read the lookalike page URLs of a Discovery Agent
GET
/
v1
/
discovery
/
agents
/
{id}
/
lookalikes
curl "https://api.affonso.io/v1/discovery/agents/cmn4agt0001xk92hf6d0abcd/lookalikes" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"data": {
"agent_id": "cmn4agt0001xk92hf6d0abcd",
"lookalikes": ["https://example.net/best-newsletter-tools"]
}
}
Returns the lookalike page URLs saved on a Discovery Agent. Lookalikes are example pages that look like the partners you want. They are separate from competitor URLs and do not count as a search source. Requires the
read:discovery permission.
Path Parameters
Response
Errors
- 404
NOT_FOUND: no agent with this ID exists, or the agent was deleted. The message isDiscovery agent not found. - 403
FORBIDDEN: the agent belongs to another team. The message isDiscovery agent does not belong to your team. - 403
INSUFFICIENT_PERMISSIONS: the API key does not have theread:discoverypermission.
curl "https://api.affonso.io/v1/discovery/agents/cmn4agt0001xk92hf6d0abcd/lookalikes" \
-H "Authorization: Bearer sk_live_your_api_key"
{
"success": true,
"data": {
"agent_id": "cmn4agt0001xk92hf6d0abcd",
"lookalikes": ["https://example.net/best-newsletter-tools"]
}
}
Was this page helpful?
