RankParse

Content Types

Get content type (MIME) distribution for a domain.

GET /v1/content-types

Returns a count of URLs by MIME type. Costs 2 credits.

Parameters

ParameterTypeRequiredDescription
domainstringYesThe domain to query

Request

curl "https://api.rankparse.com/v1/content-types?domain=example.com" \
  -H "X-API-Key: rp_your_key"

Response

{
  "data": [
    { "mime": "text/html", "count": 3456 },
    { "mime": "application/pdf", "count": 123 },
    { "mime": "image/png", "count": 89 }
  ],
  "credits_used": 2
}

On this page