Click or drag to resize
MediaSearch Method (Double, Double, NullableInt32, NullableDateTime, NullableDateTime)
Search for media in a given area.

Requires Authentication: False

Namespace: InstaSharp.Endpoints
Assembly: InstaSharp (in InstaSharp.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public Task<MediasResponse> Search(
	double latitude,
	double longitude,
	Nullable<int> distance,
	Nullable<DateTime> minTimestamp,
	Nullable<DateTime> maxTimestamp
)

Parameters

latitude
Type: SystemDouble
Latitude of the center search coordinate. If used, longitude is required.
longitude
Type: SystemDouble
Longitude of the center search coordinate. If used, latitude is required.
distance
Type: SystemNullableInt32
Default is 1km (distance=1000), max distance is 5km.
minTimestamp
Type: SystemNullableDateTime
All media returned will be taken later than this timestamp.
maxTimestamp
Type: SystemNullableDateTime
All media returned will be taken earlier than this timestamp.

Return Value

Type: TaskMediasResponse
Media Response
See Also