Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To use this a set of JSON objects must be uploaded via the File Uploader UI, with type "templated_source". (Or the share API calls)

The JSON format is as follows:

Code Block
{
	"templates" :[
	{
		//regular source json with substitutions, see below
		"template_per_url_cost" : 0.0015, //(optional extra field showing cost per query if one exists) example shown is $0.0015 per call (e.g. 1000 calls == $1.50))
	 }
	]
}

The following string substitutions are possible, corresponding to the UI elements in the above screenshot:

  • ??search_terms??
  • ??search_depth?? (only applies to pipelines containing "links" elements)
  • ??search_cycle?? (eg for use with harvest.searchCycle_secs)

One source is created for every array element in the template, for each search term for every selected template.