{"id":15395149,"url":"https://github.com/orhun/abstractapi-rs","last_synced_at":"2026-01-27T08:34:31.671Z","repository":{"id":57478878,"uuid":"426522065","full_name":"orhun/abstractapi-rs","owner":"orhun","description":"Rust API bindings for the Abstract HTTP API","archived":false,"fork":false,"pushed_at":"2023-02-05T12:18:06.000Z","size":101,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T11:37:50.297Z","etag":null,"topics":["abstract-api","api-bindings","email-validation-api","exchange-rates-api","geolocation-api","http-api","phone-validation","rust","rust-api","rust-api-client","timezone-api"],"latest_commit_sha":null,"homepage":"https://www.abstractapi.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orhun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":"orhun","patreon":"orhunp"}},"created_at":"2021-11-10T07:18:21.000Z","updated_at":"2023-07-02T19:15:13.000Z","dependencies_parsed_at":"2023-02-18T23:20:30.417Z","dependency_job_id":null,"html_url":"https://github.com/orhun/abstractapi-rs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/orhun/abstractapi-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fabstractapi-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fabstractapi-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fabstractapi-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fabstractapi-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orhun","download_url":"https://codeload.github.com/orhun/abstractapi-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fabstractapi-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28809640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstract-api","api-bindings","email-validation-api","exchange-rates-api","geolocation-api","http-api","phone-validation","rust","rust-api","rust-api-client","timezone-api"],"created_at":"2024-10-01T15:26:11.618Z","updated_at":"2026-01-27T08:34:31.639Z","avatar_url":"https://github.com/orhun.png","language":"Rust","readme":"# abstractapi-rs\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/orhun/abstractapi-rs/ci.yml)](https://github.com/orhun/abstractapi-rs/actions)\n[![Crates.io](https://img.shields.io/crates/v/abstractapi)](https://crates.io/crates/abstractapi)\n[![docs.rs](https://img.shields.io/docsrs/abstractapi)](https://docs.rs/abstractapi/latest)\n[![Codecov](https://img.shields.io/codecov/c/gh/orhun/abstractapi-rs)](https://app.codecov.io/gh/orhun/abstractapi-rs)\n\nRust API bindings for the [**Abstract**](https://www.abstractapi.com/) HTTP API.\n\n## APIs\n\n`abstractapi-rs` is compatible with `v1` versions of the following API's that Abstract provides:\n\n- [x] Verify\n  - [x] [Email validation](https://app.abstractapi.com/api/email-validation)\n  - [x] [Phone validation](https://app.abstractapi.com/api/phone-validation)\n  - [x] [VAT](https://app.abstractapi.com/api/vat)\n- [x] Lookup\n  - [x] [IP geolocation](https://app.abstractapi.com/api/ip-geolocation)\n  - [x] [Holidays](https://app.abstractapi.com/api/holidays)\n  - [x] [Exchange rates](https://app.abstractapi.com/api/exchange-rates)\n  - [x] [Company enrichment](https://app.abstractapi.com/api/company-enrichment)\n  - [x] [Timezone](https://app.abstractapi.com/api/timezone)\n- [ ] Create\n  - [ ] [Avatars](https://app.abstractapi.com/api/avatars)\n  - [ ] [Screenshot](https://app.abstractapi.com/api/screenshot)\n  - [ ] [Scrape](https://app.abstractapi.com/api/scrape)\n  - [ ] [Images](https://app.abstractapi.com/api/images)\n\n## Usage\n\nAdd `abstractapi` to dependencies in your `Cargo.toml`:\n\n```toml\n[dependencies]\nabstractapi = \"0.1.*\"\n```\n\n## Getting Started\n\nIn order to interact with the APIs, you need to create a client ([`AbstractApi`](https://docs.rs/abstractapi/latest/abstractapi/struct.AbstractApi.html)) first:\n\n```rs\nlet mut abstractapi = abstractapi::AbstractApi::default();\n```\n\nThen you should set an API key specific for the API you would like to use. Here is an example for [Geolocation API](https://app.abstractapi.com/api/ip-geolocation):\n\n```rs\nabstractapi.set_api_key(abstractapi::ApiType::Geolocation, \"\u003capi_key\u003e\").unwrap();\n```\n\nSee [`ApiType`](https://docs.rs/abstractapi/latest/abstractapi/enum.ApiType.html) enum for currently supported APIs.\n\nThe next step would be calling the function related to the API you want to use:\n\n```rs\nlet geolocation: abstractapi::api::Geolocation = abstractapi.get_geolocation(\"172.217.19.142\").unwrap();\n```\n\nFunction parameters and return values (`Struct`s) are directly mapped from the [official API documentation](#apis) so you may frequently need to refer to it for the meaning of these fields.\n\n#### Tips\n\n- You can use the [`prelude`](https://docs.rs/abstractapi/latest/abstractapi/prelude/index.html) module for glob-importing the common types.\n- There are alternative constructor methods available for creating a client with API keys. (e.g. [`new_with_api_keys`](https://docs.rs/abstractapi/latest/abstractapi/struct.AbstractApi.html#method.new_with_api_keys))\n\nHere is a full example that shows the basic usage of phone validation API:\n\n```rs\nuse abstractapi::prelude::*;\n\nfn main() -\u003e Result\u003c(), AbstractApiError\u003e {\n    // Create a new Abstract API client for phone validation.\n    let abstractapi = AbstractApi::new_with_api_key(\n        ApiType::PhoneValidation,\n        std::env::var(\"PHONE_VALIDATION_API_KEY\").unwrap(),\n    )?;\n\n    // Get the phone number details.\n    let phone_details: PhoneDetails = abstractapi.validate_phone(\"14152007986\")?;\n\n    // Print the result.\n    println!(\"{:#?}\", phone_details);\n\n    Ok(())\n}\n```\n\n## Examples\n\nLook through the [examples folder](./examples/) to see how the library can be used for integrating different [APIs](#apis).\n\n## Contributing\n\nPull requests are welcome!\n\n## License\n\nAll code is dual-licensed under [The MIT License](./LICENSE-MIT) and [Apache 2.0 License](./LICENSE-APACHE).\n\n## Copyright\n\nCopyright © 2021-2023, [Orhun Parmaksız](mailto:orhunparmaksiz@gmail.com)\n","funding_links":["https://github.com/sponsors/orhun","https://patreon.com/orhunp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Fabstractapi-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forhun%2Fabstractapi-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Fabstractapi-rs/lists"}