【问题标题】:Is there a way to make searching function by URL with Online API有没有办法通过在线 API 通过 URL 进行搜索
【发布时间】:2019-01-15 04:59:11
【问题描述】:

我正在使用 YTS API,我想使用搜索功能。 有没有办法处理 URL 条件?喜欢

 &search_condition=spider&

这是 YTS API 的链接 https://yts.am/api#list_movies

  fetch('https://yts.am/api/v2/list_movies.json?sort_by=download_count&limit=20')

【问题讨论】:

    标签: javascript html reactjs function web


    【解决方案1】:

    转到YTS API doc,您可以在电影列表中看到Endpoint Parameters,其中包含query_term。它可能是您正在寻找的。​​p>

    所以,GET 将是

    fetch('https://yts.am/api/v2/list_movies.json?sort_by=download_count&limit=20&query_term=spider')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-02
      • 1970-01-01
      • 2019-11-07
      • 2014-10-01
      • 1970-01-01
      • 2019-11-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多