Retrieve your account
const url = 'https://api.serpresult.com/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.serpresult.com/v1/me \ --header 'Authorization: Bearer <token>'The account behind the calling credential: its email, plan, the credits
it can still spend and, for an API key, the key’s own name and mode. The
recommended connection test: a 200 means the credential is valid.
Costs 0 credits and is not written to the query history. It counts as one
hit against the caller’s per-minute rate limit. A dashboard session gets
api_key: null.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The account.
object
The account’s email address. Empty for a marketplace subscriber.
The plan the account is on.
Credits the account can still spend — the period’s remaining quota plus the credit-pack balance.
Example
{ "plan": "growth", "credits_available": 48210, "api_key": { "id": "key_3f2a9c1e7b4d4e8a9f602c1d8e5b7a90", "label": "Zapier", "mode": "live" }}Headers
Section titled “Headers”The id of this request, identical to request_id in any error body. Quote it in a support request.
Requests allowed per rolling 60-second window for this credential.
Requests left in the window, after this one.
Unix time (seconds) at which the current window ends.
No accepted credential (unauthorized). A session-only route answers this to a bearer key; the demo header answers this when a credential rides along with it.
The shape of every error response.
object
Every code the API emits.
invalid_request— validation failed;issueslists the fields.unsupported_geo—geois not supported;detailslists the supported codes.unsupported_parameter— the target cannot servepage,numorsafeas sent.unauthorized— no accepted credential.not_found— unknown route, or an API key id not on this account.rate_limited— per-minute limit spent.quota_exceeded— the period’s quota and the credit balance are both spent. Not charged.upstream_error— the search provider failed. Charged.upstream_timeout— the search provider did not answer in time. Charged.no_subscription— a plan change or a credit-pack purchase was asked for on an account with no active subscription.plan_unchanged— a plan change was asked for on the plan the account is already on.billing_unavailable— purchases are closed on this deployment: either it is not wired to Polar, or direct checkout is switched off while the same plans are sold on RapidAPI.internal_error— a fault on our side. Not charged.
Human-readable, safe to show to an end user.
Same value as the X-Request-Id header.
On unsupported_geo only, the supported country codes.
On invalid_request from a validator, one entry per failed field.
object
Dotted path of the field. Empty for the whole input.
Example
{ "error": "unauthorized", "message": "API key is not valid.", "request_id": "7d1c2f34-1b7e-4d2a-9c33-1f6f0e2b8a90"}Headers
Section titled “Headers”The id of this request, identical to request_id in any error body. Quote it in a support request.
The credential’s per-minute limit is spent (rate_limited). Wait Retry-After seconds.
The shape of every error response.
object
Every code the API emits.
invalid_request— validation failed;issueslists the fields.unsupported_geo—geois not supported;detailslists the supported codes.unsupported_parameter— the target cannot servepage,numorsafeas sent.unauthorized— no accepted credential.not_found— unknown route, or an API key id not on this account.rate_limited— per-minute limit spent.quota_exceeded— the period’s quota and the credit balance are both spent. Not charged.upstream_error— the search provider failed. Charged.upstream_timeout— the search provider did not answer in time. Charged.no_subscription— a plan change or a credit-pack purchase was asked for on an account with no active subscription.plan_unchanged— a plan change was asked for on the plan the account is already on.billing_unavailable— purchases are closed on this deployment: either it is not wired to Polar, or direct checkout is switched off while the same plans are sold on RapidAPI.internal_error— a fault on our side. Not charged.
Human-readable, safe to show to an end user.
Same value as the X-Request-Id header.
On unsupported_geo only, the supported country codes.
On invalid_request from a validator, one entry per failed field.
object
Dotted path of the field. Empty for the whole input.
Example
{ "error": "rate_limited", "message": "Rate limit of 20 requests per minute exceeded. Retry in 37 seconds.", "request_id": "7d1c2f34-1b7e-4d2a-9c33-1f6f0e2b8a90"}Headers
Section titled “Headers”The id of this request, identical to request_id in any error body. Quote it in a support request.
Requests allowed per rolling 60-second window for this credential.
Requests left in the window, after this one.
Unix time (seconds) at which the current window ends.
Whole seconds to wait before retrying. Never below 1.
Something failed on our side (internal_error). The detail is in our logs under request_id. Nothing is charged.
The shape of every error response.
object
Every code the API emits.
invalid_request— validation failed;issueslists the fields.unsupported_geo—geois not supported;detailslists the supported codes.unsupported_parameter— the target cannot servepage,numorsafeas sent.unauthorized— no accepted credential.not_found— unknown route, or an API key id not on this account.rate_limited— per-minute limit spent.quota_exceeded— the period’s quota and the credit balance are both spent. Not charged.upstream_error— the search provider failed. Charged.upstream_timeout— the search provider did not answer in time. Charged.no_subscription— a plan change or a credit-pack purchase was asked for on an account with no active subscription.plan_unchanged— a plan change was asked for on the plan the account is already on.billing_unavailable— purchases are closed on this deployment: either it is not wired to Polar, or direct checkout is switched off while the same plans are sold on RapidAPI.internal_error— a fault on our side. Not charged.
Human-readable, safe to show to an end user.
Same value as the X-Request-Id header.
On unsupported_geo only, the supported country codes.
On invalid_request from a validator, one entry per failed field.
object
Dotted path of the field. Empty for the whole input.
Example
{ "error": "internal_error", "message": "The request could not be completed.", "request_id": "7d1c2f34-1b7e-4d2a-9c33-1f6f0e2b8a90"}Headers
Section titled “Headers”The id of this request, identical to request_id in any error body. Quote it in a support request.