Get all links for a domain #2178
-
Shlink versionLatest PHP versionAny How do you serve ShlinkSelf-hosted nginx Database engineMySQL Database versionDoesn’t matter SummaryI was reading the documentation and I didn’t see a filter to get all links for a given domain. Is that currently possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Technically speaking, you can get them by passing the domain name to the A couple years ago I considered adding an explicit filter for domain, but ended up closing it as it was more or less possible to do as described above. I may reopen it, as it seems like a useful thing to have regardless. |
Beta Was this translation helpful? Give feedback.
Technically speaking, you can get them by passing the domain name to the
searchTerm
query parameter (the documentation here https://api-spec.shlink.io/#/Short%20URLs/listShortUrls is outdated and doesn't mention it. I need to fix that), although it's possible you get some extra results if using that domain as tag, custom slug, title, etc. (unlikely, but not impossible).A couple years ago I considered adding an explicit filter for domain, but ended up closing it as it was more or less possible to do as described above.
I may reopen it, as it seems like a useful thing to have regardless.