Skip to main content

apiverve_antonym 1.2.3 copy "apiverve_antonym: ^1.2.3" to clipboard
apiverve_antonym: ^1.2.3 copied to clipboard

Antonym Finder is an antonym lookup API that finds words with opposite meanings along with their parts of speech across supported languages. Pass any term and an optional language code to receive an a [...]

Antonym Finder API - Dart/Flutter Client #

Antonym Finder is an antonym lookup API that finds words with opposite meanings along with their parts of speech across supported languages. Pass any term and an optional language code to receive an array of antonyms.

pub package License: MIT

This is the Dart/Flutter client for the Antonym Finder API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_antonym: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_antonym/apiverve_antonym.dart';

void main() async {
  final client = AntonymClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'word': 'happy',
      'language': 'Spanish'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "partOfSpeech": "adjective",
    "word": "happy",
    "language": "en",
    "antonyms": [
      "sad",
      "unhappy",
      "miserable",
      "depressed",
      "glum"
    ]
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
0
points
1.21k
downloads

Publisher

verified publisherapiverve.com

Weekly Downloads

Antonym Finder is an antonym lookup API that finds words with opposite meanings along with their parts of speech across supported languages. Pass any term and an optional language code to receive an array of antonyms.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_antonym