InsightSocial API
Wikipedia

Wikipedia Search API reference

Your first 10 calls are free, no card needed. Pricing and FAQ

Get a free API key
Example request
curl "https://api.insightsocial.app/v1/wikipedia/search?query=<query>" \
  -H "x-api-key: $INSIGHTSOCIAL_API_KEY"
GET
/v1/wikipedia/search

Search a Wikipedia edition, with snippets, match ranges, totals and suggestions.

Beta. The source's own structure under our naming rules (snake_case keys, string ids, ISO times where the source gives a timestamp), not one of the schema-2 entities. Fields may change. See Beta endpoints.

20 credits per call.

Paginates by cursor: see Pagination.

x-api-key<token>

Your key from the dashboard. It starts with isk_.

In: header

Query Parameters

query*string

Search text. Operators such as insource:, incategory: and intitle: work. A plain insource:/.../ regular expression can be slow; prefer words or insource:"...". At most 300 characters.

lang?string

Wikimedia edition code, e.g. en, de, ja, simple or zh-min-nan. Default: en.

limit?integer

Results per page, 1 to 500. Default: 50.

Range1 <= value <= 500
offset?integer

First result to return, 0 to 9999. Use cursor to continue a walk.

Range0 <= value <= 9999
sort?string

Result order: relevance (default), create_timestamp, incoming_links, last_edit, title_natural, just_match, none or random, optionally with _asc or _desc.

namespace?integer

Namespace id, e.g. 0 for articles or 14 for categories.

Range-2 <= value <= 999
cursor?string

Pass pagination.next_cursor from the previous response to get the next page. Keep the other parameters the same.

dry_run?"1"

Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.

Value in

  • "1"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.insightsocial.app/v1/wikipedia/search?query=string"
{  "success": true,  "platform": "string",  "endpoint": "string",  "schema_version": "2",  "pagination": {    "next_cursor": "string",    "has_more": true,    "page_size": 0,    "stopped_at": "since"  },  "unavailable": [    "string"  ],  "credits_used": 0,  "credits_remaining": 0,  "request_id": "string",  "cached": true,  "idempotent_replay": true,  "charge_reason": "string",  "free_call": true,  "data": {    "property1": null,    "property2": null  }}