Job-based Computational Toxicology API
1. Get an API key from toxindex.com/settings/api
2. Submit a job:
curl -X POST https://jobs.toxindex.com/jobs \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"compounds": [{"smiles": "CCO", "name": "Ethanol"}],
"tools": ["solubility", "ames", "herg"]
}'
3. Poll for results:
curl https://jobs.toxindex.com/jobs/JOB_ID \
-H "X-API-Key: YOUR_API_KEY"
Query the bb-ukg unified knowledge graph with 10M+ triples of toxicology, chemistry, and biomedical data.
Synchronous GET endpoint (fast!):
curl "https://jobs.toxindex.com/sparql?query=SELECT%20(COUNT(*)%20as%20%3Fcount)%20WHERE%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D"
POST for complex queries:
curl -X POST https://jobs.toxindex.com/sparql \
-H "Content-Type: application/json" \
-d '{"query": "SELECT DISTINCT ?p WHERE { ?s ?p ?o } LIMIT 100"}'
Endpoints:
/sparql?query=... - Execute SPARQL query (GET)/sparql - Execute SPARQL query (POST)/sparql/stats - Knowledge graph statistics/sparql/prefixes - Common namespace prefixes26 computational tools sorted by popularity. Badge shows usage count: