WooilJeong / PyKagi

Apache License 2.0
5 stars 0 forks source link

Date Filter #1

Open okpatil4u opened 1 year ago

okpatil4u commented 1 year ago

Hey @WooilJeong, great work !

Does Kagi API provide date filters by any chance ? How would one go about implementing them ?

WooilJeong commented 1 year ago

Thanks! @okpatil4u There are three Kagi APIs currently available: Universal Summarizer API, FastGPT API, and Search API. Can you be more specific about which of these APIs you're asking about?

okpatil4u commented 1 year ago

My apologies, I meant search API.

curl -v \ -H "Authorization: Bot $TOKEN" \ https://kagi.com/api/v0/search\?q\=steve+jobs&dr=1

This is what I am trying to get working.

WooilJeong commented 1 year ago

The link below is the official documentation for the Kagi Search API. As you can see, there are only two request parameters: 'q' for query and 'limit' for limit the number of search result items. In the PyKagi library, these correspond to 'query' and 'limit' respectively. I don't see an option to filter by date. I'm sorry I couldn't help you.

https://help.kagi.com/kagi/api/search.html#query-parameters

okpatil4u commented 1 year ago

No worries WooilJeong. Thanks for the heads up.

On Thu, Jun 29, 2023 at 9:27 AM 정우일 @.***> wrote:

The link below is the official documentation for the Kagi Search API. As you can see, there are only two request parameters: 'q' for query and 'limit' for limit the number of search result items. In the PyKagi library, these correspond to 'query' and 'limit' respectively. I don't see an option to filter by date. I'm sorry I couldn't help you.

https://help.kagi.com/kagi/api/search.html#query-parameters

— Reply to this email directly, view it on GitHub https://github.com/WooilJeong/PyKagi/issues/1#issuecomment-1612396837, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXGU4GHB6KUB2S3DQEKBGDXNT4LXANCNFSM6AAAAAAZX5OX7Q . You are receiving this because you were mentioned.Message ID: @.***>