#client #hacker-news #api-client #api-bindings #hn #ycombinator

hn_api

A simple Hacker News API (v0) client library based on reqwest and serde

1 unstable release

0.1.0 Jan 1, 2019

#4 in #hackernews

Download history 22/week @ 2024-07-21 14/week @ 2024-07-28 200/week @ 2024-08-04 16/week @ 2024-08-11 7/week @ 2024-09-08 6/week @ 2024-09-15 11/week @ 2024-09-22 1/week @ 2024-09-29 13/week @ 2024-10-20 1/week @ 2024-10-27 109/week @ 2024-11-03

123 downloads per month
Used in trustfall

MIT/Apache

18KB
251 lines

hn_api

CircleCI Rust

A simple synchronous Hacker News API (v0) client library based on reqwest and serde.

The library currently implements no caching. It simply exposes endpoints as methods.

Furthermore, there is no realtime functionality. If you need that, you should probably use a firebase client crate and subscribe to the live endpoints directly.

For an example, see examples/top.rs.

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~22MB
~452K SLoC