Skip to main content
POST
/
api
/
dbpedia
/
sparql
/dbpedia/sparql
curl --request POST \
  --url https://api.anysite.io/api/dbpedia/sparql \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "query": "<string>",
  "timeout": 300
}
'
[
  {
    "@type": "@dbpedia_sparql_row",
    "bindings": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
query
string
required

A SPARQL 1.1 query to run against the DBpedia SPARQL endpoint

Minimum string length: 1
Example:

"SELECT ?city ?name WHERE { ?city a dbo:City ; rdfs:label ?name . FILTER(lang(?name) = \"en\") } LIMIT 10"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

@type
string
default:@dbpedia_sparql_row
bindings
DbpediaSparqlBinding · object[]