Libraries
Java SDK for NewsCatcher News API v3
Java client library for the NewsCatcher News API with Android support
A Java SDK for the NewsCatcher News API v3, featuring robust error handling, comprehensive Android support, and flexible configuration options for enterprise applications.
Requirements
- Java 1.8+
- Maven (3.8.3+)/Gradle (7.2+)
Android requirements
If using this library in an Android application:
- Android 8.0+ (API Level 26+)
Installation
Maven users
Add this dependency to your project’s POM:
Gradle users
Add this dependency to your build.gradle
:
Android configuration
- Set minimum SDK version in your
build.gradle
:
- Add internet permissions to your
AndroidManifest.xml
:
Manual installation
Generate the JAR by executing:
Then manually install the following JARs:
target/newscatcherapi-java-sdk-6.0.13.jar
target/lib/*.jar
Core features
Initialize client
Search articles
Latest headlines
Author search
Similar articles
Get sources
Check subscription
Advanced features
HTTP response access
Access detailed HTTP response information:
SSL configuration
Error handling
The SDK uses ApiException
for comprehensive error handling:
Utilities
Rate limit handler
Pagination handler
Android-specific considerations
Threading
When making API calls on Android, ensure you’re not on the main thread:
Memory management
For Android applications, consider implementing a caching strategy:
Additional resources
Was this page helpful?