语言
/v1/url/parse
将 URL 分解为其结构组件:协议、主机名、端口、路径名、搜索参数(作为键值对)和哈希片段。 对于 URL 分析和路由逻辑很有用。
The URL to parse.
curl -X POST https://api.botoi.com/v1/url/parse \ -H "Content-Type: application/json" \ -d '{"url":"https://example.com/path?q=test&page=2#section"}'
解析传入的请求 URL 以提取路径段和查询参数以进行请求路由,而无需完整的框架。
从用户提交的 URL 中提取主机名,以按域对链接进行分类、检测附属 URL 或阻止特定来源。
解析营销 URL 以提取 UTM 参数(utm_source、utm_medium、utm_campaign)以跟踪归因。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.