- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Filtering Lookalike Domains with API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2024 01:45 PM
Hi,
I am looking to query a lookalike domains and filter on a specific custom domain. However, when I use the API, I either get all results or a synatx error. How can I use the a filter with Lookalike domains.
For instance using curl, I want to get a list of all the lookalike domains for example.com.
If I use the below request (excluding the token), I get a very large set that includes all of my watched and custom lookalike domains successfully.
curl --location --request GET 'https://csp.infoblox.com/api/tdlad/v1/lookalike_domains'
But if I want to narrow the results down to example.com,
curl --location --request GET 'https://csp.infoblox.com/api/tdlad/v1/lookalike_domains?_filter=target_domain==example.com'
I get the error
{"error":[{"message":"Unexpected token example.com"}]}
I've tried with Postman and also with quotes and I always get some kind of error. I can use other parameters successfully such as _limit and _fields. It is just the _filter that causes an issue.
Does anyone have a valid filter I can use with Lookalike domains?
Solved! Go to Solution.
Re: Filtering Lookalike Domains with API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 01:19 PM
Here' an exapmle URL for you:
https://csp.infoblox.com/api/tdlad/v1/lookalikes?_filter=target_domain=='evilclone.com'
the lookalike_domains call you used appears to be designed to provide the overall list, if you want details on something specific, you would want to use the lookalikes target instead.