URLSearchParams interface

E241267

The URLSearchParams interface is a web API that provides convenient methods to create, read, and manipulate the query string parameters of a URL.

All labels observed (1)

Label Occurrences
URLSearchParams interface canonical 1

How this entity was disambiguated

Statements (49)

Predicate Object
instanceOf URL standard interface
Web API interface
associatedProperty URL.searchParams
associatedWith URL interface
availableIn WorkerGlobalScope
surface form: WindowOrWorkerGlobalScope
behavior append does not remove existing parameters with same name
delete removes all values for a given name
get returns first value for a given name
getAll returns all values for a given name
set replaces existing parameters with same name
category URL and Location APIs
constructorSignature new URLSearchParams()
new URLSearchParams(init: Record<string, string>)
new URLSearchParams(init: URLSearchParams)
new URLSearchParams(init: string)
new URLSearchParams(init: string[][])
definedInSpecification URL Standard
encodes query parameter names using application/x-www-form-urlencoded rules
query parameter values using application/x-www-form-urlencoded rules
exposedIn Node.js
surface form: Node.js global scope

Window
Worker
implements iterable of [name, value] pairs
introducedFor manipulating URL query strings
method append(name, value)
delete(name)
entries()
forEach(callback, thisArg?)
get(name)
getAll(name)
has(name)
keys()
set(name, value)
sort()
toString()
values()
normalizes space characters as + in query strings
partOf Web APIs
surface form: URL API

Web APIs
stringRepresentation query string without leading ?
supports iteration with for...of
multiple values for the same parameter name
supportsEnvironment Node.js
Web workers
surface form: Web Workers

browsers
usedFor creating query strings
deleting query parameters
reading query parameters
updating query parameters

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

URL Standard defines URLSearchParams interface