serpnode 0.1.0 copy "serpnode: ^0.1.0" to clipboard
serpnode: ^0.1.0 copied to clipboard

Dart client for serpnode.com (Google SERP data). Endpoints: status, search, options, locations. See https://serpnode.com

serpnode (Dart) #

Dart client for the serpnode.com API.

Install #

dependencies:
  serpnode: ^0.1.0

Usage #

import 'package:serpnode/serpnode.dart';

void main() async {
  final client = SerpnodeClient('YOUR_API_KEY');
  final status = await client.status();
  print(status);
}

Endpoints & Examples #

Status #

final status = await client.status();

Search (web/images/news/local/shopping etc.) #

final results = await client.search({
  'q': 'site:screenshotbase.com',
  'engine': 'google',
  'num': 10,
});

Images:

final images = await client.search({
  'q': 'aurora borealis',
  'engine': 'google_images',
  'num': 30,
});

News:

final news = await client.search({
  'q': 'web performance',
  'engine': 'google_news',
  'num': 20,
});

Pagination:

final page1 = await client.search({'q': 'meteor tutorial', 'engine': 'google', 'start': 0, 'num': 10});
final page2 = await client.search({'q': 'meteor tutorial', 'engine': 'google', 'start': 10, 'num': 10});

Options #

final opts = await client.options();

Locations #

final locs = await client.locations(q: 'San Francisco, California, United States');

License #

MIT

0
likes
140
points
7
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart client for serpnode.com (Google SERP data). Endpoints: status, search, options, locations. See https://serpnode.com

Homepage
Repository (GitHub)

License

MIT (license)

Dependencies

http

More

Packages that depend on serpnode