API credits: cost per endpoint

Credits each SnitchFeed API search endpoint costs, which endpoints are free, what each endpoint returns when you run out of credits, and how to check usage.

Last updated

API calls draw from the same organization credit pool as the rest of SnitchFeed. Only successful POST /v1/data/* calls cost credits:

EndpointCredits
POST /v1/data/twitter/tweets/search2 per successful request
POST /v1/data/linkedin/posts/search4 per successful request
POST /v1/data/linkedin/company/get4 per successful request
POST /v1/data/linkedin/person/posts10 per successful request (one page)
POST /v1/data/linkedin/person/comments10 per successful request (one page)
POST /v1/data/linkedin/posts/comments1 per comment returned
POST /v1/data/linkedin/posts/reactions1 per reaction returned
POST /v1/data/hackernews/search2 per successful request

Successful LinkedIn search, person posts and person comments responses return the full page. The optional count field on those endpoints is ignored.

POST /v1/data/linkedin/person/comments returns comments written by a person (profile URL). POST /v1/data/linkedin/posts/comments scrapes comments on a post (post URL).

Every other v1 endpoint is free: GET /v1/data/linkedin/industries, and all /v1/mentions, /v1/listeners, /v1/feeds and /v1/organization/* endpoints.

Failed requests are not charged. When a search fails after credits were set aside, they are refunded.

When you run out of credits

Before a search runs, SnitchFeed sets aside its cost. If your organization does not have enough credits, the request fails without charging you, but the response differs by endpoint:

EndpointResponse
POST /v1/data/twitter/tweets/search, POST /v1/data/hackernews/search502 upstream_error. The message says how many credits you need
POST /v1/data/linkedin/posts/search, /company/get, /person/posts, /person/comments502 upstream_error with a general "could not be completed" message that does not mention credits
POST /v1/data/linkedin/posts/comments, /posts/reactions400 validation_error with an issue on credits. These scrapes set aside credits for the maximum you asked for (maxComments or maxReactions), so lowering it can help

If a LinkedIn call returns 502 and you are unsure why, check your balance with GET /v1/organization/usage (needs org:read).

Check usage

  • GET /v1/organization/usage returns credit usage for the current billing period.
  • In the app, Integrations → API → Usage lists recent API requests, and the credits page explains usage across the product.

OpenAPI

GET /v1/openapi.json includes components.schemas.SnitchFeedCreditRates for code generators. It covers the X, LinkedIn search and company, LinkedIn person, and LinkedIn comment and reaction rates, but not the Hacker News rate. Use the table above for Hacker News.

On this page